Originally Posted by
Legolas58
Oh yah my bad, thanks ha
Do you know how to make it approach the target?
I do, but it's not as simple as you would think. (I've written a bot capable of doing it though (in LUA))
Basicly you need to create a frame (can be done dynamically with loadstring) and use OnUpdate as a 'hoax' for sleep. It's fairly complicated and really ugly. :P
Basicly you just set some vars to 'true', like "IsTurning", and check for it in OnUpdate.
Then, for instance if IsTurning is true you check if your facing is what you want it to be, and if it is you set IsTurning to false and stop turning.
Originally Posted by
Gripen2
How about , Cast spell Kick if the target is casting a spell?
Use UnitCastingInfo("target").
Code:
/dump loadstring("local _, _, _, _, _, _, _, _, interruptAble = UnitCastingInfo(\"target\") if interruptAble then SpellStopCasting() CastSpellByName(\"Kick\") end")()