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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// 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 it!");
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;
}
/////////////////////////////////////////////////////////////////////////////////
// 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 it!");
return;
}
// Current: 3x Mylarin & 2x Sunny Crystal (can be cheated for 2)
// Needed: 3x Mylarin & 2x Sunny Crystal
// 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, CraftSaviorHelmet); // 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);
// Triple precision failsafe
if (RECIPES_EQUIPMENT[.@rcp])
.@rcp=any_of(.@recipes);
// Maybe you already knew it?
if (RECIPES_EQUIPMENT[.@rcp]) {
.@mpot=rand2(40000, 80000);
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;
}
|