Преглед изворни кода

* Knight job quest bug fixes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11081 54d463be-8e91-2dee-dedb-b68131a5f0ec
L0ne_W0lf пре 17 година
родитељ
комит
432aff6863
2 измењених фајлова са 8 додато и 4 уклоњено
  1. 1 0
      npc/Changelog.txt
  2. 7 4
      npc/jobs/2-1/knight.txt

+ 1 - 0
npc/Changelog.txt

@@ -1,6 +1,7 @@
 Date		Added
 ======
 2007/08/29
+	* Rev. 11081 Knight job quest bug fixes. [L0ne_W0lf]
 	* Made some changes due to recent fixes in the Sign Quest. [SinSloth]
 	* Dandelion's Request event now resets properly after it has been completed by a player. [SinSloth]
 2007/08/24

+ 7 - 4
npc/jobs/2-1/knight.txt

@@ -29,6 +29,8 @@
 //= 2.2 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
 //= 2.3 Several bugfixes with the help of Barron-Monster. [L0ne_W0lf]
 //= 2.4 Minor fixes to timer#knt. [L0ne_W0lf]
+//= 2.5 Fixes a small bug with making claymores. [L0ne_W0lf]
+//=	Corrected usages of killmonster and killmonsterall.
 //============================================================ 
 
 prt_in,88,101,4	script	Chivalry Captain#knt	56,{
@@ -1339,7 +1341,9 @@ OnStartArena:
 	if($@KntUsers > 0) end;
 
 	if ((getwaitingroomstate(33)) == 0) end;	// stops the rest of the script from running if there is no one in the waiting room;
-	killmonsterall "job_knt";
+	killmonster "job_knt", "Knight1::OnMyMobDead";
+	killmonster "job_knt", "Knight2::OnMyMobDead";
+	killmonster "job_knt", "Knight3::OnMyMobDead";
 	warpwaitingpc "job_knt",43,146;
 	donpcevent "Knight1::OnEnable";
 	end;
@@ -1370,7 +1374,6 @@ OnEnable:
 
 OnDisable:
 	killmonster "job_knt", "Knight1::OnMyMobDead";
-	killmonsterall "job_knt";
 	disablenpc "Knight1";
 	end;
 
@@ -2097,7 +2100,7 @@ OnEnable:
 	end;
 
 OnDisable:
-	killmonsterall "job_knt","Timer#knt::OnMyMobDead";
+	killmonster "job_knt","Timer#knt::OnMyMobDead";
 	disablenpc "Timer#knt";
 	disablenpc "Warp#knt";
 	end;
@@ -2158,7 +2161,7 @@ prt_in,87,92,4	script	Sir Gray#knt	119,{
 					close;
 				}
 				else {
-					if (Zeny > 73999 && countitem(999) > 0 && BaseJob == Job_Swordman) {
+					if (Zeny > 73999 && countitem(999) > 0 && BaseJob == Job_Knight) {
 						mes "[Sir Gray]";
 						mes "You are ready!";
 						mes "You must know the";