summaryrefslogtreecommitdiff
path: root/npc/items/miscrecipes.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-15 14:08:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-15 14:08:37 -0300
commit7c4d0ee7c35968d2f23388849cffb64581acbb91 (patch)
tree01973a124ae4813dbc58d0c2dcc4f20a0b5e721f /npc/items/miscrecipes.txt
parent5ad1bfdd36c27709073434a3c19935b559c8fcb5 (diff)
downloadserverdata-7c4d0ee7c35968d2f23388849cffb64581acbb91.tar.gz
serverdata-7c4d0ee7c35968d2f23388849cffb64581acbb91.tar.bz2
serverdata-7c4d0ee7c35968d2f23388849cffb64581acbb91.tar.xz
serverdata-7c4d0ee7c35968d2f23388849cffb64581acbb91.zip
Template for Terranite Armor blueprint.
Boost Alchemy recipe products - the pots are already good, so boost production
Diffstat (limited to 'npc/items/miscrecipes.txt')
-rw-r--r--npc/items/miscrecipes.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/npc/items/miscrecipes.txt b/npc/items/miscrecipes.txt
new file mode 100644
index 000000000..fa35b76ef
--- /dev/null
+++ b/npc/items/miscrecipes.txt
@@ -0,0 +1,38 @@
+// TMW-2 script.
+// Author:
+// Jesusalva
+// Description:
+// More specific Recipe Books in TMW2
+
+// callfunc("TerraniteBlueprint")
+function script TerraniteBlueprint {
+ // Setup
+ array_push(.@recipes, CraftWoodenSword);
+ array_push(.@recipes, CraftWoodenSword);
+ array_push(.@recipes, CraftWoodenSword);
+ array_push(.@recipes, CraftWoodenSword);
+ array_push(.@recipes, CraftWoodenSword);
+
+ // Now you'll learn some recipe!
+ .@rcp=any_of(.@recipes);
+
+ // Double precision failsafe
+ if (RECIPES_EQUIPMENT[.@rcp])
+ .@rcp=any_of(.@recipes);
+
+ // Maybe you already knew it?
+ if (RECIPES_EQUIPMENT[.@rcp]) {
+ .@mpot=rand2(2000, 5000);
+ dispbottom l("It was a recipe you already knew... (+ @@ Mobpt)", .@mpot);
+ getexp (BaseLevel+JobLevel)*rand2(1,.@rarity), JobLevel+rand2(1,.@rarity);
+ // Give you some Monster Points to use with Intense Beard
+ // You do NOT need to be registered with Aidan for this.
+ Mobpt+=.@mpot;
+ } else {
+ dispbottom l("Learned a new recipe!");
+ RECIPES_EQUIPMENT[.@rcp]=true;
+ }
+ return;
+}
+
+