| 1 | /* |
| 2 | * Copyright (C) 2000,2001 Onlyer ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | #ifndef INCLUDED_D2CS_PROTOCOL_H |
| 19 | #define INCLUDED_D2CS_PROTOCOL_Hcxx . . $ `src/common/d2cs_protocol.h:19:9`! |
| 20 | |
| 21 | #include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/ |
| 22 | |
| 23 | namespace pvpgncxx . . $ pvpgn/ |
| 24 | { |
| 25 | |
| 26 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_0# |
| 27 | { |
| 28 | bn_shortcxx . . $ pvpgn/bn_short# sizecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_0#size.; |
| 29 | bn_bytecxx . . $ pvpgn/bn_byte# typecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_0#type.; |
| 30 | } t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header#; |
| 31 | |
| 32 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_1# |
| 33 | { |
| 34 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_1#h.; |
| 35 | } t_d2cs_client_genericcxx . . $ pvpgn/t_d2cs_client_generic#; |
| 36 | |
| 37 | #define CLIENT_D2CS_LOGINREQcxx . . $ `src/common/d2cs_protocol.h:37:9`! 0x01 |
| 38 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2# |
| 39 | { |
| 40 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#h.; |
| 41 | bn_intcxx . . $ pvpgn/bn_int# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#seqno.; |
| 42 | bn_intcxx . . $ pvpgn/bn_int# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#u1.; |
| 43 | bn_intcxx . . $ pvpgn/bn_int# bncs_addr1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#bncs_addr1.; |
| 44 | bn_intcxx . . $ pvpgn/bn_int# sessionnumcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#sessionnum.; |
| 45 | bn_intcxx . . $ pvpgn/bn_int# sessionkeycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#sessionkey.; /* always zero,self define */ |
| 46 | bn_intcxx . . $ pvpgn/bn_int# cdkey_idcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#cdkey_id.; |
| 47 | bn_intcxx . . $ pvpgn/bn_int# u5cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#u5.; |
| 48 | bn_intcxx . . $ pvpgn/bn_int# clienttagcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#clienttag.; |
| 49 | bn_intcxx . . $ pvpgn/bn_int# bnversioncxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#bnversion.; |
| 50 | bn_intcxx . . $ pvpgn/bn_int# bncs_addr2cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#bncs_addr2.; |
| 51 | bn_intcxx . . $ pvpgn/bn_int# u6cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#u6.; /* zero */ |
| 52 | bn_intcxx . . $ pvpgn/bn_int# secret_hashcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_2#secret_hash.[5]; |
| 53 | /* account name */ |
| 54 | } t_client_d2cs_loginreqcxx . . $ pvpgn/t_client_d2cs_loginreq#; |
| 55 | |
| 56 | #define D2CS_CLIENT_LOGINREPLYcxx . . $ `src/common/d2cs_protocol.h:56:9`! 0x01 |
| 57 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_3# |
| 58 | { |
| 59 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_3#h.; |
| 60 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_3#reply.; |
| 61 | } t_d2cs_client_loginreplycxx . . $ pvpgn/t_d2cs_client_loginreply#; |
| 62 | #define D2CS_CLIENT_LOGINREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:62:9`! 0x00 |
| 63 | #define D2CS_CLIENT_LOGINREPLY_BADPASScxx . . $ `src/common/d2cs_protocol.h:63:9`! 0x0c |
| 64 | |
| 65 | #define CLIENT_D2CS_CREATECHARREQcxx . . $ `src/common/d2cs_protocol.h:65:9`! 0x02 |
| 66 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_4# |
| 67 | { |
| 68 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_4#h.; |
| 69 | bn_shortcxx . . $ pvpgn/bn_short# chclasscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_4#chclass.; /* character class */ |
| 70 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_4#u1.; /* always zero */ |
| 71 | bn_shortcxx . . $ pvpgn/bn_short# statuscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_4#status.; /* same as in .d2s file */ |
| 72 | /* character name */ |
| 73 | } t_client_d2cs_createcharreqcxx . . $ pvpgn/t_client_d2cs_createcharreq#; |
| 74 | |
| 75 | #define D2CS_CLIENT_CREATECHARREPLYcxx . . $ `src/common/d2cs_protocol.h:75:9`! 0x02 |
| 76 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_5# |
| 77 | { |
| 78 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_5#h.; |
| 79 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_5#reply.; |
| 80 | } t_d2cs_client_createcharreplycxx . . $ pvpgn/t_d2cs_client_createcharreply#; |
| 81 | #define D2CS_CLIENT_CREATECHARREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:81:9`! 0x00 |
| 82 | #define D2CS_CLIENT_CREATECHARREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:82:9`! 0x01 |
| 83 | #define D2CS_CLIENT_CREATECHARREPLY_ALREADY_EXISTcxx . . $ `src/common/d2cs_protocol.h:83:9`! 0x14 |
| 84 | #define D2CS_CLIENT_CREATECHARREPLY_NAME_REJECTcxx . . $ `src/common/d2cs_protocol.h:84:9`! 0x15 |
| 85 | |
| 86 | |
| 87 | #define CLIENT_D2CS_CREATEGAMEREQcxx . . $ `src/common/d2cs_protocol.h:87:9`! 0x03 |
| 88 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6# |
| 89 | { |
| 90 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#h.; |
| 91 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#seqno.; |
| 92 | bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#gameflag.; /* just difficulty is set here */ |
| 93 | bn_bytecxx . . $ pvpgn/bn_byte# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#u1.; /* always 1 */ |
| 94 | bn_bytecxx . . $ pvpgn/bn_byte# leveldiffcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#leveldiff.; /* Only allow people of +/- n level to join */ |
| 95 | bn_bytecxx . . $ pvpgn/bn_byte# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_6#maxchar.; /* Maximum number of chars allowed in game */ |
| 96 | /* game name */ |
| 97 | /* game pass */ |
| 98 | /* game desc */ |
| 99 | } t_client_d2cs_creategamereqcxx . . $ pvpgn/t_client_d2cs_creategamereq#; |
| 100 | |
| 101 | #define D2CS_CLIENT_CREATEGAMEREPLYcxx . . $ `src/common/d2cs_protocol.h:101:9`! 0x03 |
| 102 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7# |
| 103 | { |
| 104 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7#h.; |
| 105 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7#seqno.; |
| 106 | bn_shortcxx . . $ pvpgn/bn_short# gameidcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7#gameid.; |
| 107 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7#u1.; /* always zero */ |
| 108 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_7#reply.; |
| 109 | } t_d2cs_client_creategamereplycxx . . $ pvpgn/t_d2cs_client_creategamereply#; |
| 110 | #define D2CS_CLIENT_CREATEGAMEREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:110:9`! 0x00 |
| 111 | #define D2CS_CLIENT_CREATEGAMEREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:111:9`! 0x01 |
| 112 | #define D2CS_CLIENT_CREATEGAMEREPLY_INVALID_NAMEcxx . . $ `src/common/d2cs_protocol.h:112:9`! 0x1e |
| 113 | #define D2CS_CLIENT_CREATEGAMEREPLY_NAME_EXISTcxx . . $ `src/common/d2cs_protocol.h:113:9`! 0x1f |
| 114 | #define D2CS_CLIENT_CREATEGAMEREPLY_SERVER_DOWNcxx . . $ `src/common/d2cs_protocol.h:114:9`! 0x20 |
| 115 | #define D2CS_CLIENT_CREATEGAMEREPLY_NOT_AVAILABLEcxx . . $ `src/common/d2cs_protocol.h:115:9`! 0x32 |
| 116 | #define D2CS_CLIENT_CREATEGAMEREPLY_U1cxx . . $ `src/common/d2cs_protocol.h:116:9`! 0x33 |
| 117 | |
| 118 | #define CLIENT_D2CS_JOINGAMEREQcxx . . $ `src/common/d2cs_protocol.h:118:9`! 0x04 |
| 119 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_8# |
| 120 | { |
| 121 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_8#h.; |
| 122 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_8#seqno.; |
| 123 | /* game name */ |
| 124 | /* game pass */ |
| 125 | } t_client_d2cs_joingamereqcxx . . $ pvpgn/t_client_d2cs_joingamereq#; |
| 126 | |
| 127 | #define D2CS_CLIENT_JOINGAMEREPLYcxx . . $ `src/common/d2cs_protocol.h:127:9`! 0x04 |
| 128 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9# |
| 129 | { |
| 130 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#h.; |
| 131 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#seqno.; |
| 132 | bn_shortcxx . . $ pvpgn/bn_short# gameidcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#gameid.; |
| 133 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#u1.; /* always zero */ |
| 134 | bn_intcxx . . $ pvpgn/bn_int# addrcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#addr.; |
| 135 | bn_intcxx . . $ pvpgn/bn_int# tokencxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#token.; |
| 136 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_9#reply.; |
| 137 | } t_d2cs_client_joingamereplycxx . . $ pvpgn/t_d2cs_client_joingamereply#; |
| 138 | #define D2CS_CLIENT_JOINGAMEREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:138:9`! 0x00 |
| 139 | #define D2CS_CLIENT_JOINGAMEREPLY_BAD_PASScxx . . $ `src/common/d2cs_protocol.h:139:9`! 0x29 |
| 140 | #define D2CS_CLIENT_JOINGAMEREPLY_NOT_EXISTcxx . . $ `src/common/d2cs_protocol.h:140:9`! 0x2a |
| 141 | #define D2CS_CLIENT_JOINGAMEREPLY_GAME_FULLcxx . . $ `src/common/d2cs_protocol.h:141:9`! 0x2b |
| 142 | #define D2CS_CLIENT_JOINGAMEREPLY_LEVEL_LIMITcxx . . $ `src/common/d2cs_protocol.h:142:9`! 0x2c |
| 143 | #define D2CS_CLIENT_JOINGAMEREPLY_HARDCORE_SOFTCOREcxx . . $ `src/common/d2cs_protocol.h:143:9`! 0x71 |
| 144 | #define D2CS_CLIENT_JOINGAMEREPLY_NORMAL_NIGHTMAREcxx . . $ `src/common/d2cs_protocol.h:144:9`! 0x73 |
| 145 | #define D2CS_CLIENT_JOINGAMEREPLY_NIGHTMARE_HELLcxx . . $ `src/common/d2cs_protocol.h:145:9`! 0x74 |
| 146 | #define D2CS_CLIENT_JOINGAMEREPLY_CLASSIC_EXPANSIONcxx . . $ `src/common/d2cs_protocol.h:146:9`! 0x78 |
| 147 | #define D2CS_CLIENT_JOINGAMEREPLY_EXPANSION_CLASSICcxx . . $ `src/common/d2cs_protocol.h:147:9`! 0x79 |
| 148 | #define D2CS_CLIENT_JOINGAMEREPLY_NORMAL_LADDERcxx . . $ `src/common/d2cs_protocol.h:148:9`! 0x7D |
| 149 | #define D2CS_CLIENT_JOINGAMEREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:149:9`! 0x01 |
| 150 | |
| 151 | #define CLIENT_D2CS_GAMELISTREQcxx . . $ `src/common/d2cs_protocol.h:151:9`! 0x05 |
| 152 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_10# |
| 153 | { |
| 154 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_10#h.; |
| 155 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_10#seqno.; |
| 156 | bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_10#gameflag.; /* only hardcore is set here */ |
| 157 | /* bn_byte u1; string game name to search? */ |
| 158 | } t_client_d2cs_gamelistreqcxx . . $ pvpgn/t_client_d2cs_gamelistreq#; |
| 159 | |
| 160 | #define D2CS_CLIENT_GAMELISTREPLYcxx . . $ `src/common/d2cs_protocol.h:160:9`! 0x05 |
| 161 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11# |
| 162 | { |
| 163 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11#h.; |
| 164 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11#seqno.; |
| 165 | bn_intcxx . . $ pvpgn/bn_int# tokencxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11#token.; |
| 166 | bn_bytecxx . . $ pvpgn/bn_byte# currcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11#currchar.; /* current number of characters in game */ |
| 167 | bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_11#gameflag.; /* 0x04 is always set here */ |
| 168 | /* game name */ |
| 169 | /* game desc */ |
| 170 | } t_d2cs_client_gamelistreplycxx . . $ pvpgn/t_d2cs_client_gamelistreply#; |
| 171 | |
| 172 | #define CLIENT_D2CS_GAMEINFOREQcxx . . $ `src/common/d2cs_protocol.h:172:9`! 0x06 |
| 173 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_12# |
| 174 | { |
| 175 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_12#h.; |
| 176 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_12#seqno.; |
| 177 | /* game name */ |
| 178 | } t_client_d2cs_gameinforeqcxx . . $ pvpgn/t_client_d2cs_gameinforeq#; |
| 179 | |
| 180 | #define D2CS_CLIENT_GAMEINFOREPLYcxx . . $ `src/common/d2cs_protocol.h:180:9`! 0x06 |
| 181 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13# |
| 182 | { |
| 183 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#h.; |
| 184 | bn_shortcxx . . $ pvpgn/bn_short# seqnocxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#seqno.; |
| 185 | bn_intcxx . . $ pvpgn/bn_int# gameflagcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#gameflag.; |
| 186 | bn_intcxx . . $ pvpgn/bn_int# etimecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#etime.; |
| 187 | bn_bytecxx . . $ pvpgn/bn_byte# charlevelcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#charlevel.; |
| 188 | bn_bytecxx . . $ pvpgn/bn_byte# leveldiffcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#leveldiff.; |
| 189 | bn_bytecxx . . $ pvpgn/bn_byte# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#maxchar.; |
| 190 | bn_bytecxx . . $ pvpgn/bn_byte# currcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#currchar.; |
| 191 | bn_bytecxx . . $ pvpgn/bn_byte# chclasscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#chclass.[16]; /* 16 character class */ |
| 192 | bn_bytecxx . . $ pvpgn/bn_byte# levelcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_13#level.[16]; /* 16 character level */ |
| 193 | /* game description */ |
| 194 | /* currchar number of character names */ |
| 195 | } t_d2cs_client_gameinforeplycxx . . $ pvpgn/t_d2cs_client_gameinforeply#; |
| 196 | |
| 197 | #define CLIENT_D2CS_CHARLOGINREQcxx . . $ `src/common/d2cs_protocol.h:197:9`! 0x07 |
| 198 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_14# |
| 199 | { |
| 200 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_14#h.; |
| 201 | /* character name */ |
| 202 | } t_client_d2cs_charloginreqcxx . . $ pvpgn/t_client_d2cs_charloginreq#; |
| 203 | |
| 204 | #define D2CS_CLIENT_CHARLOGINREPLYcxx . . $ `src/common/d2cs_protocol.h:204:9`! 0x07 |
| 205 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_15# |
| 206 | { |
| 207 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_15#h.; |
| 208 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_15#reply.; |
| 209 | } t_d2cs_client_charloginreplycxx . . $ pvpgn/t_d2cs_client_charloginreply#; |
| 210 | #define D2CS_CLIENT_CHARLOGINREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:210:9`! 0x00 |
| 211 | #define D2CS_CLIENT_CHARLOGINREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:211:9`! 0x01 |
| 212 | #define D2CS_CLIENT_CHARLOGINREPLY_NOT_FOUNDcxx . . $ `src/common/d2cs_protocol.h:212:9`! 0x46 |
| 213 | #define D2CS_CLIENT_CHARLOGINREPLY_EXPIREDcxx . . $ `src/common/d2cs_protocol.h:213:9`! 0x7b |
| 214 | |
| 215 | #define CLIENT_D2CS_DELETECHARREQcxx . . $ `src/common/d2cs_protocol.h:215:9`! 0x0a |
| 216 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_16# |
| 217 | { |
| 218 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_16#h.; |
| 219 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_16#u1.; /* always zero */ |
| 220 | /* character name */ |
| 221 | } t_client_d2cs_deletecharreqcxx . . $ pvpgn/t_client_d2cs_deletecharreq#; |
| 222 | |
| 223 | #define D2CS_CLIENT_DELETECHARREPLYcxx . . $ `src/common/d2cs_protocol.h:223:9`! 0x0a |
| 224 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_17# |
| 225 | { |
| 226 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_17#h.; |
| 227 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_17#u1.; /* always zero */ |
| 228 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_17#reply.; |
| 229 | } t_d2cs_client_deletecharreplycxx . . $ pvpgn/t_d2cs_client_deletecharreply#; |
| 230 | #define D2CS_CLIENT_DELETECHARREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:230:9`! 0x00 |
| 231 | #define D2CS_CLIENT_DELETECHARREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:231:9`! 0x01 |
| 232 | |
| 233 | |
| 234 | #define CLIENT_D2CS_LADDERREQcxx . . $ `src/common/d2cs_protocol.h:234:9`! 0x11 |
| 235 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_18# |
| 236 | { |
| 237 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_18#h.; |
| 238 | bn_bytecxx . . $ pvpgn/bn_byte# typecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_18#type.; /* jadder type request */ |
| 239 | bn_shortcxx . . $ pvpgn/bn_short# start_poscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_18#start_pos.; /* list ladder from what position */ |
| 240 | } t_client_d2cs_ladderreqcxx . . $ pvpgn/t_client_d2cs_ladderreq#; |
| 241 | |
| 242 | #define D2CS_CLIENT_LADDERREPLYcxx . . $ `src/common/d2cs_protocol.h:242:9`! 0x11 |
| 243 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19# |
| 244 | { |
| 245 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19#h.; |
| 246 | bn_bytecxx . . $ pvpgn/bn_byte# typecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19#type.; /* ladder type request */ |
| 247 | bn_shortcxx . . $ pvpgn/bn_short# total_lencxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19#total_len.; /* total length of the ladder data */ |
| 248 | |
| 249 | bn_shortcxx . . $ pvpgn/bn_short# curr_lencxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19#curr_len.; /* length of ladder data in this packet */ |
| 250 | bn_shortcxx . . $ pvpgn/bn_short# cont_lencxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_19#cont_len.; /* length of ladder data in previous packets */ |
| 251 | /* length here include the header but |
| 252 | exclude this packet */ |
| 253 | } t_d2cs_client_ladderreplycxx . . $ pvpgn/t_d2cs_client_ladderreply#; |
| 254 | |
| 255 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_20# |
| 256 | { |
| 257 | bn_shortcxx . . $ pvpgn/bn_short# start_poscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_20#start_pos.; /* start position of ladder */ |
| 258 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_20#u1.; /* always zero */ |
| 259 | bn_intcxx . . $ pvpgn/bn_int# count1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_20#count1.; /* always 0x10 */ |
| 260 | } t_d2cs_client_ladderheadercxx . . $ pvpgn/t_d2cs_client_ladderheader#; |
| 261 | |
| 262 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_21# |
| 263 | { |
| 264 | bn_intcxx . . $ pvpgn/bn_int# count2cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_21#count2.; /* 0x10 for first packet or 0x0 for continue */ |
| 265 | } t_d2cs_client_ladderinfoheadercxx . . $ pvpgn/t_d2cs_client_ladderinfoheader#; |
| 266 | |
| 267 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22# |
| 268 | { |
| 269 | bn_intcxx . . $ pvpgn/bn_int# explowcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#explow.; |
| 270 | bn_intcxx . . $ pvpgn/bn_int# exphighcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#exphigh.; /* always zero */ |
| 271 | bn_shortcxx . . $ pvpgn/bn_short# statuscxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#status.; |
| 272 | bn_bytecxx . . $ pvpgn/bn_byte# levelcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#level.; |
| 273 | bn_bytecxx . . $ pvpgn/bn_byte# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#u1.; /* always zero */ |
| 274 | char charnamecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_22#charname.[16]; |
| 275 | } t_d2cs_client_ladderinfocxx . . $ pvpgn/t_d2cs_client_ladderinfo#; |
| 276 | #define LADDERSTATUS_FLAG_DEADcxx . . $ `src/common/d2cs_protocol.h:276:9`! 0x10 |
| 277 | #define LADDERSTATUS_FLAG_HARDCOREcxx . . $ `src/common/d2cs_protocol.h:277:9`! 0x20 |
| 278 | #define LADDERSTATUS_FLAG_EXPANSIONcxx . . $ `src/common/d2cs_protocol.h:278:9`! 0x40 |
| 279 | #define LADDERSTATUS_FLAG_DIFFICULTYcxx . . $ `src/common/d2cs_protocol.h:279:9`! 0x0f00 |
| 280 | |
| 281 | #define CLIENT_D2CS_MOTDREQcxx . . $ `src/common/d2cs_protocol.h:281:9`! 0x12 |
| 282 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_23# |
| 283 | { |
| 284 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_23#h.; |
| 285 | } t_client_d2cs_motdreqcxx . . $ pvpgn/t_client_d2cs_motdreq#; |
| 286 | |
| 287 | #define D2CS_CLIENT_MOTDREPLYcxx . . $ `src/common/d2cs_protocol.h:287:9`! 0x12 |
| 288 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_24# |
| 289 | { |
| 290 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_24#h.; |
| 291 | bn_bytecxx . . $ pvpgn/bn_byte# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_24#u1.; |
| 292 | /* message */ |
| 293 | } t_d2cs_client_motdreplycxx . . $ pvpgn/t_d2cs_client_motdreply#; |
| 294 | |
| 295 | #define CLIENT_D2CS_CANCELCREATEGAMEcxx . . $ `src/common/d2cs_protocol.h:295:9`! 0x13 |
| 296 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_25# |
| 297 | { |
| 298 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_25#h.; |
| 299 | } t_client_d2cs_cancelcreategamecxx . . $ pvpgn/t_client_d2cs_cancelcreategame#; |
| 300 | |
| 301 | #define D2CS_CLIENT_CREATEGAMEWAITcxx . . $ `src/common/d2cs_protocol.h:301:9`! 0x14 |
| 302 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_26# |
| 303 | { |
| 304 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_26#h.; |
| 305 | bn_intcxx . . $ pvpgn/bn_int# positioncxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_26#position.; |
| 306 | } t_d2cs_client_creategamewaitcxx . . $ pvpgn/t_d2cs_client_creategamewait#; |
| 307 | |
| 308 | #define D2CS_CLIENT_CHARLADDERREQcxx . . $ `src/common/d2cs_protocol.h:308:9`! 0x16 |
| 309 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_27# |
| 310 | { |
| 311 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_27#h.; |
| 312 | bn_intcxx . . $ pvpgn/bn_int# hardcorecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_27#hardcore.; |
| 313 | bn_intcxx . . $ pvpgn/bn_int# expansioncxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_27#expansion.; |
| 314 | /* character name */ |
| 315 | } t_client_d2cs_charladderreqcxx . . $ pvpgn/t_client_d2cs_charladderreq#; |
| 316 | /* use 0x11 LADDER reply for this request */ |
| 317 | |
| 318 | #define CLIENT_D2CS_CHARLISTREQcxx . . $ `src/common/d2cs_protocol.h:318:9`! 0x17 |
| 319 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_28# |
| 320 | { |
| 321 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_28#h.; |
| 322 | bn_shortcxx . . $ pvpgn/bn_short# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_28#maxchar.; |
| 323 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_28#u1.; |
| 324 | } t_client_d2cs_charlistreqcxx . . $ pvpgn/t_client_d2cs_charlistreq#; |
| 325 | |
| 326 | #define D2CS_CLIENT_CHARLISTREPLYcxx . . $ `src/common/d2cs_protocol.h:326:9`! 0x17 |
| 327 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29# |
| 328 | { |
| 329 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29#h.; |
| 330 | bn_shortcxx . . $ pvpgn/bn_short# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29#maxchar.; |
| 331 | bn_shortcxx . . $ pvpgn/bn_short# currcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29#currchar.; |
| 332 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29#u1.; /* always zero */ |
| 333 | bn_shortcxx . . $ pvpgn/bn_short# currchar2cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_29#currchar2.; |
| 334 | /* character name */ |
| 335 | /* character portrait blocks */ |
| 336 | /* each block is 0x22 bytes static length */ |
| 337 | } t_d2cs_client_charlistreplycxx . . $ pvpgn/t_d2cs_client_charlistreply#; |
| 338 | |
| 339 | #define CLIENT_D2CS_CONVERTCHARREQcxx . . $ `src/common/d2cs_protocol.h:339:9`! 0x18 |
| 340 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_30# |
| 341 | { |
| 342 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_30#h.; |
| 343 | /* character name */ |
| 344 | } t_client_d2cs_convertcharreqcxx . . $ pvpgn/t_client_d2cs_convertcharreq#; |
| 345 | |
| 346 | #define D2CS_CLIENT_CONVERTCHARREPLYcxx . . $ `src/common/d2cs_protocol.h:346:9`! 0x18 |
| 347 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_31# |
| 348 | { |
| 349 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_31#h.; |
| 350 | bn_intcxx . . $ pvpgn/bn_int# replycxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_31#reply.; |
| 351 | } t_d2cs_client_convertcharreplycxx . . $ pvpgn/t_d2cs_client_convertcharreply#; |
| 352 | #define D2CS_CLIENT_CONVERTCHARREPLY_SUCCEEDcxx . . $ `src/common/d2cs_protocol.h:352:9`! 0x00 |
| 353 | #define D2CS_CLIENT_CONVERTCHARREPLY_FAILEDcxx . . $ `src/common/d2cs_protocol.h:353:9`! 0x01 |
| 354 | |
| 355 | #define CLIENT_D2CS_CHARLISTREQ_110cxx . . $ `src/common/d2cs_protocol.h:355:9`! 0x19 |
| 356 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_32# |
| 357 | { |
| 358 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_32#h.; |
| 359 | bn_shortcxx . . $ pvpgn/bn_short# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_32#maxchar.; |
| 360 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_32#u1.; |
| 361 | } t_client_d2cs_charlistreq_110cxx . . $ pvpgn/t_client_d2cs_charlistreq_110#; |
| 362 | |
| 363 | |
| 364 | #define D2CS_CLIENT_CHARLISTREPLY_110cxx . . $ `src/common/d2cs_protocol.h:364:9`! 0x19 |
| 365 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33# |
| 366 | { |
| 367 | t_d2cs_client_headercxx . . $ pvpgn/t_d2cs_client_header# hcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33#h.; |
| 368 | bn_shortcxx . . $ pvpgn/bn_short# maxcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33#maxchar.; |
| 369 | bn_shortcxx . . $ pvpgn/bn_short# currcharcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33#currchar.; |
| 370 | bn_shortcxx . . $ pvpgn/bn_short# u1cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33#u1.; /* always zero */ |
| 371 | bn_shortcxx . . $ pvpgn/bn_short# currchar2cxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_33#currchar2.; |
| 372 | } t_d2cs_client_charlistreply_110cxx . . $ pvpgn/t_d2cs_client_charlistreply_110#; |
| 373 | |
| 374 | typedef structcxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_34# |
| 375 | { |
| 376 | bn_intcxx . . $ pvpgn/bn_int# expire_timecxx . . $ pvpgn/$anonymous_type_b07e82e2fff2dccd_34#expire_time.; /* character expire time (in seconds) */ |
| 377 | /* character name */ |
| 378 | /* character portrait blocks */ |
| 379 | /* each block is 0x22 bytes static length */ |
| 380 | } t_d2cs_client_chardatacxx . . $ pvpgn/t_d2cs_client_chardata#; |
| 381 | |
| 382 | } |
| 383 | |
| 384 | #endif |