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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2009, 10:58 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default qglobals bug since last update

I recall reading the globals system was changed as per last update.

Whatever was changed, it somehow broke a quest that has been working for a year now.

It's very simple script.

NPC recieves a signal, that then sets the global SumB.

Then if someone attacks that NPC while SumB is defined, it will cause the npc do a change of appearance, and then clear the global.

Since our server updated it stopped working completely. I tested it out find the problem and it appears is just not setting the global off the signal now.

The check I simply ran a timer to check for the global it appears no matter it would never be defined. Therefore, it just isn't being set.

Anyways see if you can figure out whats going on with this cause its probably wide spread issue. I can easily recode this not to the use the global but that isn't my concern...


Code:
sub EVENT_SPAWN {
quest::settimer("Cast",30);
}

sub EVENT_ATTACK {

if (defined($qglobals{SumB})) {
quest::delglobal("SumB");
quest::stoptimer("Freeze");
quest::stoptimer("Cast");
$npc->NPCSpecialAttacks(ABH, 0);
$npc->WipeHateList();
quest::emote("falls to the ground in pain");
$entity_list->MessageClose($npc, 1, 200, 6, "The Shadow Summoner's ritual has been interrupted");
$npc->SetAppearance(0);
$npc->SetAppearance(3);
quest::signalwith(899128,1,0);
}
}

sub EVENT_SIGNAL {

if ($signal == 1) {
quest::delglobal("SumB");
quest::setglobal("SumB", 1, 2, "F");
quest::settimer("Cast", 5);
$npc->BuffFadeAll();
quest::settimer("Freeze", 21);
$npc->NPCSpecialAttacks(H, 0);
quest::shout("Signal Recieved");
quest::settimer("Test",1);
}


if ($signal == 2) {
$npc->CastSpell(6973,$userid);
$npc->NPCSpecialAttacks(ABH, 0);
$npc->WipeHateList();
$npc->SetAppearance(0);
}

if ($signal == 9) {
$npc->WipeHateList();
quest::stoptimer("Freeze");
$npc->NPCSpecialAttacks(ABH, 0);
}


}

sub EVENT_TIMER {

if ($timer eq "Freeze") {
quest::stoptimer("Freeze");
$npc->CastSpell(6973,$userid);
$npc->WipeHateList();
$npc->NPCSpecialAttacks(ABH, 0);
quest::doanim(44);
quest::emote("completes the ritual");
}

if ($timer eq "Cast") {
quest::doanim(44);
}

}
Kayen
GM Storm Haven
Reply With Quote
Reply


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 07:28 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