From b87d090446143bfafdc9e801f745edcb16d93767 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Thu, 13 Mar 2008 04:03:37 +0000 Subject: - Added a fix for Abracadabra, this skills allways should use minimum a Yellow Gem. - Added some code "suggestion" to handle the new Barricades, please test it with: - @barricade - @killbarricade - If x and y are -1, it will use your current position. - Direction 0 Vertical 1 Horizontal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12352 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index 194a49304..06dd27fb4 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -49,6 +49,8 @@ #define MAX_IGNORE_LIST 20 // official is 14 #define MAX_VENDING 12 #define MOBID_EMPERIUM 1288 +#define MOBID_BARRICADEB 1905 +#define MOBID_BARRICADEA 1906 // Undestruble #define MAX_PC_BONUS 10 #define MAX_DUEL 1024 @@ -882,6 +884,7 @@ struct mob_data { struct status_data status, *base_status; //Second one is in case of leveling up mobs, or tiny/large mobs. struct status_change sc; struct mob_db *db; //For quick data access (saves doing mob_db(md->class_) all the time) [Skotlex] + struct barricade_data *barricade; char name[NAME_LENGTH]; struct { unsigned size : 2; //Small/Big monsters. @@ -1157,6 +1160,11 @@ struct mapcell #endif }; +struct barricade_data { + char npc_event[50]; + short m, x, y, count, amount, dir; +}; + struct map_data { char name[MAP_NAME_LENGTH]; unsigned short index; // The map index used by the mapindex* functions. @@ -1168,6 +1176,7 @@ struct map_data { short bxs,bys; // map dimensions (in blocks) int npc_num; int users; + int barricade_num; struct map_flag { unsigned town : 1; // [Suggestion to protect Mail System] unsigned autotrade : 1; -- cgit v1.2.3-60-g2f50