View Single Post
  #8  
Old 06-10-2009, 08:24 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by kimura0715 View Post
im a noob with quests...i dont see a player.pl in the quest folders...

also i cant this to work..do you see any mistakes with it.......


#The_Masochist

sub EVENT_SPAWN {
quest::settimer("repeat", 60); // First trigger after 60 seconds, and every 60 seconds after
}

sub EVENT_TIMER {
if ($timer eq "repeat") {
quest::shout("I need pain!!! Please come kick my ass!! It will make you feel good and make me feel wonderful!!");
}
}

Thanks in advance...

Are you sure that "//" is a valid coment-out character?
try using # instead. Here is a small overhaul of the script:

Code:
sub EVENT_SPAWN 
{
	quest::settimer("repeat", 60);  # First trigger after 60 seconds, and every 60 seconds after
}

sub EVENT_TIMER 
{
	if ($timer eq "repeat") 
             {
	quest::stoptimer("repeat");
	quest::shout("I need pain!!! Please come kick my ass!! It will make you feel good and make me feel wonderful!!");
	quest::settimer("repeat", 60); 
	}
}
Reply With Quote