EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Timers (https://www.eqemulator.org/forums/showthread.php?t=25274)

Aonelyn 05-19-2008 03:41 AM

Timers
 
Ok, im trying to write a quest that makes certain mob despawn 1 hr after it spawns, how would i do this?

Cripp 05-19-2008 11:18 AM

Code:

sub EVENT_SPAWN
{
        quest::settimer("depop",100000);
}

sub EVENT_TIMER
{
        if ($timer eq "depop")
        {
                quest::depop();
        }
}

change 100000 to whatever it should be for an hour..

Aonelyn 05-19-2008 11:34 AM

thanks cripp!


All times are GMT -4. The time now is 04:24 PM.

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