summaryrefslogtreecommitdiff
path: root/npc/merchants/splendide.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/splendide.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/splendide.txt')
-rw-r--r--npc/merchants/splendide.txt117
1 files changed, 117 insertions, 0 deletions
diff --git a/npc/merchants/splendide.txt b/npc/merchants/splendide.txt
new file mode 100644
index 000000000..b8d4f8f71
--- /dev/null
+++ b/npc/merchants/splendide.txt
@@ -0,0 +1,117 @@
+//===== rAthena Script =======================================
+//= Splendide Merchant
+//===== By: ==================================================
+//= rAthena dev team
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= rAthena SVN
+//===== Description: =========================================
+//= [Aegis Conversion]
+//= Splendide coin redemption NPC.
+//===== Additional Comments: =================================
+//= 1.0 First version
+//= 1.1 Fixed checkweight. [Gepard]
+//============================================================
+
+spl_in01,110,326,5 script Merchant of Splendide 439,{
+ if ((isequipped(2782) == 1) && (ep13_2_rhea == 100)) {
+ if (checkweight(1201,1) == 0) {
+ mes "[Merchant of Splendide]";
+ mes "It looks like you're carrying too many things.";
+ mes "Why not put some of your items in storage and come back?";
+ close;
+ }
+ mes "[Merchant of Splendide]";
+ mes "Hello.";
+ mes "What are you looking for?";
+ next;
+ switch(select("View item description:Buy Pinguicula's fruit Jam:Buy Luciola's Honey Jam:Buy Cornus' Tears:Do nothing")) {
+ case 1:
+ mes "[Merchant of Splendide]";
+ mes "Would you like to see the item description?";
+ close2;
+ ReadBook 11018,1;
+ end;
+ case 2:
+ mes "[Merchant of Splendide]";
+ mes "I can sell you 3 Pinguicula's fruit Jam for^3131FF 1 coin^000000";
+ next;
+ switch(select("Purchase:Do not purchase.")) {
+ case 1:
+ if (countitem(6081) > 0) {
+ mes "[Merchant of Splendide]";
+ mes "Thank you for coming.";
+ delitem 6081,1; //Splendide_Coin
+ getitem 12344,3; //Pinguicula's_fruit_Jam
+ close;
+ }
+ else {
+ mes "[Merchant of Splendide]";
+ mes "You don't have enough coins.";
+ close;
+ }
+ case 2:
+ mes "[Merchant of Splendide]";
+ mes "Come again if you change your mind.";
+ close;
+ }
+ case 3:
+ mes "[Merchant of Splendide]";
+ mes "I can sell you 3 Luciola's Honey Jam for^3131FF 1 coin^000000";
+ next;
+ switch(select("Purchase:Do not purchase.")) {
+ case 1:
+ if (countitem(6081) > 0) {
+ mes "[Merchant of Splendide]";
+ mes "Thank you for coming.";
+ delitem 6081,1; //Splendide_Coin
+ getitem 12345,3; //Luciola's_Honey_Jam
+ close;
+ }
+ else {
+ mes "[Merchant of Splendide]";
+ mes "You don't have enough coins.";
+ close;
+ }
+ case 2:
+ mes "[Merchant of Splendide]";
+ mes "Come again if you change your mind.";
+ close;
+ }
+ case 4:
+ mes "[Merchant of Splendide]";
+ mes "I can sell you 3 Cornus' Tears for^3131FF 1 coin^000000";
+ next;
+ switch(select("Purchase:Do not purchase.")) {
+ case 1:
+ if (countitem(6081) > 0) {
+ mes "[Merchant of Splendide]";
+ mes "Thank you for coming.";
+ delitem 6081,1; //Splendide_Coin
+ getitem 12349,3; //Cornus'_Tears
+ close;
+ }
+ else {
+ mes "[Merchant of Splendide]";
+ mes "You don't have enough coins.";
+ close;
+ }
+ case 2:
+ mes "[Merchant of Splendide]";
+ mes "Come again if you change your mind.";
+ close;
+ }
+ case 5:
+ mes "[Merchant of Splendide]";
+ mes "Come again if you change your mind.";
+ close;
+ }
+ }
+ else {
+ mes "[Merchant of Splendide]";
+ mes "BurWehAla";
+ mes "tasnarAndu Ie Ru";
+ close;
+ }
+}