summaryrefslogtreecommitdiff
path: root/npc/merchants/milk_trader.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/merchants/milk_trader.txt')
-rw-r--r--npc/merchants/milk_trader.txt29
1 files changed, 13 insertions, 16 deletions
diff --git a/npc/merchants/milk_trader.txt b/npc/merchants/milk_trader.txt
index 9e3472843..f960ee284 100644
--- a/npc/merchants/milk_trader.txt
+++ b/npc/merchants/milk_trader.txt
@@ -3,33 +3,31 @@
//===== By: ==================================================
//= kobra_k88; L0ne_W0lf
//===== Current Version: =====================================
-//= 1.3
+//= 1.4
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
//= [Aegis Conversion]
-//= trades bottles for milk
+//= Trades bottles for milk
//===== Additional Comments: =================================
//= Fully working
//= 1.1 Negative input bug fixed [Lupus]
//= 1.2 Raised the price to close zeny exploit [Lupus]
//= 1.2a Switched to Lupus's "loopless" technique.[kobra_k88]
//= 1.3 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
+//= 1.4 Implemented checkweight. [L0ne_W0lf]
//============================================================
prontera,73,140,0 script Milk Vendor 86,{
- //Supposedly this is to make sure the character
- //has room to accept items in their inventory.
- //var max_max_c = CheckMaxCount 1201 1
- //if max_max_c == 1
- // mes "^3355FFJust a minute!";
- // mes "I can't offer any of my";
- // mes "services to you because";
- // mes "you're carrying too much";
- // mes "stuff. Put your extra items in";
- // mes "Kafra Storage and come again~";
- // close;
- //}
+ if (checkweight(1201,1) == 0) {
+ mes "^3355FFJust a minute!";
+ mes "I can't offer any of my";
+ mes "services to you because";
+ mes "you're carrying too much";
+ mes "stuff. Put your extra items in";
+ mes "Kafra Storage and come again~";
+ close;
+ }
mes "[Milk Vendor]";
mes "Hey, hey...";
mes "If you bring me";
@@ -52,7 +50,6 @@ prontera,73,140,0 script Milk Vendor 86,{
set .@bottles,countitem(713);
set .@total_weight,.@bottles * 50;
set .@total_cost,.@bottles * 15;
- set .@now_weight,maxweight-weight;
if (zeny < .@Total_cost) {
mes "[Milk Vendor]";
mes "Oh, whoa~!";
@@ -63,7 +60,7 @@ prontera,73,140,0 script Milk Vendor 86,{
mes "at least " + gap + " zeny.";
close;
}
- if (.@now_weight < .@total_weight) {
+ if ((maxweight-weight) < .@total_weight) {
mes "[Milk Vendor]";
mes "Hmm...";
mes "Would you make";