mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.0 - preys, bot updates, ui improvements
This commit is contained in:
@@ -282,7 +282,18 @@ function onSkillButtonClick(button)
|
||||
end
|
||||
|
||||
function onExperienceChange(localPlayer, value)
|
||||
setSkillValue('experience', value)
|
||||
local postFix = ""
|
||||
if value > 1e15 then
|
||||
postFix = "B"
|
||||
value = math.floor(value / 1e9)
|
||||
elseif value > 1e12 then
|
||||
postFix = "M"
|
||||
value = math.floor(value / 1e6)
|
||||
elseif value > 1e9 then
|
||||
postFix = "K"
|
||||
value = math.floor(value / 1e3)
|
||||
end
|
||||
setSkillValue('experience', comma_value(value) .. postFix)
|
||||
end
|
||||
|
||||
function onLevelChange(localPlayer, value, percent)
|
||||
|
Reference in New Issue
Block a user