EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Give LDoN points on a timer? (https://www.eqemulator.org/forums/showthread.php?t=35459)

Xiao 06-23-2012 08:22 PM

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


Xiao 06-23-2012 08:33 PM

Ignore that, I don't know why it wasn't working but it is working just fine.


All times are GMT -4. The time now is 09:11 AM.

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