Otclient  14/8/2020
Proto Namespace Reference

Enumerations

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

Functions

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

Variables

std::map< uint8, uint8messageModesMap
 

Enumeration Type Documentation

◆ ClientOpcodes

Enumerator
ClientEnterAccount 
ClientPendingGame 
ClientEnterGame 
ClientLeaveGame 
ClientPing 
ClientPingBack 
ClientFirstGameOpcode 
ClientExtendedOpcode 
ClientChangeMapAwareRange 
ClientAutoWalk 
ClientWalkNorth 
ClientWalkEast 
ClientWalkSouth 
ClientWalkWest 
ClientStop 
ClientWalkNorthEast 
ClientWalkSouthEast 
ClientWalkSouthWest 
ClientWalkNorthWest 
ClientTurnNorth 
ClientTurnEast 
ClientTurnSouth 
ClientTurnWest 
ClientEquipItem 
ClientMove 
ClientInspectNpcTrade 
ClientBuyItem 
ClientSellItem 
ClientCloseNpcTrade 
ClientRequestTrade 
ClientInspectTrade 
ClientAcceptTrade 
ClientRejectTrade 
ClientUseItem 
ClientUseItemWith 
ClientUseOnCreature 
ClientRotateItem 
ClientCloseContainer 
ClientUpContainer 
ClientEditText 
ClientEditList 
ClientLook 
ClientLookCreature 
ClientTalk 
ClientRequestChannels 
ClientJoinChannel 
ClientLeaveChannel 
ClientOpenPrivateChannel 
ClientOpenRuleViolation 
ClientCloseRuleViolation 
ClientCancelRuleViolation 
ClientCloseNpcChannel 
ClientChangeFightModes 
ClientAttack 
ClientFollow 
ClientInviteToParty 
ClientJoinParty 
ClientRevokeInvitation 
ClientPassLeadership 
ClientLeaveParty 
ClientShareExperience 
ClientDisbandParty 
ClientOpenOwnChannel 
ClientInviteToOwnChannel 
ClientExcludeFromOwnChannel 
ClientCancelAttackAndFollow 
ClientUpdateTile 
ClientRefreshContainer 
ClientBrowseField 
ClientSeekInContainer 
ClientRequestOutfit 
ClientChangeOutfit 
ClientMount 
ClientAddVip 
ClientRemoveVip 
ClientEditVip 
ClientBugReport 
ClientRuleViolation 
ClientDebugReport 
ClientTransferCoins 
ClientRequestQuestLog 
ClientRequestQuestLine 
ClientNewRuleViolation 
ClientRequestItemInfo 
ClientMarketLeave 
ClientMarketBrowse 
ClientMarketCreate 
ClientMarketCancel 
ClientMarketAccept 
ClientAnswerModalDialog 
ClientOpenStore 
ClientRequestStoreOffers 
ClientBuyStoreOffer 
ClientOpenTransactionHistory 
ClientRequestTransactionHistory 

Definition at line 168 of file protocolcodes.h.

◆ CreaturesIdRange

Enumerator
PlayerStartId 
PlayerEndId 
MonsterStartId 
MonsterEndId 
NpcStartId 
NpcEndId 

Definition at line 285 of file protocolcodes.h.

◆ CreatureType

Enumerator
CreatureTypePlayer 
CreatureTypeMonster 
CreatureTypeNpc 
CreatureTypeSummonOwn 
CreatureTypeSummonOther 
CreatureTypeUnknown 

Definition at line 276 of file protocolcodes.h.

◆ GameServerOpcodes

Enumerator
GameServerLoginOrPendingState 
GameServerGMActions 
GameServerEnterGame 
GameServerUpdateNeeded 
GameServerLoginError 
GameServerLoginAdvice 
GameServerLoginWait 
GameServerLoginSuccess 
GameServerLoginToken 
GameServerStoreButtonIndicators 
GameServerPingBack 
GameServerPing 
GameServerChallenge 
GameServerDeath 
GameServerFirstGameOpcode 
GameServerExtendedOpcode 
GameServerChangeMapAwareRange 
GameServerFullMap 
GameServerMapTopRow 
GameServerMapRightRow 
GameServerMapBottomRow 
GameServerMapLeftRow 
GameServerUpdateTile 
GameServerCreateOnMap 
GameServerChangeOnMap 
GameServerDeleteOnMap 
GameServerMoveCreature 
GameServerOpenContainer 
GameServerCloseContainer 
GameServerCreateContainer 
GameServerChangeInContainer 
GameServerDeleteInContainer 
GameServerSetInventory 
GameServerDeleteInventory 
GameServerOpenNpcTrade 
GameServerPlayerGoods 
GameServerCloseNpcTrade 
GameServerOwnTrade 
GameServerCounterTrade 
GameServerCloseTrade 
GameServerAmbient 
GameServerGraphicalEffect 
GameServerTextEffect 
GameServerMissleEffect 
GameServerMarkCreature 
GameServerTrappers 
GameServerCreatureHealth 
GameServerCreatureLight 
GameServerCreatureOutfit 
GameServerCreatureSpeed 
GameServerCreatureSkull 
GameServerCreatureParty 
GameServerCreatureUnpass 
GameServerCreatureMarks 
GameServerPlayerHelpers 
GameServerCreatureType 
GameServerEditText 
GameServerEditList 
GameServerBlessings 
GameServerPreset 
GameServerPremiumTrigger 
GameServerPlayerDataBasic 
GameServerPlayerData 
GameServerPlayerSkills 
GameServerPlayerState 
GameServerClearTarget 
GameServerPlayerModes 
GameServerSpellDelay 
GameServerSpellGroupDelay 
GameServerMultiUseDelay 
GameServerSetStoreDeepLink 
GameServerTalk 
GameServerChannels 
GameServerOpenChannel 
GameServerOpenPrivateChannel 
GameServerRuleViolationChannel 
GameServerRuleViolationRemove 
GameServerRuleViolationCancel 
GameServerRuleViolationLock 
GameServerOpenOwnChannel 
GameServerCloseChannel 
GameServerTextMessage 
GameServerCancelWalk 
GameServerWalkWait 
GameServerUnjustifiedStats 
GameServerPvpSituations 
GameServerFloorChangeUp 
GameServerFloorChangeDown 
GameServerChooseOutfit 
GameServerVipAdd 
GameServerVipState 
GameServerVipLogout 
GameServerTutorialHint 
GameServerAutomapFlag 
GameServerCoinBalance 
GameServerStoreError 
GameServerRequestPurchaseData 
GameServerQuestLog 
GameServerQuestLine 
GameServerCoinBalanceUpdating 
GameServerChannelEvent 
GameServerItemInfo 
GameServerPlayerInventory 
GameServerMarketEnter 
GameServerMarketLeave 
GameServerMarketDetail 
GameServerMarketBrowse 
GameServerModalDialog 
GameServerStore 
GameServerStoreOffers 
GameServerStoreTransactionHistory 
GameServerStoreCompletePurchase 

Definition at line 43 of file protocolcodes.h.

◆ ItemOpcode

Enumerator
StaticText 
UnknownCreature 
OutdatedCreature 
Creature 

Definition at line 36 of file protocolcodes.h.

◆ LoginServerOpts

Enumerator
LoginServerError 
LoginServerMotd 
LoginServerUpdateNeeded 
LoginServerCharacterList 

Definition at line 29 of file protocolcodes.h.

Function Documentation

◆ buildMessageModesMap()

void Proto::buildMessageModesMap ( int  version)

Definition at line 29 of file protocolcodes.cpp.

Here is the caller graph for this function:

◆ translateMessageModeFromServer()

Otc::MessageMode Proto::translateMessageModeFromServer ( uint8  mode)

Definition at line 176 of file protocolcodes.cpp.

◆ translateMessageModeToServer()

uint8 Proto::translateMessageModeToServer ( Otc::MessageMode  mode)

Definition at line 184 of file protocolcodes.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ messageModesMap

std::map<uint8, uint8> Proto::messageModesMap

Definition at line 27 of file protocolcodes.cpp.