Quote:
Originally Posted by Esildor
I'm wanting to make an event that spawns some adds, the adds will path towards the boss and if they are able to reach him I want them to despawn and cause the boss to heal.
I was originally thinking proximities but it looks like their function is specifically for a client entering the proximity, not an NPC?
I've been looking around on the wiki for the past couple hours without any luck, anyone able to point me in the right direction?
|
What you want is to use a function that will check the distance between the trash and the boss. You can achieve that with:
plugin::CheckDistBetween2Ents(entity1, entity2, distance);
http://wiki.eqemulator.org/p?Perl_Pl...ntity-distance
You will also want to use something simple like quest::follow, which will follow the entity that you specify:
quest::follow(EntityID, [Distance]) # Mob starts to follow "EntityID". The second field, Distance, is optional and can be used to set the distance the Mob will follow it's target at.
Setting the runspeed or walkspeed of the mob if you will, will give players a longer reaction time before the adds get to the main boss.
Hopefully that helps.