Преглед на файлове

Added weight checks to npc/merchants/refine.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6072 54d463be-8e91-2dee-dedb-b68131a5f0ec
Playtester преди 19 години
родител
ревизия
5cf09a59ef
променени са 2 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 1 0
      npc/Changelog.txt
  2. 12 0
      npc/merchants/refine.txt

+ 1 - 0
npc/Changelog.txt

@@ -28,6 +28,7 @@ Nexon
 Date		Added
 ======
 04/15
+	* Added weight checks to merchants/refine.txt thanks to Neouni [Playtester]
 	* Fixed names of Lighthalzen mobs in spawn files [Playtester]
 	* Changed Juperos spawns according to info provided by Tharis [Playtester]
 04/14

+ 12 - 0
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.";