diff options
author | gumi <git@gumi.ca> | 2020-08-13 19:43:17 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-08-13 20:36:29 -0400 |
commit | 8d5c27666a7034d5e9b2f0d774fbde9153cdb678 (patch) | |
tree | a371444d87a918107167daf6c57e7176eba657ef | |
parent | 2ae337d01c43dbc24722dd3159f46b1031f97f98 (diff) | |
download | serverdata-8d5c27666a7034d5e9b2f0d774fbde9153cdb678.tar.gz serverdata-8d5c27666a7034d5e9b2f0d774fbde9153cdb678.tar.bz2 serverdata-8d5c27666a7034d5e9b2f0d774fbde9153cdb678.tar.xz serverdata-8d5c27666a7034d5e9b2f0d774fbde9153cdb678.zip |
add the ArtisTankTop recipe
Co-authored-by: Christopher Chay <2@hisfootsteps.net>
-rw-r--r-- | db/craft_db.conf | 25 | ||||
-rw-r--r-- | npc/items/recipes.txt | 7 |
2 files changed, 32 insertions, 0 deletions
diff --git a/db/craft_db.conf b/db/craft_db.conf index f13d1015..e457dab1 100644 --- a/db/craft_db.conf +++ b/db/craft_db.conf @@ -180,6 +180,31 @@ Boots: 700 --> 799 } Priority: 10 }, +{ + Id: 101 + Name: "CraftArtisTankTop" + Flag: "CRAFT_TAILORING" + ReturnCode: 1302 + SourceItems: + ( + { + CottonCloth: 10 + PiouFeathers: 5 + Moss: 5 + Knife: 1 + }, + ) + CreateItems: + ( + { + ArtisTankTop: 1 + }, + ) + RequiredItems: { + RecipeBook: 1 + } + Priority: 11 +}, /************************* LEG ARMOR (PANTS) *********************************** ******************************************************************************** diff --git a/npc/items/recipes.txt b/npc/items/recipes.txt index cfa45251..0e055a49 100644 --- a/npc/items/recipes.txt +++ b/npc/items/recipes.txt @@ -14,6 +14,8 @@ function script showRecipe { if (getarg(1)) { mes l(".:: %s Recipe ::.", getitemlink(getarg(1))); + // TODO: add a script buildin to fetch recipe requirements + for (.@i=2;.@i < getargcount(); .@i++) { mesc l("%d/%d %s", countitem(getarg(.@i+1)), getarg(.@i), getitemlink(getarg(.@i+1))); .@i++; @@ -119,6 +121,11 @@ function read_tailoring { 15, PiouFeathers, 5, RattoTail, 1, Knife); + showRecipe(CraftArtisTankTop, ArtisTankTop, + 10, CottonCloth, + 5, PiouFeathers, + 5, Moss, + 1, Knife); return; } |