summaryrefslogtreecommitdiff
path: root/src/map/clif.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.h')
-rw-r--r--src/map/clif.h35
1 files changed, 27 insertions, 8 deletions
diff --git a/src/map/clif.h b/src/map/clif.h
index f414ecebb..73d3611a2 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -60,13 +60,13 @@ enum {// packet DB
typedef enum send_target {
ALL_CLIENT,
ALL_SAMEMAP,
- AREA, // area
- AREA_WOS, // area, without self
- AREA_WOC, // area, without chatrooms
- AREA_WOSC, // area, without own chatroom
- AREA_CHAT_WOC, // hearable area, without chatrooms
- CHAT, // current chatroom
- CHAT_WOS, // current chatroom, without self
+ AREA, // area
+ AREA_WOS, // area, without self
+ AREA_WOC, // area, without chatrooms
+ AREA_WOSC, // area, without own chatroom
+ AREA_CHAT_WOC, // hearable area, without chatrooms
+ CHAT, // current chatroom
+ CHAT_WOS, // current chatroom, without self
PARTY,
PARTY_WOS,
PARTY_SAMEMAP,
@@ -84,7 +84,7 @@ typedef enum send_target {
DUEL_WOS,
SELF,
- BG, // BattleGround System
+ BG, // BattleGround System
BG_WOS,
BG_SAMEMAP,
BG_SAMEMAP_WOS,
@@ -94,6 +94,25 @@ typedef enum send_target {
BG_QUEUE,
} send_target;
+typedef enum broadcast_flags {
+ BC_ALL = 0,
+ BC_MAP = 1,
+ BC_AREA = 2,
+ BC_SELF = 3,
+ BC_TARGET_MASK = 0x07,
+
+ BC_PC = 0x00,
+ BC_NPC = 0x08,
+ BC_SOURCE_MASK = 0x08, // BC_PC|BC_NPC
+
+ BC_YELLOW = 0x00,
+ BC_BLUE = 0x10,
+ BC_WOE = 0x20,
+ BC_COLOR_MASK = 0x30, // BC_YELLOW|BC_BLUE|BC_WOE
+
+ BC_DEFAULT = BC_ALL|BC_PC|BC_YELLOW
+} broadcast_flags;
+
typedef enum emotion_type {
E_GASP = 0, // /!
E_WHAT, // /?