summaryrefslogtreecommitdiff
path: root/src/net/protocol.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-08-14 08:36:16 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-08-14 08:36:16 +0000
commitc79bf8c82f0a38b574b83be2484eb347852cd833 (patch)
treebf13ca5f0ff3f0413bab52f89ba95e705ffce745 /src/net/protocol.h
parent9e6862623370f53d1b78e4bd167152b840e28884 (diff)
downloadmana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.gz
mana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.bz2
mana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.xz
mana-c79bf8c82f0a38b574b83be2484eb347852cd833.zip
Completed porting of character creation/deletion, fixed some issues with network code.
Diffstat (limited to 'src/net/protocol.h')
-rw-r--r--src/net/protocol.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/net/protocol.h b/src/net/protocol.h
index 6db3762e..528b2fd5 100644
--- a/src/net/protocol.h
+++ b/src/net/protocol.h
@@ -128,7 +128,7 @@ enum {
APMSG_CHAR_CREATE_RESPONSE = 0x0021, // B error
PAMSG_CHAR_DELETE = 0x0022, // B index
APMSG_CHAR_DELETE_RESPONSE = 0x0023, // B error
- PAMSG_CHAR_LIST = 0x0024, // -
+ APMSG_CHAR_INFO = 0x0024, // B index, S name, B gender, B hair style, B hair color, B level, W money, W*6 stats, S mapname, W*2 position
APMSG_CHAR_LIST_RESPONSE = 0x0025, // B number, { B index, S name, B gender, B hair style, B hair color, B level, W money, W*6 stats, S mapname, W*2 position }*
PAMSG_CHAR_SELECT = 0x0026, // B index
APMSG_CHAR_SELECT_RESPONSE = 0x0027, // B error, S mapname, W*2 position
@@ -207,6 +207,18 @@ enum {
REGISTER_EXISTS_EMAIL // there already is an account with this email address
};
+// Character creation specific return values
+enum {
+ CREATE_INVALID_HAIRSTYLE = 0x40,
+ CREATE_INVALID_HAIRCOLOR,
+ CREATE_INVALID_GENDER,
+ CREATE_RAW_STATS_TOO_HIGH,
+ CREATE_RAW_STATS_TOO_LOW,
+ CREATE_RAW_STATS_INVALID_DIFF,
+ CREATE_RAW_STATS_EQUAL_TO_ZERO,
+ CREATE_EXISTS_NAME,
+ CREATE_TOO_MUCH_CHARACTERS
+};
/** Encodes coords and direction in 3 bytes data */
void set_coordinates(char *data, unsigned short x, unsigned short y, unsigned char direction);