PDA

View Full Version : COD_Trigger - codecay


fourier
08-31-2009, 01:38 AM
#############
#Quest Name: COD_Trigger
#Author: Unknown
#NPCs Involved: 2 (?)
#Items Involved: 0
#################

sub EVENT_SPAWN
{
quest::settimer(77,3600); #1 hour depop
$high_priest=0;
}

sub EVENT_TIMER {
{
quest::stoptimer(77);
quest::settimer(77,1);
}

if($timer == 77 && $high_priest == 2)
{
quest::spawn2(200032,0,0,310,328,-71.5,125);
$high_priest=0;
quest::stoptimer(69);
}
if($timer == 69) {
$high_priest=0;
quest::stoptimer(69);
}
}

sub EVENT_SIGNAL
{
$high_priest=$high_priest+1;
quest::settimer(69,14400);
}


First post here, hope the above is suitable commentary. In quests\codecay\#COD_Trigger.pl, changed line 3 from quest::settimer(77,1); #1 hour depop to:

quest::settimer(77,3600); #1 hour depop

This is because settimer takes params: id,time in seconds. I am guessing the original author meant to put 3600 based on the comment and 1 second not appearing logical.

Not yet tested - still trying to get my dev server setup.

joligario
08-31-2009, 05:50 AM
Actually, it looks as if the comment is just wrong. That timer is supposed to go every second and when it sees that the high priest == 2, then it spawns High Priest Ultor Szanvon.