Protocol updates up to 10.82

This commit is contained in:
TheSumm
2015-10-24 17:46:53 +02:00
parent d9e8bfff4c
commit 0d8791e1a7
12 changed files with 371 additions and 11 deletions

View File

@@ -133,6 +133,7 @@ GameSessionKey = 69
GameDeathType = 70
GameIdleAnimations = 71
GameKeepUnawareTiles = 72
GameIngameStore = 73
TextColors = {
red = '#f55e5e', --'#c83200'
@@ -216,7 +217,7 @@ CIPSOFT_RSA = "1321277432058722840622950990822933849527763264961655079678763618"
"88792221429527047321331896351555606801473202394175817"
-- set to the latest Tibia.pic signature to make otclient compatible with official tibia
PIC_SIGNATURE = 0x542100C1
PIC_SIGNATURE = 0x557fe565
OsTypes = {
Linux = 1,
@@ -280,4 +281,25 @@ DeathType = {
Blessed = 1
}
ProductType = {
Other = 0,
NameChange = 1
}
StoreErrorType = {
NoError = -1,
PurchaseError = 0,
NetworkError = 1,
HistoryError = 2,
TransferError = 3,
Information = 4
}
StoreState = {
None = 0,
New = 1,
Sale = 2,
Timed = 3
}
-- @}

View File

@@ -73,7 +73,8 @@ function g_game.getSupportedClients()
1053, 1054, 1055, 1056, 1057,
1058, 1059, 1060, 1061, 1062,
1063, 1064, 1070, 1071, 1072,
1073, 1074, 1075, 1076
1073, 1074, 1075, 1076, 1080,
1081, 1082
}
end

View File

@@ -45,11 +45,12 @@ MarketCategory = {
Swords = 20,
WandsRods = 21,
PremiumScrolls = 22,
TibiaCoins = 23,
MetaWeapons = 255
}
MarketCategory.First = MarketCategory.Armors
MarketCategory.Last = MarketCategory.PremiumScrolls
MarketCategory.Last = MarketCategory.TibiaCoins
MarketCategoryWeapons = {
[MarketCategory.Ammunition] = { slots = {255} },
@@ -84,6 +85,7 @@ MarketCategoryStrings = {
[20] = 'Swords',
[21] = 'Wands and Rods',
[22] = 'Premium Scrolls',
[23] = 'Tibia Coins',
[255] = 'Weapons'
}

View File

@@ -64,7 +64,7 @@ GameServerOpcodes = {
GameServerPlayerSkills = 161,
GameServerPlayerState = 162,
GameServerClearTarget = 163,
GameServerSpellDelay = 164, --870
GameServerSpellDelay = 164, -- 870
GameServerSpellGroupDelay = 165, -- 870
GameServerMultiUseDelay = 166, -- 870
GameServerTalk = 170,
@@ -88,8 +88,12 @@ GameServerOpcodes = {
GameServerVipLogout = 212,
GameServerTutorialHint = 220,
GameServerAutomapFlag = 221,
GameServerCoinBalance = 223, -- 1080
GameServerStoreError = 224, -- 1080
GameServerRequestPurchaseData = 225, -- 1080
GameServerQuestLog = 240,
GameServerQuestLine = 241,
GameServerCoinBalanceUpdating = 242, -- 1080
GameServerChannelEvent = 243, -- 910
GameServerItemInfo = 244, -- 910
GameServerPlayerInventory = 245, -- 910
@@ -97,7 +101,11 @@ GameServerOpcodes = {
GameServerMarketLeave = 247, -- 944
GameServerMarketDetail = 248, -- 944
GameServerMarketBrowse = 249, -- 944
GameServerShowModalDialog = 250 -- 960
GameServerShowModalDialog = 250, -- 960
GameServerStore = 251, -- 1080
GameServerStoreOffers = 252, -- 1080
GameServerStoreTransactionHistory = 253, -- 1080
GameServerStoreCompletePurchase = 254 -- 1080
}
ClientOpcodes = {
@@ -179,6 +187,7 @@ ClientOpcodes = {
ClientBugReport = 230,
ClientRuleViolation = 231,
ClientDebugReport = 232,
ClientTransferCoins = 239, -- 1080
ClientRequestQuestLog = 240,
ClientRequestQuestLine = 241,
ClientNewRuleViolation = 242, -- 910
@@ -188,5 +197,10 @@ ClientOpcodes = {
ClientMarketCreate = 246, -- 944
ClientMarketCancel = 247, -- 944
ClientMarketAccept = 248, -- 944
ClientAnswerModalDialog = 249 -- 960
ClientAnswerModalDialog = 249, -- 960
ClientOpenStore = 250, -- 1080
ClientRequestStoreOffers = 251, -- 1080
ClientBuyStoreOffer = 252, -- 1080
ClientOpenTransactionHistory = 253, -- 1080
ClientRequestTransactionHistory = 254 -- 1080
}