Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-31-2014, 12:26 PM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default Question about npc pl files and NPC movement.

Ok, I'm basically rewriting this question.. Ignore the previous version if you read it.

I have the following pl file.

The intent of personalpause for each instance of this mob (there are 6) to spawn and pick one of the points on his grid waypoints (0-42) as his "hangout"

The intent of delay is so each instance starts the grid at a different time after he spawns.

I added the write() stuff, as it seemed to do what I expected while I was in the zone to observe, but when I left and came back a day later, the NPCs are all bundled up.

What i noticed from my write() calls, is that the event spawn stuff spits out as soon as I boot the zone, but I don't see any WP arrivals until I zone in. Then they start coming out.

So my question: Is no npc movement happening while no one is in the zone?

Code:
my  $personalpause=0;

sub EVENT_SPAWN
    {
    $personalpause=plugin::RandomRange(0,42);
    $delay=plugin::RandomRange(0,300);
    quest::write("/tmp/madmen", "spawned pause($personalpause) delay($delay)");
    quest::settimer("movetimer",$delay);
    }

sub EVENT_WAYPOINT_ARRIVE
    {
    quest::write("/tmp/madmen", "arrived pause($personalpause) delay($delay)");
    if ($wp == $personalpause)
        {
        $pauselen=plugin::RandomRange(60,150);
        quest::pause($pauselen);
        }
    }

sub EVENT_TIMER
    {
    if ($timer eq "movetimer")
        {
        quest::stoptimer("movetimer");
        quest::start(62);
        }
    }
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

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


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3