summaryrefslogtreecommitdiff
path: root/npc/042-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-01 19:01:09 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-01 19:01:09 -0300
commit4549676f02fd973e51852f295277b85617284804 (patch)
tree61d3e7b4613ae0b6f9ddc5b467953a870e33ce0e /npc/042-5
parent4182fe03b5004df3cab9d04d33bd28d8f8bae491 (diff)
downloadserverdata-4549676f02fd973e51852f295277b85617284804.tar.gz
serverdata-4549676f02fd973e51852f295277b85617284804.tar.bz2
serverdata-4549676f02fd973e51852f295277b85617284804.tar.xz
serverdata-4549676f02fd973e51852f295277b85617284804.zip
Refactor Guild Chest chance
Guild level is now factored (0.01%) and the Assigned Difficulty effect was doubled
Diffstat (limited to 'npc/042-5')
-rw-r--r--npc/042-5/ctrl.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/042-5/ctrl.txt b/npc/042-5/ctrl.txt
index b530ffd9d..fa02b8269 100644
--- a/npc/042-5/ctrl.txt
+++ b/npc/042-5/ctrl.txt
@@ -142,15 +142,15 @@ function script KamelotTreasure {
rentitem KamelotKey, 86400; // Ensure they expire after 24 hours
.@key=true;
}
- .@r=rand2(10000)-$KAMELOT_MX[.@g]+100;
+ .@r=100+rand2(10000)-($KAMELOT_MX[.@g]*2)-getguildlvl(.@g);
// Select treasure list
if (.@r <= 0) // 0.01% total, 0.025% each
.@loot=any(MylarinDust, SaviorBlueprint, SupremeGift, HousingLetterIII, TimeFlask, MercCard_EH);
else if (.@r < 330) // 0.3% each
- .@loot=any(MagicApple, PrismGift, EquipmentBlueprintD, DarkPulsar, Halberd, AncientShield, AncientSword, Setzer, MercBoxD, ScrollMagnusHealC, Shemagh);
+ .@loot=any(MagicApple, EquipmentBlueprintD, DarkPulsar, Halberd, AncientShield, AncientSword, Setzer, MercBoxD, ScrollMagnusHealC, Shemagh);
else
- .@loot=any(SacredImmortalityPotion, DivineApple, ArcmageBoxset, GoldenApple, MercBoxA, MercBoxB, MercBoxC, MoveSpeedPotion, AtroposMixture, EverburnPowder, IridiumOre, PlatinumOre, YerbaMate, SmokeGrenade, SnakeEgg, LachesisBrew, BoneAmmoBox, GoldPieces, SilverGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, EquipmentBlueprintC, AlchemyBlueprintC, AlchemyBlueprintD, AncientBlueprint, JasmineTea, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, HastePotion, CoinBag, StrengthPotion, Pearl, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea, Croconut, CelestiaTea, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, DwarvenSake, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, FatesPotion, CrazyRum, LightGreenDiamond, EarthPowder, WoodenLog, MysteriousBottle, FluoPowder, ChamomileTea, ScrollSCave); // > 70 options (~1% each)
+ .@loot=any(SacredImmortalityPotion, DivineApple, ArcmageBoxset, GoldenApple, MercBoxA, MercBoxB, MercBoxC, MoveSpeedPotion, AtroposMixture, EverburnPowder, IridiumOre, PlatinumOre, YerbaMate, SmokeGrenade, SnakeEgg, LachesisBrew, BoneAmmoBox, GoldPieces, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, EquipmentBlueprintC, AlchemyBlueprintC, AlchemyBlueprintD, AncientBlueprint, JasmineTea, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, HastePotion, CoinBag, StrengthPotion, Pearl, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea, Croconut, CelestiaTea, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, DwarvenSake, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, FatesPotion, CrazyRum, LightGreenDiamond, EarthPowder, WoodenLog, MysteriousBottle, FluoPowder, ChamomileTea, ScrollSCave); // > 70 options (~1% each)
mesc l("You find @@ inside!", getitemlink(.@loot));