summaryrefslogtreecommitdiff
path: root/npc/re/quests/quests_eclage.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/quests/quests_eclage.txt')
-rw-r--r--npc/re/quests/quests_eclage.txt55
1 files changed, 27 insertions, 28 deletions
diff --git a/npc/re/quests/quests_eclage.txt b/npc/re/quests/quests_eclage.txt
index 0bc237d58..ca784e44d 100644
--- a/npc/re/quests/quests_eclage.txt
+++ b/npc/re/quests/quests_eclage.txt
@@ -46,22 +46,21 @@
mes "[Teleport Cat]";
mes "We provide teleport service between various regions based on our accumulated knowledge. We accept Malangdo Canned Specialties or Zeny, so you can pay however you like it~";
next;
- set .@menu$,"Forget it:";
- for(set .@i,0; .@i<getarraysize(.@map$); set .@i,.@i+1) {
- set .@menu$, .@menu$+
- .@map$[.@i]+" ("+.@cost[.@i]+" Canned Food):"+
- .@map$[.@i]+" ("+.@cost[.@i]+",000 Zeny):";
+ .@menu$ = "Forget it:";
+ for(.@i = 0; .@i<getarraysize(.@map$); ++.@i) {
+ .@menu$ += .@map$[.@i]+" ("+.@cost[.@i]+" Canned Food):"+
+ .@map$[.@i]+" ("+.@cost[.@i]+",000 Zeny):";
}
- set .@i, select(.@menu$)-2;
+ .@i = select(.@menu$)-2;
if (.@i == -1) {
mes "[Teleport Cat]";
mes "I'll see you later then.";
close;
}
- set .@choice$, .@map$[.@i/2];
- set .@price, .@cost[.@i/2];
+ .@choice$ = .@map$[.@i/2];
+ .@price = .@cost[.@i/2];
if (.@i % 2) {
- set .@price, .@price*1000;
+ .@price *= 1000;
if (Zeny < .@price) {
mes "[Teleport Cat]";
mes "I'm afraid it's not enough. Sorry, but it can't be done for free~";
@@ -136,7 +135,7 @@ ecl_fild01,94,322,5 script Security Guard#ep14_2 4_M_FAIRYSOLDIER,{
mes "[Security Guard]";
mes "If you completed your forms, please submit them to the administrator over there.";
mes "There may be some waiting time, so take your time.";
- set ep14_2_enter,1;
+ ep14_2_enter = 1;
setquest 11310;
close;
} else if (ep14_2_enter == 1) {
@@ -154,7 +153,7 @@ ecl_fild01,94,322,5 script Security Guard#ep14_2 4_M_FAIRYSOLDIER,{
next;
mes "[Security Guard]";
mes "There would be no need for any separate translation, and there are enough bridges for on-foot races, so I hope you have a comfortable visit.";
- set ep14_2_enter,3;
+ ep14_2_enter = 3;
erasequest 11311;
close2;
warp "eclage",100,28;
@@ -321,7 +320,7 @@ ecl_fild01,111,320,2 script Immigration Officer#ep1 4_M_FAIRYKID4,{
mes "[Mark Esha]";
mes "My goodness......";
emotion e_swt2,1;
- set ep14_2_enter,2;
+ ep14_2_enter = 2;
erasequest 11310;
setquest 11311;
close2;
@@ -347,7 +346,7 @@ eclage,102,32,4 script Fairy Carpenter#ep14_2 4_M_FAIRYKID2,{
emotion e_sob;
close;
}
- if (checkquest(11312) == -1) {
+ if (!questprogress(11312)) {
mes "[Fairy Carpenter]";
mes "This area is kind of broken, so be careful.";
mes "Otherwise, you'll fall aaaaaall the way down.";
@@ -743,7 +742,7 @@ ecl_in04,109,215,2 script Hiel#pa0829 4_M_FAIRYSCHOLAR,{
// For Eclage
//============================================================
function script F_Eclage_Traveler {
- if (checkquest(7411) > -1 && checkquest(7412) > -1 && checkquest(7413) > -1) {
+ if (questprogress(7411) && questprogress(7412) && questprogress(7413)) {
cutin "minuel01.bmp",4;
donpcevent "Eclage Guard#tl01::OnEnable";
mes "[Eclage Guard]";
@@ -781,7 +780,7 @@ function script F_Eclage_Traveler {
erasequest 7412;
erasequest 7413;
setquest 7414;
- set ep14_2_tl,1;
+ ep14_2_tl = 1;
donpcevent "Eclage Guard#tl01::OnDisable";
close2;
cutin "minuel01.bmp",255;
@@ -792,7 +791,7 @@ function script F_Eclage_Traveler {
ecl_in01,32,52,4 script Traveler Fome#tl01 4_F_DOGTRAVELER,3,3,{
if (ep14_2_tl == 0) {
- if (checkquest(7411) == -1) {
+ if (!questprogress(7411)) {
mes "[Fome]";
mes "Come here and have a talk with us.";
mes "My name is Fome and I'm from the central region of Alpheim.";
@@ -903,7 +902,7 @@ ecl_in01,32,52,4 script Traveler Fome#tl01 4_F_DOGTRAVELER,3,3,{
close;
}
OnTouch:
- if (ep14_2_tl == 0 && checkquest(7411) == -1 && checkquest(7412) == -1 && checkquest(7413) == -1) {
+ if (ep14_2_tl == 0 && !questprogress(7411) && !questprogress(7412) && !questprogress(7413)) {
mes "A group of travelers of Alpheim are having a conversation.";
emotion e_loud;
next;
@@ -920,7 +919,7 @@ OnTouch:
ecl_in01,32,51,6 script Traveler Litrip#tl02 4_M_DOGTRAVELER,{
if (ep14_2_tl == 0) {
- if (checkquest(7412) == -1) {
+ if (questprogress(7412)) {
mes "[Litrip]";
mes "Oh, look at this strange traveler.";
mes "Come here. My name is Litrip.";
@@ -1008,7 +1007,7 @@ ecl_in01,32,51,6 script Traveler Litrip#tl02 4_M_DOGTRAVELER,{
ecl_in01,35,51,2 script Traveler Chiba#tl03 4_M_DOGTRAVELER2,{
if (ep14_2_tl == 0) {
- if (checkquest(7413) == -1) {
+ if (questprogress(7413)) {
mes "[Chiba]";
mes "You're human from Midgard.";
mes "I'm Chiba.";
@@ -1111,7 +1110,7 @@ ecl_in01,82,70,2 script Eclage Guard#tl02 4_M_FAIRYSOLDIER,{
mes "Please follow me then.";
erasequest 7414;
setquest 7415;
- set ep14_2_tl,2;
+ ep14_2_tl = 2;
close2;
warp "ecl_in03",244,89;
cutin "minuel02.bmp",255;
@@ -1157,7 +1156,7 @@ ecl_in01,82,70,2 script Eclage Guard#tl02 4_M_FAIRYSOLDIER,{
mes "I see you pretty often.";
mes "I was notified in advance that the Chief of Staff requested for an audience.";
next;
- if (checkquest(7416,PLAYTIME) < 2) {
+ if (questprogress(7416,PLAYTIME) != 2) {
mes "[Eclage Guard]";
mes "But I'm afraid it's too early.";
mes "I think you have to wait for a while.";
@@ -1176,7 +1175,7 @@ ecl_in01,82,70,2 script Eclage Guard#tl02 4_M_FAIRYSOLDIER,{
case 1:
mes "[Eclage Guard]";
mes "Follow me, please.";
- set ep14_2_tl,4;
+ ep14_2_tl = 4;
close2;
warp "ecl_in03",58,72;
cutin "minuel02.bmp",255;
@@ -1210,7 +1209,7 @@ ecl_in01,82,70,2 script Eclage Guard#tl02 4_M_FAIRYSOLDIER,{
end;
}
} else if (ep14_2_tl == 5) {
- if (checkquest(7418) == -1) {
+ if (!questprogress(7418)) {
cutin "minuel01.bmp",2;
mes "[Eclage Guard]";
mes "Eh, good to see you again.";
@@ -1423,12 +1422,12 @@ ecl_in03,245,93,2 script Chief of Staff#tl01 4_F_FAIRY,{
mes "By the way, the guard who is going to lead you will be at the east gate. Don't forget the time.";
erasequest 7415;
setquest 7416;
- set ep14_2_tl,3;
+ ep14_2_tl = 3;
close2;
warp "ecl_in01",47,28;
end;
} else if (ep14_2_tl == 3) {
- if (checkquest(7416,PLAYTIME) < 2) {
+ if (questprogress(7416,PLAYTIME) != 2) {
mes "[Shenime]";
mes "You need to wait a little longer to see Mayor Jun.";
mes "He is pretty busy, so please bear with us.";
@@ -1572,7 +1571,7 @@ ecl_in03,41,90,2 script Mayor Jun Kardui#tl01 4_M_FARIYKING,{
mes "I'll be looking forward to seeing you, stranger who will be my friend.";
erasequest 7416;
setquest 7417;
- set ep14_2_tl,5;
+ ep14_2_tl = 5;
close2;
cutin "kardui01.bmp",255;
end;
@@ -1618,7 +1617,7 @@ ecl_fild01,205,86,4 script Eclage Messenger Roy#tl 4_M_FAIRYSOLDIER2,{
mes "...Ah... I'm just feeling sorry for myself, so just continue on your way.";
close;
} else {
- if (checkquest(7419) == -1) {
+ if (!questprogress(7419)) {
mes "[Roy]";
mes "It's hard.";
mes "It really is hard.";
@@ -1705,7 +1704,7 @@ eclage,112,40,4 script Eclage Guard Leo#tl 4_M_FAIRYSOLDIER2,{
mes "I hope you enjoy your trip.";
close;
} else {
- if (checkquest(7420) == -1) {
+ if (!questprogress(7420)) {
mes "[Leo]";
mes "Hi, how are you?";
emotion e_gasp;