diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/miscrecipes.txt | 38 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
2 files changed, 39 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; +} + + diff --git a/npc/scripts.conf b/npc/scripts.conf index e02e97f6c..5682be9d8 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -79,6 +79,7 @@ "npc/items/lofteleporter.txt", "npc/items/maps.txt", "npc/items/mercenary.txt", +"npc/items/miscrecipes.txt", "npc/items/shovel.txt", "npc/items/teleporter.txt", "npc/items/valentine.txt", |