The Ultimate Guard
So ive been looking around through page of page of quest submission/Q&A , but havent been able to find anything relating to this...Im trying to write a script for the ultimate guard, A Npc who is permaroot but aggros any npc that is within a certain range of him. I know the range part would be fairly easy with Event timer or whatever it is ( Ive seen the plugin before just to tired to remember exact name) but I have no idea how to make him attack npcs. Trying to avoid faction if possible but will use it if I must. Anyone know of a way of achieving this using perl?
|
You can do this in Perl, yes, but writing them to attack on a timer on proximity-based entities isn't as good as just having them aggro the NPC. Doing this with faction would be the much simpler route. There is an npc_aggro column in npc_types which you can turn on and off to make an NPC aggro on to other NPCs. If you haven't deleted the Mines of Gloomingdeep (tutorialb, zone 189) guards, you can take a look at how their faction works and what the faction of the trash in their zone looks like. Hopefully this will help you out.
|
What KC said. There's a faction that's KOS to all. I believe simply using that will take care of your issue. Then you just need to set the guard to have an appropriate aggro range.
|
Would making him KOS to all make him attack players aswell?
|
Try this I wrote this today for an encounter.
Code:
sub EVENT_SPAWN{ |
All times are GMT -4. The time now is 02:16 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.