Insert two new default values in settings.lua line 38:
Code: Select all
LOGOUT_SHUTDOWN = false,
TARGET_LEVELDIF_BELOW = 999, -- modif
TARGET_LEVELDIF_ABOVE = 999, -- modif
}, hotkeys = {}, skills = {}, friends = {},
Code: Select all
return false;
end;
-- Begin of Modif
if( ( target.Level - self.Level ) > settings.profile.options.TARGET_LEVELDIF_ABOVE or
( self.Level - target.Level ) > settings.profile.options.TARGET_LEVELDIF_BELOW ) then
if ( self.Battling == false ) then -- if we don't have aggro then
return false; -- he is not a valid target
end;
if( self.Battling == true and -- we have aggro
target.TargetPtr ~= self.Address ) then -- but not from that mob
return false;
end;
end;
-- End of Modif
-- PK protect
Code: Select all
<option name="TARGET_LEVELDIF_BELOW" value="2" />
<option name="TARGET_LEVELDIF_ABOVE" value="3" />