summaryrefslogtreecommitdiff
path: root/npc/pre-re/merchants/falcon_flute.txt
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-08 19:30:07 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-08 19:30:07 +0000
commit31825ccc2dde034a218d9ad466dd721c40b5651d (patch)
tree961b976e45988f7f7158d33b3f11a18688f34b1f /npc/pre-re/merchants/falcon_flute.txt
parent22c75b070526de8b103032f5bf13504af81e0095 (diff)
downloadhercules-31825ccc2dde034a218d9ad466dd721c40b5651d.tar.gz
hercules-31825ccc2dde034a218d9ad466dd721c40b5651d.tar.bz2
hercules-31825ccc2dde034a218d9ad466dd721c40b5651d.tar.xz
hercules-31825ccc2dde034a218d9ad466dd721c40b5651d.zip
Okie ladies and gentleman if this commit breaks anything it's jman's and maki's fault, yes, blame them.
Fixing pre-re / re npc support, moving /config/ folder to src root so other servers may also make use of the #define renewal dir and other stuff. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16382 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/pre-re/merchants/falcon_flute.txt')
-rw-r--r--npc/pre-re/merchants/falcon_flute.txt123
1 files changed, 123 insertions, 0 deletions
diff --git a/npc/pre-re/merchants/falcon_flute.txt b/npc/pre-re/merchants/falcon_flute.txt
new file mode 100644
index 000000000..738275d73
--- /dev/null
+++ b/npc/pre-re/merchants/falcon_flute.txt
@@ -0,0 +1,123 @@
+//===== rAthena Script =======================================
+//= Falcon Flute Trader
+//===== By: ==================================================
+//= Masao
+//= Credits to Muad_Dib for the translation & Ziu for the
+//= Item ID of the Falcon Flute.
+//===== Current Version: =====================================
+//= 1.0
+//===== Compatible With: =====================================
+//= rAthena
+//===== Description: =========================================
+//= An NPC which sells you a Falcon Flute so you're able to
+//= summon a Falcon wherever you are.
+//===== Additional Comments: =================================
+//= 1.0 First Version. [Masao]
+//= 1.1 Added Baby Hunter and Baby Ranger check. bugreport:5728 [Masao]
+//============================================================
+
+- script Falcon Flute Trader::fflute -1,{
+
+ if (Class == Job_Baby_Hunter || Class == Job_Hunter || Class == Job_Sniper || Class == Job_Baby_Ranger || Class == Job_Ranger || Class == Job_Ranger_T) {
+ mes "[Falcon Flute Trader]";
+ mes "Do you need a Falcon?";
+ mes "With a magical Flute, you can call your Falcon from anywhere!";
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "It's marvelous, isn't it? Ha ha ha!";
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "Why I'm selling these Falcon Flutes?";
+ mes "It's because I have no clue how they work.";
+ mes "Ha ha ha!";
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "Of course, you'll need the Skill ^ff0000Falcon Mastery^000000.";
+ mes "I don't have the Skill, so I don't know how to handle Falcons.";
+ mes "As it's for now, I may never have a Falcon.";
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "But I can't give you one for free!";
+ mes "I have to make money since i also need to eat!";
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "If you need a Falcon Flute I will sell them for 12,500 zeny. Or is that too expensive?";
+ next;
+ if (Class == Job_Baby_Hunter || Class == Job_Hunter || Class == Job_Sniper) {
+ switch (select("Don't buy one:Buy a Falcon Flute")) {
+ case 1:
+ mes "[Falcon Flute Trader]";
+ mes "That's too bad. If you need one, come back!";
+ close;
+ case 2:
+ if (Zeny >= 12500) {
+ if (countitem(12848) >= 1) {
+ mes "[Falcon Flute Trader]";
+ mes "As i can see you already have an Falcon Flute!";
+ mes "Don't worry my young friend, once you've purchased the Falcon Flute you won't need to do so again";
+ mes "since the Falcon Flute won't disappear upon usage, isn't that great?";
+ close;
+ }
+ mes "[Falcon Flute Trader]";
+ mes "Here, take this Flute.";
+ mes "With it you can whistle for your Falcon from anywhere.";
+ set Zeny, Zeny - 12500;
+ getitem 12848,1; // Falcon Flute
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "Just a reminder.";
+ mes "You need the Skill ^ff0000Falcon Mastery^000000 in order to use it!";
+ close;
+ }
+ mes "[Falcon Flute Trader]";
+ mes "I'm sorry but you don't have enough money to buy a Falcon Flute, please come back when you have more money!";
+ close;
+ }
+ }
+ mes "[Falcon Flute Trader]";
+ mes "For Rangers however, I have a special Price of 10,000 zeny!";
+ next;
+ switch (select("Don't buy one:Buy a Falcon flute")) {
+ case 1:
+ mes "[Falcon Flute Trader]";
+ mes "That's too bad. If you need one, come back!";
+ close;
+ case 2:
+ if (Zeny >= 10000) {
+ if (countitem(12848) >= 1) {
+ mes "[Falcon Flute Trader]";
+ mes "As i can see you already have an Falcon Flute!";
+ mes "Don't worry my young friend, once you've purchased the Falcon Flute you won't need to do so again";
+ mes "since the Falcon Flute won't disappear upon usage, isn't that great?";
+ close;
+ }
+ mes "[Falcon Flute Trader]";
+ mes "Here take this Flute.";
+ mes "With it you can whistle for your Falcon from anywhere.";
+ set Zeny, Zeny - 10000;
+ getitem 12848,1; // Falcon Flute
+ next;
+ mes "[Falcon Flute Trader]";
+ mes "Just a reminder.";
+ mes "You need the Skill ^ff0000Falcon Mastery^000000 in order to use it!";
+ close;
+ }
+ mes "[Falcon Flute Trader]";
+ mes "I'm sorry but you don't have enough money to buy a Falcon Flute, please come back when you have more money!";
+ close;
+ }
+ }
+ if (Class == Job_Baby_Archer || Class == Job_Archer) {
+ mes "[Falcon Flute Trader]";
+ mes "Hello young one!";
+ mes "Currently i can't help you,";
+ mes "but why don't you return to me when you've become an great Hunter and learned how to handle Falcons properly?";
+ close;
+ }
+ mes "[Falcon Flute Trader]";
+ mes "Isn't it a beautiful Day today?";
+ close;
+}
+
+hu_in01,386,306,3 duplicate(fflute) Falcon Flute Trader#fft 51
+pay_arche,91,134,3 duplicate(fflute) Falcon Flute Trader#fft2 51