Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-29-2014, 02:43 PM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default quest::pause(60) - performing as expected?

Guys,

I have an NP on a grid. In EVENT_WAYPOINT_ARRIVE I have a quest::pause(60), which if I understand the documentation I can find, is supposed to suspend pathing for 60 seconds.

He reaches the wp I am checking for , and pauses forever. If I look at the code, it sets the timer to 60, but also sets a flag that says "distracted from grid". When the timer fires, it clears this flag but doesn;t reset any timer, and hence, leaves the mob immobile.

I could "fix" this, but I see tons of quests coded to use pause with a value. Many, many of them also code their own resume(), I am guessing because the pause timer didn't work. Others, seem to use pause differently, in ways I do not understand.

I am very hesitant to change the behavious as I dont want to break a ton of things.

Is quest::pause(60) supposed to pause the npc on his grid for 60 and resume, or pause him forever? It looks like pause(0) is the forever option.
Reply With Quote
 

Thread Tools
Display Modes

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 03:19 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3