Code: Select all
local target = player:getTarget();
if( settings.profile.options.ANTI_KS ) then
if( target:haveTarget() and target:getTarget().Address ~= player.Address and (not player:isFriend(CPawn(target.TargetPtr))) ) then
cprintf(cli.red, language[5], target.Name);
else
player:fight();
end
else
player:fight();
end
Code: Select all
local aggroWaitStart = os.time();
while(player.Battling) do
if( player:haveTarget() ) then
break;
end;
if( os.difftime(aggroWaitStart, os.time()) > 3 ) then
--cprintf(cli.red, language[34]);
printf("Aggro wait time out\n");
break;
end;
yrest(10);
player:update();
end
