From c54ae348d8e51d038ee1f35f610d56e2ee55522b Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 28 Feb 2008 05:59:53 +0000 Subject: Implemented several "checkweights" in other NPCs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12258 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/other/turbotrack/Turbo_Track.txt | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) (limited to 'npc/other') diff --git a/npc/other/turbotrack/Turbo_Track.txt b/npc/other/turbotrack/Turbo_Track.txt index 90481a9b5..e84403c4d 100644 --- a/npc/other/turbotrack/Turbo_Track.txt +++ b/npc/other/turbotrack/Turbo_Track.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.3 +//= 1.4 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -15,6 +15,7 @@ //= Fixed a bug in the while loop in the guide. //= 1.2 Fix to prevent point converter from hanging. [L0ne_W0lf] //= 1.3 Slight optimization to the point exchanger. [L0ne_W0lf] +//= 1.4 Added missing checkweights. [L0ne_W0lf] //============================================================ turbo_room,130,92,3 script Kafra Staff#tt 115,{ @@ -411,18 +412,7 @@ turbo_room,71,95,5 duplicate(TurboExpertNames) Expert Mode Records#1 857 // Turbo Track Item Exchanger turbo_room,93,117,5 script Point Exchange Helper 125,{ - //set max_max_c1,1201; - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many items with you."; - // mes "Please come back after"; - // mes "putting storing some of your"; - // mes "things using the Kafra Service.^000000"; - // close; - //} - set .@now_weight,MaxWeight-Weight; - if (.@now_weight < 2000) { + if ((MaxWeight-Weight) < 2000 || checkweight(1201,1) == 0) { mes "^3355FFWait a second!"; mes "Right now, you're carrying"; mes "too many items with you."; @@ -985,16 +975,15 @@ S_ExchangePoints: alde_gld,183,204,0 script en_turbo 45,1,1,{ OnTouch: - //set max_max_c,1201; - //if (max_max_c == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many items with you."; - // mes "Please come back after"; - // mes "putting storing some of your"; - // mes "things using the Kafra Service.^000000"; - // close; - //} + if (checkweight(1201,1) == 0) { + mes "^3355FFWait a second!"; + mes "Right now, you're carrying"; + mes "too many items with you."; + mes "Please come back after"; + mes "putting storing some of your"; + mes "things using the Kafra Service.^000000"; + close; + } set .@now_weight,MaxWeight-Weight; if ((BaseJob == Job_Knight || BaseJob == Job_Crusader) && checkriding()) { if (.@now_weight < 20000) { -- cgit v1.2.3-70-g09d2