summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script.c')
-rw-r--r--src/emap/script.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 1df6d0a..69c1f4e 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -1952,6 +1952,12 @@ BUILDIN(findCraftEntry)
return true;
}
+BUILDIN(useCraft)
+{
+ getSDReturn(0)
+ return craft_use(sd, script_getnum(st, 2));
+}
+
BUILDIN(getInvIndexLink)
{
getSDReturnS("")