summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-10 19:36:52 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-10 19:36:52 -0300
commitb743ded002b1b4412fc3709cbbb6fac02d0d6a71 (patch)
tree39d847b2d07fa1b19e90f6b08b5a4a375209f1ca /npc/items
parent372da94a0ac7d44ccb96a63cf648b4a34186bb8e (diff)
downloadserverdata-b743ded002b1b4412fc3709cbbb6fac02d0d6a71.tar.gz
serverdata-b743ded002b1b4412fc3709cbbb6fac02d0d6a71.tar.bz2
serverdata-b743ded002b1b4412fc3709cbbb6fac02d0d6a71.tar.xz
serverdata-b743ded002b1b4412fc3709cbbb6fac02d0d6a71.zip
Prepare for Legendary Blueprint
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/miscrecipes.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/npc/items/miscrecipes.txt b/npc/items/miscrecipes.txt
index 2b3d3f391..1dee0861f 100644
--- a/npc/items/miscrecipes.txt
+++ b/npc/items/miscrecipes.txt
@@ -42,5 +42,46 @@ function script TerraniteBlueprint {
}
return;
}
+/////////////////////////////////////////////////////////////////////////////////
+
+// callfunc("LegendaryBlueprint")
+function script LegendaryBlueprint {
+ // Unlucky roll (0.25%)
+ if (rand2(2500) < 1) {
+ getitem AncientBlueprint, 1;
+ dispbottom l("Wait a minute... This is written in Mananese! I can't read!");
+ return;
+ }
+
+ // Setup
+ array_push(.@recipes, CraftSkypiercer); // Weapon: Sky Piercer
+ array_push(.@recipes, CraftSaviorShield); // Shield: Savior Shield
+ //array_push(.@recipes, CraftSaviorArmor); // Savior Armor
+ //array_push(.@recipes, CraftSaviorPants); // Savior Pants
+ //array_push(.@recipes, CraftSaviorBoots); // Savior Boots
+ //array_push(.@recipes, CraftSavior); // Savior Helmet
+ //array_push(.@recipes, CraftSavior); // Savior Gloves (?)(X)
+
+ // 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(200000, 500000);
+ dispbottom l("It was a recipe you already knew... (+ @@ Mobpt)", .@mpot);
+ getexp rand(100000, 200000), rand(10000, 25000);
+ // 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;
+}