summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-08-13 22:49:14 -0400
committergumi <git@gumi.ca>2020-08-13 22:49:14 -0400
commit675ee9cb27ee1ef50d43d3af60e12f80d427166c (patch)
tree3b2b88acd3119fffbe278848d8b243f9c1ca2b78
parentd45df2527219f044265f8db7e8f7f7889f56a3a2 (diff)
downloadserverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.gz
serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.bz2
serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.xz
serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.zip
add the WarlordArmor recipe
Co-authored-by: Christopher Chay <2@hisfootsteps.net>
-rw-r--r--db/craft_db.conf26
-rw-r--r--npc/items/recipes.txt17
2 files changed, 37 insertions, 6 deletions
diff --git a/db/craft_db.conf b/db/craft_db.conf
index 2e9a0876..f2c22fa2 100644
--- a/db/craft_db.conf
+++ b/db/craft_db.conf
@@ -585,6 +585,32 @@ Boots: 700 --> 799
}
Priority: 61
},
+{
+ Id: 117
+ Name: "CraftWarlordArmor"
+ Flag: 16
+ ReturnCode: 1309
+ SourceItems:
+ (
+ {
+ RotoniumIngot: 11
+ SilverIngot: 20
+ Coal: 50
+ Dagger: 1
+ },
+ )
+ CreateItems:
+ (
+ {
+ WarlordArmor: 1
+ },
+ )
+ RequiredItems: {
+ RecipeBook: 1
+ }
+ Priority: 70
+},
+
/************************* LEG ARMOR (PANTS) ***********************************
********************************************************************************
diff --git a/npc/items/recipes.txt b/npc/items/recipes.txt
index 4a9d0bad..b500bbf2 100644
--- a/npc/items/recipes.txt
+++ b/npc/items/recipes.txt
@@ -14,7 +14,7 @@ function script showRecipe {
if (startswith(.@const$, "Craft")) {
// infer the item constant from the craft constant
.@recipe = getarg(0);
- .@item = string_to_data(substr(5, getstrlen(.@const$) - 5));
+ .@item = string_to_data(substr(.@const$, 5, getstrlen(.@const$) - 5));
} else {
// infer the craft constant from the item constant
.@recipe = string_to_data(sprintf("Craft%s", .@const$));
@@ -160,6 +160,16 @@ function read_smithery {
40, CottonCloth,
20, Coal,
1, SharpKnife);
+ showRecipe(CraftLegionIronArmor, LegionIronArmor,
+ 30, IronIngot,
+ 6, RotoniumIngot,
+ 40, Coal,
+ 1, Dagger);
+ showRecipe(WarlordArmor,
+ 11, RotoniumIngot,
+ 20, SilverIngot,
+ 50, Coal,
+ 1, Dagger);
return;
}
@@ -225,11 +235,6 @@ function read_tailoring {
40, FluffyFur,
20, SilkCocoon,
1, Dagger);
- showRecipe(CraftLegionIronArmor, LegionIronArmor,
- 30, IronIngot,
- 6, RotoniumIngot,
- 40, Coal,
- 1, Dagger);
return;
}