diff options
author | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2022-09-15 03:40:48 +0200 |
---|---|---|
committer | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-19 08:30:25 +0100 |
commit | e4e75944676ce1ab67c23ca0f6f43c02d1362579 (patch) | |
tree | 17b3fc874d1e1d068722799f7b4bf8b1c4b2d474 | |
parent | ab696a4ea55c900645023b116b0bffeefed3243f (diff) | |
download | serverdata-e4e75944676ce1ab67c23ca0f6f43c02d1362579.tar.gz serverdata-e4e75944676ce1ab67c23ca0f6f43c02d1362579.tar.bz2 serverdata-e4e75944676ce1ab67c23ca0f6f43c02d1362579.tar.xz serverdata-e4e75944676ce1ab67c23ca0f6f43c02d1362579.zip |
treasure chest tweaks part 1
-rw-r--r-- | npc/functions/treasure.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index d9bc42b81..7b3ba267b 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -46,20 +46,23 @@ function script TreasureBox { // You're warranted a super rare (2%) every 50 open chests // There's also rares (14%), uncommons (36%) and commons (48%) .@ur_rate=min(15, (TREASURE_OPEN/10)); + .@count=1; if (.@t % 149 == 0 || .@r < .@ur_rate) .@loot=any(ScrollMagnusHealC, SaviorBlueprint, DivineApple, MercBoxE, ScrollSDragon, Shemagh, Shemagh, EverburnPowder, IridiumOre, PlatinumOre, SacredImmortalityPotion, MagicApple, ElixirOfLife); 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); else if (.@r < 1600 || .@t == 0) - .@loot=any(MercBoxB, MoubooSteak, SmokeGrenade, ClothoLiquor, Coal, RedPlushWine, PrecisionPotion, CoinBag, DodgePotion, MoveSpeedPotion, Dagger, 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); else if (.@r < 5200) - .@loot=any(MercBoxA, Croconut, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, Beer, StrangeCoin, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, DungeonMap, IcedBottle); + .@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; else - .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Plushroom, Chagashroom, RawLog, LeatherPatch, BugLeg, ScorpionStinger, SmallKnife, ChamomileTea, EquipmentBlueprintA); + .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Curshroom, SmallMushroom, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA); - inventoryplace .@loot, 1; - mesc l("You find @@ inside!", getitemlink(.@loot)); + inventoryplace .@loot, .@count; + mesc l("You find @@ x@@ inside!", getitemlink(.@loot), .@count); getitem .@loot, 1; // Get Monster points for treasure hunting (20% from job level) if (MPQUEST) |