summaryrefslogtreecommitdiff
path: root/npc/custom/eAAC_Scripts
diff options
context:
space:
mode:
authoreaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-29 12:48:44 +0000
committereaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-29 12:48:44 +0000
commit2fa4f33d36dec1e8ed3fc324fcf4d8df19dcaec5 (patch)
tree7c220d60cef7f634478b12d157c8be6112058e89 /npc/custom/eAAC_Scripts
parent3bc63f72702b2863f1439e69c6b5add1009a02c5 (diff)
downloadhercules-2fa4f33d36dec1e8ed3fc324fcf4d8df19dcaec5.tar.gz
hercules-2fa4f33d36dec1e8ed3fc324fcf4d8df19dcaec5.tar.bz2
hercules-2fa4f33d36dec1e8ed3fc324fcf4d8df19dcaec5.tar.xz
hercules-2fa4f33d36dec1e8ed3fc324fcf4d8df19dcaec5.zip
* eAAC update. Will put in Dj-Yhn's Donation Girl (TXT) as soon as boards are back up...[erKURITA]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8529 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/eAAC_Scripts')
-rw-r--r--npc/custom/eAAC_Scripts/banker.txt23
1 files changed, 21 insertions, 2 deletions
diff --git a/npc/custom/eAAC_Scripts/banker.txt b/npc/custom/eAAC_Scripts/banker.txt
index 29dcdccb1..5fecb827b 100644
--- a/npc/custom/eAAC_Scripts/banker.txt
+++ b/npc/custom/eAAC_Scripts/banker.txt
@@ -48,6 +48,13 @@
//| in the db was Platinum while the script had Silver, so well,
//| there you have it. No more silver coins, thanks to you :)
+//| Revision:
+//| v.2.6: Added another Weight check to prevent coins from dropping
+//| to the ground because A) Too many coins (more than 30,000 ea)
+//| B) Your current weight + total coins weight were greater than
+//| your max weight, causing them to drop due to "over-weight".
+//| Thanks to Niktout for spotting it.
+
//| Upcomming possible updates:
//| v.3.0: Adding a refining system, so you can gather ore and the likes
//| to make your own coins. They will have a failure chance
@@ -177,7 +184,7 @@ L_ZenyCoin:
next;
if (MaxWeight*50/100 < Weight) {
if (MaxWeight*90/100 < Weight) {
- mes @npcname;
+ mes @npcname$;
mes "Sorry but you have more than 90% weight. Your coins might drop. I can't give you anything.";
next;
goto L_Menu;
@@ -230,6 +237,18 @@ L_ContinueZenyCoin:
L_Zenycheckout:
next;
+ if (((getiteminfo(getarg(0),6))*getarg(2)) > (MaxWeight-Weight)) {
+ mes @npcname$;
+ mes "Sorry, your max weight does not allow me to give you this much of zeny coins";
+ mes "Either choose another type of coins or a lower quantity, thanks";
+ close;
+ }
+ if (getarg(2) > 30000) {
+ mes @npcname$;
+ mes "Sorry, I can't give you more than 30,000 ea";
+ mes "Pick another coin type";
+ close;
+ }
set @itemid,getarg(0);
set @pricea,getarg(1)*getarg(2);
getitem @itemid,getarg(2);
@@ -416,4 +435,4 @@ L_Overzeny:
OnInit:
setitemscript 671,"{}";
end;
-}
+} \ No newline at end of file