summaryrefslogtreecommitdiff
path: root/src/emap/craft.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-23 23:13:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-23 23:46:48 +0300
commit5a8d6081f975536713974eccd0ed2371c8909495 (patch)
tree8bcdc0bac7b815156a4af16ec5a3a7da731e21ce /src/emap/craft.h
parent44c32f2268b64fc44b4b5553efaf07021e6faea9 (diff)
downloadevol-hercules-5a8d6081f975536713974eccd0ed2371c8909495.tar.gz
evol-hercules-5a8d6081f975536713974eccd0ed2371c8909495.tar.bz2
evol-hercules-5a8d6081f975536713974eccd0ed2371c8909495.tar.xz
evol-hercules-5a8d6081f975536713974eccd0ed2371c8909495.zip
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.
Diffstat (limited to 'src/emap/craft.h')
-rw-r--r--src/emap/craft.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/craft.h b/src/emap/craft.h
index a579c20..41ee694 100644
--- a/src/emap/craft.h
+++ b/src/emap/craft.h
@@ -12,6 +12,8 @@
extern struct DBMap *craftvar_db;
+VECTOR_STRUCT_DECL(craft_ids, int);
+
struct skill_pair
{
int id;
@@ -37,5 +39,6 @@ void craft_dump(TBL_PC *sd, const int id);
void craft_delete(const int id);
struct craft_slot *craft_get_slot(const int id, const int slot);
bool craft_validate(TBL_PC *sd, const int id);
+int craft_find_entry(TBL_PC *sd, const int craftvar, const int flag);
#endif // EVOL_MAP_CRAFT