diff options
-rw-r--r-- | npc/functions/treasure.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index d55caedc8..c6d9a70d5 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -31,7 +31,12 @@ function script TreasureBox { .@t=TREASURE_OPEN; .@r=rand(0,10000)-(readparam2(bLuk)*2); // Some chests may have different rates - .@r-=getarg(0, 0); + if (.@r > 1600) // UC and C (100 ~ 150% bonus) + .@r-=getarg(0, 0)+min((.@r-1600), getarg(0, 0)/2); + else if (.@r > 200) // Rare (100 ~ 120% bonus) + .@r-=getarg(0, 0)+min((.@r-300), getarg(0, 0)/5); // 300 to normalize + else if (.@r <= 200) // SR and UR (67% Bonus) + .@r-=getarg(0, 0)*2/3; // Select treasure list // You're warranted an ultra rare (0.1%) every 149 open chests |