diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-30 14:37:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-30 14:37:37 -0300 |
commit | 96dccdcc860ecedb88626ad2baa58c164b73a00e (patch) | |
tree | 479437f348b7e722ade8ab751203bf44470a6ed9 /npc | |
parent | 15e75f3b96e0e5e156b5511590f3d4d7d10d5912 (diff) | |
download | serverdata-96dccdcc860ecedb88626ad2baa58c164b73a00e.tar.gz serverdata-96dccdcc860ecedb88626ad2baa58c164b73a00e.tar.bz2 serverdata-96dccdcc860ecedb88626ad2baa58c164b73a00e.tar.xz serverdata-96dccdcc860ecedb88626ad2baa58c164b73a00e.zip |
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)
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); |