mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-29 10:49:21 +02:00
Updated to OTCv8 3.1 rev 113
This commit is contained in:
parent
bbcb7c2168
commit
0a0bdd4991
@ -106,8 +106,6 @@ function onHover(widget)
|
|||||||
local desc = descriptionTable[id]
|
local desc = descriptionTable[id]
|
||||||
if desc then
|
if desc then
|
||||||
preyWindow.description:setText(desc)
|
preyWindow.description:setText(desc)
|
||||||
else
|
|
||||||
print(id)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -209,7 +207,7 @@ function onPreyFreeRolls(slot, timeleft)
|
|||||||
if not prey then return end
|
if not prey then return end
|
||||||
for i, panel in pairs({prey.active, prey.inactive}) do
|
for i, panel in pairs({prey.active, prey.inactive}) do
|
||||||
local progressBar = panel.reroll.button.time
|
local progressBar = panel.reroll.button.time
|
||||||
local price = panel.reroll.button.price.text
|
local price = panel.reroll.price.text
|
||||||
progressBar:setPercent(percent)
|
progressBar:setPercent(percent)
|
||||||
progressBar:setText(desc)
|
progressBar:setText(desc)
|
||||||
if timeleft == 0 then
|
if timeleft == 0 then
|
||||||
@ -221,7 +219,7 @@ end
|
|||||||
local regex = [[Duration: ([^m]+)]]
|
local regex = [[Duration: ([^m]+)]]
|
||||||
function onPreyTimeLeft(slot, timeleft)
|
function onPreyTimeLeft(slot, timeleft)
|
||||||
-- tracker
|
-- tracker
|
||||||
local percent = (timeleft / 2 * 60 * 60) * 100
|
local percent = (timeleft / (2 * 60 * 60)) * 100
|
||||||
slot = "slot" .. (slot + 1)
|
slot = "slot" .. (slot + 1)
|
||||||
local tracker = preyTracker.contentsPanel[slot]
|
local tracker = preyTracker.contentsPanel[slot]
|
||||||
tracker.time:setPercent(percent)
|
tracker.time:setPercent(percent)
|
||||||
@ -240,8 +238,8 @@ function onPreyTimeLeft(slot, timeleft)
|
|||||||
-- main window
|
-- main window
|
||||||
local prey = preyWindow[slot]
|
local prey = preyWindow[slot]
|
||||||
if not prey then return end
|
if not prey then return end
|
||||||
local progressbar = prey.active.creatureAndBonus.creature.timeLeft
|
local progressbar = prey.active.creatureAndBonus.timeLeft
|
||||||
local desc = timeleftTranslation(timeleft * 60)
|
local desc = timeleftTranslation(timeleft, true)
|
||||||
progressbar:setPercent(percent)
|
progressbar:setPercent(percent)
|
||||||
progressbar:setText(desc)
|
progressbar:setText(desc)
|
||||||
end
|
end
|
||||||
@ -427,7 +425,7 @@ end
|
|||||||
function onPreyActive(slot, currentHolderName, currentHolderOutfit, bonusType, bonusValue, bonusGrade, timeLeft, timeUntilFreeReroll)
|
function onPreyActive(slot, currentHolderName, currentHolderOutfit, bonusType, bonusValue, bonusGrade, timeLeft, timeUntilFreeReroll)
|
||||||
local tracker = preyTracker.contentsPanel["slot"..(slot + 1)]
|
local tracker = preyTracker.contentsPanel["slot"..(slot + 1)]
|
||||||
currentHolderName = capitalFormatStr(currentHolderName)
|
currentHolderName = capitalFormatStr(currentHolderName)
|
||||||
local percent = (timeLeft / 2 * 60 * 60)*100
|
local percent = (timeLeft / (2 * 60 * 60)) * 100
|
||||||
if tracker then
|
if tracker then
|
||||||
tracker.creature:show()
|
tracker.creature:show()
|
||||||
tracker.noCreature:hide()
|
tracker.noCreature:hide()
|
||||||
@ -457,7 +455,7 @@ function onPreyActive(slot, currentHolderName, currentHolderOutfit, bonusType, b
|
|||||||
end
|
end
|
||||||
setBonusGradeStars(slot, bonusGrade)
|
setBonusGradeStars(slot, bonusGrade)
|
||||||
creatureAndBonus.timeLeft:setPercent(percent)
|
creatureAndBonus.timeLeft:setPercent(percent)
|
||||||
creatureAndBonus.timeLeft:setText(timeleftTranslation(timeLeft, true))
|
creatureAndBonus.timeLeft:setText(timeleftTranslation(timeLeft))
|
||||||
-- bonus reroll
|
-- bonus reroll
|
||||||
prey.active.choose.selectPrey.onClick = function()
|
prey.active.choose.selectPrey.onClick = function()
|
||||||
g_game.preyAction(slot, PREY_ACTION_BONUSREROLL, 0)
|
g_game.preyAction(slot, PREY_ACTION_BONUSREROLL, 0)
|
||||||
|
BIN
otclient_dx.exe
BIN
otclient_dx.exe
Binary file not shown.
BIN
otclient_gl.exe
BIN
otclient_gl.exe
Binary file not shown.
BIN
otclient_linux
BIN
otclient_linux
Binary file not shown.
BIN
otclient_mac
BIN
otclient_mac
Binary file not shown.
BIN
otclientv8.apk
BIN
otclientv8.apk
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user