summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2019-04-21 17:07:47 +0100
committerAsheraf <acheraf1998@gmail.com>2019-05-06 19:59:30 +0000
commitabe4b83a81c437d404aadea723165d98c33d462d (patch)
treee6b5eaeda12876358d6a00636d20bc311502f8ad /src/map/npc.h
parent403939af8bdb08e33f9b0a6613fe2e5e00bbea04 (diff)
downloadhercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.gz
hercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.bz2
hercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.xz
hercules-abe4b83a81c437d404aadea723165d98c33d462d.zip
Move questinfo data from map to npc_data
this will fix the issue where having multiple `questinfo()` blocks wont work properly
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index 0eb8befd1..2819cbd87 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -129,6 +129,7 @@ struct npc_data {
int spawn_timer;
} tomb;
} u;
+ VECTOR_DECL(struct questinfo) qi_data;
struct hplugin_data_store *hdata; ///< HPM Plugin Data Store
};
@@ -322,6 +323,7 @@ struct npc_interface {
void (*barter_delfromsql_sub) (const char *npcname, int itemId, int itemId2, int amount2);
bool (*db_checkid) (const int id);
void (*refresh) (struct npc_data* nd);
+ void (*questinfo_clear) (struct npc_data *nd);
/**
* For the Secure NPC Timeout option (check config/Secure.h) [RR]
**/