summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/item_db.conf26
1 files changed, 25 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 923983505..f34c168fd 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -12250,7 +12250,11 @@ item_db: (
Sell: 0
Weight: 40
Script: <"
-
+ if (!countitem(RecipeBook)) {
+ getitem AlchemyBlueprintA, 1;
+ dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+ end;
+ }
.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
if (.@seed < 100)
@@ -12270,6 +12274,11 @@ item_db: (
Sell: 0
Weight: 40
Script: <"
+ if (!countitem(RecipeBook)) {
+ getitem AlchemyBlueprintB, 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.
@@ -12292,6 +12301,11 @@ item_db: (
Sell: 0
Weight: 40
Script: <"
+ if (!countitem(RecipeBook)) {
+ getitem AlchemyBlueprintC, 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.
@@ -12314,6 +12328,11 @@ item_db: (
Sell: 0
Weight: 40
Script: <"
+ if (!countitem(RecipeBook)) {
+ getitem AlchemyBlueprintD, 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.
@@ -12336,6 +12355,11 @@ item_db: (
Sell: 0
Weight: 40
Script: <"
+ if (!countitem(RecipeBook)) {
+ getitem AlchemyBlueprintE, 1;
+ dispbottom l("You need a @@ to use this.", getitemlink(RecipeBook));
+ end;
+ }
.@seed=rand(0, 10000)-BaseLevel-readparam(bLuk);
// 30% to below + current.