summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 82c8079d1..8e2d54f3b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7246,6 +7246,22 @@ BUILDIN_FUNC(produce)
return 0;
}
/*==========================================
+ *
+ *------------------------------------------*/
+BUILDIN_FUNC(cooking)
+{
+ int trigger;
+ TBL_PC* sd;
+
+ sd = script_rid2sd(st);
+ if( sd == NULL )
+ return 0;
+
+ trigger=script_getnum(st,2);
+ clif_cooking_list(sd, trigger);
+ return 0;
+}
+/*==========================================
* NPCでペット作る
*------------------------------------------*/
BUILDIN_FUNC(makepet)
@@ -13716,6 +13732,7 @@ struct script_function buildin_func[] = {
BUILDIN_DEF(guildopenstorage,"*"),
BUILDIN_DEF(itemskill,"vi"),
BUILDIN_DEF(produce,"i"),
+ BUILDIN_DEF(cooking,"i"),
BUILDIN_DEF(monster,"siisii*"),
BUILDIN_DEF(getmobdrops,"i"),
BUILDIN_DEF(areamonster,"siiiisii*"),