Thread: Guard Spews
View Single Post
  #6  
Old 03-24-2006, 01:10 AM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default another way.

Quote:
Originally Posted by fanman55
Does EVENT_AGGRO trigger if another NPC aggroes another NPC (e.i. a Large Rat aggroes a guard) or does it only work if a PC aggroes an NPC? If it doesn't is there any way to make it trigger when an NPC aggroes another? Thanks in Advance!
Well the best way is to use factions . set the rats faction to -1500 and the guards faction to 1500 and add this to your default guard quest file.


sub EVENT_ATTACK #triggers when client attacks mob.
{
quest::say("You will die for the glory of the master sdabbs!!");
or
quest::shout("You will die for the glory of the master sdabbs!!");
Note that the npc_aggro should also be set to non-zero in the npc's entry in the npc_types table for npc-to-npc aggro to work. (NPC assisting will still work even if npc_aggro = 0) However, I don't recommend blindly turning on npc_aggro across the board -- do it only on npc's you really want to aggro other npc's, else you will experience big-time performance issues.
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info

Last edited by sdabbs65; 03-24-2006 at 09:13 AM..
Reply With Quote