More multiprotocol progress

This commit is contained in:
Eduardo Bart
2012-07-18 03:04:57 -03:00
parent c8d1d5ecf2
commit cf9f57736f
12 changed files with 106 additions and 95 deletions

View File

@@ -4,7 +4,6 @@ ContainerWindow < MiniWindow
UIItem
id: containerItemWidget
virtual: true
item-id: 3253
size: 16 16
anchors.top: parent.top
anchors.left: parent.left

View File

@@ -5,7 +5,6 @@ TradeWindow < MiniWindow
UIItem
id: tradeItem
virtual: true
item-id: 3253
size: 16 16
anchors.top: parent.top
anchors.left: parent.left

View File

@@ -56,7 +56,7 @@ local function createTextMessageLabel(id, parent, class)
end
-- public functions
function TextMessage.init()
function TextMessage.init()
connect(g_game, { onTextMessage = TextMessage.display,
onGameStart = TextMessage.clearMessages })

View File

@@ -6,7 +6,6 @@ TextWindow < MainWindow
UIItem
id: textItem
virtual: true
item-id: 173
size: 32 32
anchors.top: parent.top
anchors.left: parent.left

View File

@@ -4,9 +4,8 @@ Module
reloadable: false
@onLoad: |
if not g_things.loadDat('/game_tibiafiles/Tibia.dat') then
fatal(tr("Unable to load dat file, please place a valid Tibia dat in modules/game_tibiafiles/Tibia.dat"))
end
if not g_sprites.loadSpr('/game_tibiafiles/Tibia.spr') then
fatal(tr("Unable to load spr file, please place a valid Tibia spr in modules/game_tibiafiles/Tibia.spr"))
end
dofile 'tibiafiles'
TibiaFiles.init()
@onUnload: |
TibiaFiles.terminate()

View File

@@ -2,7 +2,7 @@
ProtocolLogin = extends(Protocol)
-- set to the latest Tibia.pic signature to make otclient compatible with official tibia
local PIC_SIGNATURE = 0
local PIC_SIGNATURE = 1337606793
LoginServerError = 10
LoginServerMotd = 20