From 5a8d6081f975536713974eccd0ed2371c8909495 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Jan 2016 23:13:11 +0300 Subject: Add script function for find craft entry from db based on craft variable. New script command: findcraftentry CRAFTVAR, FLAG Where: CRAFTVAR - variable get from initcraft function. FLAG - flag related to npc. It allow search craft entries only with this flag. --- src/emap/craftconf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/emap/craftconf.h') diff --git a/src/emap/craftconf.h b/src/emap/craftconf.h index b9f4a73..b42c9d5 100644 --- a/src/emap/craftconf.h +++ b/src/emap/craftconf.h @@ -10,6 +10,8 @@ #include "emap/struct/itempair.h" +extern struct DBMap *craftconf_db; + VECTOR_STRUCT_DECL(craft_items_collection, struct item_pair); struct craft_db_inventory -- cgit v1.2.3-70-g09d2