Otclient  14/8/2020
protocolcodes.h File Reference
#include "global.h"
Include dependency graph for protocolcodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Proto
 

Enumerations

enum  Proto::LoginServerOpts { Proto::LoginServerError = 10, Proto::LoginServerMotd = 20, Proto::LoginServerUpdateNeeded = 30, Proto::LoginServerCharacterList = 100 }
 
enum  Proto::ItemOpcode { Proto::StaticText = 96, Proto::UnknownCreature = 97, Proto::OutdatedCreature = 98, Proto::Creature = 99 }
 
enum  Proto::GameServerOpcodes : uint8 {
  Proto::GameServerLoginOrPendingState = 10, Proto::GameServerGMActions = 11, Proto::GameServerEnterGame = 15, Proto::GameServerUpdateNeeded = 17,
  Proto::GameServerLoginError = 20, Proto::GameServerLoginAdvice = 21, Proto::GameServerLoginWait = 22, Proto::GameServerLoginSuccess = 23,
  Proto::GameServerLoginToken = 24, Proto::GameServerStoreButtonIndicators = 25, Proto::GameServerPingBack = 29, Proto::GameServerPing = 30,
  Proto::GameServerChallenge = 31, Proto::GameServerDeath = 40, Proto::GameServerFirstGameOpcode = 50, Proto::GameServerExtendedOpcode = 50,
  Proto::GameServerChangeMapAwareRange = 51, Proto::GameServerFullMap = 100, Proto::GameServerMapTopRow = 101, Proto::GameServerMapRightRow = 102,
  Proto::GameServerMapBottomRow = 103, Proto::GameServerMapLeftRow = 104, Proto::GameServerUpdateTile = 105, Proto::GameServerCreateOnMap = 106,
  Proto::GameServerChangeOnMap = 107, Proto::GameServerDeleteOnMap = 108, Proto::GameServerMoveCreature = 109, Proto::GameServerOpenContainer = 110,
  Proto::GameServerCloseContainer = 111, Proto::GameServerCreateContainer = 112, Proto::GameServerChangeInContainer = 113, Proto::GameServerDeleteInContainer = 114,
  Proto::GameServerSetInventory = 120, Proto::GameServerDeleteInventory = 121, Proto::GameServerOpenNpcTrade = 122, Proto::GameServerPlayerGoods = 123,
  Proto::GameServerCloseNpcTrade = 124, Proto::GameServerOwnTrade = 125, Proto::GameServerCounterTrade = 126, Proto::GameServerCloseTrade = 127,
  Proto::GameServerAmbient = 130, Proto::GameServerGraphicalEffect = 131, Proto::GameServerTextEffect = 132, Proto::GameServerMissleEffect = 133,
  Proto::GameServerMarkCreature = 134, Proto::GameServerTrappers = 135, Proto::GameServerCreatureHealth = 140, Proto::GameServerCreatureLight = 141,
  Proto::GameServerCreatureOutfit = 142, Proto::GameServerCreatureSpeed = 143, Proto::GameServerCreatureSkull = 144, Proto::GameServerCreatureParty = 145,
  Proto::GameServerCreatureUnpass = 146, Proto::GameServerCreatureMarks = 147, Proto::GameServerPlayerHelpers = 148, Proto::GameServerCreatureType = 149,
  Proto::GameServerEditText = 150, Proto::GameServerEditList = 151, Proto::GameServerBlessings = 156, Proto::GameServerPreset = 157,
  Proto::GameServerPremiumTrigger = 158, Proto::GameServerPlayerDataBasic = 159, Proto::GameServerPlayerData = 160, Proto::GameServerPlayerSkills = 161,
  Proto::GameServerPlayerState = 162, Proto::GameServerClearTarget = 163, Proto::GameServerPlayerModes = 167, Proto::GameServerSpellDelay = 164,
  Proto::GameServerSpellGroupDelay = 165, Proto::GameServerMultiUseDelay = 166, Proto::GameServerSetStoreDeepLink = 168, Proto::GameServerTalk = 170,
  Proto::GameServerChannels = 171, Proto::GameServerOpenChannel = 172, Proto::GameServerOpenPrivateChannel = 173, Proto::GameServerRuleViolationChannel = 174,
  Proto::GameServerRuleViolationRemove = 175, Proto::GameServerRuleViolationCancel = 176, Proto::GameServerRuleViolationLock = 177, Proto::GameServerOpenOwnChannel = 178,
  Proto::GameServerCloseChannel = 179, Proto::GameServerTextMessage = 180, Proto::GameServerCancelWalk = 181, Proto::GameServerWalkWait = 182,
  Proto::GameServerUnjustifiedStats = 183, Proto::GameServerPvpSituations = 184, Proto::GameServerFloorChangeUp = 190, Proto::GameServerFloorChangeDown = 191,
  Proto::GameServerChooseOutfit = 200, Proto::GameServerVipAdd = 210, Proto::GameServerVipState = 211, Proto::GameServerVipLogout = 212,
  Proto::GameServerTutorialHint = 220, Proto::GameServerAutomapFlag = 221, Proto::GameServerCoinBalance = 223, Proto::GameServerStoreError = 224,
  Proto::GameServerRequestPurchaseData = 225, Proto::GameServerQuestLog = 240, Proto::GameServerQuestLine = 241, Proto::GameServerCoinBalanceUpdating = 242,
  Proto::GameServerChannelEvent = 243, Proto::GameServerItemInfo = 244, Proto::GameServerPlayerInventory = 245, Proto::GameServerMarketEnter = 246,
  Proto::GameServerMarketLeave = 247, Proto::GameServerMarketDetail = 248, Proto::GameServerMarketBrowse = 249, Proto::GameServerModalDialog = 250,
  Proto::GameServerStore = 251, Proto::GameServerStoreOffers = 252, Proto::GameServerStoreTransactionHistory = 253, Proto::GameServerStoreCompletePurchase = 254
}
 
enum  Proto::ClientOpcodes : uint8 {
  Proto::ClientEnterAccount = 1, Proto::ClientPendingGame = 10, Proto::ClientEnterGame = 15, Proto::ClientLeaveGame = 20,
  Proto::ClientPing = 29, Proto::ClientPingBack = 30, Proto::ClientFirstGameOpcode = 50, Proto::ClientExtendedOpcode = 50,
  Proto::ClientChangeMapAwareRange = 51, Proto::ClientAutoWalk = 100, Proto::ClientWalkNorth = 101, Proto::ClientWalkEast = 102,
  Proto::ClientWalkSouth = 103, Proto::ClientWalkWest = 104, Proto::ClientStop = 105, Proto::ClientWalkNorthEast = 106,
  Proto::ClientWalkSouthEast = 107, Proto::ClientWalkSouthWest = 108, Proto::ClientWalkNorthWest = 109, Proto::ClientTurnNorth = 111,
  Proto::ClientTurnEast = 112, Proto::ClientTurnSouth = 113, Proto::ClientTurnWest = 114, Proto::ClientEquipItem = 119,
  Proto::ClientMove = 120, Proto::ClientInspectNpcTrade = 121, Proto::ClientBuyItem = 122, Proto::ClientSellItem = 123,
  Proto::ClientCloseNpcTrade = 124, Proto::ClientRequestTrade = 125, Proto::ClientInspectTrade = 126, Proto::ClientAcceptTrade = 127,
  Proto::ClientRejectTrade = 128, Proto::ClientUseItem = 130, Proto::ClientUseItemWith = 131, Proto::ClientUseOnCreature = 132,
  Proto::ClientRotateItem = 133, Proto::ClientCloseContainer = 135, Proto::ClientUpContainer = 136, Proto::ClientEditText = 137,
  Proto::ClientEditList = 138, Proto::ClientLook = 140, Proto::ClientLookCreature = 141, Proto::ClientTalk = 150,
  Proto::ClientRequestChannels = 151, Proto::ClientJoinChannel = 152, Proto::ClientLeaveChannel = 153, Proto::ClientOpenPrivateChannel = 154,
  Proto::ClientOpenRuleViolation = 155, Proto::ClientCloseRuleViolation = 156, Proto::ClientCancelRuleViolation = 157, Proto::ClientCloseNpcChannel = 158,
  Proto::ClientChangeFightModes = 160, Proto::ClientAttack = 161, Proto::ClientFollow = 162, Proto::ClientInviteToParty = 163,
  Proto::ClientJoinParty = 164, Proto::ClientRevokeInvitation = 165, Proto::ClientPassLeadership = 166, Proto::ClientLeaveParty = 167,
  Proto::ClientShareExperience = 168, Proto::ClientDisbandParty = 169, Proto::ClientOpenOwnChannel = 170, Proto::ClientInviteToOwnChannel = 171,
  Proto::ClientExcludeFromOwnChannel = 172, Proto::ClientCancelAttackAndFollow = 190, Proto::ClientUpdateTile = 201, Proto::ClientRefreshContainer = 202,
  Proto::ClientBrowseField = 203, Proto::ClientSeekInContainer = 204, Proto::ClientRequestOutfit = 210, Proto::ClientChangeOutfit = 211,
  Proto::ClientMount = 212, Proto::ClientAddVip = 220, Proto::ClientRemoveVip = 221, Proto::ClientEditVip = 222,
  Proto::ClientBugReport = 230, Proto::ClientRuleViolation = 231, Proto::ClientDebugReport = 232, Proto::ClientTransferCoins = 239,
  Proto::ClientRequestQuestLog = 240, Proto::ClientRequestQuestLine = 241, Proto::ClientNewRuleViolation = 242, Proto::ClientRequestItemInfo = 243,
  Proto::ClientMarketLeave = 244, Proto::ClientMarketBrowse = 245, Proto::ClientMarketCreate = 246, Proto::ClientMarketCancel = 247,
  Proto::ClientMarketAccept = 248, Proto::ClientAnswerModalDialog = 249, Proto::ClientOpenStore = 250, Proto::ClientRequestStoreOffers = 251,
  Proto::ClientBuyStoreOffer = 252, Proto::ClientOpenTransactionHistory = 253, Proto::ClientRequestTransactionHistory = 254
}
 
enum  Proto::CreatureType {
  Proto::CreatureTypePlayer = 0, Proto::CreatureTypeMonster, Proto::CreatureTypeNpc, Proto::CreatureTypeSummonOwn,
  Proto::CreatureTypeSummonOther, Proto::CreatureTypeUnknown = 0xFF
}
 
enum  Proto::CreaturesIdRange {
  Proto::PlayerStartId = 0x10000000, Proto::PlayerEndId = 0x40000000, Proto::MonsterStartId = 0x40000000, Proto::MonsterEndId = 0x80000000,
  Proto::NpcStartId = 0x80000000, Proto::NpcEndId = 0xffffffff
}
 

Functions

void Proto::buildMessageModesMap (int version)
 
Otc::MessageMode Proto::translateMessageModeFromServer (uint8 mode)
 
uint8 Proto::translateMessageModeToServer (Otc::MessageMode mode)