mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01:00
More multiprotocol progress
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 })
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user