Fix locale send, spelllist reload, few changes

master
Henrique Santiago 11 years ago
parent 67fc77d507
commit 59a5b8115a

@ -146,6 +146,9 @@ function setLocale(name)
pwarning("Locale " .. name .. ' does not exist.')
return false
end
if currentLocale then
sendLocale(locale.name)
end
currentLocale = locale
g_settings.set('locale', name)
if onLocaleChanged then onLocaleChanged(name) end

@ -317,4 +317,5 @@ NetworkMessageTypes = {
SoundChannels = {
Music = 1,
Ambient = 2,
Effect = 3,
}

@ -67,7 +67,7 @@ MiniWindow
icon: /images/topbuttons/healthinfo
id: healthInfoWindow
!text: tr('Health Info')
height: 121
height: 126
@onClose: modules.game_healthinfo.onMiniWindowClose()
&save: true

@ -161,6 +161,10 @@ function init()
initialiseSpelllist()
resizeWindow()
if g_game.isOnline() then
online()
end
end
function terminate()

@ -92,7 +92,7 @@ TextColors = {
--blue1 = '#6e50dc',
--blue2 = '#3264c8',
--blue3 = '#0096c8',
white = '#ffffff' --'#bebebe'
white = '#ffffff', --'#bebebe'
}
MessageModes = {
@ -146,7 +146,7 @@ MessageModes = {
RVRAnswer = 47,
RVRContinue = 48,
Last = 49,
Invalid = 255
Invalid = 255,
}
OTSERV_RSA = "1091201329673994292788609605089955415282375029027981291234687579" ..
@ -170,7 +170,7 @@ OsTypes = {
Flash = 3,
OtclientLinux = 10,
OtclientWindows = 11,
OtclientMac = 12
OtclientMac = 12,
}
PathFindResults = {
@ -178,26 +178,31 @@ PathFindResults = {
Position = 1,
Impossible = 2,
TooFar = 3,
NoWay = 4
NoWay = 4,
}
PathFindFlags = {
AllowNullTiles = 1,
AllowCreatures = 2,
AllowNonPathable = 4,
AllowNonWalkable = 8
AllowNonWalkable = 8,
}
VipState = {
Offline = 0,
Online = 1,
Pending = 2
Pending = 2,
}
ExtendedIds = {
Activate = 0,
Locale = 1,
Ping = 2
Ping = 2,
Sound = 3,
Game = 4,
Particles = 5,
MapShader = 6,
NeedsUpdate = 7
}
-- @}

@ -25,7 +25,7 @@ function ProtocolLogin:cancelLogin()
self:disconnect()
end
function ProtocolLogin:sendLoginPacket(extended)
function ProtocolLogin:sendLoginPacket()
local msg = OutputMessage.create()
msg:addU8(ClientOpcodes.ClientEnterAccount)
@ -130,12 +130,12 @@ function ProtocolLogin:parseCharacterList(msg)
character.worldName = msg:getString()
character.worldIp = iptostring(msg:getU32())
character.worldPort = msg:getU16()
characters[i] = character
-- ??
if g_game.getProtocolVersion() >= 971 then
msg:getU8()
character.unknown = msg:getU8()
end
characters[i] = character
end
local account = {}

Loading…
Cancel
Save