ALready was working on that solution when I had to put focus back on Kiss...
Rich (BB code):
|---------------------------------------------------------------------------------
| SUB: OpenLDonDoors
|---------------------------------------------------------------------------------
Sub OpenLDonDoors
/declare NearestDoorTarget string local
/declare DoorDistance int local
/varset NearestDoorTarget /doortarget
/varset DoorDistance ${Math.Distance[${NearestDoorTarget.Y},${NearestDoorTarget.X}:${Me.Y},${Me.X}]}
/echo DoorDistance=(${DoorDistance})
/if (${DoorDistance}!=NULL && ${DoorDistance}<25) {
/door face
/nav door ${NearestDoorTarget} click
}
/return
|---------------------------------------------------------------------------------
It would be called as part of the DoWeMove function from KissAssist.
Basicly.. everytime DoWeMove gets called.. it checks if there is a local closed door near us... if so.. ( not null ).. it faces it and clicks it... then we move to the next hunting target.
It doesn't matter if the door is not in-between us and the mob and we click it open... ( as being the closest door ) ... when all we care about is having the closest door open when we do move the where the target is anyway.... can only help... just in case a group member was caught behind the door for some reason before we move to mob.
Open door targets don't return back their coordinates.... hence.. the only valid data i would return for a local closed door.. is exactly what i need to determine its distance from me.
Chilax .... I have solutions in place for these things.. lol.. just can't spare the time to debug every function i haven't posted yet.
There will be a few bastardizations to the kissassist code to get this incorporated and flowing proper.... but i will give instructions on how to do it... as well as providing the initial release of the LDON.inc with an altered mod of KissAssist that takes advantage of it and works....
The instructions on how to bastardize the kiss code is simply going to be a manual on how YOU need to alter future versions of Kiss to use the include.... (Only if you want to use any new featured from newer kiss versions) .. else.... just use the bastard kiss i provide you and don't worry .