From 1eea738108f1b4db302d69908413f7b13916fb61 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Sat, 1 Jun 2019 00:16:05 -0300
Subject: Equipment Blueprints

---
 db/re/item_db.conf | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 129 insertions(+)

(limited to 'db')

diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 890c80974..c4f7b8b18 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -12451,6 +12451,135 @@ item_db: (
 	">
 },
 
+{
+	Id: 7460
+	AegisName: "EquipmentBlueprintA"
+	Name: "Equipment Blueprint A"
+	Type: "IT_USABLE"
+	Buy: 0
+	Sell: 0
+	Weight: 40
+	Script: <"
+		if (!countitem(RecipeBook)) {
+			getitem EquipmentBlueprintA, 1;
+			dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+			end;
+		}
+		.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
+
+		if (.@seed < 100)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_INTERMEDIARY);
+		else if (.@seed < 2000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_BASIC | CRAFT_INTERMEDIARY);
+		else
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_BASIC);
+	">
+},
+{
+	Id: 7461
+	AegisName: "EquipmentBlueprintB"
+	Name: "Equipment Blueprint B"
+	Type: "IT_USABLE"
+	Buy: 0
+	Sell: 0
+	Weight: 40
+	Script: <"
+		if (!countitem(RecipeBook)) {
+			getitem EquipmentBlueprintB, 1;
+			dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+			end;
+		}
+		.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
+
+		// 1% to above, 19% to above + current, 10% to below + current.
+		if (.@seed < 100)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_ADVANCED);
+		else if (.@seed < 2000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_INTERMEDIARY | CRAFT_ADVANCED);
+		else if (.@seed < 3000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_BASIC | CRAFT_INTERMEDIARY);
+		else
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_INTERMEDIARY);
+	">
+},
+{
+	Id: 7462
+	AegisName: "EquipmentBlueprintC"
+	Name: "Equipment Blueprint C"
+	Type: "IT_USABLE"
+	Buy: 0
+	Sell: 0
+	Weight: 40
+	Script: <"
+		if (!countitem(RecipeBook)) {
+			getitem EquipmentBlueprintC, 1;
+			dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+			end;
+		}
+		.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
+
+		// 1% to above, 19% to above + current, 10% to below + current.
+		if (.@seed < 100)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_EXPERT);
+		else if (.@seed < 2000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_ADVANCED | CRAFT_EXPERT);
+		else if (.@seed < 3000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_INTERMEDIARY | CRAFT_ADVANCED);
+		else
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_ADVANCED);
+	">
+},
+{
+	Id: 7463
+	AegisName: "EquipmentBlueprintD"
+	Name: "Equipment Blueprint D"
+	Type: "IT_USABLE"
+	Buy: 0
+	Sell: 0
+	Weight: 40
+	Script: <"
+		if (!countitem(RecipeBook)) {
+			getitem EquipmentBlueprintD, 1;
+			dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+			end;
+		}
+		.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
+
+		// 1% to above, 19% to above + current, 10% to below + current.
+		if (.@seed < 100)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_MASTER);
+		else if (.@seed < 2000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_EXPERT | CRAFT_MASTER);
+		else if (.@seed < 3000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_ADVANCED | CRAFT_EXPERT);
+		else
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_EXPERT);
+	">
+},
+{
+	Id: 7464
+	AegisName: "EquipmentBlueprintE"
+	Name: "Equipment Blueprint E"
+	Type: "IT_USABLE"
+	Buy: 0
+	Sell: 0
+	Weight: 40
+	Script: <"
+		if (!countitem(RecipeBook)) {
+			getitem EquipmentBlueprintE, 1;
+			dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+			end;
+		}
+		.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
+
+		// 30% to below + current.
+		if (.@seed < 3000)
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_MASTER | CRAFT_EXPERT);
+		else
+			callfunc("MakeBlueprint", CRAFT_EQUIPMENT, CRAFT_MASTER);
+	">
+},
+
 
 // Mercenary boxsets and cards
 {
-- 
cgit v1.2.3-70-g09d2