EQEmulator Forums

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

provocating 01-10-2011 12:19 AM

Question on
 
I am trying to learn how to script but I find this irregular. I am trying to understand why this is random.

Code:

sub EVENT_SPAWN
{
quest::settimer("test", 5);
}

sub EVENT_TIMER
{
        if ($timer eq "test")
        {
        quest::shout($zonetime);
        }
}

Why would the NPC spit this out, at random times, I would think it would be every 5 seconds. Instead....

Test shouts '1551'
Test shouts '1556'
Test shouts '1601'
Test shouts '1611'
Test shouts '1616'
Test shouts '1621'
Test shouts '1631'
Test shouts '1637'
Test shouts '1641'
Test shouts '1651'

The only thing I will say, this is on a VM and I know that they have clock issues and it could be the VM adjusting every so often on it's time drift. Or maybe shouts are not consistent.

joligario 01-10-2011 07:04 AM

Remember that game time is faster than real time


All times are GMT -4. The time now is 09:03 PM.

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