diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-26 18:09:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-26 18:09:15 -0300 |
commit | 2ec4476b88f0d789581395e588fe8d469a773ec7 (patch) | |
tree | 56fd7d4834cba5b6a3d104d4a4c0bda5e1f15b05 /db/re/item_db.conf | |
parent | 759a9f9a60b2f9ae058da3fc9f72db78989dc013 (diff) | |
download | serverdata-2ec4476b88f0d789581395e588fe8d469a773ec7.tar.gz serverdata-2ec4476b88f0d789581395e588fe8d469a773ec7.tar.bz2 serverdata-2ec4476b88f0d789581395e588fe8d469a773ec7.tar.xz serverdata-2ec4476b88f0d789581395e588fe8d469a773ec7.zip |
Check if you have a Recipe Book before allowing to learn any recipe
Diffstat (limited to 'db/re/item_db.conf')
-rw-r--r-- | db/re/item_db.conf | 26 |
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. |