Procházet zdrojové kódy

* Fixed a bug and some typos to Socket Enchant NPC.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10709 54d463be-8e91-2dee-dedb-b68131a5f0ec
SinSloth před 18 roky
rodič
revize
ceed59bd4d
2 změnil soubory, kde provedl 16 přidání a 7 odebrání
  1. 2 0
      npc/Changelog.txt
  2. 14 7
      npc/merchants/socket_enchant.txt

+ 2 - 0
npc/Changelog.txt

@@ -1,5 +1,7 @@
 Date		Added
 ======
+2007/06/07
+	* Fixed a bug and some typos to Socket Enchant NPC. [SinSloth]
 2007/06/06
 	* More Breeder fixes [Playtester]
 	* Added Dandelion's Request / Morroc Invasion quest. [SinSloth]

+ 14 - 7
npc/merchants/socket_enchant.txt

@@ -3,7 +3,7 @@
 //===== By: ==================================================
 //= eAthena dev team
 //===== Current Version: =====================================
-//= 1.1b
+//= 1.2
 //===== Compatible With: =====================================
 //= eAthena SVN
 //===== Description: =========================================
@@ -17,6 +17,7 @@
 //= 1.0 Fixed ingredients check [Lupus]
 //= 1.1	Updated to official. [SinSloth]
 //= 1.1b Optimized/cleaned [ultramage]
+//= 1.2 Fixed some typos and a nasty bug. [SinSloth]
 //============================================================
 
 payon,140,151,5		script	Seiyablem	84,{
@@ -57,7 +58,7 @@ payon,140,151,5		script	Seiyablem	84,{
 					mes "[Seiyablem]";
 					mes "B Class?";
 					mes "Alright, this is the average equipment category.";
-					mes "Please choose the weapon to wich you'd like me to try to add a Slot.";
+					mes "Please choose the weapon to which you'd like me to try to add a Slot.";
 					next;
 					switch( select( "Chain","Gladius","Gakkung Bow","Pike","Haedonggum","Lute","Wire","Waghnakh","Arbalest Bow" ) )
 					{
@@ -77,7 +78,7 @@ payon,140,151,5		script	Seiyablem	84,{
 					mes "[Seiyablem]";
 					mes "Ooh, A Class.";
 					mes "This is some high risk territory!";
-					mes "Alright, wich weapon would you like me to try adding a Slot?";
+					mes "Alright, which weapon would you like me to try adding a Slot?";
 					next;
 					switch( select( "Hunter Bow","Survivor's Rod(INT)","Zweihander","Flamberge","Infiltrator","Ballista","Stunner","Berserk","Claymore" ) )
 					{
@@ -109,7 +110,7 @@ payon,140,151,5		script	Seiyablem	84,{
 						case 5: callfunc "Func_Socket",2,13002,13019,40,51,1000,984,5,999,10; break;
 						case 6: callfunc "Func_Socket",2,1135,13400,40,51,1000,984,5,999,10; break;
 						case 7: callfunc "Func_Socket",2,1466,1476,40,51,1000,984,5,999,10; break;
-						case 8: callfunc "Func_Socket",2,1618,1619,40,51,2000,984,5,999,10; break;
+						case 8: callfunc "Func_Socket",2,1617,1618,40,51,2000,984,5,999,10; break;
 					}
 				break;
 			}
@@ -166,7 +167,7 @@ payon,140,151,5		script	Seiyablem	84,{
 					mes "[Seiyablem]";
 					mes "Ooh, A Class.";
 					mes "This is some high risk territory!";
-					mes "Alright, wich armor would you like me to try adding a Slot?";
+					mes "Alright, which armor would you like me to try adding a Slot?";
 					next;
 					switch( select( "Gemmed Sallet","Bucket Hat","Memory Book","Tights","Legion Plate Armor","Full Plate","Thief Clothes","Greaves","Coif","Manteau","Helm","Ninja Suit","Orc Helm","Ancient Cape","Monk Hat","Golden Gear","Brooch","Munak Hat" ) )
 					{
@@ -253,9 +254,15 @@ function	script	Func_Socket	{
 	mes "[Seiyablem]";
 	mes "You want to add a Slot to a " +getitemname(getarg(1))+ "?";
 	if (getarg(0) == 1)
-		mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "s^000000, and my^FF0000 " +getarg(5)+",000 zeny^000000 service fee.";
+	{
+		if(getarg(5) > 999) mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "s^000000, and my^FF0000 " +getarg(5) / 1000+",000,000 zeny^000000 service fee.";
+		else mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "s^000000, and my^FF0000 " +getarg(5)+",000 zeny^000000 service fee.";
+	}
 	else if (getarg(0) == 2)
-		mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "^000000, ^FF0000" +getarg(9)+ " " +getitemname(getarg(8))+ "^000000 and my^FF0000 " +getarg(5)+",000 zeny^000000 service fee.";
+	{
+		if(getarg(5) > 999) mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "^000000, ^FF0000" +getarg(9)+ " " +getitemname(getarg(8))+ "^000000 and my^FF0000 " +getarg(5) / 1000+",000,000 zeny^000000 service fee.";
+		else mes "Alright, please bring me ^FF0000" +getarg(7)+ " " +getitemname(getarg(6))+ "^000000, ^FF0000" +getarg(9)+ " " +getitemname(getarg(8))+ "^000000 and my^FF0000 " +getarg(5)+",000 zeny^000000 service fee.";
+	}
 	mes "Ah, and don't forget to bring that " +getitemname(getarg(1))+ "!";
 	next;