summaryrefslogtreecommitdiff
path: root/npc/merchants/old_pharmacist.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/old_pharmacist.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/old_pharmacist.txt')
-rw-r--r--npc/merchants/old_pharmacist.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/npc/merchants/old_pharmacist.txt b/npc/merchants/old_pharmacist.txt
index f53eae7cf..530eed128 100644
--- a/npc/merchants/old_pharmacist.txt
+++ b/npc/merchants/old_pharmacist.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= DZeroX
//===== Current Version: =====================================
-//= 1.1b
+//= 1.2
//===== Compatible With: =====================================
//= eAthena SVN Trunk
//===== Description: =========================================
@@ -20,9 +20,18 @@
//= the official information. [DZeroX]
//= 1.1a Removed .GATs [Lupus]
//= 1.1b Fixed a bug in Orange Potion creating. Copy&Pasting = bad. [L0ne_W0lf]
+//= 1.2 Added checkweight, and input min/max values. [L0ne_W0lf]
//============================================================
alberta_in,16,28,4 script Old Pharmacist 61,{
+ if (checkweight(1201,1) == 0) {
+ mes "- Wait a moment! -";
+ mes "- Currently you're carrying -";
+ mes "- too many items with you. -";
+ mes "- Please come back later -";
+ mes "- after you put some items into kafra storage. -";
+ close;
+ }
mes "[Old Pharmacist]";
mes "Err....Are you a customer...?";
switch(select("Make Potion","Talk.","Instruction of making potions","Cancel")) {
@@ -87,7 +96,7 @@ alberta_in,16,28,4 script Old Pharmacist 61,{
next;
mes "[Old Pharmacist]";
mes "Then pick a number below 100. If you don't want any, just enter '0'. With the materials you have, you can make about "+.@max+" potions.";
- input .@amount;
+ input .@amount,0,101;
if (.@amount == 0) {
next;
mes "[Old Pharmacist]";