summaryrefslogtreecommitdiff
path: root/npc/pre-re/merchants/gemstone.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-30 00:01:38 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-30 00:01:38 +0000
commitad1fe10309030768d4e680f1ee59213188c240af (patch)
treee031bcd399da0397bc23ce33b22d942415f52de3 /npc/pre-re/merchants/gemstone.txt
parent574e5d46a808754c23880fc078d799ddb511499a (diff)
downloadhercules-ad1fe10309030768d4e680f1ee59213188c240af.tar.gz
hercules-ad1fe10309030768d4e680f1ee59213188c240af.tar.bz2
hercules-ad1fe10309030768d4e680f1ee59213188c240af.tar.xz
hercules-ad1fe10309030768d4e680f1ee59213188c240af.zip
* Fixed checks in "Gemstone Trader" script, and cleaned a little, bugreport:6370 (merchants\gemstone.txt)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16532 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/pre-re/merchants/gemstone.txt')
-rw-r--r--npc/pre-re/merchants/gemstone.txt45
1 files changed, 22 insertions, 23 deletions
diff --git a/npc/pre-re/merchants/gemstone.txt b/npc/pre-re/merchants/gemstone.txt
index a6181f61a..854954c0a 100644
--- a/npc/pre-re/merchants/gemstone.txt
+++ b/npc/pre-re/merchants/gemstone.txt
@@ -1,9 +1,9 @@
//===== rAthena Script =======================================
-//= Gemstone trader
+//= Gemstone Trader
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.2
+//= 1.3
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
@@ -16,6 +16,7 @@
//= 1.1 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
//= 1.2 Updated input with min/max values. [L0ne_W0lf]
//= Added a checkweight.
+//= 1.3 Fixed checks. [Euphy]
//============================================================
payon,173,238,5 script Jade#pay 754,{
@@ -60,13 +61,7 @@ S_TradeGems:
case 1:
delitem getarg(0),.@gems * 2;
getitem getarg(1),.@gems;
- mes "[Jade]";
- mes "There you go.";
- mes "Feel free to come";
- mes "back any time.";
- mes "Hm, what's that look for?";
- mes "Is there something on my face?";
- close;
+ break;
case 2:
mes "[Jade]";
mes "So how many";
@@ -91,27 +86,31 @@ S_TradeGems:
mes "than 100, remember...?";
next;
}
- else {
- break;
+ else if (.@gems < .@input) {
+ // Custom dialogue
+ mes "[Jade]";
+ mes "Errm...";
+ mes "You don't have that";
+ mes "many gems to trade...";
+ next;
}
+ else break;
}
-
- if (.@gems > .@input) {
- delitem getarg(0),.@input * 2;
- getitem getarg(1),.@input;
- mes "[Jade]";
- mes "There you go.";
- mes "Feel free to come";
- mes "back any time.";
- mes "Hm, what's that look for?";
- mes "Is there something on my face?";
- }
- close;
+ delitem getarg(0),.@input * 2;
+ getitem getarg(1),.@input;
+ break;
case 3:
mes "[Jade]";
mes "Sure, no problem.";
mes "Come back any time.";
close;
}
+ mes "[Jade]";
+ mes "There you go.";
+ mes "Feel free to come";
+ mes "back any time.";
+ mes "Hm, what's that look for?";
+ mes "Is there something on my face?";
+ close;
}
}