diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-25 21:11:05 -0700 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-25 21:11:05 -0700 |
commit | 1ab0017183e910271f4590beee37530fa3ce8ba0 (patch) | |
tree | 03ef8eb76a73d498e69e8c7e1160a1015a4c9653 /src/map/map.h | |
parent | 5f6f1d66834b8328496c1678f0ce4f90a001b3fb (diff) | |
parent | f7158456d9f6338b38b16f321c9a229fc6547bc0 (diff) | |
download | hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.gz hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.bz2 hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.xz hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.zip |
Merge pull request #202 from kisuka/master
Quest Bubbles (Actually Works Finally)
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h index 408d03c76..6e4878dfd 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -557,6 +557,17 @@ struct map_drop_list { int drop_per; }; + +struct questinfo { + struct npc_data *nd; + unsigned short icon; + unsigned char color; + int quest_id; + bool hasJob; + unsigned short job;/* perhaps a mapid mask would be most flexible? */ +}; + + struct map_data { char name[MAP_NAME_LENGTH]; uint16 index; // The map index used by the mapindex* functions. @@ -691,6 +702,10 @@ struct map_data { int (*getcellp)(struct map_data* m,int16 x,int16 y,cell_chk cellchk); void (*setcell) (int16 m, int16 x, int16 y, cell_t cell, bool flag); char *cellPos; + + /* ShowEvent Data Cache */ + struct questinfo *qi_data; + unsigned short qi_count; }; /// Stores information about a remote map (for multi-mapserver setups). @@ -1030,6 +1045,8 @@ struct map_interface { void (*addblcell) (struct block_list *bl); void (*delblcell) (struct block_list *bl); int (*get_new_bonus_id) (void); + void (*add_questinfo) (int m, struct questinfo *qi); + bool (*remove_questinfo) (int m, struct npc_data *nd); }; struct map_interface *map; |