blob: 2b3d3f39174c3d21bb6c6e9f9971b23b6a21bea2 (
plain) (
tree)
|
|
// TMW-2 script.
// Author:
// Jesusalva
// Description:
// More specific Recipe Books in TMW2
// callfunc("TerraniteBlueprint")
function script TerraniteBlueprint {
// Lucky 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, CraftRockKnife); // Weapon: Rock Knife
array_push(.@recipes, CraftTerraniteArmor); // TerraniteArmor
array_push(.@recipes, CraftTerranitePants); // TerranitePants
array_push(.@recipes, CraftTerraniteHelmet); // TerraniteHelmet
//array_push(.@recipes, CraftTerranite); // TerraniteGloves (?)(X)(TODO)
//array_push(.@recipes, CraftTerranite); // TerraniteBoots (?)(X)(TODO)
// 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;
}
|