| 1 |
sysadm |
1.1 |
/*
|
| 2 |
|
|
* Copyright (C) 2000,2001 Onlyer (onlyer@263.net)
|
| 3 |
|
|
* Copyright (C) 2001 sousou (liupeng.cs@263.net)
|
| 4 |
|
|
*
|
| 5 |
|
|
* This program is free software; you can redistribute it and/or
|
| 6 |
|
|
* modify it under the terms of the GNU General Public License
|
| 7 |
|
|
* as published by the Free Software Foundation; either version 2
|
| 8 |
|
|
* of the License, or (at your option) any later version.
|
| 9 |
|
|
*
|
| 10 |
|
|
* This program is distributed in the hope that it will be useful,
|
| 11 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
|
|
* GNU General Public License for more details.
|
| 14 |
|
|
*
|
| 15 |
|
|
* You should have received a copy of the GNU General Public License
|
| 16 |
|
|
* along with this program; if not, write to the Free Software
|
| 17 |
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
| 18 |
|
|
*/
|
| 19 |
|
|
#ifndef INCLUDED_D2CS_D2DBS_LADDER_H
|
| 20 |
|
|
#define INCLUDED_D2CS_D2DBS_LADDER_H
|
| 21 |
|
|
|
| 22 |
|
|
#include "common/bn_type.h"
|
| 23 |
|
|
|
| 24 |
|
|
typedef struct
|
| 25 |
|
|
{
|
| 26 |
|
|
bn_int type;
|
| 27 |
|
|
bn_int offset;
|
| 28 |
|
|
bn_int number;
|
| 29 |
|
|
} t_d2ladderfile_ladderindex;
|
| 30 |
|
|
|
| 31 |
|
|
typedef struct
|
| 32 |
|
|
{
|
| 33 |
|
|
bn_int experience;
|
| 34 |
|
|
bn_short status;
|
| 35 |
|
|
bn_byte level;
|
| 36 |
|
|
bn_byte class;
|
| 37 |
|
|
char charname[MAX_CHARNAME_LEN];
|
| 38 |
|
|
} t_d2ladderfile_ladderinfo;
|
| 39 |
|
|
|
| 40 |
|
|
typedef struct
|
| 41 |
|
|
{
|
| 42 |
|
|
bn_int maxtype;
|
| 43 |
|
|
bn_int checksum;
|
| 44 |
|
|
} t_d2ladderfile_header;
|
| 45 |
|
|
|
| 46 |
|
|
|
| 47 |
|
|
#define LADDER_FILE_PREFIX "ladder"
|
| 48 |
|
|
|
| 49 |
|
|
#define D2LADDER_HC_OVERALL 0x00
|
| 50 |
|
|
#define D2LADDER_STD_OVERALL 0x09
|
| 51 |
|
|
#define D2LADDER_EXP_HC_OVERALL 0x13
|
| 52 |
|
|
#define D2LADDER_EXP_STD_OVERALL 0x1B
|
| 53 |
|
|
#define D2CHAR_CLASS_MAX 0x04
|
| 54 |
|
|
#define D2CHAR_EXP_CLASS_MAX 0x06
|
| 55 |
|
|
|
| 56 |
|
|
#endif
|