diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-05 22:37:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-05 22:37:01 -0300 |
commit | 1ab79902ee0b9d27e6c806caf7691f17eadde2ff (patch) | |
tree | 2eec147e140f19e6aa9292a3907d4a3cc1b8d247 /npc/functions | |
parent | 72462988da7a4899db3820adb7f4a8b128ad5fdd (diff) | |
download | serverdata-1ab79902ee0b9d27e6c806caf7691f17eadde2ff.tar.gz serverdata-1ab79902ee0b9d27e6c806caf7691f17eadde2ff.tar.bz2 serverdata-1ab79902ee0b9d27e6c806caf7691f17eadde2ff.tar.xz serverdata-1ab79902ee0b9d27e6c806caf7691f17eadde2ff.zip |
The first treasure chest you open will give you a tier 2 or 3 reward.
Tier 1, 4 or 5 rewards aren't possible. Tier 1 is highest reward tier.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/treasure.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index 16f607e30..4955e0087 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -27,7 +27,7 @@ function script TreasureBox { if (!.@empty) { TREASURE_OPEN=TREASURE_OPEN+1; .@t=TREASURE_OPEN; - .@r=rand(0,10000); + .@r=rand(0,10000)-readparam(bLuk); // Select treasure list // You're warranted an ultra rare (0.1%) every 149 open chests @@ -38,7 +38,7 @@ function script TreasureBox { .@loot=any(AtroposMixture, GoldenApple, DivineApple, MercBoxA, SilverGift, Shemagh, EverburnPowder, IridiumOre, PlatinumOre); else if (.@t % 50 == 0 || .@r < 100) .@loot=any(Grenade, SnakeEgg, LachesisBrew, ArrowAmmoBox, CoinBag, BronzeGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder); - else if (.@r < 1000) + else if (.@r < 1000 || .@t == 0) .@loot=any(MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, Dagger, StrangeCoin, IronOre, CopperOre); else if (.@r < 4000) .@loot=any(Croconut, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, StrangeCoin); |