summaryrefslogtreecommitdiff
path: root/npc/other
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-28 05:59:53 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-28 05:59:53 +0000
commitc54ae348d8e51d038ee1f35f610d56e2ee55522b (patch)
treebe6a28d9e90eea254faa3504686251ba399ee3ea /npc/other
parent62f0c65cd908cf17c092a33fbfa94a12d9b30af1 (diff)
downloadhercules-c54ae348d8e51d038ee1f35f610d56e2ee55522b.tar.gz
hercules-c54ae348d8e51d038ee1f35f610d56e2ee55522b.tar.bz2
hercules-c54ae348d8e51d038ee1f35f610d56e2ee55522b.tar.xz
hercules-c54ae348d8e51d038ee1f35f610d56e2ee55522b.zip
Implemented several "checkweights" in other NPCs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12258 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/other')
-rw-r--r--npc/other/turbotrack/Turbo_Track.txt35
1 files changed, 12 insertions, 23 deletions
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) {