From 96dccdcc860ecedb88626ad2baa58c164b73a00e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Apr 2020 14:37:37 -0300 Subject: Change rule about the chests RNG. Kamelot Difficulty now plays an important role on this. If average level below 100: No Mylarin, no 1M GP in Housing Credits. Also, the real chance of the good loot is 2% + 0.01% per average level. It'll only be 3%, at average level 100. (Unmetered) --- npc/042-5/ctrl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/042-5/ctrl.txt b/npc/042-5/ctrl.txt index e76efb24c..f334dfba6 100644 --- a/npc/042-5/ctrl.txt +++ b/npc/042-5/ctrl.txt @@ -145,10 +145,10 @@ function script KamelotTreasure { getitem KamelotKey, 1; .@key=true; } - .@r=rand2(10000); + .@r=rand2(10000)-$KAMELOT_MX[.@g]+100; // Select treasure list - if (.@r == 0) // 0.01% total, 0.025% each + if (.@r <= 0) // 0.01% total, 0.025% each .@loot=any(MylarinDust, SupremeGift, HousingLetterIII, TimeFlask); else if (.@r < 300) // 0.3% each .@loot=any(MagicApple, PrismGift, EquipmentBlueprintD, ChampionshipBow, Halberd, AncientShield, AncientSword, Setzer, MercBoxD, Shemagh); -- cgit v1.2.3-70-g09d2