From 2ec4476b88f0d789581395e588fe8d469a773ec7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 May 2019 18:09:15 -0300 Subject: Check if you have a Recipe Book before allowing to learn any recipe --- db/re/item_db.conf | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'db') 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. -- cgit v1.2.3-60-g2f50