Quest Globals check... Am I doing it right???
What I am trying to do is have one mob set a quest global... then have 3 other mobs check for that global upon death. once all 3 die, the mob who created the global will despawn the untargetable, then respawn a targetable one..
here is the quest global creator... Code:
#Emoush_the_Destroyer Code:
sub EVENT_DEATH I can get emoush to work right, but not the 3 other mobs... Any ideas what I am doing wrong? I put shouts in so I know where the quest is not working, so I know that the quest doesnt work when I kill one of the three mobs, it doesnt even check for the global or change it. |
Under your sub EVENT_DEATH . . .
Try changing your else statements to elsif Also . . . Did you change the qglobal flag for all the mobs included in the global script (using the npc_types table)? |
I changed all the flags in the NPC types table before this... so I guess I will try the elsif... hopefully that works. thanks for pointing that out to me.
|
One thing I notice right off is that when the mob dies, the first check you do is to check if the global is not defined, then you are checking under that what the global is set to. If it isn't defined, it won't be set to anything :P
Try changing this: Code:
if (!defined($qglobals{emoush})){ Code:
if (defined($qglobals{emoush})){ |
Doh!
well that helps, but I still can't get it to work... I must be missing some stupid monday detail...
new code... Code:
sub EVENT_DEATH TIA... now back to bed. |
You have the wrong option set in your global for what you are wanting to do. Option 0 can only be seen by the exact NPC that created the global. You probably want option 3 or so.
Change this Code:
quest::setglobal("emoush",2,0,"F"); Code:
quest::setglobal("emoush",2,3,"F"); Here is the list of options from the wiki quest page: http://www.eqemulator.net/wiki/wikka...=QuestTutorial Code:
----------------------------------------- Code:
quest::spawn2(1230, 0, 0, -136, 1993, -3); Code:
quest::spawn2(1230, 0, 0, -136, 1993, -3, 0); |
Well, I have narrowed it down to the line in red... whats wrong with that?
Code:
sub EVENT_DEATH Code:
#Emoush_the_Destroyer |
guess im inpatient, not meaning to be, brain is fried from lack of sleep... which is what I should be doing..
let me try what you just posted... ignore my post after yours. |
sweet... that worked...
quest::setglobal("emoush",2,3,"F"); thanks man, your the best! |
All times are GMT -4. The time now is 09:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.