Sorry to bump if its not ok but I wasn't sure where to ask this.
Is there a command to check for mob ID and one to make it your target.
I have only coded with java before so I'm new to LUA. (what I'm trying to do is check for a totem and attack it(for this: Townlong Steppes Easy Path 88-90)
function TotemCheck()
check() = GetAttackerCount();
if check() >= 2 then
_log("Hitting totem");
Target = GetAttacker(2);
CastSpellByID(20271, Target, true);
Target = GetAttacker(1);
end
NextAction();
end
this code is obviously just to hit a second target, since I don't know how to check for mob ID