Thread: Timer Problem
View Single Post
  #1  
Old 05-12-2009, 05:32 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Timer Problem

Ok I have a quest where the npc starts a timer and is supposed to kick the person back to PoK after a minute and a half. Nothing happens.

This is the quest giver
Code:
sub EVENT_SAY{
 if ($text=~/hail/i){
 quest::say("text");
 }
 if ($text =~/ready/i){
 quest::spawn(1295,0,0,-31.4,-165.8,0.5);
 quest::moveto(-1094.4, 29.7, -26.9);
 quest::settimer("wizboot", 90);
 }
}
 sub EVENT_TIMER{
 if ($timer eq "wizboot"){
 quest::movepc(202,-107,-190,-156);
 quest::stoptimer("wizboot");
}
}
I also added
Code:
if ($timer eq "wizboot"){
quest::movepc(202, -107,-190,-156);
 quest::stoptimer("wizboot");
}
to player.pl. For some reason this won't boot the person back to PoK
Reply With Quote