diff options
author | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2022-12-03 09:12:59 +0100 |
---|---|---|
committer | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-19 08:30:25 +0100 |
commit | cfa4af6e3b5988801665e19726e410e813e5c290 (patch) | |
tree | 9cf394d7369f928e81e36f2abe471bb7a4f93b95 | |
parent | e4e75944676ce1ab67c23ca0f6f43c02d1362579 (diff) | |
download | serverdata-cfa4af6e3b5988801665e19726e410e813e5c290.tar.gz serverdata-cfa4af6e3b5988801665e19726e410e813e5c290.tar.bz2 serverdata-cfa4af6e3b5988801665e19726e410e813e5c290.tar.xz serverdata-cfa4af6e3b5988801665e19726e410e813e5c290.zip |
more work on treasure
-rw-r--r-- | npc/functions/treasure.txt | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index 7b3ba267b..419afaac6 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -47,18 +47,41 @@ function script TreasureBox { // There's also rares (14%), uncommons (36%) and commons (48%) .@ur_rate=min(15, (TREASURE_OPEN/10)); .@count=1; + // ultra rare if (.@t % 149 == 0 || .@r < .@ur_rate) .@loot=any(ScrollMagnusHealC, SaviorBlueprint, DivineApple, MercBoxE, ScrollSDragon, Shemagh, Shemagh, EverburnPowder, IridiumOre, PlatinumOre, SacredImmortalityPotion, MagicApple, ElixirOfLife); + // super rare else if (.@t % 50 == 0 || .@r < 200) .@loot=any(MercBoxC, ScrollMagnusHealB, SnakeEgg, LachesisBrew, ArrowAmmoBox, GoldPieces, SilverGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, Lockpicks, EquipmentBlueprintC, AlchemyBlueprintC, AlchemyBlueprintD, AncientBlueprint, YerbaMate, JasmineTea, DeathPotion, SacredLifePotion, SacredManaPotion, BrokenWarpCrystal, PurificationPotion, GoldenApple); + // rare else if (.@r < 1600 || .@t == 0) - .@loot=any(MercBoxB, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, PrecisionPotion, CoinBag, DodgePotion, MoveSpeedPotion, Dagger, Lockpicks, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea); + .@loot=any(MercBoxB, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, PrecisionPotion, CoinBag, DodgePotion, MoveSpeedPotion, Dagger, Lockpicks, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea, Curshroom); + if (.@loot == Coal) + .@count=rand(6, 10); + else if (.@loot == Lockpicks) + .@count=rand(1, 3); + // uncommon else if (.@r < 5200) .@loot=any(MercBoxA, SmokeGrenade, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, Lockpicks, Beer, StrangeCoin, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, DungeonMap, IcedBottle); - if (.@loot == "Coal" && rand(0,1) == 1) - .@count=5; + if (.@loot == Coal || .@loot == Potatoz) + .@count=rand(4, 6); + else if (.@loot == LeatherPatch) + .@count=rand(3, 4); + else if (.@loot == StrangeCoin) + .@count=rand(1, 10); + else if (.@loot == IcedBottle) + .@count=rand(2, 3); + // common else - .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Curshroom, SmallMushroom, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA); + .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA); + if (.@loot == Coal || .@loot == EmptyBottle) + .@count=rand(1, 3); + else if (.@loot == Chagashroom || .@loot == Plushroom) + .@count=rand(5, 10); + else if (.@loot == RawLog || .@loot == EmptyBox) + .@count=rand(2, 4); + else if (.@loot == LeatherPatch) + .@count=rand(1, 2); inventoryplace .@loot, .@count; @@ -72,7 +95,7 @@ function script TreasureBox { if ($EVENT$ == "Expo") FYE_Expo(); } else { - mesc l("You find @@ inside!", l("nothing")); + mesc l("Unfortunately, you find %s inside.", l("nothing")); } return; } |