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
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?
if( self.Battling and target.HP <= 1 ) then
cprintf(cli.red, "Priest hat Aggro ??\n");
keyboardHold(settings.hotkeys.MOVE_BACKWARD.key);
yrest(2000);
keyboardRelease(settings.hotkeys.MOVE_BACKWARD.key);
yrest(100);
keyboardPress(settings.hotkeys.TARGET.key);
if(settings.hotkeys.TARGET.modifier) then
keyboardRelease(settings.hotkeys.TARGET.modifier);
end
end;