Need CodeLine for detection if my follower have aggro !
Posted: Thu Jun 11, 2009 6:55 am
i need a code line to Detect if my following Priest had aggro from a Mob while my Main Bot account not assist my priest, something like this:
im rly new in lua
self.Battling = im fight or im not fight but my grp mate is in battle?
self.TargetPtr ~= 0 = i didnt have a target right?
Code: Select all
if( self.Battling and self.TargetPtr ~= 0 ) then
cprintf(cli.green, "Priest had Aggro ??\n");
end
better seems that:
if( self.Battling and target.HP <= 1 ) then
cprintf(cli.green, "Priest had Aggro ??\n");
end
self.Battling = im fight or im not fight but my grp mate is in battle?
self.TargetPtr ~= 0 = i didnt have a target right?