Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-17-2008, 07:41 PM
Joetuul
Sarnak
 
Join Date: Oct 2008
Location: AZ
Posts: 58
Default 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
sub EVENT_SPAWN
{
	quest::setglobal("emoush",1,0,"F");
	quest::shout("Who has AWAKENED ME!?!?!, You shall die for interupting my slumber!");
}

sub EVENT_SIGNAL
{
	if($emoush == 4)
        {
        quest::spawn2(1230,0,0,-136.6,1993,-3.9);
        quest::delglobal("emoush");
        quest::shout("depoped, respawned");
        quest::depop();
        }
}

sub EVENT_DEATH
{
	quest::delglobal("emoush");
        quest::shout("global deleted");
}
Here is the mobs that die and make the targetable one spawn.
Code:
sub EVENT_DEATH
{
	if (!defined($qglobals{emoush})){

                if ($qglobals{emoush} == 1)
                	{
                        quest::delglobal("emoush");
                        quest::shout("deleted");
                        quest::setglobal("emoush",2,0,"F");
                        quest::shout("1");
                        }
                else ($qglobals{emoush} == 2)
                        {
                        quest::delglobal("emoush");
                        quest::setglobal("emoush",3,0,"F");
                        quest::shout("2");
                        }
                else ($qglobals{emoush} == 3)
                        {
                        quest::delglobal("emoush");
                        quest::setglobal("emoush",4,0,"F");
                        quest::shout("3");
                        quest::signal("342052,10");
                        }
                }
}

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.
__________________
~Tuul
Mithaniel Marr
http://mithmarr.power-rpg.com/
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:20 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3