diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-08-29 00:54:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-09-18 22:31:51 +0300 |
commit | 070256d031a01159c588fa62cd849624727e22ff (patch) | |
tree | 3b79fa9522b384c1ab69bb7084f22886ac297a63 /src/map/mapdefines.h | |
parent | 5fd9acf126af159d6a2fef4cccc8b2ed92bc2553 (diff) | |
download | hercules-070256d031a01159c588fa62cd849624727e22ff.tar.gz hercules-070256d031a01159c588fa62cd849624727e22ff.tar.bz2 hercules-070256d031a01159c588fa62cd849624727e22ff.tar.xz hercules-070256d031a01159c588fa62cd849624727e22ff.zip |
Convert packet ZC_TALKBOX_CHATCONTENTS into struct and add new packet version
Diffstat (limited to 'src/map/mapdefines.h')
-rw-r--r-- | src/map/mapdefines.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/mapdefines.h b/src/map/mapdefines.h index df9e9bccb..348ca98fd 100644 --- a/src/map/mapdefines.h +++ b/src/map/mapdefines.h @@ -21,6 +21,8 @@ #ifndef MAP_MAPDEFINES_H #define MAP_MAPDEFINES_H +#include "common/mmo.h" // packet versions + #define MAX_NPC_PER_MAP 512 #define AREA_SIZE (battle->bc->area_size) #define CHAT_AREA_SIZE (battle->bc->chat_area_size) @@ -57,8 +59,14 @@ #define MAPID_UPPERMASK 0x0fff #define MAPID_THIRDMASK (JOBL_THIRD|MAPID_UPPERMASK) -// Max size for inputs to Graffiti, Talkie Box and Vending text prompts +// Max size for inputs to Vending text prompts #define MESSAGE_SIZE (79 + 1) +// Max size for inputs to Graffiti, Talkie Box text prompts +#if PACKETVER_MAIN_NUM >= 20190904 || PACKETVER_RE_NUM >= 20190904 || PACKETVER_ZERO_NUM >= 20190828 +#define TALKBOX_MESSAGE_SIZE 21 +#else +#define TALKBOX_MESSAGE_SIZE (79 + 1) +#endif // String length you can write in the 'talking box' #define CHATBOX_SIZE (70 + 1) // Chatroom-related string sizes |