diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-09-12 17:12:24 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-09-12 17:12:24 +0000 |
commit | 8551f4a5c5e1feddc4f2868488bdefeae85aa26d (patch) | |
tree | 39b91c9d7124c1c03e954ceb9b3434adcaf022ce /src/net/protocol.h | |
parent | a9595f435664df56948ae70e954cf72143ddcfa1 (diff) | |
download | mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.gz mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.bz2 mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.xz mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.zip |
Fixed /where, added /cast for heal and gather, some changes to inventory to support storage
Diffstat (limited to 'src/net/protocol.h')
-rw-r--r-- | src/net/protocol.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/net/protocol.h b/src/net/protocol.h index 53f245b5..7d5edf94 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -24,7 +24,9 @@ #ifndef _TMW_PROTOCOL_ #define _TMW_PROTOCOL_ -// Packets from server to client +/********************************* + * Packets from server to client * + *********************************/ #define SMSG_LOGIN_SUCCESS 0x0073 /**< Contains starting location */ #define SMSG_SERVER_PING 0x007f /**< Contains server tick */ #define SMSG_PLAYER_UPDATE_1 0x01d8 @@ -104,7 +106,16 @@ #define SMSG_PARTY_UPDATE_COORDS 0x0107 #define SMSG_PARTY_MESSAGE 0x0109 -// Packets from client to server +#define SMSG_PLAYER_STORAGE_ITEMS 0x01f0 /**< Item list for storage */ +#define SMSG_PLAYER_STORAGE_EQUIP 0x00a6 /**< Equipment list for storage */ +#define SMSG_PLAYER_STORAGE_STATUS 0x00f2 /**< Slots used and total slots */ +#define SMSG_PLAYER_STORAGE_ADD 0x00f4 /**< Add item/equip to storage */ +#define SMSG_PLAYER_STORAGE_REMOVE 0x00f6 /**< Remove item/equip from storage */ +#define SMSG_PLAYER_STORAGE_CLOSE 0x00f8 /**< Storage access closed */ + +/********************************** + * Packets from client to server * + **********************************/ #define CMSG_CLIENT_PING 0x007e /**< Send to server with tick */ #define CMSG_TRADE_RESPONSE 0x00e6 #define CMSG_ITEM_PICKUP 0x009f @@ -138,6 +149,10 @@ #define CMSG_PARTY_SETTINGS 0x0101 #define CMSG_PARTY_MESSAGE 0x0108 +#define CMSG_MOVE_TO_STORAGE 0x00f3 /** Move item to storage */ +#define CSMG_MOVE_FROM_STORAGE 0x00f5 /** Remove item from storage */ +#define CMSG_CLOSE_STORAGE 0x00f7 /** Request storage close */ + /** Encodes coords and direction in 3 bytes data */ void set_coordinates(char *data, unsigned short x, unsigned short y, unsigned char direction); |