diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-04 23:25:09 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-04 23:25:09 +0000 |
commit | 195dffc20af1fb32c7e4119988911b72955aeabc (patch) | |
tree | b60d2a5e72d64dc5fc21eb9ce0962631e774a4c9 /npc/merchants/milk_trader.txt | |
download | hercules-195dffc20af1fb32c7e4119988911b72955aeabc.tar.gz hercules-195dffc20af1fb32c7e4119988911b72955aeabc.tar.bz2 hercules-195dffc20af1fb32c7e4119988911b72955aeabc.tar.xz hercules-195dffc20af1fb32c7e4119988911b72955aeabc.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@2 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/merchants/milk_trader.txt')
-rw-r--r-- | npc/merchants/milk_trader.txt | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/npc/merchants/milk_trader.txt b/npc/merchants/milk_trader.txt new file mode 100644 index 000000000..6fb84e59c --- /dev/null +++ b/npc/merchants/milk_trader.txt @@ -0,0 +1,63 @@ +//===== eAthena Script =======================================
+//= Milk Trader
+//===== By: ==================================================
+//= kobra_k88
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 7.15 +
+//===== Description: =========================================
+//= trades bottles for milk
+//===== Additional Comments: =================================
+//= Fully working
+//= 1.1 Negative input bug fixed [Lupus]
+//============================================================
+
+
+
+
+// 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.";
+ 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;
+
+ sL_GetMilk:
+ if(countitem(713)<1 || Zeny<15) goto M_End;
+ getitem 519,1;
+ delitem 713,1;
+ set Zeny, Zeny - 15;
+ goto sL_GetMilk;
+
+ M_1:
+ set @INPUT,0;
+ input @INPUT;
+ if(@INPUT < 1 ) goto M_End;
+ if(countitem(713) < @INPUT) goto L_NoBottle;
+ if(Zeny < (@INPUT*15)) goto L_NoZeny;
+ getitem 519, @INPUT;
+ delitem 713, @INPUT;
+ set Zeny, Zeny - (@INPUT*15);
+ goto M_End;
+
+ M_End:
+ mes "[Milk Trader]";
+ mes "Come back anytime.";
+ close;
+
+ L_NoBottle:
+ mes "[Milk Trader]";
+ mes "Ok, empty bottle please! Empty Bottle!!";
+ mes "... Aww.. you don't have enough...?";
+ close;
+
+ L_NoZeny:
+ mes "[Milk Trader]";
+ mes "You need more money.";
+ close;
+}
|