From be6fa30de122a3f5b4be56ed6c73200b8768ed10 Mon Sep 17 00:00:00 2001 From: Playtester Date: Sat, 15 Apr 2006 11:45:32 +0000 Subject: Added weight checks to npc/merchants/refine.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6072 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/merchants/refine.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/merchants') diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt index ecef1519d..385152c34 100644 --- a/npc/merchants/refine.txt +++ b/npc/merchants/refine.txt @@ -57,6 +57,7 @@ geffen_in.gat,110,172,2 script Christopher#1::Chris 63,{ sM_Anvil: if(Zeny < 30000) goto L_NoZeny; + if(checkweight(986,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 30000; getitem 986,1; mes "[Christopher Guillenrow]"; @@ -65,6 +66,7 @@ geffen_in.gat,110,172,2 script Christopher#1::Chris 63,{ goto L_Thanks; sM_OriAnvil: if(Zeny < 120000) goto L_NoZeny; + if(checkweight(987,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 120000; getitem 987,1; mes "[Christopher Guillenrow]"; @@ -73,6 +75,7 @@ geffen_in.gat,110,172,2 script Christopher#1::Chris 63,{ goto L_Thanks; sM_GolAnvil: if(Zeny < 300000) goto L_NoZeny; + if(checkweight(988,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 300000; mes "[Christopher Guillenrow]"; mes "This is the best anvil in my workshop! With this ye'll be the best Blasksmith in no time."; @@ -104,21 +107,25 @@ geffen_in.gat,110,172,2 script Christopher#1::Chris 63,{ if(@input < 1 ) goto sM_Menu1; if(@input > 1000 ) goto sM_Max; if(Zeny < 150 * @input) goto L_NoZeny; + if(checkweight(612,@input) == 0 ) goto L_OverWeight; set Zeny, Zeny - (150 * @input); getitem 612, @input; goto L_Thanks; sM_IrHam: if(Zeny < 1000) goto L_NoZeny; + if(checkweight(613,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 1000; getitem 613,1; goto L_Thanks; sM_GldHam: if(Zeny < 3000) goto L_NoZeny; + if(checkweight(614,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 3000; getitem 614,1; goto L_Thanks; sM_OriHam: if(Zeny < 5000) goto L_NoZeny; + if(checkweight(615,1) == 0 ) goto L_OverWeight; set Zeny, Zeny - 5000; getitem 615,1; goto L_Thanks; @@ -151,6 +158,11 @@ geffen_in.gat,110,172,2 script Christopher#1::Chris 63,{ emotion 4; close; + L_OverWeight: + mes "[Christopher Guillenrow]"; + mes "You don't seem to have enough strength to carry this."; + close; + L_Thanks: mes "[Christopher Guillenrow]"; mes "Thank you for shopping at my workshop. Feel free to come anytime whenever you need."; -- cgit v1.2.3-60-g2f50