Small bug fixes, new lua functions and few new customized features

This commit is contained in:
OTCv8 2020-03-25 06:56:49 +01:00
parent b471981601
commit 1df9b82846
9 changed files with 11 additions and 2 deletions

View File

@ -483,6 +483,10 @@ function removeTab(tab)
g_game.closeNpcChannel() g_game.closeNpcChannel()
end end
if getCurrentTab() == tab then
consoleTabBar:selectTab(defaultTab)
end
consoleTabBar:removeTab(tab) consoleTabBar:removeTab(tab)
end end

View File

@ -527,7 +527,6 @@ local function openAmountWindow(callback, actionType, actionText)
widget:setText((value*offer:getPrice())..'gp') widget:setText((value*offer:getPrice())..'gp')
itembox:setText(value) itembox:setText(value)
end end
scrollbar:setRange(1, maximum) scrollbar:setRange(1, maximum)
scrollbar:setValue(1) scrollbar:setValue(1)

View File

@ -170,7 +170,8 @@ GameDoubleTradeMoney = 87
GameNewWalking = 90 GameNewWalking = 90
GameSlowerManualWalking = 91 GameSlowerManualWalking = 91
GameExtendedNewWalking = 92 GameItemTooltip = 93
GameBot = 95 GameBot = 95
GameBiggerMapCache = 96 GameBiggerMapCache = 96
GameForceLight = 97 GameForceLight = 97
@ -179,6 +180,7 @@ GameBotProtection = 99
GameFasterAnimations = 101 GameFasterAnimations = 101
GameCenteredOutfits = 102 GameCenteredOutfits = 102
GameSendIdentifiers = 103
GamePacketSizeU32 = 110 GamePacketSizeU32 = 110
GamePacketCompression = 111 GamePacketCompression = 111

View File

@ -131,6 +131,10 @@ 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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.