diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/042-5/ctrl.txt | 4 |
1 files 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); |