summaryrefslogtreecommitdiff
path: root/npc/merchants/gemstone.txt
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-28 05:15:27 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-28 05:15:27 +0000
commit62f0c65cd908cf17c092a33fbfa94a12d9b30af1 (patch)
treec2ccc05a639faea8d03c4cbd61ad1dce04cd1205 /npc/merchants/gemstone.txt
parentcd457b601c3b28805b1eb9e0b97333851e87ce1f (diff)
downloadhercules-62f0c65cd908cf17c092a33fbfa94a12d9b30af1.tar.gz
hercules-62f0c65cd908cf17c092a33fbfa94a12d9b30af1.tar.bz2
hercules-62f0c65cd908cf17c092a33fbfa94a12d9b30af1.tar.xz
hercules-62f0c65cd908cf17c092a33fbfa94a12d9b30af1.zip
Implemented several "checkweight" NPC merchants.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12257 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/merchants/gemstone.txt')
-rw-r--r--npc/merchants/gemstone.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/npc/merchants/gemstone.txt b/npc/merchants/gemstone.txt
index f542cb75f..c591b32f9 100644
--- a/npc/merchants/gemstone.txt
+++ b/npc/merchants/gemstone.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.1
+//= 1.2
//===== Compatible With: =====================================
//= eAhena SVN
//===== Description: =========================================
@@ -14,15 +14,15 @@
//= Any notes pertaining to the prior trader may be found
//= in the cities/payon.txt
//= 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.
//============================================================
payon,173,238,5 script Jade#pay 754,{
- //Ensure the player can hold at least one item
- //set max_max_c,CheckMaxCount;
- //if (max_max_c == 1) {
- // mes "^3355FFWait a second! Right now, you're carrying too many items with you. Please come back after putting some of your things into Kafra Storage.^000000";
- // close;
- //}
+ if (checkweight(1201,1) == 0) {
+ mes "^3355FFWait a second! Right now, you're carrying too many items with you. Please come back after putting some of your things into Kafra Storage.^000000";
+ close;
+ }
mes "[Jade]";
mes "Bring me two";
mes "Gemstones of the";
@@ -75,7 +75,7 @@ S_TradeGems:
mes "that you can enter is 100.";
next;
while(1) {
- input .@input;
+ input .@input,0,101;
if (.@input == 0) {
mes "[Jade]";
mes "None at all?";