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 07-22-2013, 08:08 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default NPC vs NPC

This may be stupid and im sorry, but simply im writing a script where I want NPC's to spawn and instantly start attacking one main NPC. Im trying to re-create the Capture of Kerafyrm and When all of Velious's named are spawned via event controller, I want them all to attack him. The part I need is the command where it tells the spawned to attack him and nothing or no one else.
Reply With Quote
  #2  
Old 07-22-2013, 09:23 PM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 435
Default

Off the top of my head this might work without having to perl script or lua script the fight:

If the main mob has a faction set him to be able to agro other npc's.
Create a unique faction for the spawned npc's that will agro the main npc.
Set the spawned npc agro range to be large enough they will go after the main npc target.
Set the spawned npc special_abilities to whatever you require if you do not want players to harm it.
Reply With Quote
  #3  
Old 07-22-2013, 10:32 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Maybe give the spawning NPCs tunnel vision "NPC special attack" (which is 't' btw if you have old source ... '29' if you have new source for special attacks)


then have them search for the entity ID of the npc you want them to attack then just .... quest::attacknpc(int npc_entity_id)
Reply With Quote
  #4  
Old 07-22-2013, 11:22 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 109
Default

or you can use quest::attacknpctype(npctype id)
Reply With Quote
  #5  
Old 07-22-2013, 11:38 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Awesome thanks alot guys!!
Reply With Quote
  #6  
Old 07-23-2013, 01:05 AM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 435
Default

Yup, anytime. Dozens of ways to do anything and its interesting to see how everyone does 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 09:02 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