diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-10-04 20:01:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-10-04 20:01:12 -0300 |
commit | 5c73de4a1710f79cb25d71381a3f51d34de36c34 (patch) | |
tree | 57866ed0e3449714029110e814cedf8e10cabd79 | |
parent | af0d4811c739fa2675cb70c0b485bf493e083efd (diff) | |
download | serverdata-5c73de4a1710f79cb25d71381a3f51d34de36c34.tar.gz serverdata-5c73de4a1710f79cb25d71381a3f51d34de36c34.tar.bz2 serverdata-5c73de4a1710f79cb25d71381a3f51d34de36c34.tar.xz serverdata-5c73de4a1710f79cb25d71381a3f51d34de36c34.zip |
Hardcore Death - do not drop a single stack with all the money.
-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 |