GameServerOpcodes = {
    GameServerSessionCreatureData           = 3  , -- 0x03 | Unused
    GameServerSessionDumpStart              = 4  , -- 0x04 | Unused
    GameServerInitGame                      = 10 , -- 0x0A | GameServerLoginOrPendingState = 10
    GameServerGMActions                     = 11 , -- 0x0B
    GameServerEnterGame                     = 15 , -- 0x0F
    GameServerUpdateNeeded                  = 17 , -- 0x11
    GameServerLoginError                    = 20 , -- 0x14
    GameServerLoginAdvice                   = 21 , -- 0x15
    GameServerLoginWait                     = 22 , -- 0x16
    GameServerAddCreature                   = 23 , -- 0x17 | GameServerLoginSuccess = 23
    GameServerSessionEnd                    = 24 , -- 0x18
    GameServerStoreButtonIndicators         = 25 , -- 0x19
    GameServerBugReport                     = 26 , -- 0x1A
    GameServerMultiOfflineTrainingDialog    = 27 , -- 0x1B
    GameServerNpcChatWindow                 = 28 , -- 0x1C
    GameServerPingBack                      = 29 , -- 0x1D
    GameServerPing                          = 30 , -- 0x1E
    GameServerChallenge                     = 31 , -- 0x1F
    GameServerDeath                         = 40 , -- 0x28
    GameServerSupplyStash                   = 41 , -- 0x29
    GameServerSpecialContainer              = 42 , -- 0x2A
    GameServerPartyAnalyzer                 = 43 , -- 0x2B
    GameServerTeamFinderTeamLeader          = 44 , -- 0x2C | Unused
    GameServerTeamFinderTeamMember          = 45 , -- 0x2D | Unused

    -- all in game opcodes must be greater than 50
    GameServerFirstGameOpcode               = 50 , -- 0x32

    -- otclient ONLY
    GameServerExtendedOpcode                = 50 , -- 0x32

    -- NOTE: add any custom opcodes in this range
    -- 51 - 99
    GameServerChangeMapAwareRange           = 51 , -- 0x33
    GameServerAttchedEffect                 = 52 , -- 0x34
    GameServerDetachEffect                  = 53 , -- 0x35
    GameServerCreatureShader                = 54 , -- 0x36
    GameServerMapShader                     = 55 , -- 0x37
    GameServerCreatureTyping                = 56 , -- 0x38
    GameServerAttachedPaperdoll             = 60 , -- 0x3C
    GameServerDetachPaperdoll               = 61 , -- 0x3D
    GameServerFeatures                      = 67 , -- 0x43
    GameServerFloorDescription              = 75 , -- 0x4B

    -- original tibia ONLY
    GameServerTaskBoard                     = 91 , -- 0x5B
    GameServerWeaponProficiencyExperience   = 92 , -- 0x5C
    GameServerImbuementDurations            = 93 , -- 0x5D
    GameServerPassiveCooldown               = 94 , -- 0x5E
    GameServerOpenWheelWindow               = 95 , -- 0x5F
    GameServerInventoryImbuements           = 96 , -- 0x60
    GameServerBosstiaryData                 = 97 , -- 0x61
    GameServerBosstiarySlots                = 98 , -- 0x62
    GameServerSendClientCheck               = 99 , -- 0x63
    GameServerFullMap                       = 100, -- 0x64
    GameServerMapTopRow                     = 101, -- 0x65
    GameServerMapRightRow                   = 102, -- 0x66
    GameServerMapBottomRow                  = 103, -- 0x67
    GameServerMapLeftRow                    = 104, -- 0x68
    GameServerUpdateTile                    = 105, -- 0x69
    GameServerCreateOnMap                   = 106, -- 0x6A
    GameServerChangeOnMap                   = 107, -- 0x6B
    GameServerDeleteOnMap                   = 108, -- 0x6C
    GameServerMoveCreature                  = 109, -- 0x6D
    GameServerOpenContainer                 = 110, -- 0x6E
    GameServerCloseContainer                = 111, -- 0x6F
    GameServerCreateContainer               = 112, -- 0x70
    GameServerChangeInContainer             = 113, -- 0x71
    GameServerDeleteInContainer             = 114, -- 0x72
    GameServerBosstiaryInfo                 = 115, -- 0x73
    GameServerFriendSystemData              = 116, -- 0x74 | Unused
    GameServerTakeScreenshot                = 117, -- 0x75
    GameServerCyclopediaItemDetail          = 118, -- 0x76
    GameServerInspectionState               = 119, -- 0x77 | Unused
    GameServerSetInventory                  = 120, -- 0x78
    GameServerDeleteInventory               = 121, -- 0x79
    GameServerOpenNpcTrade                  = 122, -- 0x7A
    GameServerPlayerGoods                   = 123, -- 0x7B
    GameServerCloseNpcTrade                 = 124, -- 0x7C
    GameServerOwnTrade                      = 125, -- 0x7D
    GameServerCounterTrade                  = 126, -- 0x7E
    GameServerCloseTrade                    = 127, -- 0x7F
    GameServerCharacterTradeConfiguration   = 128, -- 0x80 | Unused
    GameServerReportTextUI                  = 129, -- 0x81 | Unused
    GameServerAmbient                       = 130, -- 0x82
    GameServerGraphicalEffect               = 131, -- 0x83
    GameServerTextEffect                    = 132, -- 0x84 | GameServerRemoveMagicEffect = 132 (>= 1320)
    GameServerMissleEffect                  = 133, -- 0x85 | Anthem on 13.x
    GameServerMarkCreature                  = 134, -- 0x86 | GameServerItemClasses = 134 (>= 1281)
    GameServerTrappers                      = 135, -- 0x87 | GameServerOpenForge = 135 (>= 1281) | Unused
    GameServerBrowseForgeHistory            = 136, -- 0x88
    GameServerCloseForgeWindow              = 137, -- 0x89
    GameServerForgeResult                   = 138, -- 0x8A
    GameServerCreatureData                  = 139, -- 0x8B
    GameServerCreatureHealth                = 140, -- 0x8C
    GameServerCreatureLight                 = 141, -- 0x8D
    GameServerCreatureOutfit                = 142, -- 0x8E
    GameServerCreatureSpeed                 = 143, -- 0x8F
    GameServerCreatureSkull                 = 144, -- 0x90 | GameServerExaltationForgeExit = 144
    GameServerCreatureParty                 = 145, -- 0x91
    GameServerCreatureUnpass                = 146, -- 0x92
    GameServerCreatureMarks                 = 147, -- 0x93
    GameServerPlayerHelpers                 = 148, -- 0x94 | GameServerDepotSearchResults = 148
    GameServerCreatureType                  = 149, -- 0x95
    GameServerEditText                      = 150, -- 0x96
    GameServerEditList                      = 151, -- 0x97
    GameServerSendGameNews                  = 152, -- 0x98
    GameServerDepotSearchDetailList         = 153, -- 0x99 | Unused
    GameServerCloseDepotSearch              = 154, -- 0x9A
    GameServerSendBlessDialog               = 155, -- 0x9B
    GameServerBlessings                     = 156, -- 0x9C
    GameServerPreset                        = 157, -- 0x9D
    GameServerPremiumTrigger                = 158, -- 0x9E
    GameServerPlayerDataBasic               = 159, -- 0x9F
    GameServerPlayerData                    = 160, -- 0xA0
    GameServerPlayerSkills                  = 161, -- 0xA1
    GameServerPlayerState                   = 162, -- 0xA2
    GameServerClearTarget                   = 163, -- 0xA3
    GameServerSpellDelay                    = 164, -- 0xA4
    GameServerSpellGroupDelay               = 165, -- 0xA5
    GameServerMultiUseDelay                 = 166, -- 0xA6
    GameServerPlayerModes                   = 167, -- 0xA7
    GameServerSetStoreDeepLink              = 168, -- 0xA8
    GameServerSendRestingAreaState          = 169, -- 0xA9
    GameServerTalk                          = 170, -- 0xAA
    GameServerChannels                      = 171, -- 0xAB
    GameServerOpenChannel                   = 172, -- 0xAC
    GameServerOpenPrivateChannel            = 173, -- 0xAD
    GameServerRuleViolationChannel          = 174, -- 0xAE | GameServerEditGuildMessage = 174
    GameServerRuleViolationRemove           = 175, -- 0xAF | GameServerExperienceTracker = 175 (>= 1200) | Unused
    GameServerRuleViolationCancel           = 176, -- 0xB0
    GameServerRuleViolationLock             = 177, -- 0xB1 | GameServerHighscores = 177 (>= 1310) | Unused
    GameServerOpenOwnChannel                = 178, -- 0xB2
    GameServerCloseChannel                  = 179, -- 0xB3
    GameServerTextMessage                   = 180, -- 0xB4
    GameServerCancelWalk                    = 181, -- 0xB5
    GameServerWalkWait                      = 182, -- 0xB6
    GameServerUnjustifiedStats              = 183, -- 0xB7
    GameServerPvpSituations                 = 184, -- 0xB8
    GameServerBestiaryRefreshTracker        = 185, -- 0xB9
    GameServerTaskHuntingBasicData          = 186, -- 0xBA | SoulSealsWindow 15.20
    GameServerTaskHuntingData               = 187, -- 0xBB
    GameServerBosstiaryCooldownTimer        = 189, -- 0xBD
    GameServerFloorChangeUp                 = 190, -- 0xBE
    GameServerFloorChangeDown               = 191, -- 0xBF
    GameServerLootContainers                = 192, -- 0xC0
    GameServerMonkData                      = 193, -- 0xC1
    GameServerCyclopediaHouseAuctionMessage = 195, -- 0xC3
    GameServerWeaponProficiencyInfo         = 196, -- 0xC4 | TournamentInformation = 196
    GameServerTournamentLeaderboard         = 197, -- 0xC5 | Unused
    GameServerCyclopediaHousesInfo          = 198, -- 0xC6
    GameServerCyclopediaHouseList           = 199, -- 0xC7
    GameServerChooseOutfit                  = 200, -- 0xC8
    GameServerExivaSuppressed               = 201, -- 0xC9 | Unused
    GameServerExivaRestrictions             = 202, -- 0xCA
    GameServerTransactionDetails            = 203, -- 0xCB | Unused
    GameServerSendUpdateImpactTracker       = 204, -- 0xCC
    GameServerSendItemsPrice                = 205, -- 0xCD
    GameServerSendUpdateSupplyTracker       = 206, -- 0xCE
    GameServerSendUpdateLootTracker         = 207, -- 0xCF
    GameServerQuestTracker                  = 208, -- 0xD0
    GameServerKillTracker                   = 209, -- 0xD1
    GameServerVipAdd                        = 210, -- 0xD2
    GameServerVipLogin                      = 211, -- 0xD3 | GameServerVipState = 211
    GameServerVipLogout                     = 212, -- 0xD4
    GameServerBestiaryRaces                 = 213, -- 0xD5
    GameServerBestiaryOverview              = 214, -- 0xD6
    GameServerBestiaryMonsterData           = 215, -- 0xD7
    GameServerBestiaryCharmsData            = 216, -- 0xD8
    GameServerBestiaryEntryChanged          = 217, -- 0xD9
    GameServerCyclopediaCharacterInfoData   = 218, -- 0xDA
    GameServerHirelingNameChange            = 219, -- 0xDB | Unused
    GameServerTutorialHint                  = 220, -- 0xDC
    GameServerAutomapFlag                   = 221, -- 0xDD
    GameServerSendDailyRewardCollectionState = 222, -- 0xDE
    GameServerCoinBalance                   = 223, -- 0xDF
    GameServerStoreError                    = 224, -- 0xE0
    GameServerRequestPurchaseData           = 225, -- 0xE1
    GameServerSendOpenRewardWall            = 226, -- 0xE2
    GameServerSendCloseRewardWall           = 227, -- 0xE3 | Unused
    GameServerSendDailyReward               = 228, -- 0xE4
    GameServerSendRewardHistory             = 229, -- 0xE5
    GameServerSendPreyFreeRerolls           = 230, -- 0xE6 | GameServerBosstiaryEntryChanged = 230
    GameServerSendPreyTimeLeft              = 231, -- 0xE7
    GameServerSendPreyData                  = 232, -- 0xE8
    GameServerSendPreyRerollPrice           = 233, -- 0xE9
    GameServerSendShowDescription           = 234, -- 0xEA
    GameServerSendImbuementWindow           = 235, -- 0xEB
    GameServerSendCloseImbuementWindow      = 236, -- 0xEC
    GameServerSendError                     = 237, -- 0xED
    GameServerResourceBalance               = 238, -- 0xEE
    GameServerWorldTime                     = 239, -- 0xEF
    GameServerQuestLog                      = 240, -- 0xF0
    GameServerQuestLine                     = 241, -- 0xF1
    GameServerCoinBalanceUpdating           = 242, -- 0xF2
    GameServerChannelEvent                  = 243, -- 0xF3
    GameServerItemInfo                      = 244, -- 0xF4
    GameServerPlayerInventory               = 245, -- 0xF5
    GameServerMarketEnter                   = 246, -- 0xF6
    GameServerMarketLeave                   = 247, -- 0xF7 | Unused
    GameServerMarketDetail                  = 248, -- 0xF8
    GameServerMarketBrowse                  = 249, -- 0xF9
    GameServerModalDialog                   = 250, -- 0xFA
    GameServerStore                         = 251, -- 0xFB
    GameServerStoreOffers                   = 252, -- 0xFC
    GameServerStoreTransactionHistory       = 253, -- 0xFD
    GameServerStoreCompletePurchase         = 254  -- 0xFE
}

ClientOpcodes = {
    ClientEnterAccount                      = 1  , -- 0x01 | Unused
    ClientPendingGame                       = 10 , -- 0x0A
    ClientEnterGame                         = 15 , -- 0x0F
    ClientLeaveGame                         = 20 , -- 0x14
    ClientPing                              = 29 , -- 0x1D
    ClientPingBack                          = 30 , -- 0x1E
    ClientUseStash                          = 40 , -- 0x28
    ClientBestiaryTrackerStatus             = 42 , -- 0x2A
    ClientPartyAnalyzerAction               = 43 , -- 0x2B

    -- all in game opcodes must be equal or greater than 50
    ClientFirstGameOpcode                   = 50 , -- 0x32

    -- otclient ONLY
    ClientExtendedOpcode                    = 50 , -- 0x32
    ClientChangeMapAwareRange               = 51 , -- 0x33

    -- NOTE: add any custom opcodes in this range
    -- 51 - 99

    -- original tibia ONLY
    ClientTaskBoardAction                   = 95 , -- 0x5F
    ClientImbuementDurations                = 96 , -- 0x60
    ClientOpenWheel                         = 97 , -- 0x61
    ClientSaveWheel                         = 98 , -- 0x62
    ClientAutoWalk                          = 100, -- 0x64
    ClientWalkNorth                         = 101, -- 0x65
    ClientWalkEast                          = 102, -- 0x66
    ClientWalkSouth                         = 103, -- 0x67
    ClientWalkWest                          = 104, -- 0x68
    ClientStop                              = 105, -- 0x69
    ClientWalkNorthEast                     = 106, -- 0x6A
    ClientWalkSouthEast                     = 107, -- 0x6B
    ClientWalkSouthWest                     = 108, -- 0x6C
    ClientWalkNorthWest                     = 109, -- 0x6D
    ClientTutorialChangeVocation            = 110, -- 0x6E
    ClientTurnNorth                         = 111, -- 0x6F
    ClientTurnEast                          = 112, -- 0x70
    ClientTurnSouth                         = 113, -- 0x71
    ClientTurnWest                          = 114, -- 0x72
    ClientGmTeleport                        = 115, -- 0x73
    ClientStartOfflineTraining              = 116, -- 0x74
    ClientEquipItem                         = 119, -- 0x77
    ClientMove                              = 120, -- 0x78
    ClientInspectNpcTrade                   = 121, -- 0x79
    ClientBuyItem                           = 122, -- 0x7A
    ClientSellItem                          = 123, -- 0x7B
    ClientCloseNpcTrade                     = 124, -- 0x7C
    ClientRequestTrade                      = 125, -- 0x7D
    ClientInspectTrade                      = 126, -- 0x7E
    ClientAcceptTrade                       = 127, -- 0x7F
    ClientRejectTrade                       = 128, -- 0x80
    ClientUseItem                           = 130, -- 0x82
    ClientUseItemWith                       = 131, -- 0x83
    ClientUseOnCreature                     = 132, -- 0x84
    ClientRotateItem                        = 133, -- 0x85
    ClientCloseContainer                    = 135, -- 0x87
    ClientUpContainer                       = 136, -- 0x88
    ClientEditText                          = 137, -- 0x89
    ClientEditList                          = 138, -- 0x8A
    ClientOnWrapItem                        = 139, -- 0x8B
    ClientLook                              = 140, -- 0x8C
    ClientLookCreature                      = 141, -- 0x8D
    ClientSendQuickLoot                     = 143, -- 0x8F
    ClientLootContainer                     = 144, -- 0x90
    ClientQuickLootBlackWhitelist           = 145, -- 0x91
    ClientTalk                              = 150, -- 0x96
    ClientRequestChannels                   = 151, -- 0x97
    ClientJoinChannel                       = 152, -- 0x98
    ClientLeaveChannel                      = 153, -- 0x99
    ClientOpenPrivateChannel                = 154, -- 0x9A
    ClientOpenRuleViolation                 = 155, -- 0x9B
    ClientCloseRuleViolation                = 156, -- 0x9C
    ClientCancelRuleViolation               = 157, -- 0x9D
    ClientCloseNpcChannel                   = 158, -- 0x9E
    ClientChangeFightModes                  = 160, -- 0xA0
    ClientAttack                            = 161, -- 0xA1
    ClientFollow                            = 162, -- 0xA2
    ClientInviteToParty                     = 163, -- 0xA3
    ClientJoinParty                         = 164, -- 0xA4
    ClientRevokeInvitation                  = 165, -- 0xA5
    ClientPassLeadership                    = 166, -- 0xA6
    ClientLeaveParty                        = 167, -- 0xA7
    ClientShareExperience                   = 168, -- 0xA8
    ClientDisbandParty                      = 169, -- 0xA9 | Unused
    ClientOpenOwnChannel                    = 170, -- 0xAA
    ClientInviteToOwnChannel                = 171, -- 0xAB
    ClientExcludeFromOwnChannel             = 172, -- 0xAC
    ClientCyclopediaHouseAuction            = 173, -- 0xAD
    ClientBosstiaryRequestInfo              = 174, -- 0xAE
    ClientBosstiaryRequestSlotInfo          = 175, -- 0xAF
    ClientBosstiaryRequestSlotAction        = 176, -- 0xB0
    ClientRequestHighscore                  = 177, -- 0xB1
    ClientImbuementWindowAction             = 178, -- 0xB2
    ClientWeaponProficiency                 = 179, -- 0xB3
    ClientSoulSealsAction                   = 186, -- 0xBA
    ClientCancelAttackAndFollow             = 190, -- 0xBE
    ClientForgeEnter                        = 191, -- 0xBF
    ClientForgeBrowseHistory                = 192, -- 0xC0
    ClientUpdateTile                        = 201, -- 0xC9 | Unused
    ClientRefreshContainer                  = 202, -- 0xCA | ClientExivaRestrictions = 202 (> 1100)
    ClientBrowseField                       = 203, -- 0xCB
    ClientSeekInContainer                   = 204, -- 0xCC
    ClientInspectionObject                  = 205, -- 0xCD
    ClientInspectionCharacter               = 206, -- 0xCE
    ClientRequestBless                      = 207, -- 0xCF
    ClientRequestTrackerQuestLog            = 208, -- 0xD0
    ClientRequestOutfit                     = 210, -- 0xD2
    ClientChangeOutfit                      = 211, -- 0xD3
    ClientMount                             = 212, -- 0xD4
    ClientApplyImbuement                    = 213, -- 0xD5
    ClientClearImbuement                    = 214, -- 0xD6
    ClientCloseImbuingWindow                = 215, -- 0xD7
    ClientOpenRewardWall                    = 216, -- 0xD8
    ClientOpenRewardHistory                 = 217, -- 0xD9
    ClientGetRewardDaily                    = 218, -- 0xDA | Unused
    ClientAddVip                            = 220, -- 0xDC
    ClientRemoveVip                         = 221, -- 0xDD
    ClientEditVip                           = 222, -- 0xDE
    ClientEditVipGroups                     = 223, -- 0xDF
    ClientBestiaryRequest                   = 225, -- 0xE1
    ClientBestiaryRequestOverview           = 226, -- 0xE2
    ClientBestiaryRequestSearch             = 227, -- 0xE3
    ClientCyclopediaSendBuyCharmRune        = 228, -- 0xE4
    ClientCyclopediaRequestCharacterInfo    = 229, -- 0xE5
    ClientBugReport                         = 230, -- 0xE6
    ClientWheelGemAction                    = 231, -- 0xE7 | ClientRuleViolation = 231
    ClientDebugReport                       = 232, -- 0xE8
    ClientPreyAction                        = 235, -- 0xEB
    ClientPreyRequest                       = 237, -- 0xED
    ClientTransferCoins                     = 239, -- 0xEF
    ClientRequestQuestLog                   = 240, -- 0xF0
    ClientRequestQuestLine                  = 241, -- 0xF1
    ClientNewRuleViolation                  = 242, -- 0xF2
    ClientRequestItemInfo                   = 243, -- 0xF3
    ClientMarketLeave                       = 244, -- 0xF4
    ClientMarketBrowse                      = 245, -- 0xF5
    ClientMarketCreate                      = 246, -- 0xF6
    ClientMarketCancel                      = 247, -- 0xF7
    ClientMarketAccept                      = 248, -- 0xF8
    ClientAnswerModalDialog                 = 249, -- 0xF9
    ClientOpenStore                         = 250, -- 0xFA
    ClientRequestStoreOffers                = 251, -- 0xFB
    ClientBuyStoreOffer                     = 252, -- 0xFC
    ClientOpenTransactionHistory            = 253, -- 0xFD
    ClientRequestTransactionHistory         = 254  -- 0xFE
}
