summaryrefslogtreecommitdiff
path: root/npc/merchants/icecream.txt
diff options
context:
space:
mode:
authordaegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-01 04:29:56 +0000
committerdaegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-01 04:29:56 +0000
commit8832adba3ec9df0f7f890154f69f0993b8d1d8e5 (patch)
tree0e73afe6a780abf29fe035301f1354f24762da7a /npc/merchants/icecream.txt
parentfa533907d49c7e288be33efb55fcb094f8e48591 (diff)
downloadhercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.gz
hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.bz2
hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.xz
hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.zip
Full npc folder reorganization. (I hope I didn't break anything D:)
-Now common scripts goes to the main npc folder, and pre-re-only/re-only ones goes to their respective folders. -NPCs with practically the same script but little differences have been left in the main folder and uses the command checkre() for the differences. -For those NPCs with different coordinates but same script, the script has been left in the main folder but the NPCs splitted as duplicates. -All pre-renewal files has been reverted back to their pre-renewal behavior. TODO: -Correct pre-re quest rewards. -Check for pre-re/re differences in mapflags. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16545 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/merchants/icecream.txt')
-rw-r--r--npc/merchants/icecream.txt86
1 files changed, 86 insertions, 0 deletions
diff --git a/npc/merchants/icecream.txt b/npc/merchants/icecream.txt
new file mode 100644
index 000000000..d04dbe08e
--- /dev/null
+++ b/npc/merchants/icecream.txt
@@ -0,0 +1,86 @@
+//===== rAthena Script =======================================
+//= Ice Cream Maker
+//===== By: ==================================================
+//= KOOK SWU, Kisuka
+//===== Current Version: =====================================
+//= 1.5
+//===== Compatible With: =====================================
+//= rAthena SVN
+//===== Description: =========================================
+//= A man makes you ice-cream
+//===== Additional Comments: =================================
+//= 1.1 Optimized, changed overlapping coords in Alberta [Lupus]
+//= 1.2 According to the patch, IceCream seller has been removed from Morocc [Lupus]
+//= 1.3 No more label menu and updated to match AEGIS script. [Kisuka]
+//= 1.4 Duplicates now spawn from floating NPCs. [L0ne_W0lf]
+//= 1.5 Fixed small checkweight issue. [Kisuka]
+//============================================================
+
+- script Ice Cream Maker::IceCreamer -1,{
+ mes "[Ice Cream Maker]";
+ mes "Fresh Ice Cream made with snow from Lutie!";
+ mes "Enjoy it now, it won't be on sale for long!";
+ mes "^3355FF100 Zeny^000000 Ice Cream,";
+ mes "Ice Cream!";
+ next;
+ if(select("Gimme Ice Cream!:Cancel Trade") == 2) {
+ mes "Are you sure you don't want any?";
+ mes "I won't be selling it for long,";
+ mes "and once I run out,";
+ mes "there won't be any more!!!";
+ close;
+ }
+ mes "[Ice Cream Maker]";
+ mes "Fresh Ice Cream made with snow from Lutie!";
+ mes "Everyone wants our delicious ice cream, ";
+ mes "but we have a limited amount,";
+ mes "so you can only purchase 5 at a time!!";
+ next;
+ while(1) {
+ input .@input;
+ if(.@input < 1) {
+ mes "[Ice Cream Maker]";
+ mes "If you don't want to buy any,";
+ mes "could you please let the next customer";
+ mes "make a purchase?";
+ mes "Thank you.";
+ close;
+ }
+ if(.@input > 5) {
+ mes "[Ice Cream Maker]";
+ mes "Ouch";
+ mes "You expect too much.";
+ mes "Dear customer,";
+ mes "If you eat more than 5 Ice creams,";
+ mes "If you might haveto make a lot of trips";
+ mes "to the bathroom tonight.";
+ next;
+ }
+ }
+ if(Zeny<.@input*100) {
+ mes "[Ice Cream Maker]";
+ mes "Dear customer, your wallet seems to be light.";
+ mes "Price is ^3355FF100 Zeny^000000 per ice cream.";
+ close;
+ }
+ if(checkweight(536,.@input) == 0) {
+ mes "[Ice Cream Maker]";
+ mes "Dear customer,you look like you're carrying a lot.";
+ mes "Ice Cream is fine,";
+ mes "but you must consider your weight";
+ mes "before making a purchase.";
+ close;
+ }
+ set Zeny,Zeny-100*.@input;
+ getitem 536,.@input; // Ice_Cream
+ close;
+}
+
+// Alberta
+alberta,120,45,2 duplicate(IceCreamer) Ice Cream Maker#1 85
+
+// Morroc Field
+moc_fild16,88,304,4 duplicate(IceCreamer) Ice Cream Maker#2 85
+
+// Morroc
+//morocc,160,144,4 duplicate(IceCreamer) Ice Cream Maker#3 85