summaryrefslogtreecommitdiff
path: root/npc/jobs/2-1/knight.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/jobs/2-1/knight.txt')
-rw-r--r--npc/jobs/2-1/knight.txt37
1 files changed, 36 insertions, 1 deletions
diff --git a/npc/jobs/2-1/knight.txt b/npc/jobs/2-1/knight.txt
index 39e3c4d98..e7cc08a12 100644
--- a/npc/jobs/2-1/knight.txt
+++ b/npc/jobs/2-1/knight.txt
@@ -5,7 +5,7 @@
//= Converted by kobra_k88
//= Further bugfixed and tested by Lupus
//===== Current Version: =====================================
-//= 2.8
+//= 2.9
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -35,6 +35,7 @@
//= 2.7 Deleted unused variables. [Samuray22]
//= 2.7a Corrected a Typo error ";;". [Samuray22]
//= 2.8 Now uses enable and disable waitingroomevent. [L0ne_W0lf]
+//= 2.9 Added Quest Log commands. [Kisuka]
//============================================================
prt_in,88,101,4 script Chivalry Captain#knt 56,{
@@ -142,6 +143,7 @@ prt_in,88,101,4 script Chivalry Captain#knt 56,{
close;
}
set KNIGHT_Q,1;
+ setquest 9000;
mes "[Captain Herman]";
mes "Let me see...";
mes "Your name is";
@@ -526,6 +528,7 @@ prt_in,88,101,4 script Chivalry Captain#knt 56,{
mes "You may not have finished all the tests perfectly, but you have all the necessary qualities to become";
mes "a Knight.";
next;
+ completequest 9012;
callfunc "Job_Change",Job_Knight;
callfunc "F_ClearJobVar"; // clears all job variables for the current player
mes "[Captain Herman]";
@@ -667,6 +670,11 @@ prt_in,75,107,4 script Sir Andrew#knt 65,{
case 2: setarray .@items[0], 1042,5, 950,5, 1032,5, 966,5, 7031,5, 946,5, 3; break;
}
set KNIGHT_Q,.@items[12];
+ if(KNIGHT_Q == 2) {
+ changequest 9000,9001;
+ }else{
+ changequest 9000,9002;
+ }
mes "^236B8E"+.@items[1]+" "+getitemname(.@items[0])+"^000000,";
mes "^236B8E"+.@items[3]+" "+getitemname(.@items[2])+"^000000,";
mes "^236B8E"+.@items[5]+" "+getitemname(.@items[4])+"^000000,";
@@ -712,6 +720,11 @@ prt_in,75,107,4 script Sir Andrew#knt 65,{
delitem .@items[6],.@items[7];
delitem .@items[8],.@items[9];
delitem .@items[10],.@items[11];
+ if(KNIGHT_Q == 2) {
+ changequest 9001,9003;
+ }else{
+ changequest 9002,9003;
+ }
set KNIGHT_Q,4;
mes "[Sir Andrew]";
mes "Please visit my fellow Knight, Sir Siracuse, and continue the tests with the dedication and loyalty you've shown to me this day.";
@@ -1055,6 +1068,7 @@ L_AskQuestions:
close;
}
set KNIGHT_Q,6;
+ changequest 9003,9004;
mes "[Sir Siracuse]";
mes "Well then,";
mes "this is the";
@@ -1210,6 +1224,7 @@ prt_in,79,94,4 script Sir Windsor#knt 733,{
mes "...";
next;
set KNIGHT_Q,7;
+ changequest 9004,9005;
mes "[Sir Windsor]";
mes "...";
mes "......";
@@ -1284,6 +1299,9 @@ job_knt,89,106,4 script Knight Windsor#knt 733,{
next;
mes "[Sir Windsor]";
mes "..........";
+ if(checkquest(9006) == -1) {
+ changequest 9005,9006;
+ }
close;
case 2:
mes "[Sir Windsor]";
@@ -1314,6 +1332,9 @@ job_knt,89,106,4 script Knight Windsor#knt 733,{
next;
mes "[Sir Windsor]";
mes "...";
+ if(checkquest(9006) == -1) {
+ changequest 9005,9006;
+ }
close;
case 3:
mes "[Sir Windsor]";
@@ -1343,6 +1364,9 @@ OnStartArena:
killmonster "job_knt", "Knight1::OnMyMobDead";
killmonster "job_knt", "Knight2::OnMyMobDead";
killmonster "job_knt", "Knight3::OnMyMobDead";
+ if(checkquest(9006) == -1) {
+ changequest 9005,9006;
+ }
warpwaitingpc "job_knt",43,146;
donpcevent "Knight1::OnEnable";
disablewaitingroomevent;
@@ -1513,6 +1537,9 @@ OnMyMobDead:
mes "Amy Beatrice now.";
close2;
set KNIGHT_Q,8;
+ if(checkquest(9007) == -1) {
+ changequest 9006,9007;
+ }
warp "prt_in",80,100;
donpcevent "Knight3::OnDisable";
donpcevent "Windsor Benedict#knt::OnStart";
@@ -1642,6 +1669,9 @@ prt_in,69,107,6 script Lady Amy#knt 728,{
mes "come to Amy?";
next;
if (select("Sir Windsor told me to--:Oh, nothing.") == 1) {
+ if(checkquest(9008) == -1) {
+ changequest 9007,9008;
+ }
mes "[Lady Amy]";
mes "Oh!";
mes "No need to say";
@@ -1796,6 +1826,7 @@ L_AskQuestions:
next;
if (.@knight_t == 100) {
set KNIGHT_Q,10;
+ changequest 9008,9009;
mes "[Lady Amy]";
mes "Well done, that kind of mentality is needed for a Knight! For your next test, visit Sir Edmond, please~";
next;
@@ -1805,6 +1836,7 @@ L_AskQuestions:
}
else if (.@knight_t == 90) {
set KNIGHT_Q,10;
+ changequest 9008,9009;
mes "[Lady Amy]";
mes "Well, it wasn't perfect,";
mes "but I think you know enough";
@@ -2012,6 +2044,7 @@ prt_in,70,99,6 script Sir Edmond#knt 734,{
mes "reverence.";
close2;
set KNIGHT_Q,11;
+ changequest 9009,9010;
warp "job_knt",143,57;
end;
}
@@ -2124,6 +2157,7 @@ OnInit:
end;
OnTouch:
set KNIGHT_Q,12;
+ changequest 9010,9011;
warp "prt_in",80,100;
end;
}
@@ -2528,6 +2562,7 @@ L_AskQuestions:
}
else if (.@knight_t == 10) {
set KNIGHT_Q,14;
+ changequest 9011,9012;
mes "[Sir Gray]";
mes "I enjoyed talking with you. Although, there were some";
mes "things that bothered me...";