diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-23 23:13:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-23 23:46:48 +0300 |
commit | 5a8d6081f975536713974eccd0ed2371c8909495 (patch) | |
tree | 8bcdc0bac7b815156a4af16ec5a3a7da731e21ce /src/emap/init.c | |
parent | 44c32f2268b64fc44b4b5553efaf07021e6faea9 (diff) | |
download | plugin-5a8d6081f975536713974eccd0ed2371c8909495.tar.gz plugin-5a8d6081f975536713974eccd0ed2371c8909495.tar.bz2 plugin-5a8d6081f975536713974eccd0ed2371c8909495.tar.xz plugin-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/init.c')
-rw-r--r-- | src/emap/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index ddff203..e628fb3 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -105,6 +105,7 @@ HPExport void plugin_init (void) addScriptCommand("initcraft", "s", initCraft); addScriptCommand("dumpcraft", "i", dumpCraft); addScriptCommand("deletecraft", "i", deleteCraft); + addScriptCommand("findcraftentry", "ii", findCraftEntry); addScriptCommand("getcraftslotid", "ii", getCraftSlotId); addScriptCommand("getcraftslotamount", "ii", getCraftSlotAmount); addScriptCommand("validatecraft", "i", validateCraft); |