@@ -45,42 +45,6 @@ enum E_MAPSERVER_ST {
4545 MAPSERVER_ST_LAST
4646};
4747
48- #define MAX_NPC_PER_MAP 512
49- #define AREA_SIZE (battle->bc->area_size)
50- #define CHAT_AREA_SIZE (battle->bc->chat_area_size)
51- #define DEAD_AREA_SIZE (battle->bc->dead_area_size)
52- #define DAMAGELOG_SIZE 30
53- #define LOOTITEM_SIZE 10
54- #define MAX_MOBSKILL 50
55- #define MAX_MOB_LIST_PER_MAP 100
56- #define MAX_EVENTQUEUE 2
57- #define MAX_EVENTTIMER 32
58- #define NATURAL_HEAL_INTERVAL 500
59- #define MIN_FLOORITEM 2
60- #define MAX_FLOORITEM START_ACCOUNT_NUM
61- #define MAX_IGNORE_LIST 20 // official is 14
62- #define MAX_VENDING 12
63- #define MAX_MAP_SIZE (512*512) // Wasn't there something like this already? Can't find it.. [Shinryo]
64-
65- #define BLOCK_SIZE 8
66- #define block_free_max 1048576
67- #define BL_LIST_MAX 1048576
68-
69- // The following system marks a different job ID system used by the map server,
70- // which makes a lot more sense than the normal one. [Skotlex]
71- // These marks the "level" of the job.
72- #define JOBL_2_1 0x0100
73- #define JOBL_2_2 0x0200
74- #define JOBL_2 0x0300 // JOBL_2_1 | JOBL_2_2
75- #define JOBL_UPPER 0x1000
76- #define JOBL_BABY 0x2000
77- #define JOBL_THIRD 0x4000
78-
79- // For filtering and quick checking.
80- #define MAPID_BASEMASK 0x00ff
81- #define MAPID_UPPERMASK 0x0fff
82- #define MAPID_THIRDMASK (JOBL_THIRD|MAPID_UPPERMASK)
83-
8448//First Jobs
8549//Note the oddity of the novice:
8650//Super Novices are considered the 2-1 version of the novice! Novices are considered a first class type.
@@ -344,36 +308,6 @@ enum {
344308
345309STATIC_ASSERT (((MAPID_1_1_MAX - 1 ) | MAPID_BASEMASK ) == MAPID_BASEMASK , "First class map IDs do not fit into MAPID_BASEMASK" );
346310
347- // Max size for inputs to Graffiti, Talkie Box and Vending text prompts
348- #define MESSAGE_SIZE (79 + 1)
349- // String length you can write in the 'talking box'
350- #define CHATBOX_SIZE (70 + 1)
351- // Chatroom-related string sizes
352- #define CHATROOM_TITLE_SIZE (36 + 1)
353- #define CHATROOM_PASS_SIZE (8 + 1)
354- // Max allowed chat text length
355- #define CHAT_SIZE_MAX (255 + 1)
356- // 24 for npc name + 24 for label + 2 for a "::" and 1 for EOS
357- #define EVENT_NAME_LENGTH ( NAME_LENGTH * 2 + 3 )
358- #define DEFAULT_AUTOSAVE_INTERVAL (5*60*1000)
359- // Specifies maps where players may hit each other
360- #define map_flag_vs (m ) ( \
361- map->list[m].flag.pvp \
362- || map->list[m].flag.gvg_dungeon \
363- || map->list[m].flag.gvg \
364- || ((map->agit_flag || map->agit2_flag) && map->list[m].flag.gvg_castle) \
365- || map->list[m].flag.battleground \
366- || map->list[m].flag.cvc \
367- )
368- // Specifies maps that have special GvG/WoE restrictions
369- #define map_flag_gvg (m ) (map->list[m].flag.gvg || ((map->agit_flag || map->agit2_flag) && map->list[m].flag.gvg_castle))
370- // Specifies if the map is tagged as GvG/WoE (regardless of map->agit_flag status)
371- #define map_flag_gvg2 (m ) (map->list[m].flag.gvg || map->list[m].flag.gvg_castle)
372- // No Kill Steal Protection
373- #define map_flag_ks (m ) (map->list[m].flag.town || map->list[m].flag.pvp || map->list[m].flag.gvg || map->list[m].flag.battleground)
374- // No ViewID
375- #define map_no_view (m , view ) (map->list[m].flag.noviewid & (view))
376-
377311//This stackable implementation does not means a BL can be more than one type at a time, but it's
378312// meant to make it easier to check for multiple types at a time on invocations such as map_foreach* calls [Skotlex]
379313enum bl_type {
@@ -392,9 +326,6 @@ enum bl_type {
392326 BL_ALL = 0xFFF ,
393327};
394328
395- // For common mapforeach calls. Since pets cannot be affected, they aren't included here yet.
396- #define BL_CHAR (BL_PC|BL_MOB|BL_HOM|BL_MER|BL_ELEM)
397-
398329enum npc_subtype { WARP , SHOP , SCRIPT , CASHSHOP , TOMB };
399330
400331/**
@@ -748,16 +679,6 @@ enum map_zone_merge_type {
748679 MZMT_NEVERMERGE , ///< Cannot merge with any zones.
749680};
750681
751- #define MAP_ZONE_NAME_LENGTH 60
752- #define MAP_ZONE_ALL_NAME "All"
753- #define MAP_ZONE_NORMAL_NAME "Normal"
754- #define MAP_ZONE_PVP_NAME "PvP"
755- #define MAP_ZONE_GVG_NAME "GvG"
756- #define MAP_ZONE_BG_NAME "Battlegrounds"
757- #define MAP_ZONE_CVC_NAME "CvC"
758- #define MAP_ZONE_PK_NAME "PK Mode"
759- #define MAP_ZONE_MAPFLAG_LENGTH 65
760-
761682struct map_zone_data {
762683 char name [MAP_ZONE_NAME_LENGTH ];/* 20'd */
763684 enum map_zone_merge_type merge_type ;
0 commit comments