mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-05-03 20:49:21 +02:00
Bug fixes for preys and imbuing
This commit is contained in:
parent
304e2f02ae
commit
b471981601
@ -5,6 +5,7 @@ It's based on https://github.com/edubart/otclient and it's not backward compatib
|
|||||||
|
|
||||||
## DISCORD: https://discord.gg/feySup6
|
## DISCORD: https://discord.gg/feySup6
|
||||||
## Forum: https://otland.net/forums/otclient.494/
|
## Forum: https://otland.net/forums/otclient.494/
|
||||||
|
## Open Tibia Login Server: https://github.com/OTCv8/OpenTibiaLoginServer
|
||||||
|
|
||||||
# FEATURES
|
# FEATURES
|
||||||
- Rewritten and optimized rendering (60 fps on 11 years old computer)
|
- Rewritten and optimized rendering (60 fps on 11 years old computer)
|
||||||
@ -30,7 +31,8 @@ It's based on https://github.com/edubart/otclient and it's not backward compatib
|
|||||||
- Removed a lot of useless and outdated things
|
- Removed a lot of useless and outdated things
|
||||||
- Advanced bot (https://github.com/OTCv8/otclientv8_bot)
|
- Advanced bot (https://github.com/OTCv8/otclientv8_bot)
|
||||||
- Linux version
|
- Linux version
|
||||||
- Tibia 11.00 support (preys)
|
- Full tibia 11.00 support
|
||||||
|
- New login server (with ingame account and character creation)
|
||||||
- Support for proxies to lower latency and protect against DDoS (extra paid option)
|
- Support for proxies to lower latency and protect against DDoS (extra paid option)
|
||||||
- Bot protection (extra paid option)
|
- Bot protection (extra paid option)
|
||||||
- [Soon] Mobile application for quick authorization
|
- [Soon] Mobile application for quick authorization
|
||||||
@ -45,7 +47,7 @@ The difference between paid version and this one is that the 1st one comes with
|
|||||||
|
|
||||||
# Quick Start for players
|
# Quick Start for players
|
||||||
|
|
||||||
Download whole repository and run binary.
|
Download whole repository and run one of binary file.
|
||||||
|
|
||||||
# Quick Start for server owners
|
# Quick Start for server owners
|
||||||
|
|
||||||
|
@ -32,20 +32,21 @@ function init()
|
|||||||
groupsCombo.onOptionChange = function(widget)
|
groupsCombo.onOptionChange = function(widget)
|
||||||
imbueLevelsCombo:clear()
|
imbueLevelsCombo:clear()
|
||||||
if itemImbuements ~= nil then
|
if itemImbuements ~= nil then
|
||||||
local selectedGroup = widget:getCurrentOption()["text"]
|
local selectedGroup = groupsCombo:getCurrentOption().text
|
||||||
selectedImbue = itemImbuements[widget.currentIndex]
|
|
||||||
for _,imbuement in ipairs(itemImbuements) do
|
for _,imbuement in ipairs(itemImbuements) do
|
||||||
if imbuement["group"] == selectedGroup then
|
if imbuement["group"] == selectedGroup then
|
||||||
emptyImbue.imbuement:addOption(imbuement["name"])
|
emptyImbue.imbuement:addOption(imbuement["name"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
imbueLevelsCombo.onOptionChange(imbueLevelsCombo) -- update options
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
imbueLevelsCombo.onOptionChange = function(widget)
|
imbueLevelsCombo.onOptionChange = function(widget)
|
||||||
setProtection(false)
|
setProtection(false)
|
||||||
|
local selectedGroup = groupsCombo:getCurrentOption().text
|
||||||
for _,imbuement in ipairs(itemImbuements) do
|
for _,imbuement in ipairs(itemImbuements) do
|
||||||
if imbuement["group"] == selectedImbue["group"] then
|
if imbuement["group"] == selectedGroup then
|
||||||
if #imbuement["sources"] == widget.currentIndex then
|
if #imbuement["sources"] == widget.currentIndex then
|
||||||
selectedImbue = imbuement
|
selectedImbue = imbuement
|
||||||
for i,source in ipairs(imbuement["sources"]) do
|
for i,source in ipairs(imbuement["sources"]) do
|
||||||
|
@ -868,9 +868,6 @@ function refreshViewMode()
|
|||||||
gameMapPanel:setMarginLeft(0)
|
gameMapPanel:setMarginLeft(0)
|
||||||
gameMapPanel:setMarginRight(0)
|
gameMapPanel:setMarginRight(0)
|
||||||
gameMapPanel:setMarginTop(0)
|
gameMapPanel:setMarginTop(0)
|
||||||
if modules.game_textmessage then
|
|
||||||
modules.game_textmessage.messagesPanel:setMarginTop(0)
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
gameLeftPanels:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameLeftPanels:getPaddingTop())
|
gameLeftPanels:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameLeftPanels:getPaddingTop())
|
||||||
gameRightPanels:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameRightPanels:getPaddingTop())
|
gameRightPanels:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameRightPanels:getPaddingTop())
|
||||||
@ -955,10 +952,6 @@ function updateSize()
|
|||||||
gameMapPanel:setMarginRight(margin)
|
gameMapPanel:setMarginRight(margin)
|
||||||
end
|
end
|
||||||
|
|
||||||
if modules.game_textmessage then
|
|
||||||
modules.game_textmessage.messagesPanel:setMarginTop(-gameMapPanel:getMarginTop())
|
|
||||||
end
|
|
||||||
|
|
||||||
if modules.game_bot then
|
if modules.game_bot then
|
||||||
for i, child in ipairs(gameMapPanel:getChildren()) do
|
for i, child in ipairs(gameMapPanel:getChildren()) do
|
||||||
if child.botIcon and child.onGeometryChange then
|
if child.botIcon and child.onGeometryChange then
|
||||||
|
@ -129,6 +129,7 @@ function show()
|
|||||||
preyWindow:show()
|
preyWindow:show()
|
||||||
preyWindow:raise()
|
preyWindow:raise()
|
||||||
preyWindow:focus()
|
preyWindow:focus()
|
||||||
|
g_game.preyRequest() -- update preys
|
||||||
end
|
end
|
||||||
|
|
||||||
function toggle()
|
function toggle()
|
||||||
|
@ -8,7 +8,6 @@ TextMessageLabel < UILabel
|
|||||||
|
|
||||||
Panel
|
Panel
|
||||||
anchors.fill: gameMapPanel
|
anchors.fill: gameMapPanel
|
||||||
anchors.bottom: gameBottomPanel.top
|
|
||||||
focusable: false
|
focusable: false
|
||||||
|
|
||||||
Panel
|
Panel
|
||||||
|
@ -131,10 +131,6 @@ function ProtocolLogin:sendLoginPacket()
|
|||||||
msg:encryptRsa()
|
msg:encryptRsa()
|
||||||
end
|
end
|
||||||
|
|
||||||
if g_game.getFeature(GamePacketSizeU32) then
|
|
||||||
self:enableBigPackets()
|
|
||||||
end
|
|
||||||
|
|
||||||
if g_game.getFeature(GameProtocolChecksum) then
|
if g_game.getFeature(GameProtocolChecksum) then
|
||||||
self:enableChecksum()
|
self:enableChecksum()
|
||||||
end
|
end
|
||||||
|
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.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user