summaryrefslogtreecommitdiff
path: root/npc/merchants/refine.txt
diff options
context:
space:
mode:
authorPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-15 11:45:32 +0000
committerPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-15 11:45:32 +0000
commitbe6fa30de122a3f5b4be56ed6c73200b8768ed10 (patch)
tree3d7a4fc3abc5af2daeecea4008ba12795ddb47d5 /npc/merchants/refine.txt
parent9b3f04f81aff1f6a36b7cc1d0c7ac6b52f2e9475 (diff)
downloadhercules-be6fa30de122a3f5b4be56ed6c73200b8768ed10.tar.gz
hercules-be6fa30de122a3f5b4be56ed6c73200b8768ed10.tar.bz2
hercules-be6fa30de122a3f5b4be56ed6c73200b8768ed10.tar.xz
hercules-be6fa30de122a3f5b4be56ed6c73200b8768ed10.zip
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
Diffstat (limited to 'npc/merchants/refine.txt')
-rw-r--r--npc/merchants/refine.txt12
1 files changed, 12 insertions, 0 deletions
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.";