diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-28 05:59:53 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-28 05:59:53 +0000 |
commit | c54ae348d8e51d038ee1f35f610d56e2ee55522b (patch) | |
tree | be6a28d9e90eea254faa3504686251ba399ee3ea /npc/quests/quests_prontera.txt | |
parent | 62f0c65cd908cf17c092a33fbfa94a12d9b30af1 (diff) | |
download | hercules-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/quests/quests_prontera.txt')
-rw-r--r-- | npc/quests/quests_prontera.txt | 87 |
1 files changed, 16 insertions, 71 deletions
diff --git a/npc/quests/quests_prontera.txt b/npc/quests/quests_prontera.txt index 45d30acfb..00532ad7e 100644 --- a/npc/quests/quests_prontera.txt +++ b/npc/quests/quests_prontera.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= kobra_k88; L0ne_W0lf //===== Current Version: ===================================== -//= 2.0b +//= 2.1 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -36,6 +36,7 @@ //= 2.0 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf] //= 2.0a Corrected a Typo error ";;". [Samuray22] //= 2.0b Corrected a Typo error. (bugreport:950) [Samuray22] +//= 2.1 Added missing checkweights. [L0ne_W0lf] //============================================================ // Prontera Culvert @@ -550,18 +551,7 @@ S_GetBooks: return; S_CheckWeight: - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items.^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 things with you."; @@ -574,18 +564,7 @@ S_CheckWeight: } yuno,311,195,3 script Historian#prt01 754,{ - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items.^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 things with you."; @@ -936,18 +915,7 @@ yuno,311,195,3 script Historian#prt01 754,{ } morocc_in,45,126,3 script Historian#prt02 702,{ - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items.^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 things with you."; @@ -1374,18 +1342,7 @@ S_GiveName: } mjolnir_01,135,168,3 script Historian#prt03 754,{ - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items.^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 things with you."; @@ -1775,18 +1732,7 @@ mjolnir_01,313,269,5 script Dazed Boy#prt 706,{ } mjolnir_01,316,268,3 script Exhausted-Looking Woman 879,{ - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items.^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 things with you."; @@ -3437,16 +3383,15 @@ OnTouch: } prt_in,162,99,4 script Librarian#curse 67,{ - //var max_max_c1 = CheckMaxCount 1201 1 - //if (max_max_c1 == 1) { - // mes "^3355FFWait a second!"; - // mes "Right now, you're carrying"; - // mes "too many things with you."; - // mes "Please come back after"; - // mes "using the Kafra Service"; - // mes "to store some of your items."; - // close; - //} + if (checkweight(1201,1) == 0) { + mes "^3355FFWait a second!"; + mes "Right now, you're carrying"; + mes "too many things with you."; + mes "Please come back after"; + mes "using the Kafra Service"; + mes "to store some of your items."; + close; + } if (prt_curse == 3) { if (countitem(7431) < 1) { mes "[Librarian]"; |