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 01-21-2009, 11:44 AM
janusd
Sarnak
 
Join Date: Jan 2008
Posts: 47
Default NPC Agro

Is there a way to use PERL to cause an NPC to clear their hate and hate list and resume their grid/return to their spawn without having to force the player to do something like a FD? Basically looking for the same results of a feign death without forcing the spell or the ability.

Also, is there a way to use PERL to force an addition of a specific ammount of hate for a specific PID or NPCID?
Reply With Quote
  #2  
Old 01-21-2009, 12:16 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default

This will clear all hate from the NPC through a quest.

Code:
$npc->WipeHateList();
Reply With Quote
  #3  
Old 01-21-2009, 01:21 PM
janusd
Sarnak
 
Join Date: Jan 2008
Posts: 47
Default

Thanks bunches! Boy howdy that's gonna make things more interesting.
Reply With Quote
  #4  
Old 01-21-2009, 03:22 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Quote:
Originally Posted by janusd View Post
Also, is there a way to use PERL to force an addition of a specific ammount of hate for a specific PID or NPCID?
Check out #Tunare.pl in growthplane for that.
Reply With Quote
  #5  
Old 01-21-2009, 03:59 PM
janusd
Sarnak
 
Join Date: Jan 2008
Posts: 47
Default

So if I did...

Code:
my $mobname = $entity_list->GetMobByNpcTypeID(123456);
$NPC->AddToHateList($mobname, 200);
This code would cause the NPC whose PERL file this is in to agro ONTO the NPC specified in the GetMobByNpcTypeID with the specified amount of 200 hate, right?

Would this then, in the code logic, constitute the NPC as being agroed for the events defined in a sub EVENT_AGRO?

Finally, does AssignWaypoints(grid) work to add a specific wander grid to an NPC and then does AssignWaypoints() work to remove that grid? I know I've heard before that some of the functions don't work and I'm at work, so can't test ATM. Thanks!
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 10:17 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