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