diff options
-rw-r--r-- | npc/functions/hub.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 61be97d07..c56cb40b6 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -131,7 +131,7 @@ function script HUB_Logout { atcommand("@dropall"); .@bags = Zeny / 500; for (.@i=0; .@i < .@bags; .@i++) { - .@val = rand2(1, .@bags); + .@val = rand2(1, min(1000, .@bags)); makeitem CoinBag, .@val, .@mapa$, .@a, .@b; .@i += .@val - 1; // Adjustment due to for loop } |