Completely lost, can i get some input?
OK i'm completely lost on this one. I'm trying to run this quest. the first two event hand ins work perfect, however the third one does nothing. no response, no return item, nothing.
Code:
sub EVENT_ITEM { |
Try this:
Code:
sub EVENT_ITEM { |
that works thank you. I still dont really understand why the first did not work. but thank you!
|
Well, $itemcount is a hash reference used to see if a client has that item, which is not useful in EVENT_ITEM where you're checking for hand in, rather than just checking if a client has an item or not, meaning you should use plugin::check_handin, not $itemcount. You can use $itemcount in other subroutines like this:
Code:
sub EVENT_SAY { |
Ah, okay thank you very much
|
You're welcome. If I may ask, what server do you operate?
|
http://wiki.eqemulator.org/p?Ultimat...rence&frm=Main
I don't see a 'quest::whisper' operator there..though, I haven't checked the api itself. Anything after the 'croak' would probably be ignored. |
Yeah, he meant plugin::Whisper, apparently he had gotten confused by reading something.
|
ah yeah, sorry i'm still trying to teach myself this stuff. It all goes well then I hit a hiccup.
Right now i'm running Ancient Memories, though it is currently down as there is a lot of editing going in that I just could not do with people logged in(sorry but it happens during alpha). |
I do have another question though, not sure if I need to post a new thread or not, however ill post it here first. I'm using an auto skill trainer on level, the one floating around on the forums. I would like this code
Code:
# scribe all spells for current level Thank you in advance! |
Code:
quest::scribespells ($ulevel, $ulevel - 1, "xxxx"); If I remember correctly. |
Oh sorry, you said spells as in plural
Code:
my @blockedspells = (xxxx,xxxx,xxxx,xxxx); |
:) thank you very much!
|
cant get either of these to work, Mage epic spell id for Summon orb is 1944. it still scribes when put into both of these configurations? does this not got off the ID in the database or am I still missing something?
With Code:
my @blockedspells = (1944); with the other formate the Code:
quest::scribespells ($ulevel, $ulevel - 1, "1944"); |
Code:
uint16 QuestManager::scribespells(uint8 max_level, uint8 min_level) { |
Wonder if there is any way to put a flag or status requirement on the spell, and make the quest give that flag? Maybe that would bypass the autoscribe on it.
|
To block a spell from being scribed you have to create a spell global in the spell globals table. It's very undocumented, you must also enable spell globals in the rule_values table under the Spell:EnableSpellGlobals rule.
|
So i take it the Spellid and spell_name are obvious, the spell id and name of one i want to block. what do i need to do for qglobal and value? Tha main spell I want to block is 1944 the mage epic spell summon orb. It is unfair for mages to get a free epic :)
|
For qglobal you put the name of the qglobal you'd want to set for them to be able to scribe that spell. The value is the value of the qglobal necessary to scribe the spell. For example, you want qglobal UberSpells to have a value of 1 and block spell 1944. This is how you would do it:
Code:
INSERT INTO `spell_globals` ('1944', 'Summon Orb', 'UberSpells', '1'); |
Thank you very much!
|
You're welcome.
|
All times are GMT -4. The time now is 05:01 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.