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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index a7aac63..9d89fc7 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -532,7 +532,7 @@ BUILDIN(shop)
BUILDIN(getItemLink)
{
- struct item_data *i_data;
+ struct item_data *i_data = NULL;
char *item_name;
int item_id = 0;
@@ -1941,6 +1941,16 @@ BUILDIN(validateCraft)
return true;
}
+BUILDIN(findCraftEntry)
+{
+ getSDReturn(-1)
+ const int id = craft_find_entry(sd,
+ script_getnum(st, 2),
+ script_getnum(st, 3));
+ script_pushint(st, id);
+ return true;
+}
+
BUILDIN(getInvIndexLink)
{
getSDReturnS("")