EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   settimer question (https://www.eqemulator.org/forums/showthread.php?t=21077)

Angelox 07-17-2006 07:45 AM

settimer question
 
---------
sub EVENT_DEATH
{
my $a = quest::ChooseRandom(227038,227038,227038,227038,22 7034,227034,227034,227097);
my $x = $npc->GetX();
my $y = $npc->GetY();
my $z = $npc->GetZ();
my $h = $npc->GetHeading();
if ($a =~ /227097/)
{
quest::say("Krakskull is coming");
quest::spawn2($a,0,0,$x,$y,$z,$h);
}
else
{
quest::say("Ouch! He got me!");
quest::settimer(1,10);
quest::spawn2($a,0,0,$x,$y,$z,$h);
}
}
-------------

I have all this working, void the timer - I set "say text" in there so I could be sure it was working.
when normal spawn dies, there should be a 10 second delay (after text and before spawn), and it's not happening. Anyone have any ideas why?


All times are GMT -4. The time now is 01:39 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.