From 5c73de4a1710f79cb25d71381a3f51d34de36c34 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 4 Oct 2024 20:01:12 -0300 Subject: Hardcore Death - do not drop a single stack with all the money. --- npc/functions/hub.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2