mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 22:53:26 +02:00
Version 1.2 - more advanced bot, new hotkeys, bug fixes
This commit is contained in:
@@ -144,6 +144,10 @@ function onMiniWindowClose()
|
||||
end
|
||||
|
||||
function onHealthChange(localPlayer, health, maxHealth)
|
||||
if health > maxHealth then
|
||||
maxHealth = health
|
||||
end
|
||||
|
||||
healthBar:setText(health .. ' / ' .. maxHealth)
|
||||
healthBar:setTooltip(tr(healthTooltip, health, maxHealth))
|
||||
healthBar:setValue(health, 0, maxHealth)
|
||||
@@ -175,6 +179,9 @@ function onHealthChange(localPlayer, health, maxHealth)
|
||||
end
|
||||
|
||||
function onManaChange(localPlayer, mana, maxMana)
|
||||
if mana > maxMana then
|
||||
maxMana = mana
|
||||
end
|
||||
manaBar:setText(mana .. ' / ' .. maxMana)
|
||||
manaBar:setTooltip(tr(manaTooltip, mana, maxMana))
|
||||
manaBar:setValue(mana, 0, maxMana)
|
||||
|
Reference in New Issue
Block a user