mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Fixed #165, Fine tune fixes!
* Fixed an issue with the cooldown timing. * Fixed issue with 'right click' using items under players. * Some changes to the minimap control (ctrl + mouse wheel to change floors and tweaked the zoom/move speeds). * Fixed some bugs in the trade module. * Added new Spells table for spell related functions (Also added getSpellByName and getSpellByWords). * Fixed an issue with follow/attack cancelling (wasn't calling onFollowChanged for updates in battle, etc).
This commit is contained in:
@@ -65,7 +65,7 @@ function updateProgressRect(progressRect, interval, init)
|
||||
if init then
|
||||
progressRect:setPercent(0)
|
||||
else
|
||||
progressRect:setPercent(progressRect:getPercent() + 4)
|
||||
progressRect:setPercent(progressRect:getPercent() + 5)
|
||||
end
|
||||
|
||||
if progressRect:getPercent() < 100 then
|
||||
@@ -78,6 +78,7 @@ function onSpellCooldown(iconId, duration)
|
||||
local spellName = SpelllistSettings[modules.game_spelllist.getSpelllistProfile()].spellIcons[iconId]
|
||||
if not spellName then return end
|
||||
|
||||
local duration = duration - (g_game.getPing()/2)
|
||||
local otcIconId = tonumber(SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon)
|
||||
if not otcIconId and SpellIcons[SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon] then
|
||||
otcIconId = SpellIcons[SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon][1]
|
||||
@@ -102,6 +103,7 @@ end
|
||||
function onSpellGroupCooldown(groupId, duration)
|
||||
if not SpellGroups[groupId] then return end
|
||||
|
||||
local duration = duration - (g_game.getPing()/2)
|
||||
local icon = contentsPanel:getChildById('groupIcon' .. SpellGroups[groupId])
|
||||
local progressRect = contentsPanel:getChildById('progressRect' .. SpellGroups[groupId])
|
||||
if icon then
|
||||
|
Reference in New Issue
Block a user