Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2008, 12:07 PM
Razzel
Fire Beetle
 
Join Date: Jun 2008
Location: -
Posts: 4
Default Moving mobs

Is there a way I can get a mob to move somewhere and then stay there? Whenever I use MoveTo(), the mob will move to the location and then immediately go right back to where it spawned.
Reply With Quote
  #2  
Old 12-06-2008, 09:59 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Spawn him on a grid and when he gets to the end, respawn him off of grid.
Reply With Quote
  #3  
Old 12-07-2008, 12:35 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Or set a huge pause on the last grid_entry.
Reply With Quote
  #4  
Old 12-07-2008, 01:25 AM
Razzel
Fire Beetle
 
Join Date: Jun 2008
Location: -
Posts: 4
Default

Is there anyway to do this within the context of a script though? I wanted to have scripts for mobs that would allow them to strategically move to different locations in battle. Like a rogue getting behind a player or a caster moving a safe distance away from the fighting. I can get them to move to these places but as soon as they get there, they turn around and go back to their spawn point. Waypoints would work if it was a pre-planned move but I'm trying to get the mobs to decide where to move within the script based on the location of the players and other factors.
Reply With Quote
  #5  
Old 12-07-2008, 02:03 AM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

You're npcs are returning to their guard spots.

You'll want to use $npc->SaveGuardSpot(0); to prevent the return. for example,

Code:
sub EVENT_WAYPOINT {
  $npc->SaveGuardSpot(0);
}
Reply With Quote
  #6  
Old 12-07-2008, 02:23 AM
Razzel
Fire Beetle
 
Join Date: Jun 2008
Location: -
Posts: 4
Default

Awesome, it works. Thanks
Reply With Quote
  #7  
Old 12-07-2008, 05:32 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Holy cow, Strait! I am saving that info for later use!
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply


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