Skip to content

Commit

Permalink
KO Job Changer FULLY WORKING!!\n 1)Battle Test: Fixed Callsubs and mo…
Browse files Browse the repository at this point in the history
…nster locations(Special Thanks to Yommy)\n 2)Knowledge Test: Fixed Question looping(Thanks to Ssky for pointing out)\n 3)Main NPC's:Fixed some conditions and color codes\n 4)Weaponry Test:Fixed effects and some conditions.\n With this, KO JOB Quest is FULLY WORKING NOW!!!, Tested it myself.\nThanks.
  • Loading branch information
dastgirp committed Dec 10, 2013
1 parent 6be948b commit e8d6b66
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 212 deletions.
81 changes: 35 additions & 46 deletions KO_battle.txt
Expand Up @@ -3,12 +3,13 @@
//===== By: ==================================================
//= Dastgir Pojee
//===== Current Version: =====================================
//= 1.1
//= 1.2
//===== Description: =========================================
//= Kagerou/Oboro Job Change NPC
//===== Additional Comments: =================================
//= 1.0 Extracted from iRO. [Dastgir Pojee]
//= 1.1 Matching with official. [Dastgir Pojee(Special Thanks to Yommy)]
//= 1.2 Fixed callsub and co-ordinates of monster. [Dastgir Pojee(Special Thanks to Yommy)]
//============================================================
job_ko,148,46,5 script Guide Gion#ko2 4_M_KAGE_OLD,{
if (job_kagero==7){
Expand Down Expand Up @@ -99,26 +100,14 @@ if (job_kagero==7){
next;
mes "[Guide Gion]";
mes "You only need to look forward and never turn back.";
if(checkquest(5131)){erasequest 5131;}
if(checkquest(5132)){erasequest 5132;}
if(checkquest(5133)){erasequest 5133;}
if(checkquest(5134)){erasequest 5134;}
if(checkquest(5135)){erasequest 5135;}
if(checkquest(5136)){erasequest 5136;}
if(checkquest(5137)){erasequest 5137;}
if(checkquest(5138)){erasequest 5138;}
if(checkquest(5139)){erasequest 5139;}
if(checkquest(5140)){erasequest 5140;}
if(checkquest(5141)){erasequest 5141;}
if(checkquest(5142)){erasequest 5142;}
if(checkquest(5143)){erasequest 5143;}
if(checkquest(5144)){erasequest 5144;}
if(checkquest(5145)){erasequest 5145;}
erasequest 5146;
for (.i=5131; .i<5147; .i++ ){
if (checkquest(.i) != -1){erasequest .i;}
}
job_kagero = 9;
if (KO_OPT==1){getnameditem 13075,strcharinfo(0);}
else{getnameditem 13311,strcharinfo(0);}
if(Sex){jobchange Job_Kagerou;}else{jobchange Job_Oboro;}
resetlvl(1);
cmdothernpc "Summon Target#ko","OnCommandEnable";
mes "[Guide Gion]";
mes "I hope the blessings of Kagerou, dancing sun and Oboro, misty moonlight will be with you on your journey ahead.";
Expand Down Expand Up @@ -183,10 +172,10 @@ OnCommandDisable:

job_ko,1,1,4 script Summon Target#ko CLEAR_NPC,{
OnInit:
callsub "OnCommandEnable";
callsub OnCommandEnable;
end;
OnTimer180000:
callsub "OnCommandEnable";
callsub OnCommandEnable;
end;
OnCommandEnable:
stopnpctimer;
Expand All @@ -200,7 +189,7 @@ OnCommandEnable:
case 7: set .mob_id,1050; break;
default: set .mob_id,1002; break;
}
areamonster "job_ko",140,50,40,40,"Family Secret",.mob_id,1,"Summon Target#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family Secret",.mob_id,1,"Summon Target#ko::OnMyMobDead";
return;
//------
OnCommandDisable:
Expand All @@ -209,50 +198,50 @@ OnCommandDisable:
//------
OnMyMobDead:
if (job_kagero == 7){
callsub "OnCommandDisable";
callsub OnCommandDisable;
job_kagero = 8;
}else{
callsub "OnCommandEnable";
callsub OnCommandEnable;
}
end;
}

job_ko,1,2,4 script Summon Fake#ko CLEAR_NPC,{
OnInit:
callsub "OnCommandEnable";
callsub OnCommandEnable;
end;

OnCommandEnable:
areamonster "job_ko",140,50,40,40,"Family's Legacy",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Memory",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Memory",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Memory",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Past",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Past",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Mistake",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Memory",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Memory",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Past",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Mistake",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Mistake",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Family's Memory",1050,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Oboro's Past",1050,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",140,50,40,40,"Kagerou's Past",1050,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Legacy",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Memory",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Memory",1002,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Mistake",1031,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Memory",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Past",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Past",1113,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Legacy",1063,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Mistake",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Memory",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Memory",1010,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Past",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Mistake",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Mistake",1049,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Family's Memory",1050,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Oboro's Past",1050,5,"Summon Fake#ko::OnMyMobDead";
areamonster "job_ko",100,10,180,90,"Kagerou's Past",1050,5,"Summon Fake#ko::OnMyMobDead";
return;
OnCommandDisable:
killmonster "job_ko","Summon Fake#ko::OnMyMobDead";
return;

OnMyMobDead:
if (mobcount("job_ko","Summon Fake#ko::OnMyMobDead") < 100){
callsub "OnCommandDisable";
callsub "OnCommandEnable";
callsub OnCommandDisable;
callsub OnCommandEnable;
warp "job_ko",16,113;
}
end;
Expand Down
113 changes: 51 additions & 62 deletions KO_knowledge.txt
Expand Up @@ -3,34 +3,22 @@
//===== By: ==================================================
//= M45T3R, Dastgir Pojee
//===== Current Version: =====================================
//= 1.3
//= 1.4
//===== Description: =========================================
//= Test of Knowledge KO
//===== Additional Comments: =================================
//= 1.0 Extracted from iRO(Official?) [M45T3R]/[Dastgir Pojee]
//= 1.1 Fixed Many Errors. [Dastgir Pojee]
//= 1.2 Added a missing next. [Dastgir Pojee]
//= 1.3 Most of official part implemented. [Dastgir Pojee(Special Thanks to Yommy)]
//= 1.4 Fixed Question loop. [Dastgir Pojee]
//============================================================

job_ko,81,124,1 script Cougar#ko 4_M_JOB_ASSASSIN,{
if (BaseJob!=25){
if(checkquest(5131)){erasequest 5131;}
if(checkquest(5132)){erasequest 5132;}
if(checkquest(5133)){erasequest 5133;}
if(checkquest(5134)){erasequest 5134;}
if(checkquest(5135)){erasequest 5135;}
if(checkquest(5136)){erasequest 5136;}
if(checkquest(5137)){erasequest 5137;}
if(checkquest(5138)){erasequest 5138;}
if(checkquest(5139)){erasequest 5139;}
if(checkquest(5140)){erasequest 5140;}
if(checkquest(5141)){erasequest 5141;}
if(checkquest(5142)){erasequest 5142;}
if(checkquest(5143)){erasequest 5143;}
if(checkquest(5144)){erasequest 5144;}
if(checkquest(5145)){erasequest 5145;}
erasequest 5146;
if (BaseJob!=Job_Ninja){
for (.i=5131; .i<5147; .i++ ){
if (checkquest(.i) != -1){erasequest .i;}
}
mes "[Cougar]";
mes "Sorry, Your family is not same as ours, is there something wrong?";
close2;
Expand Down Expand Up @@ -86,6 +74,7 @@ if (checkquest(5136)==1 && checkquest(5139) == -1){
next;
mes "[Cougar]";
mes "Let's start.";
next;
function Question;
set @cougar_correct,0;
.@k$ = "";
Expand Down Expand Up @@ -245,7 +234,7 @@ if (checkquest(5136)==1 && checkquest(5139) == -1){
Question("You need to equip a card to your shoes to enhance Killing Strike attack. Which of the following is the appropriate card to equip?",2,"Gold Acidus Card:Matyr Card:Odium of Thantos Card:Eddga Card");
break;
case 49:
Question("What wasnext to me when you first met me?",2,"A cushion:A folding screen:A flowerpot:A brazier");
Question("What was next to me when you first met me?",2,"A cushion:A folding screen:A flowerpot:A brazier");
break;
case 50:
Question("What is the DEX + LUK total for a Job Master?",2,"8:10:12:14");
Expand All @@ -256,53 +245,53 @@ if (checkquest(5136)==1 && checkquest(5139) == -1){
mes "Please contact customer service.";
close;
}
mes "You're through all 10 questions. Wasn't so bad! The important part starts now.";
}
mes "You're through all 10 questions. Wasn't so bad! The important part starts now.";
next;
mes "[Cougar]";
mes "... ... ...";
next;
if (@cougar_correct < 9){
mes "[Cougar]";
mes "You fool!!";
mes "You couldn't even solve these?";
next;
mes "[Cougar]";
mes "... ... ...";
mes "Can't believe someone who is taking a new path can be so pathetic.";
next;
if (@cougar_correct < 9){
mes "[Cougar]";
mes "You fool!!";
mes "You couldn't even solve these?";
next;
mes "[Cougar]";
mes "Can't believe someone who is taking a new path can be so pathetic.";
next;
mes "[Cougar]";
mes "I'll give you another chance.";
mes "You will take the test again with new questions. Better pass it this time.";
} else {
next;
mes "[Cougar]";
mes "You passed!";
next;
mes "[Cougar]";
mes "Hmm. "+(@cougar_correct*10)+"?";
next;
mes "[Cougar]";
mes "Well, looks like you weren't lazy with your studies.";
next;
mes "[Cougar]";
mes "What? Proud of yourself for solving these questions?";
next;
mes "[Cougar]";
mes "You still have a long way to go and this is only a small fraction of it.";
next;
mes "[Cougar]";
mes "Well... I'm curious how far your strong will can take you through other tests.";
next;
completequest 5136;
erasequest 5139;
set KO_QD,KO_QD+1;
mes "[Cougar]";
mes "I'll let you go now so go report back to Guide Gion with your results.";
warp "job_ko",16,113;
end;
}
set @cougar_correct,0;
close;
mes "[Cougar]";
mes "I'll give you another chance.";
mes "You will take the test again with new questions. Better pass it this time.";
} else {
next;
mes "[Cougar]";
mes "You passed!";
next;
mes "[Cougar]";
mes "Hmm. "+(@cougar_correct*10)+"?";
next;
mes "[Cougar]";
mes "Well, looks like you weren't lazy with your studies.";
next;
mes "[Cougar]";
mes "What? Proud of yourself for solving these questions?";
next;
mes "[Cougar]";
mes "You still have a long way to go and this is only a small fraction of it.";
next;
mes "[Cougar]";
mes "Well... I'm curious how far your strong will can take you through other tests.";
next;
completequest 5136;
erasequest 5139;
set KO_QD,KO_QD+1;
mes "[Cougar]";
mes "I'll let you go now so go report back to Guide Gion with your results.";
warp "job_ko",16,113;
end;
}
set @cougar_correct,0;
close;

} else if (checkquest(5136)==2 && checkquest(5139) == -1){
mes "[Cougar]";
Expand Down

0 comments on commit e8d6b66

Please sign in to comment.