Modification: skip taget by level / Min Level / Max Level
Posted: Fri Jul 03, 2009 6:15 am
With the new harvesting function I just startet new chars in the beginner are. While harvesting I also want to level up the char a little. After a view rounds of harvesting and killing it is not so usefull to still kill LvL 1 Fungies. So I did a small modification to check min/max level for the targets.
Insert two new default values in settings.lua line 38:
Insert following lines in player.lua at line 726 after the 'end;' and befor the '-- PK protect':
and use the new options in your profile:
Have fun
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 protectCode: Select all
<option name="TARGET_LEVELDIF_BELOW" value="2" />
<option name="TARGET_LEVELDIF_ABOVE" value="3" />