diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-13 22:59:48 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-13 22:59:48 +0000 |
commit | c676642a63deb929ad52fa0593815700ef1b4b00 (patch) | |
tree | 5b28e0fe4367f074a0845555a3e7fcd8ae933ac1 /npc/merchants/milk_trader.txt | |
parent | fa34ab886bf65ea44c2771ed161cab7c06604740 (diff) | |
download | hercules-c676642a63deb929ad52fa0593815700ef1b4b00.tar.gz hercules-c676642a63deb929ad52fa0593815700ef1b4b00.tar.bz2 hercules-c676642a63deb929ad52fa0593815700ef1b4b00.tar.xz hercules-c676642a63deb929ad52fa0593815700ef1b4b00.zip |
zeny exploits fix (1 of ...)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@165 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/merchants/milk_trader.txt')
-rw-r--r-- | npc/merchants/milk_trader.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/npc/merchants/milk_trader.txt b/npc/merchants/milk_trader.txt index 6fb84e59c..54863f8e5 100644 --- a/npc/merchants/milk_trader.txt +++ b/npc/merchants/milk_trader.txt @@ -11,6 +11,7 @@ //===== Additional Comments: =================================
//= Fully working
//= 1.1 Negative input bug fixed [Lupus]
+//= 1.2 Raised the price to close zeny exploit [Lupus]
//============================================================
@@ -19,30 +20,30 @@ // Milk Trader -------------------------------------------------------------
prontera.gat,71,131,7 script Milk Trader 86,{
mes "[Milk Trader]";
- mes "If you bring me an empty bottle and 15 zeny, I will exchange it for 1 bottle of milk.";
+ mes "If you bring me an empty bottle and 20 Zeny, I will exchange it for 1 bottle of milk.";
next;
menu "-Exchange all empty bottles",M_0, "-Let me set the amount.",M_1, "-Cancel",M_End;
M_0:
if(countitem(713) < 1) goto L_NoBottle;
- if(Zeny < 15) goto L_NoZeny;
+ if(Zeny < 20) goto L_NoZeny;
sL_GetMilk:
- if(countitem(713)<1 || Zeny<15) goto M_End;
+ if(countitem(713)<1 || Zeny<20) goto M_End;
getitem 519,1;
delitem 713,1;
- set Zeny, Zeny - 15;
+ set Zeny, Zeny - 20;
goto sL_GetMilk;
M_1:
set @INPUT,0;
input @INPUT;
- if(@INPUT < 1 ) goto M_End;
+ if(@INPUT < 1 || @INPUT > 100) goto M_End;
if(countitem(713) < @INPUT) goto L_NoBottle;
- if(Zeny < (@INPUT*15)) goto L_NoZeny;
+ if(Zeny < (@INPUT*20)) goto L_NoZeny;
getitem 519, @INPUT;
delitem 713, @INPUT;
- set Zeny, Zeny - (@INPUT*15);
+ set Zeny, Zeny - (@INPUT*20);
goto M_End;
M_End:
|