summaryrefslogtreecommitdiff
path: root/npc/quests/quests_morocc.txt
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-11-03 08:15:05 -0200
committershennetsind <ind@henn.et>2014-11-03 08:15:05 -0200
commitbee4c9d36f4a27e39cc76dc5d6c5f876ed44a678 (patch)
tree79f9aec5171e8aed2d701bf67167f260e05f41db /npc/quests/quests_morocc.txt
parent239d480487e24294975f35ed55f210837ad1088e (diff)
parentce3f4bfbe016ea69c855146667ba9bd9e0e2e221 (diff)
downloadhercules-bee4c9d36f4a27e39cc76dc5d6c5f876ed44a678.tar.gz
hercules-bee4c9d36f4a27e39cc76dc5d6c5f876ed44a678.tar.bz2
hercules-bee4c9d36f4a27e39cc76dc5d6c5f876ed44a678.tar.xz
hercules-bee4c9d36f4a27e39cc76dc5d6c5f876ed44a678.zip
Merge branch 'master' of github.com:HerculesWS/Hercules
Signed-off-by: shennetsind <ind@henn.et> Conflicts: src/map/battle.c
Diffstat (limited to 'npc/quests/quests_morocc.txt')
-rw-r--r--npc/quests/quests_morocc.txt578
1 files changed, 243 insertions, 335 deletions
diff --git a/npc/quests/quests_morocc.txt b/npc/quests/quests_morocc.txt
index 45ed535f8..77708ab31 100644
--- a/npc/quests/quests_morocc.txt
+++ b/npc/quests/quests_morocc.txt
@@ -666,13 +666,13 @@ que_job01,49,49,5 script Tao#dan_09 4_F_YUNYANG,{
que_job01,51,55,0 script que_job01#room_1 WARPNPC,1,1,{
OnReset:
- set $@maobar_room,0;
+ $@maobar_room = 0;
end;
OnTouch:
if (prt_curse == 24) {
if ($@maobar_room == 0) {
- set $@maobar_room,1;
+ $@maobar_room = 1;
donpcevent " #room1timer::OnEnable";
donpcevent "Marjana#poison::OnEnable";
mes "[Tao]";
@@ -697,7 +697,7 @@ OnTouch:
}
else if (mao_request > 0) {
if ($@maobar_room == 0) {
- set $@maobar_room,1;
+ $@maobar_room = 1;
donpcevent " #room1timer::OnEnable";
donpcevent "Valdes#moc_master_1::OnEnable";
mes "[Tao]";
@@ -946,14 +946,14 @@ moc_fild20,354,183,3 script Continental Guard#01::MocConGuard 4_M_MOC_SOLDIER,3,
case 2:
if ($@re_moc < 3) {
getpartymember(getcharid(1));
- set .@partymembercount,$@partymembercount;
+ .@partymembercount = $@partymembercount;
copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
while (.@partymembercount >= 0) {
- set .@name$,.@partymembername$[.@partymembercount];
+ .@name$ = .@partymembername$[.@partymembercount];
if (isloggedin(getcharid(3,.@name$))) {
- set .@onlinemembers,.@onlinemembers + 1;
+ ++.@onlinemembers;
}
- set .@partymembercount,.@partymembercount - 1;
+ --.@partymembercount;
}
if ((.@onlinemembers > 1) && (countitem(7826) > 0)) {
mes "[Continental Guard]";
@@ -1009,14 +1009,14 @@ moc_fild20,354,183,3 script Continental Guard#01::MocConGuard 4_M_MOC_SOLDIER,3,
mes "Ah, you're an adventurer working for the Continental Guard. Nice to meet you. Feel free to ask me if you need my assistance.";
next;
getpartymember(getcharid(1));
- set .@partymembercount,$@partymembercount;
+ .@partymembercount = $@partymembercount;
copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
while (.@partymembercount >= 0) {
- set .@name$,.@partymembername$[.@partymembercount];
+ .@name$ = .@partymembername$[.@partymembercount];
if (isloggedin(getcharid(3,.@name$))) {
- set .@onlinemembers,.@onlinemembers + 1;
+ ++.@onlinemembers;
}
- set .@partymembercount,.@partymembercount - 1;
+ --.@partymembercount;
}
switch(select("Enter the First Field to Investigate:Enter the Second Field to Investigate:Return to Morroc's Accident Site:Cancel Conversation")) {
case 1:
@@ -1117,12 +1117,12 @@ moc_fild20,203,336,5 duplicate(MocConGuard) Continental Guard#07 4_M_MOC_SOLDIER
moc_fild20,215,336,3 duplicate(MocConGuard) Continental Guard#08 4_M_MOC_SOLDIER,3,3
- script Continental Messenger#00::ConMessenger 4_M_MOCASS1,3,3,{
- set .@area$,strnpcinfo(2);
- if (.@area$ == "01") { set .@area$,"Prontera"; }
- else if (.@area$ == "02") { set .@area$,"Geffen"; }
- else if (.@area$ == "03") { set .@area$,"Payon"; }
- else if (.@area$ == "04") { set .@area$,"Alberta"; }
- else if (.@area$ == "05") { set .@area$,"Al De Baran"; }
+ .@area$ = strnpcinfo(2);
+ if (.@area$ == "01") { .@area$ = "Prontera"; }
+ else if (.@area$ == "02") { .@area$ = "Geffen"; }
+ else if (.@area$ == "03") { .@area$ = "Payon"; }
+ else if (.@area$ == "04") { .@area$ = "Alberta"; }
+ else if (.@area$ == "05") { .@area$ = "Al De Baran"; }
if (BaseLevel > 79) {
mes "[Continental Guard Messenger]";
mes "Good day, "+ strcharinfo(0) +". We don't have the luxury of time in this dire situation so I'll try to make this quick.";
@@ -1247,7 +1247,7 @@ morocc,176,103,3 script Continental Official 4_M_SAGE_A,{
next;
mes "[Continental Guard Official]";
mes "Now please go speak to Chief Balrog of the Continental Guard. You can find him in the center.";
- set rebirth_moc_edq,1;
+ rebirth_moc_edq = 1;
setquest 3050;
close;
}
@@ -1397,7 +1397,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
case 2:
mes "[Chief Balrog]";
mes "Excellent! Bring back ^0000FF30 Live Coals^000000. I'll be waiting for your return.";
- set rebirth_moc_edq,2;
+ rebirth_moc_edq = 2;
changequest 3050,3051;
close;
}
@@ -1479,7 +1479,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "[Chief Balrog]";
mes "Please bring me ^0000FF50 Glacial Hearts^000000. The faster you get them here, the better.";
delitem 7098,30; //Live_Coal
- set rebirth_moc_edq,3;
+ rebirth_moc_edq = 3;
changequest 3051,3052;
close;
}
@@ -1505,7 +1505,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Well... It looks like you earned this.";
delitem 7561,50; //Ice_Heart
getitem 7826,1; //Continental_Guard_Paper
- set rebirth_moc_edq,4;
+ rebirth_moc_edq = 4;
changequest 3052,3053;
next;
mes "[" + strcharinfo(0) + "]";
@@ -1617,7 +1617,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
next;
delitem 7820,1; //Morroc_Skin
getexp (checkre(3))?200000:2000000,0;
- set rebirth_moc_edq,7;
+ rebirth_moc_edq = 7;
changequest 3055,3056;
mes "[Chief Balrog]";
mes "I've prepared a few things to give as a reward for you. Let's see... I have three items. Which one do you like to receive?";
@@ -1639,7 +1639,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with the Seal of Continental Guard. Congratulations.";
next;
getitem 2730,1; //Morroc_Seal
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1671,7 +1671,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with a Morroc Charm Stone. Congratulations.";
next;
getitem 2731,1; //Morroc_Charm_Stone
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1703,7 +1703,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with a Morroc Ring. Congratulations.";
next;
getitem 2732,1; //Morroc_Ring
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1751,7 +1751,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with the Seal of Continental Guard. Congratulations.";
next;
getitem 2730,1; //Morroc_Seal
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1783,7 +1783,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with a Morroc Charm Stone. Congratulations.";
next;
getitem 2731,1; //Morroc_Charm_Stone
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1815,7 +1815,7 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
mes "Great, then I'll reward you with a Morroc Ring. Congratulations.";
next;
getitem 2732,1; //Morroc_Ring
- set rebirth_moc_edq,8;
+ rebirth_moc_edq = 8;
completequest 3056;
mes "[Chief Balrog]";
mes "I hope you keep in mind that our battle is far from over. Our enemy is the king of demons... I fear that Satan Morroc will return someday soon.";
@@ -1859,13 +1859,13 @@ morocc,159,113,3 script Chief Balrog 4_M_CRU_OLD,{
moc_fild21,38,193,0 script Morocc Timer#edq -1,6,6,{
//OnInit:
-// set $@re_moc,0;
-// set $@re_moc_time$,"";
+// $@re_moc = 0;
+// $@re_moc_time$ = "";
// end;
OnTouch:
if ($@re_moc == 0) {
- set $@re_moc,1;
+ $@re_moc = 1;
donpcevent "Satan Broadcast#edq::OnEnable";
}
end;
@@ -1909,7 +1909,7 @@ moc_fild21,178,239,0 script Group of Evil#edq CLEAR_NPC,1,1,{
mes "Wah...!";
close2;
if($@re_moc == 1) {
- set $@re_moc,2;
+ $@re_moc = 2;
donpcevent "Satan Summon#edq::OnEnable";
}
end;
@@ -1927,7 +1927,7 @@ OnInit:
OnEnable:
enablenpc "Group of Evil#edq";
- set $@re_moc_time$,"";
+ $@re_moc_time$ = "";
end;
OnDisable:
@@ -1944,7 +1944,7 @@ moc_fild21,177,239,0 script Time-Space Gap#edq CLEAR_NPC,1,1,{
next;
mes "You stretch your hand and pick up a lusterless fragment.";
getitem 7820,1; //Morroc_Skin
- set rebirth_moc_edq,6;
+ rebirth_moc_edq = 6;
changequest 3053,3055;
close;
}
@@ -1968,16 +1968,16 @@ OnDisable:
stopnpctimer;
disablenpc "Time-Space Gap#edq";
donpcevent "Group of Evil#edq::OnEnable";
- set $@re_moc,0;
+ $@re_moc = 0;
end;
OnTimer1800000:
- set $@re_moc,4;
+ $@re_moc = 4;
end;
OnTimer21600000:
stopnpctimer;
- set $@re_moc,0;
+ $@re_moc = 0;
donpcevent "Time-Space Gap#edq::OnDisable";
end;
}
@@ -1996,13 +1996,13 @@ OnEnable:
OnDisable:
stopnpctimer;
killmonster "moc_fild21","Satan Summon#edq::OnMyMobDead";
- set $@re_moc,0;
+ $@re_moc = 0;
disablenpc "Satan Summon#edq";
end;
OnMyMobDead:
- set $@re_moc,3;
- set $@re_moc_time$, gettimestr("%H%M%S",7);
+ $@re_moc = 3;
+ $@re_moc_time$ = gettimestr("%H%M%S",7);
mapannounce "moc_fild21","I'll let live just a little longer. You'll never find me through this time-space gap!",bc_map,"0xFFFF00";
donpcevent "Time-Space Gap#edq::OnEnable";
donpcevent "Satan Broadcast#edq::OnDisable";
@@ -2018,7 +2018,7 @@ OnTimer5415000:
mapannounce "moc_fild21","I don't have time for this! Go away!",bc_map,"0xFFFF00";
stopnpctimer;
killmonster "moc_fild21","Satan Summon#edq::OnMyMobDead";
- set $@re_moc,0;
+ $@re_moc = 0;
donpcevent "Satan Summon#edq::OnDisable";
end;
}
@@ -2235,7 +2235,7 @@ moc_ruins,137,70,3 script Book-Touching Man#garas 1_M_02,{
mes "[Benjamin]";
mes "Thank you so much! Then remember this title: 'The Crow of the Fate' written by 'Oliver Hilpert.' I'm sure you can find it in Prontera Library.";
mes "Hehehe, Mammi! I'm almost there!";
- set barmunt_crow,1;
+ barmunt_crow = 1;
setquest 2063;
close;
case 2:
@@ -2337,7 +2337,7 @@ moc_ruins,137,70,3 script Book-Touching Man#garas 1_M_02,{
}
mes "^660000Quickly blinking his eyes, he made you take Mammi's picture book in your arms";
mes "demanding that you must encase the book so it would not be damaged.^000000";
- set barmunt_crow,11;
+ barmunt_crow = 11;
getitem 7795,1; //Mami_Photo_Album
next;
mes "[Benjamin]";
@@ -2395,7 +2395,7 @@ moc_ruins,137,70,3 script Book-Touching Man#garas 1_M_02,{
mes "I'm going to see her tomorrow as soon as the morning comes! Mammi, I'm coming!";
delitem 7797,1; //Author_Memo
delitem 7796,1; //Author_Autograph
- set barmunt_crow,16;
+ barmunt_crow = 16;
if (checkre(3))
getexp 90000,90000;
else
@@ -2528,7 +2528,7 @@ prt_in,179,92,3 script Library Curator#garas 1_M_LIBRARYMASTER,{
mes "Well, Juno is quite far from here, but if you're really enthusiastic about reading such a popular book, it should be worthwile.";
next;
mes "^660000The book isn't for you, but you believe in 100% customer satisfaction. Let's go to Juno Library now.^000000";
- set barmunt_crow,2;
+ barmunt_crow = 2;
changequest 2063,2064;
close;
case 2:
@@ -2644,7 +2644,7 @@ yuno,333,210,5 script Library Master#garas 1_M_LIBRARYMASTER,{
next;
mes "^660000He sounded sincere, but it doesn't sound like that kind of broth would even be effective...^000000";
emotion e_dots,1;
- set barmunt_crow,3;
+ barmunt_crow = 3;
close;
}
else {
@@ -2744,7 +2744,7 @@ OnTouch:
next;
mes "^660000He sounded sincere, but it doesn't sound like that kind of broth would even be effective...^000000";
emotion e_dots,1;
- set barmunt_crow,3;
+ barmunt_crow = 3;
close;
}
end;
@@ -2864,7 +2864,7 @@ yuno_in04,100,5,3 script Hot Bestseller Corner HIDDEN_NPC,{
mes "^FF0000-- BEEP --^000000";
next;
mes "^660000You were about to pull out the book, complaining and grumbling, when suddenly it felt as if your brain exploded. You black out...^000000";
- set barmunt_crow,4;
+ barmunt_crow = 4;
close2;
specialeffect2 EF_BASH3D2;
warp "que_ba",247,33;
@@ -2969,7 +2969,7 @@ OnTouch2:
next;
mes "'^660000Now I wonder if the scene is describing an accident that really happened in the past. If there was such big fire, I'm sure I can verify it in a newspaper.";
mes "...I just want to know it out of curiosity...^000000'";
- set barmunt_crow,7;
+ barmunt_crow = 7;
changequest 2064,2065;
close;
}
@@ -2992,7 +2992,7 @@ yuno_in04,117,102,3 script Old News Scrapbook CLEAR_NPC,{
next;
mes "...................................";
next;
- set .@newspp,rand(1,10);
+ .@newspp = rand(1,10);
if ((.@newspp == 1) || (.@newspp == 2)) {
mes "- Page 1 -";
mes "Renowned Assassin Sieglinde: 'I serve you only.'";
@@ -3072,7 +3072,7 @@ yuno_in04,117,102,3 script Old News Scrapbook CLEAR_NPC,{
mes "["+ strcharinfo(0) +"]";
mes "I can't believe this is happening!";
mes "Think hard... It was ^FF0000an area connected to a northern cave^000000.";
- set barmunt_crow,8;
+ barmunt_crow = 8;
changequest 2065,2066;
close;
}
@@ -3195,7 +3195,7 @@ yuno_in04,169,123,3 script Suspicious Man#oliver_h 4_M_ATEIL,{
close2;
specialeffect2 EF_ENHANCE;
delitem 7795,1; //Mami_Photo_Album
- set barmunt_crow,14;
+ barmunt_crow = 14;
getitem 7796,1; //Author_Autograph
getitem 7797,1; //Author_Memo
getitem 617,1; //Old_Violet_Box
@@ -3321,7 +3321,7 @@ yuno_in04,169,123,3 script Suspicious Man#oliver_h 4_M_ATEIL,{
next;
mes "["+ strcharinfo(0) +"]";
mes "That was pretty fun, but also pretty tiring. Where should I head for my next adventure?";
- set barmunt_crow,15;
+ barmunt_crow = 15;
completequest 2068;
close2;
cutin "",255;
@@ -3527,7 +3527,7 @@ yuno_in04,167,120,3 script Worn-out Book#garas HIDDEN_NPC,{
mes "[Oliver Hilpert]";
mes "Okay... I see...";
emotion e_sob;
- set barmunt_crow,13;
+ barmunt_crow = 13;
close2;
cutin "",255;
end;
@@ -3565,7 +3565,7 @@ yuno_in04,167,120,3 script Worn-out Book#garas HIDDEN_NPC,{
close2;
specialeffect2 EF_ENHANCE;
delitem 7795,1; //Mami_Photo_Album
- set barmunt_crow,14;
+ barmunt_crow = 14;
getitem 7796,1; //Author_Autograph
getitem 7797,1; //Author_Memo
getitem 617,1; //Old_Violet_Box
@@ -3699,7 +3699,7 @@ OnTouch:
mes "[Male]";
mes "Eva!! We don't have time to save all of them! Come here!";
if (barmunt_crow == 4) {
- set barmunt_crow,5;
+ barmunt_crow = 5;
}
sc_start SC_BLIND,600000,0,10000;
close2;
@@ -3743,7 +3743,7 @@ OnTouch:
mes "^660000They seemed completely oblivious of your presence, and headed north.^000000";
next;
mes "^660000You were looking at their backs as they left, and then noticed that you were holding the book you were reading in your hands. Then....^000000";
- set barmunt_crow,6;
+ barmunt_crow = 6;
specialeffect2 EF_FLASHER;
close2;
warp "yuno_in04",100,3;
@@ -3790,7 +3790,7 @@ OnTouch:
next;
mes "^660000He could not finish his words before flames swallowed him up. At the same time, you were...^000000";
specialeffect EF_METEORSTORM;
- set barmunt_crow,12;
+ barmunt_crow = 12;
close2;
warp "yuno_in04",108,57;
}
@@ -3959,7 +3959,7 @@ cave,82,97,3 script Cave Settler#g1 4_M_CAVE1,3,3,{
next;
mes "^660000The stern-looking man examined you, and then stepped to the side, allowing you to pass.";
mes "You clenched your fists in nervousness, and then started up the dark stairwell.^000000";
- set barmunt_crow,9;
+ barmunt_crow = 9;
close2;
warp "cave",82,105;
end;
@@ -4048,7 +4048,7 @@ OnTouch:
next;
mes "^660000The stern-looking man examined you, and then stepped to the side, allowing you to pass.";
mes "You clenched your fists in nervousness, and then started up the dark stairwell.^000000";
- set barmunt_crow,9;
+ barmunt_crow = 9;
close2;
warp "cave",82,105;
end;
@@ -4200,7 +4200,7 @@ cave,22,186,3 script Monsterous Man#zid 4_M_MUT1,{
next;
break;
case 4:
- set .@exitloop,1;
+ .@exitloop = 1;
break;
}
if (.@exitloop) break;
@@ -4247,7 +4247,7 @@ cave,22,186,3 script Monsterous Man#zid 4_M_MUT1,{
mes "^660000Zid turned his head away from you. You're still not sure if all of this is really happening. It's all so surreal...^000000";
next;
mes "^660000Frustrated by the conversation with Zid, you have decided to go back to Morroc and forget everything.^000000";
- set barmunt_crow,10;
+ barmunt_crow = 10;
changequest 2066,2067;
close;
}
@@ -4354,7 +4354,7 @@ prontera,153,353,4 script Messenger#prince1 8W_SOLDIER,{
mes "The King's position cannot";
mes "be empty for too long.";
mes "Now, the debate over selecting our next King is actively in progress. Please give us a hand with this, for the tomorrow of Rune Midgarts.";
- set nk_prince,1;
+ nk_prince = 1;
setquest 10000;
close;
case 2:
@@ -4386,7 +4386,7 @@ prontera,153,353,4 script Messenger#prince1 8W_SOLDIER,{
mes "Please...Please...";
mes "Lend a hand for the future";
mes "of the Rune Midgarts kingdom.";
- set nk_prince,1;
+ nk_prince = 1;
setquest 10000;
close;
}
@@ -4421,7 +4421,7 @@ prontera,153,353,4 script Messenger#prince1 8W_SOLDIER,{
mes "you have to do in court.";
mes "I hope you will help bring";
mes "peace to Rune Midgarts.";
- set nk_prince,1;
+ nk_prince = 1;
setquest 10000;
close;
}
@@ -4453,7 +4453,7 @@ prontera,153,353,4 script Messenger#prince1 8W_SOLDIER,{
}
prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
- if (checkquest(10004) == 0 || checkquest(10004) == 1) {
+ if (questprogress(10004) == 1) {
mes "[Inspector]";
mes "Judge!";
mes "How goes it? I don't think it is easy to meet seven candidates and appraise them.";
@@ -4549,13 +4549,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Strength and characteristics of the monster.:Efficiency of the hunt.:What we can get from the hunt.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4564,13 +4564,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Keep fighting until we can do it.:Find a new place and try differently.:Stop hunting and replenish.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4578,13 +4578,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Share it as agreed prior.:I don't want to care for sharing.:Give it to the member that needs it.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4593,13 +4593,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Priest, healer class.:Hunter, damage dealer.:Lord Knight, tanker.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4607,13 +4607,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("A strong person.:An experienced person.:A kind person.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4622,13 +4622,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Relationships with people.:Plenty of information gathering.:Discernment and driving force.")) {
case 1:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4636,13 +4636,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Refer to a past failure.:Hesitating is the worst thing.:You are not alone.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4651,13 +4651,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Growth of oneself.:World peace.:The pursuit of truth.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@int,.@int+10;
+ .@int += 10;
break;
}
mes "[Inspector]";
@@ -4667,13 +4667,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Map:Flint:Weapon")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4681,13 +4681,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Love story.:Heroic epic.:Religious tale.")) {
case 1:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@int,.@int+10;
+ .@int += 10;
break;
}
mes "[Inspector]";
@@ -4697,13 +4697,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Attack first.:Observe from a distance.:Flee away.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4712,13 +4712,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Dominate countries by reinforcing militia.:Advancement of economy and technology.:Keep public security firm.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4803,7 +4803,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "[Inspector]";
mes "Ah, you've spent a long time with me. You must be very tired. Before starting work, if you need some preparation, take off now and come back to me later. I will be waiting here for you.";
next;
- set nk_prince,4;
+ nk_prince = 4;
changequest 10000,10003;
close;
}
@@ -4824,7 +4824,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "bring 2 ^ff0000Reins^000000.";
mes "If you can do this mission,";
mes "I will respect your strength.";
- set nk_prince,2;
+ nk_prince = 2;
changequest 10000,10001;
next;
mes "[Inspector]";
@@ -4850,7 +4850,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "[Inspector]";
mes "Alright, good. You proved your strength for yourself. Now you passed one exam. All but one.";
delitem 1064,2; //Reins
- set nk_prince,3;
+ nk_prince = 3;
changequest 10001,10002;
next;
mes "[Inspector]";
@@ -4887,13 +4887,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Strength and characteristics of the monster.:Efficiency of the hunt.:What we can get from the hunt.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4902,13 +4902,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Keep fighting until we can do it.:Find a new place and try differently.:Stop hunting and replenish.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4916,13 +4916,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Share it as agreed prior.:I don't want to care for sharing.:Give it to the member that needs it.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4931,13 +4931,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Priest, healer class.:Hunter, damage dealer.:Lord Knight, tanker.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4945,13 +4945,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("A strong person.:An experienced person.:A kind person.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4960,13 +4960,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Relationships with people.:Plenty of information gathering.:Discernment and driving force.")) {
case 1:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -4974,13 +4974,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Refer to a past failure.:Hesitating is the worst thing.:You are not alone.")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -4989,13 +4989,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Growth of oneself.:World peace.:The pursuit of truth.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@int,.@int+10;
+ .@int += 10;
break;
}
mes "[Inspector]";
@@ -5005,13 +5005,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Map:Flint:Weapon")) {
case 1:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 2:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 3:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
}
mes "[Inspector]";
@@ -5019,13 +5019,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Love story.:Heroic epic.:Religious tale.")) {
case 1:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
case 2:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 3:
- set .@int,.@int+10;
+ .@int += 10;
break;
}
mes "[Inspector]";
@@ -5035,13 +5035,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Attack first.:Observe from a distance.:Flee away.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -5050,13 +5050,13 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Dominate countries by reinforcing militia.:Advancement of economy and technology.:Keep public security firm.")) {
case 1:
- set .@brave,.@brave+10;
+ .@brave += 10;
break;
case 2:
- set .@int,.@int+10;
+ .@int += 10;
break;
case 3:
- set .@solid,.@solid+10;
+ .@solid += 10;
break;
}
mes "[Inspector]";
@@ -5141,7 +5141,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "[Inspector]";
mes "Ah, you've spent a long time with me. You must be very tired. Before starting work, if you need some preparation, take off now and come back to me later. I will be waiting here for you.";
next;
- set nk_prince,4;
+ nk_prince = 4;
changequest 10002,10003;
close;
}
@@ -5176,7 +5176,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "[Inspector]";
mes "So this time, the Court decided to change its ways, giving the opportunity to appraise the candidates to famous and devoted adventurers like yourself. That's why you are here.";
next;
- set .@prince,1;
+ .@prince = 1;
break;
case 2:
mes "[Inspector]";
@@ -5215,7 +5215,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "[Inspector]";
mes "Please behave accordingly.";
mes "Thanks for your effort.";
- set nk_prince,5;
+ nk_prince = 5;
completequest 10003;
setquest 10005;
setquest 10006;
@@ -5243,7 +5243,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
mes "How is it going?";
mes "Grading someone is not a piece of cake. It's real hard work indeed. You do the hard work for our country.";
next;
- if ((nkprince_eisen == 15) && (checkquest(10025) == 0 || checkquest(10025) == 1)) {
+ if (nkprince_eisen == 15 && questprogress(10025) == 1) {
mes "-I tell him about the Ahrum and Ernst accident.-";
next;
mes "[Inspector]";
@@ -5283,7 +5283,7 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
else if (BaseLevel >= 99) getexp 1100000,0;
else getexp 300000,0;
}
- set nk_prince,8;
+ nk_prince = 8;
completequest 10025;
close;
}
@@ -5308,14 +5308,8 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
next;
switch(select("Yes.:No.")) {
case 1:
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if (.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7 == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
mes "[Inspector]";
mes "Very well.";
mes "I like hearing about the princes.";
@@ -5328,14 +5322,8 @@ prt_castle,117,163,5 script Inspector#prince 4_M_SAGE_C,{
}
close;
case 2:
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if (.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7 == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
mes "[Inspector]";
mes "Don't be coy. I'm sure you have done it already.";
completequest 10004;
@@ -5355,13 +5343,13 @@ prt_castle,272,375,4 script Prince 4_M_SITDOWN,{
mes "lock and key.-";
close;
}
- if (checkquest(10020) == 2) {
+ if (questprogress(10020) == 2) {
mes "[Erich]";
mes "...What bad luck I have!";
mes "But he insists me to be corrupted, knowing how it would be...";
close;
}
- else if (checkquest(10020) == 0 || checkquest(10020) == 1) {
+ else if (questprogress(10020) == 1) {
mes "[Erich]";
mes "These days, I have bad luck... Only harrassments happen to me...";
close;
@@ -5392,16 +5380,10 @@ prt_castle,272,375,4 script Prince 4_M_SITDOWN,{
mes "[Erich]";
mes "That's enough.";
mes "You can ask information about me to my servant. I will take a rest.";
- set nk_prince,6;
+ nk_prince = 6;
completequest 10011;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -5417,7 +5399,7 @@ prt_castle,272,375,4 script Prince 4_M_SITDOWN,{
}
prt_castle,274,372,4 script Servant#hans 1_M_02,{
- if (checkquest(10020) == 2) {
+ if (questprogress(10020) == 2) {
mes "[Hans]";
mes "Ahh... mmm... I...";
mes "I... am so, sorry!";
@@ -5427,7 +5409,7 @@ prt_castle,274,372,4 script Servant#hans 1_M_02,{
mes "My prince didn't do anything wrong but, anyways, I apologize for anything to you!";
close;
}
- else if (checkquest(10020) == 0 || checkquest(10020) == 1) {
+ else if (questprogress(10020) == 1) {
mes "Incessantly...-";
mes "-He has jitters whenever I react to him. His actions give me a feeling of pity.-";
close;
@@ -5507,7 +5489,7 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
mes "It discomforts me...";
close;
}
- if (checkquest(10021) == 2) {
+ if (questprogress(10021) == 2) {
mes "[Urugen]";
mes " feel very much displeased. Hey, what are you looking at? Get out!";
next;
@@ -5515,7 +5497,7 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
mes "My beautiful body isn't in perfect condition right now. I don't want to show it to anyone today.";
close;
}
- else if (checkquest(10021) == 0 || checkquest(10021) == 1) {
+ else if (questprogress(10021) == 1) {
mes "[Urugen]";
mes "...What? What did you...";
mes "just say to me?... Huh?";
@@ -5559,7 +5541,7 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
next;
mes "[Urugen]";
mes "I became timid, gradually, in phases. I feel awe from men and women both, regardless of sexuality.";
- set .@p_a,1;
+ .@p_a = 1;
next;
break;
case 2:
@@ -5568,7 +5550,7 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
next;
mes "[Urugen]";
mes "The presence of such a gorgeous king like me will be the light for people and the hope and reason for their lives.";
- set .@p_b,1;
+ .@p_b = 1;
next;
break;
case 3:
@@ -5577,7 +5559,7 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
next;
mes "[Urugen]";
mes "In every case, there is an exception, like you in this court. Can you stand away from me a bit more? Because of your odor, I can hardly breathe.";
- set .@p_c,1;
+ .@p_c = 1;
next;
break;
case 4:
@@ -5587,14 +5569,8 @@ prt_castle,339,202,3 script Prince#urgen 4_M_4THPRIN1,{
completequest 10009;
}
completequest 10011;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -5609,14 +5585,14 @@ prt_castle,289,201,3 script Prince#helmut 4_M_5THPRIN1,{
mes "Such an idiot. I should have killed him earlier. Now I feel relieved.";
close;
}
- if (checkquest(10022) == 2) {
+ if (questprogress(10022) == 2) {
mes "[Helmut]";
mes "Damn... Damn it!";
mes "Novice of Walter!!";
mes "How can I deal with this stress? Damn! Hell!";
close;
}
- else if (checkquest(10022) == 0 || checkquest(10022) == 1) {
+ else if (questprogress(10022) == 1) {
mes "-He is so blushed,";
mes "evidently shown on his face.-";
close;
@@ -5668,14 +5644,8 @@ prt_castle,289,201,3 script Prince#helmut 4_M_5THPRIN1,{
mes "[" + strcharinfo(0) + "]";
mes "......";
completequest 10010;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -5713,14 +5683,8 @@ prt_castle,289,201,3 script Prince#helmut 4_M_5THPRIN1,{
mes "[" + strcharinfo(0) + "]";
mes "......";
completequest 10010;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -5758,14 +5722,8 @@ prt_castle,289,201,3 script Prince#helmut 4_M_5THPRIN1,{
mes "[" + strcharinfo(0) + "]";
mes "......";
completequest 10010;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -5806,12 +5764,12 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "Whatever the condition is, he is just a loser in the match of life.";
close;
}
- if (checkquest(10018) == 2) {
+ if (questprogress(10018) == 2) {
mes "[Poe]";
mes "He gave up without any challenge. That's not what the man has to do. He is not as good as me. But okay. I am disappointed in him. Eigen Ahrum.";
close;
}
- else if (checkquest(10018) == 0 || checkquest(10018) == 1) {
+ else if (questprogress(10018) == 1) {
mes "[Poe]";
mes "......";
close;
@@ -5851,7 +5809,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "Ah, of course, 7 is the middle number. 7 means no success or no failure. The goal of this game is to give the right answer 2 times in a row. Let's begin!";
next;
while(.@wincount < 2) {
- set .@card,rand(1,13);
+ .@card = rand(1,13);
mes "[Poe]";
mes "Yes, now choose one";
mes "from higher and lower.";
@@ -5867,7 +5825,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "It is..." + .@card + "!!";
next;
if (.@card > 7) {
- set .@wincount,.@wincount+1;
+ ++.@wincount;
mes "[Poe]";
mes "Whooah, you gave the right answer!";
if (.@wincount == 2) {
@@ -5902,7 +5860,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "It is..." + .@card + "!!";
next;
if (.@card < 7) {
- set .@wincount,.@wincount+1;
+ ++.@wincount;
mes "[Poe]";
mes "Whooah, you gave the right answer!";
if (.@wincount == 2) {
@@ -5962,7 +5920,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "[Poe]";
mes "Hey it's cool, huh?";
mes "We have same tastes, haven't we?";
- set .@p_a,1;
+ .@p_a = 1;
next;
break;
case 2:
@@ -5985,7 +5943,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
mes "Ah, those last words";
mes "are off-the-record.";
mes "I don't want to be bothered by my family.";
- set .@p_b,1;
+ .@p_b = 1;
next;
break;
case 3:
@@ -5998,7 +5956,7 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
next;
mes "[Poe]";
mes "But many say, about my character, that I am addicted to gambling. I am just full of a challenging spirit and I like raking in money! I am a free-spirited normal man.";
- set .@p_c,1;
+ .@p_c = 1;
next;
break;
case 4:
@@ -6008,14 +5966,8 @@ prt_castle,391,205,3 script Prince#poe 4_M_6THPRIN1,{
if (.@p_a + .@p_b + .@p_c == 3) {
completequest 10007;
}
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -6032,7 +5984,7 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
next;
switch(select("Yes, I saw her for you.:No, I don't want to.")) {
case 1:
- if (checkquest(10014) == 0 || checkquest(10014) == 1) {
+ if (questprogress(10014) == 1) {
mes "[Peter]";
mes "I am glad that the girl liked it. Once I got cured, I wanted to go meet with her.";
next;
@@ -6046,7 +5998,7 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
mes "Thinking about the little girl calms me. I still can't believe my eyes. My prince Ahrum who just passed away...~";
close;
case 2:
- if (checkquest(10014) == 0 || checkquest(10014) == 1) {
+ if (questprogress(10014) == 1) {
mes "[Peter]";
mes "As you said.";
mes "I've heard that her life is like a flower when I lost it.";
@@ -6064,25 +6016,25 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
close;
}
}
- if (checkquest(10019) == 2) {
+ if (questprogress(10019) == 2) {
mes "[Peter]";
mes "Child... What the heck happened to you?...";
close;
}
- else if (checkquest(10019) == 0 || checkquest(10019) == 1) {
+ else if (questprogress(10019) == 1) {
mes "[Peter]";
mes "......";
close;
}
- if (checkquest(10008) == 2) {
- set .@quest, checkquest(10014);
+ if (questprogress(10008) == 2) {
+ .@quest = questprogress(10014);
if (.@quest == 2) {
mes "[Peter]";
mes "I really appreciate it.";
mes "You are so kind.";
close;
}
- else if (.@quest == 0 || .@quest == 1) {
+ else if (.@quest == 1) {
mes "[Peter]";
mes "I am glad that the girl liked it. Once I got cured, I wanted to go meet with her.";
next;
@@ -6172,14 +6124,8 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
mes "Please take care.";
getitem 744,1; //Bunch_Of_Flowers
setquest 10013;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -6189,14 +6135,8 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
mes "I know you have your";
mes "own business.";
setquest 10013;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -6208,7 +6148,7 @@ prt_castle,364,375,4 script Prince#peter 4_M_3RDPRIN1,{
}
aldebaran,132,184,3 script Girl#prince 4W_KID,{
- if (checkquest(10013) == 0 || checkquest(10013) == 1) {
+ if (questprogress(10013) == 1) {
if (countitem(744) > 0) {
mes "[Girl]";
mes "Wooah, Uncle Peter sent these flowers";
@@ -6252,7 +6192,7 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
next;
mes "[Ahrum]";
mes "We were close friends. Unlike me, he is kind and compassionate; a distinct official of public affairs. When he has to be strict, he turns strict with everyone.";
- set nkprince_eisen,4;
+ nkprince_eisen = 4;
close;
}
else if (nkprince_eisen == 4) {
@@ -6316,7 +6256,7 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
mes "[Ernst]";
mes "Now, let me return to my room. Keep up the good work, appraiser.";
donpcevent "Prince#another_ern::OnDisable";
- set nkprince_eisen,6;
+ nkprince_eisen = 6;
close;
}
else if (nkprince_eisen == 6) {
@@ -6328,7 +6268,7 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
mes "I worry about your words...";
mes "What do you want to say this time?...";
mes "Have you seen him, appraiser?";
- set nkprince_eisen,7;
+ nkprince_eisen = 7;
changequest 10012,10016;
close;
}
@@ -6366,7 +6306,7 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
next;
mes "[Ahrum]";
mes "I am very sorry, but I want to be left alone. Leave me alone, right now!";
- set nkprince_eisen,9;
+ nkprince_eisen = 9;
close2;
warp "prt_castle",318,273;
end;
@@ -6447,7 +6387,7 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
next;
mes "(dagger thrusting sound)";
specialeffect EF_HIT2;
- set nkprince_eisen,14;
+ nkprince_eisen = 14;
donpcevent "Prince#another_ern::OnDisable";
donpcevent "Prince#another_ern1::OnEnable";
close;
@@ -6536,8 +6476,8 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
mes "[Ernst]";
mes "Brotherrrrrrrr!!!";
next;
- set nkprince_eisen,15;
- set nk_prince,7;
+ nkprince_eisen = 15;
+ nk_prince = 7;
donpcevent "Prince#another_ern1::OnDisable";
changequest 10024,10025;
close2;
@@ -6675,20 +6615,14 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
mes "Okay...";
mes "as you please.";
if (nkprince_eisen == 2) {
- set nkprince_eisen,3;
+ nkprince_eisen = 3;
}
else {
- set nkprince_eisen,1;
+ nkprince_eisen = 1;
}
completequest 10005;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -6698,14 +6632,14 @@ prt_castle,314,373,4 script Prince#eisen 4_M_1STPRIN1,{
}
prt_castle,368,312,4 script Prince#ern 4_M_2NDPRIN1,{
- if (checkquest(10024) == 2) {
+ if (questprogress(10024) == 2) {
mes "[Ernst]";
mes "...brother, if you want...";
mes "...Ah, please leave here.";
mes "I don't want to see anyone.";
close;
}
- else if (checkquest(10024) == 0 || checkquest(10024) == 1) {
+ else if (questprogress(10024) == 1) {
mes "[Ernst]";
mes "...Brother Ahrum...";
close;
@@ -6740,7 +6674,7 @@ prt_castle,368,312,4 script Prince#ern 4_M_2NDPRIN1,{
next;
mes "[Ernst]";
mes "It seems that even brother Ahrum hasn't met with him. Hmm...";
- set nkprince_eisen,7;
+ nkprince_eisen = 7;
changequest 10012,10016;
close;
}
@@ -6752,7 +6686,7 @@ prt_castle,368,312,4 script Prince#ern 4_M_2NDPRIN1,{
next;
mes "[Ernst]";
mes "Hmm...I don't have any more words to say. Moreover, Ahrum seems to be strange these days. I worry about that. I hope it's not a big deal.";
- set nkprince_eisen,10;
+ nkprince_eisen = 10;
changequest 10017,10004;
close;
}
@@ -6868,20 +6802,14 @@ prt_castle,368,312,4 script Prince#ern 4_M_2NDPRIN1,{
mes "[Ernst]";
mes "Yes, then, see you later.";
if (nkprince_eisen == 1) {
- set nkprince_eisen,3;
+ nkprince_eisen = 3;
}
else {
- set nkprince_eisen,2;
+ nkprince_eisen = 2;
}
completequest 10006;
- set .@prin1,checkquest(10005);
- set .@prin2,checkquest(10006);
- set .@prin3,checkquest(10007);
- set .@prin4,checkquest(10008);
- set .@prin5,checkquest(10009);
- set .@prin6,checkquest(10010);
- set .@prin7,checkquest(10011);
- if ((.@prin1 + .@prin2 + .@prin3 + .@prin4 + .@prin5 + .@prin6 + .@prin7) == 14) {
+ if (questprogress(10005) == 2 && questprogress(10006) == 2 && questprogress(10007) == 2 && questprogress(10008) == 2
+ && questprogress(10009) == 2 && questprogress(10010) == 2 && questprogress(10011) == 2) {
setquest 10012;
}
close;
@@ -6960,7 +6888,7 @@ OnTouch:
mes "[" + strcharinfo(0) + "]";
mes "(Is this the conspiracy of two families? What the hell..)";
changequest 10016,10017;
- set nkprince_eisen,8;
+ nkprince_eisen = 8;
close;
}
}
@@ -7068,7 +6996,7 @@ prt_castle,314,371,0 script Prince#another_ern 4_M_2NDPRIN1,{
next;
mes "(dagger thrusting sound)";
specialeffect EF_HIT2;
- set nkprince_eisen,14;
+ nkprince_eisen = 14;
donpcevent "Prince#another_ern::OnDisable";
donpcevent "Prince#another_ern1::OnEnable";
close;
@@ -7135,7 +7063,7 @@ prt_castle,314,371,0 script Prince#another_ern 4_M_2NDPRIN1,{
mes "[Ernst]";
mes "Now, let me return to my room. Keep up the good work, appraiser.";
donpcevent "Prince#another_ern::OnDisable";
- set nkprince_eisen,6;
+ nkprince_eisen = 6;
close;
}
@@ -7235,8 +7163,8 @@ prt_castle,314,372,0 script Prince#another_ern1 4_M_2NDPRIN1,{
mes "[Ernst]";
mes "Brotherrrrrrrr!!!";
next;
- set nkprince_eisen,15;
- set nk_prince,7;
+ nkprince_eisen = 15;
+ nk_prince = 7;
donpcevent "Prince#another_ern1::OnDisable";
changequest 10024,10025;
close2;
@@ -7290,14 +7218,10 @@ prt_castle,272,372,1 script Prince#eisen1 4_M_1STPRIN1,{
mes "[Erich]";
mes "...Nuts.";
completequest 10020;
- set .@er1,checkquest(10018);
- set .@er2,checkquest(10019);
- set .@er3,checkquest(10020);
- set .@er4,checkquest(10021);
- set .@er5,checkquest(10022);
- if ((.@er1 + .@er2 + .@er3 + .@er4 + .@er5) == 10) {
+ if (questprogress(10018) == 2 && questprogress(10019) == 2 && questprogress(10020) == 2
+ && questprogress(10021) == 2 && questprogress(10022) == 2) {
setquest 10023;
- set nkprince_eisen,11;
+ nkprince_eisen = 11;
}
donpcevent "Prince#eisen1::OnDisable";
close;
@@ -7348,14 +7272,10 @@ prt_castle,336,202,7 script Prince#eisen2 4_M_1STPRIN1,{
mes "[Urugen]";
mes "...You are so low. I misjudged you. You are not of the few that have an artistic view. I totally saw you the wrong way.";
completequest 10021;
- set .@er1,checkquest(10018);
- set .@er2,checkquest(10019);
- set .@er3,checkquest(10020);
- set .@er4,checkquest(10021);
- set .@er5,checkquest(10022);
- if ((.@er1 + .@er2 + .@er3 + .@er4 + .@er5) == 10) {
+ if (questprogress(10018) == 2 && questprogress(10019) == 2 && questprogress(10020) == 2
+ && questprogress(10021) == 2 && questprogress(10022) == 2) {
setquest 10023;
- set nkprince_eisen,11;
+ nkprince_eisen = 11;
}
donpcevent "Prince#eisen2::OnDisable";
close;
@@ -7403,14 +7323,10 @@ prt_castle,286,201,7 script Prince#eisen3 4_M_1STPRIN1,{
mes "[Helmut]";
mes "That is... such a villain!!!";
completequest 10022;
- set .@er1,checkquest(10018);
- set .@er2,checkquest(10019);
- set .@er3,checkquest(10020);
- set .@er4,checkquest(10021);
- set .@er5,checkquest(10022);
- if ((.@er1 + .@er2 + .@er3 + .@er4 + .@er5) == 10) {
+ if (questprogress(10018) == 2 && questprogress(10019) == 2 && questprogress(10020) == 2
+ && questprogress(10021) == 2 && questprogress(10022) == 2) {
setquest 10023;
- set nkprince_eisen,11;
+ nkprince_eisen = 11;
}
donpcevent "Prince#eisen3::OnDisable";
close;
@@ -7467,14 +7383,10 @@ prt_castle,388,205,6 script Prince#eisen4 4_M_1STPRIN1,{
mes "What... What. It's not fun.";
mes "I totally couldn't get him.";
completequest 10018;
- set .@er1,checkquest(10018);
- set .@er2,checkquest(10019);
- set .@er3,checkquest(10020);
- set .@er4,checkquest(10021);
- set .@er5,checkquest(10022);
- if ((.@er1 + .@er2 + .@er3 + .@er4 + .@er5) == 10) {
+ if (questprogress(10018) == 2 && questprogress(10019) == 2 && questprogress(10020) == 2
+ && questprogress(10021) == 2 && questprogress(10022) == 2) {
setquest 10023;
- set nkprince_eisen,11;
+ nkprince_eisen = 11;
}
donpcevent "Prince#eisen4::OnDisable";
close;
@@ -7531,14 +7443,10 @@ prt_castle,364,372,1 script Prince#eisen5 4_M_1STPRIN1,{
mes "[Peter]";
mes "......";
completequest 10019;
- set .@er1,checkquest(10018);
- set .@er2,checkquest(10019);
- set .@er3,checkquest(10020);
- set .@er4,checkquest(10021);
- set .@er5,checkquest(10022);
- if ((.@er1 + .@er2 + .@er3 + .@er4 + .@er5) == 10) {
+ if (questprogress(10018) == 2 && questprogress(10019) == 2 && questprogress(10020) == 2
+ && questprogress(10021) == 2 && questprogress(10022) == 2) {
setquest 10023;
- set nkprince_eisen,11;
+ nkprince_eisen = 11;
}
donpcevent "Prince#eisen5::OnDisable";
close;
@@ -7626,7 +7534,7 @@ prt_castle,368,310,1 script Prince#eisen6 4_M_1STPRIN1,{
mes "[Ernst]";
mes "Ahrum... Ahrum...";
changequest 10023,10024;
- set nkprince_eisen,13;
+ nkprince_eisen = 13;
donpcevent "Prince#eisen6::OnDisable";
close;
@@ -7647,11 +7555,11 @@ prt_castle,318,276,0 script #eisen WARPNPC,1,1,{
OnTouch:
if ((nkprince_eisen == 4) || (nkprince_eisen == 5)) {
donpcevent "Prince#another_ern::OnEnable";
- set nkprince_eisen,5;
+ nkprince_eisen = 5;
warp "prt_castle",318,368;
}
else if ((nkprince_eisen == 9) || (nkprince_eisen == 10) || (nkprince_eisen == 11) || (nkprince_eisen == 12)) {
- set .@armkoe,rand(1,4);
+ .@armkoe = rand(1,4);
if (.@armkoe == 1) {
mes "-You can hear Ahrum's voice";
mes "before going into his room";
@@ -7737,7 +7645,7 @@ OnTouch:
prt_castle,336,276,0 script #ern WARPNPC,1,1,{
OnTouch:
- if (checkquest(10023) == 0 || checkquest(10023) == 1) {
+ if (questprogress(10023) == 1) {
donpcevent "Prince#eisen6::OnEnable";
}
warp "prt_castle",368,308;
@@ -7746,7 +7654,7 @@ OnTouch:
prt_castle,300,276,0 script #erich WARPNPC,1,1,{
OnTouch:
- if (checkquest(10020) == 0 || checkquest(10020) == 1) {
+ if (questprogress(10020) == 1) {
donpcevent "Prince#eisen1::OnEnable";
}
warp "prt_castle",274,368;
@@ -7755,7 +7663,7 @@ OnTouch:
prt_castle,330,271,0 script #helmut WARPNPC,1,1,{
OnTouch:
- if (checkquest(10022) == 0 || checkquest(10022) == 1) {
+ if (questprogress(10022) == 1) {
donpcevent "Prince#eisen3::OnEnable";
}
warp "prt_castle",290,208;
@@ -7764,7 +7672,7 @@ OnTouch:
prt_castle,348,271,0 script #poe WARPNPC,1,1,{
OnTouch:
- if (checkquest(10018) == 0 || checkquest(10018) == 1) {
+ if (questprogress(10018) == 1) {
donpcevent "Prince#eisen4::OnEnable";
}
warp "prt_castle",390,208;
@@ -7773,7 +7681,7 @@ OnTouch:
prt_castle,354,276,0 script #peter WARPNPC,1,1,{
OnTouch:
- if (checkquest(10019) == 0 || checkquest(10019) == 1) {
+ if (questprogress(10019) == 1) {
donpcevent "Prince#eisen5::OnEnable";
}
warp "prt_castle",366,368;
@@ -7782,7 +7690,7 @@ OnTouch:
prt_castle,310,271,0 script #urgen WARPNPC,1,1,{
OnTouch:
- if (checkquest(10021) == 0 || checkquest(10021) == 1) {
+ if (questprogress(10021) == 1) {
donpcevent "Prince#eisen2::OnEnable";
}
warp "prt_castle",340,208;
@@ -7837,7 +7745,7 @@ OnTouch:
mes "[" + strcharinfo(0) + "]";
mes "Who is going to have the throne instead of him?";
next;
- set nk_prince,9;
+ nk_prince = 9;
mes "[" + strcharinfo(0) + "]";
mes "Oh no...";
close;