PDA

View Full Version : Give LDoN points on a timer?


Xiao
06-23-2012, 08:22 PM
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.


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
}
}

Xiao
06-23-2012, 08:33 PM
Ignore that, I don't know why it wasn't working but it is working just fine.