blob: fa35b76efe76a3f1f5bcb52bcd6b961bd98e8787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
|