From 62f0c65cd908cf17c092a33fbfa94a12d9b30af1 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 28 Feb 2008 05:15:27 +0000 Subject: Implemented several "checkweight" NPC merchants. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12257 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/merchants/novice_exchange.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'npc/merchants/novice_exchange.txt') 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...?"; -- cgit v1.2.3-70-g09d2