summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-25 21:59:55 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-25 21:59:55 +0000
commit7d88aa25325ec2013323a31b606525edc02553ef (patch)
tree49111b5c11e3bf4cf3d464631d7506aa14a3c5b3 /src/map/script.c
parentdbf2fd23c69608ead75e968d5ede7e5ebf9fcea9 (diff)
downloadhercules-7d88aa25325ec2013323a31b606525edc02553ef.tar.gz
hercules-7d88aa25325ec2013323a31b606525edc02553ef.tar.bz2
hercules-7d88aa25325ec2013323a31b606525edc02553ef.tar.xz
hercules-7d88aa25325ec2013323a31b606525edc02553ef.zip
Added correct packets for the food item creation window.
Added script command 'cooking' to activate this window and applied it to the 5 cooking kit items. Renamed the cooking quest variable to cooking_q to avoid a naming collision with the new script command. (You need to manually rename all occurences of this variable in your txt-savefile/sql-database if you want to preserve player progress.) The code still relies on the messy skill_produce_mix logic and still uses completely custom equations. To be fixed in a separate commit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13628 54d463be-8e91-2dee-dedb-b68131a5f0ec
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*"),