View Single Post
  #1  
Old 06-23-2012, 08:22 PM
Xiao's Avatar
Xiao
Sarnak
 
Join Date: Mar 2005
Location: Norrath
Posts: 30
Default Give LDoN points on a timer?

I have a script (posted below) that's supposed to give players LDoN points for idling in a zone. But it's not working. If anyone could throw a suggestion my way on this, I'd really appreciate it.

Code:
sub EVENT_ENTERZONE #WHEN PLAYER ZONES IN
{
	quest::settimer("ldon",300); #SET TIMER
}
sub EVENT_TIMER #WHEN THE TIMER GOES OFF
{
	if ($timer eq "ldon")
	{
		$client->Message(15, "You have been awarded 1 LDoN point for being in the Bazaar for however long."); #CLIENT MESSAGE
		quest::addldonpoints(1,1); #GIVE THEM LDON POINTS
		quest::settimer("ldon",300); #RESTART TIMER
	}
}
Reply With Quote