diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-13 04:03:37 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-13 04:03:37 +0000 |
commit | b87d090446143bfafdc9e801f745edcb16d93767 (patch) | |
tree | 27041e48324d79829cdd290b5117cb5220a56cdc /src/map/map.h | |
parent | 9f3181501f0d95ffcc37bcb6a816c36362d1b164 (diff) | |
download | hercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.gz hercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.bz2 hercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.xz hercules-b87d090446143bfafdc9e801f745edcb16d93767.zip |
- 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 <x> <y> <size> <direction> <killable> <Event Name>
- @killbarricade <Event Name>
- 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
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 9 |
1 files changed, 9 insertions, 0 deletions
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; |