summaryrefslogtreecommitdiff
path: root/npc/merchants/novice_exchange.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/novice_exchange.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/novice_exchange.txt')
-rw-r--r--npc/merchants/novice_exchange.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/npc/merchants/novice_exchange.txt b/npc/merchants/novice_exchange.txt
index f3d1af076..4d5688d30 100644
--- a/npc/merchants/novice_exchange.txt
+++ b/npc/merchants/novice_exchange.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= ???, eAthena Team
//===== Current Version: =====================================
-//= 1.3
+//= 1.4
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -14,11 +14,12 @@
//= Made it easier to add new items to exhange list
//= meaning only the exchange is done in a function now.
//= 1.3 Fixed dialog mix-up in function. [L0ne_W0lf]
+//= 1.4 Added checkweight, and input min/max values. [L0ne_W0lf]
//============================================================
prontera,123,102,5 script Merchant#pron 85,{
set .@now_weight,MaxWeight-Weight;
- if (.@now_weight < 6301) {
+ if (.@now_weight < 6301 || checkweight(1201,1) == 0) {
mes "[Merchant]";
mes "Haha!";
mes "What are you, superhuman?";
@@ -75,7 +76,7 @@ prontera,123,102,5 script Merchant#pron 85,{
morocc,180,259,3 script Merchant#morroc 85,{
set .@now_weight,MaxWeight-Weight;
- if (.@now_weight < 6301) {
+ if (.@now_weight < 6301 || checkweight(1201,1) == 0) {
mes "[Merchant]";
mes "Haha!";
mes "What are you, superhuman?";
@@ -133,7 +134,7 @@ morocc,180,259,3 script Merchant#morroc 85,{
payon,200,134,5 script Merchant#pay 85,{
set .@now_weight,MaxWeight-Weight;
- if (.@now_weight < 6301) {
+ if (.@now_weight < 6301 || checkweight(1201,1) == 0) {
mes "[Merchant]";
mes "Haha!";
mes "What are you, superhuman?";
@@ -188,7 +189,7 @@ payon,200,134,5 script Merchant#pay 85,{
aldebaran,152,63,5 script Merchant#alde 85,{
set .@now_weight,MaxWeight-Weight;
- if (.@now_weight < 6301) {
+ if (.@now_weight < 6301 || checkweight(1201,1) == 0) {
mes "[Merchant]";
mes "Haha!";
mes "What are you, superhuman?";
@@ -246,7 +247,7 @@ aldebaran,152,63,5 script Merchant#alde 85,{
geffen,173,88,5 script Merchant#geff 85,{
set .@now_weight,MaxWeight-Weight;
- if (.@now_weight < 6301) {
+ if (.@now_weight < 6301 || checkweight(1201,1) == 0) {
mes "[Merchant]";
mes "Haha!";
mes "What are you, superhuman?";
@@ -340,7 +341,7 @@ function script F_PotExchange {
mes "mind, just enter '0' to cancel.";
next;
while(1) {
- input .@input;
+ input .@input,0,101;
if (.@input == 0) {
mes "[Merchant]";
mes "What...?";