diff options
-rw-r--r-- | npc/functions/hub.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 1137db76f..61be97d07 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -129,7 +129,12 @@ function script HUB_Logout { } else { // Meet your final demise! atcommand("@dropall"); - makeitem CoinBag, Zeny/500, .@mapa$, .@a, .@b; + .@bags = Zeny / 500; + for (.@i=0; .@i < .@bags; .@i++) { + .@val = rand2(1, .@bags); + makeitem CoinBag, .@val, .@mapa$, .@a, .@b; + .@i += .@val - 1; // Adjustment due to for loop + } Zeny=0; //resetlvl(2); // FIXME: Split the exp // TODO: Warp back to Candor or it'll be unplayable |