summaryrefslogtreecommitdiff
path: root/npc/re/instances
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/instances')
-rw-r--r--npc/re/instances/BakonawaLake.txt658
-rw-r--r--npc/re/instances/BangungotHospital.txt46
-rw-r--r--npc/re/instances/BuwayaCave.txt469
-rw-r--r--npc/re/instances/EclageInterior.txt732
-rw-r--r--npc/re/instances/HazyForest.txt1210
-rw-r--r--npc/re/instances/MalangdoCulvert.txt1302
-rw-r--r--npc/re/instances/OldGlastHeim.txt1483
-rw-r--r--npc/re/instances/WolfchevLaboratory.txt107
-rw-r--r--npc/re/instances/ghost_palace.txt436
-rw-r--r--npc/re/instances/octopus_cave.txt315
-rw-r--r--npc/re/instances/saras_memory.txt1049
11 files changed, 4015 insertions, 3792 deletions
diff --git a/npc/re/instances/BakonawaLake.txt b/npc/re/instances/BakonawaLake.txt
index 2868cc589..5226db6cc 100644
--- a/npc/re/instances/BakonawaLake.txt
+++ b/npc/re/instances/BakonawaLake.txt
@@ -34,223 +34,232 @@
//=========================================================================
ma_scene01,174,179,4 script Taho 4_M_DEWZATIMAN,{
- disable_items;
- if (checkweight(Knife,1) == 0) {
- mes "You are carrying too many items. Come back after taking off some of them.";
- close;
+ disable_items();
+ if (checkweight(Knife, 1) == 0) {
+ mes("You are carrying too many items. Come back after taking off some of them.");
+ close();
}
if (MaxWeight - Weight < 10000) {
- mes "You are carrying too much weight. Come back after reducing the weight.";
- close;
+ mes("You are carrying too much weight. Come back after reducing the weight.");
+ close();
}
if (BaseLevel < 140) {
- mes "[Taho]";
- mes "Hey. This is too dangerous a place for you. You cannot keep yourself safe. Get out of here and go to the village right now!";
- close;
+ mes("[Taho]");
+ mes("Hey. This is too dangerous a place for you. You cannot keep yourself safe. Get out of here and go to the village right now!");
+ close();
}
if (malaya_bakona1 < 7 && malaya_bakona2 < 15) {
- mes "[Taho]";
- mes "We are gonna be killed all by that Bakonawa. Ah, we must slay him but unfortunately we are not prepared.";
- close;
+ mes("[Taho]");
+ mes("We are gonna be killed all by that Bakonawa. Ah, we must slay him but unfortunately we are not prepared.");
+ close();
}
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Bakonawa Lake";
+ .@md_name$ = _("Bakonawa Lake");
- .@baku_time = questprogress(12278,PLAYTIME);
+ .@baku_time = questprogress(12278, PLAYTIME);
if (!.@baku_time) {
- if (!questprogress(12279)) setquest 12279;
+ if (!questprogress(12279))
+ setquest(12279);
}
if (!.@party_id) {
- mes "[Taho]";
- mes "Isn't there any company who can go with you? Or even if you wanna go alone, come after organizing a party.";
- close;
+ mes("[Taho]");
+ mes("Isn't there any company who can go with you? Or even if you wanna go alone, come after organizing a party.");
+ close();
}
if (!.@baku_time) {
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) {
- mes "[Taho]";
- mes "Are you the leader of the Bakonawa slayers? The road is not well so we have to go down the cliff with a rope, is that OK?";
- next;
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2)) {
+ mes("[Taho]");
+ mes("Are you the leader of the Bakonawa slayers? The road is not well so we have to go down the cliff with a rope, is that OK?");
+ next();
.@i = select("Please weave a rope.", "Now I will go down.", "Cancel.");
} else {
- mes "[Taho]";
- mes "You came for slaying Bakonawa. The leader of your party has to help me weaving the rope for going down.";
- next;
+ mes("[Taho]");
+ mes("You came for slaying Bakonawa. The leader of your party has to help me weaving the rope for going down.");
+ next();
.@i = select("", "Now I will go down.", "Cancel.");
}
- switch(.@i) {
+ switch (.@i) {
case 1:
- .@instance = instance_create(.@md_name$,.@party_id);
- if (.@instance < 0) {
- mes "[Taho]";
- mes "Oh, the rope got dropped. I have to make a new one.";
- close;
+ .@instance = instance_create(.@md_name$, .@party_id);
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@ma_b", .@instance) == "") {
+ mes("[Taho]");
+ mes("Oh, the rope got dropped. I have to make a new one.");
+ instance_destroy(.@instance);
+ close();
+ }
+ instance_set_timeout(7200, 300, .@instance);
+ instance_init(.@instance);
}
- if (instance_attachmap("1@ma_b",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- instance_destroy(.@instance);
- close;
- }
- instance_set_timeout 7200,300,.@instance;
- instance_init(.@instance);
- mes "[Taho]";
- mes "Now I'm weaving, so you can go down when I'm done.";
- close;
+ mes("[Taho]");
+ mes("Now I'm weaving, so you can go down when I'm done.");
+ close();
case 2:
- if( has_instance("1@ma_b") == "" ) {
- mes "The memorial dungeon "+.@md_name$+" does not exist.";
- mes "The party leader did not generate the dungeon yet.";
- close;
+ if (has_instance("1@ma_b") == "") {
+ mesf("The memorial dungeon %s does not exist.", .@md_name$);
+ mes("The party leader did not generate the dungeon yet.");
+ close();
} else {
- mapannounce "ma_scene01","A party member, "+strcharinfo(PC_NAME)+" of the party "+getpartyname(.@party_id)+" is entering the dungeon, "+.@md_name$+".",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
- setquest 12278;
- warp "1@ma_b",64,51;
+ mapannounce("ma_scene01", sprintf(_$("A party member, %s of the party %s is entering the dungeon, %s."), strcharinfo(PC_NAME), getpartyname(.@party_id), .@md_name$), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
+ setquest(12278);
+ warp("1@ma_b", 64, 51);
end;
}
case 3:
- close;
+ close();
}
} else if (.@baku_time == 1) {
- mes "[Taho]";
- mes "The rope used for getting to the Lake is already broken. We are now cleaning up the surroundings so come back after some time.";
- close;
+ mes("[Taho]");
+ mes("The rope used for getting to the Lake is already broken. We are now cleaning up the surroundings so come back after some time.");
+ close();
} else if (.@baku_time == 2) {
- mes "[Taho]";
- mes "It's all cleaned up around here. Now you can go down again after getting a rope.";
- erasequest 12278;
- close;
+ mes("[Taho]");
+ mes("It's all cleaned up around here. Now you can go down again after getting a rope.");
+ erasequest(12278);
+ close();
}
}
sec_in02,26,26,4 script Bakonawa's Rage 4_M_DEWZATIMAN,{
- callfunc "F_GM_NPC";
- mes "[Taho]";
- mes "My name is Minky.";
- if (callfunc("F_GM_NPC",1854,0) == 1) {
- erasequest 12278;
- erasequest 12279;
+ callfunc("F_GM_NPC");
+ mes("[Taho]");
+ mes("My name is Minky.");
+ if (callfunc("F_GM_NPC", 1854, 0) == 1) {
+ erasequest(12278);
+ erasequest(12279);
malaya_bakona1 = 7;
malaya_bakona2 = 15;
}
- close;
+ close();
}
1@ma_b,62,52,4 script Taho#nf 4_M_DEWZATIMAN,{
- mes "[Taho]";
- mes "Heehee, I could join the Bakonawa hunt, but I'd rather hide behind that rock and cheer you guys on.";
- next;
- mes "[Taho]";
- mes "Bakonawa becomes invincible at some point. When that time comes, listen to my guides carefully. Just trust me and all will be good.";
- next;
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY),2)) {
- mes "[Taho]";
- mes "Now I will make Bakonawa spring out from the lake.";
- next;
- switch(select("Hold on! I'm not ready yet!", "Let's do it!")) {
+ mes("[Taho]");
+ mes("Heehee, I could join the Bakonawa hunt, but I'd rather hide behind that rock and cheer you guys on.");
+ next();
+ mes("[Taho]");
+ mes("Bakonawa becomes invincible at some point. When that time comes, listen to my guides carefully. Just trust me and all will be good.");
+ next();
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
+ mes("[Taho]");
+ mes("Now I will make Bakonawa spring out from the lake.");
+ next();
+ switch (select("Hold on! I'm not ready yet!", "Let's do it!")) {
case 1:
- mes "[Taho]";
- mes "Oh... alright... tell me when you are ready.";
- close;
+ mes("[Taho]");
+ mes("Oh... alright... tell me when you are ready.");
+ close();
case 2:
- mes "[Taho]";
- mes "Then I will drop a drop of Albopal to this lake.";
- next;
- mes "[Taho]";
- mes "Once Bakonawa tastes this, he will surface...";
- donpcevent instance_npcname("#Bakonawan1")+"::OnStart";
- disablenpc instance_npcname("Taho#nf");
- close;
+ mes("[Taho]");
+ mes("Then I will drop a drop of Albopal to this lake.");
+ next();
+ mes("[Taho]");
+ mes("Once Bakonawa tastes this, he will surface...");
+ donpcevent(instance_npcname("#Bakonawan1")+"::OnStart");
+ disablenpc(instance_npcname("Taho#nf"));
+ close();
}
} else {
- mes "[Taho]";
- mes "I am dropping the Alpopal to make Bakonawa mad. Bakonawa can be a good source of protein once we get him.";
- close;
+ mes("[Taho]");
+ mes("I am dropping the Alpopal to make Bakonawa mad. Bakonawa can be a good source of protein once we get him.");
+ close();
}
}
1@ma_b,36,111,4 script #Bakonawan1 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Bakonawan1");
+ disablenpc(instance_npcname("#Bakonawan1"));
end;
OnStart:
- enablenpc instance_npcname("#Bakonawan1");
+ enablenpc(instance_npcname("#Bakonawan1"));
.@map$ = instance_mapname("1@ma_b");
- mapannounce .@map$,"Taho: I can see him there on the surface! ATTACK!!!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
- monster .@map$,78,81,"Bakonawa",2320,1,instance_npcname("#Bakonawan1")+"::OnMyMobDead"; //original: (78,83)
- initnpctimer;
+ mapannounce(.@map$, _("Taho: I can see him there on the surface! ATTACK!!!"), bc_map, C_AQUA); //FW_NORMAL 15 0 0
+ monster(.@map$, 78, 81, _("Bakonawa"), BAKONAWA_1, 1, instance_npcname("#Bakonawan1")+"::OnMyMobDead"); //original: (78, 83)
+ initnpctimer();
end;
OnFail:
- killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan1")+"::OnMyMobDead";
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan1")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@ma_b");
- if (mobcount(.@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead") < 1) {
- donpcevent instance_npcname("#BakonawaDeadn1")+"::OnStart";
- killmonster .@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan1");
+ if (mobcount(.@map$, instance_npcname("#Bakonawan1")+"::OnMyMobDead") < 1) {
+ donpcevent(instance_npcname("#BakonawaDeadn1")+"::OnStart");
+ killmonster(.@map$, instance_npcname("#Bakonawan1")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan1"));
}
end;
-OnTimer1000: callsub OnAnnounce,"10 minutes";
-OnTimer60000: callsub OnAnnounce,"9 minutes";
-OnTimer120000: callsub OnAnnounce,"8 minutes";
-OnTimer180000: callsub OnAnnounce,"7 minutes";
-OnTimer240000: callsub OnAnnounce,"6 minutes";
-OnTimer300000: callsub OnAnnounce,"5 minutes";
-OnTimer360000: callsub OnAnnounce,"4 minutes";
-OnTimer420000: callsub OnAnnounce,"3 minutes";
-OnTimer480000: callsub OnAnnounce,"2 minutes";
-OnTimer540000: callsub OnAnnounce,"1 minute";
+OnTimer1000:
+ callsub(OnAnnounce, _("10 minutes"));
+OnTimer60000:
+ callsub(OnAnnounce, _("9 minutes"));
+OnTimer120000:
+ callsub(OnAnnounce, _("8 minutes"));
+OnTimer180000:
+ callsub(OnAnnounce, _("7 minutes"));
+OnTimer240000:
+ callsub(OnAnnounce, _("6 minutes"));
+OnTimer300000:
+ callsub(OnAnnounce, _("5 minutes"));
+OnTimer360000:
+ callsub(OnAnnounce, _("4 minutes"));
+OnTimer420000:
+ callsub(OnAnnounce, _("3 minutes"));
+OnTimer480000:
+ callsub(OnAnnounce, _("2 minutes"));
+OnTimer540000:
+ callsub(OnAnnounce, _("1 minute"));
OnTimer570000:
- mapannounce instance_mapname("1@ma_b"),"Time Limit: 30 seconds",bc_map,"0xff4400"; //FW_NORMAL 18 0 0
- donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
+ mapannounce(instance_mapname("1@ma_b"), _("Time Limit: 30 seconds"), bc_map, "0xff4400"); //FW_NORMAL 18 0 0
+ donpcevent(instance_npcname("#SummonPuppetsn1")+"::OnStart");
end;
OnTimer600000:
.@map$ = instance_mapname("1@ma_b");
- mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
- donpcevent instance_npcname("Taho#Fail")+"::OnStart";
- donpcevent instance_npcname("#Bakonawan1")+"::OnFail";
- killmonster .@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan1");
+ mapannounce(.@map$, _("Bakonawa has escaped deep into the lake."), bc_map, C_YELLOW); //FW_NORMAL 20 0 0
+ donpcevent(instance_npcname("Taho#Fail")+"::OnStart");
+ donpcevent(instance_npcname("#Bakonawan1")+"::OnFail");
+ killmonster(.@map$, instance_npcname("#Bakonawan1")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan1"));
end;
OnAnnounce:
- mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL 15 0 0
- donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
+ mapannounce(instance_mapname("1@ma_b"), sprintf(_$("Time Limit: %s"), getarg(0)), bc_map, "0xff4400"); //FW_NORMAL 15 0 0
+ donpcevent(instance_npcname("#SummonPuppetsn1")+"::OnStart");
end;
}
1@ma_b,78,81,0 script #SummonPuppetsn1 HIDDEN_WARP_NPC,4,5,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#SummonPuppetsn1");
+ disablenpc(instance_npcname("#SummonPuppetsn1"));
end;
OnStart:
- stopnpctimer;
- enablenpc instance_npcname("#SummonPuppetsn1");
- initnpctimer;
+ stopnpctimer();
+ enablenpc(instance_npcname("#SummonPuppetsn1"));
+ initnpctimer();
end;
OnTouch:
- stopnpctimer;
- disablenpc instance_npcname("#SummonPuppetsn1");
+ stopnpctimer();
+ disablenpc(instance_npcname("#SummonPuppetsn1"));
end;
OnTimer5000:
- setarray .@x[0],79,71,60,61,57,89,95,96,99;
- setarray .@y[0],71,72,80,90,99,73,82,90,99;
+ setarray(.@x[0], 79, 71, 60, 61, 57, 89, 95, 96, 99);
+ setarray(.@y[0], 71, 72, 80, 90, 99, 73, 82, 90, 99);
.@map$ = instance_mapname("1@ma_b");
- for(.@i = 0; .@i<9; ++.@i) {
- .@rand = rand(1,10);
+ for (.@i = 0; .@i < 9; ++.@i) {
+ .@rand = rand(1, 10);
if (.@rand > 7)
- monster .@map$,.@x[.@i],.@y[.@i],"Bakonawa's Will",2337,1,instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
+ monster(.@map$, .@x[.@i], .@y[.@i], _("Bakonawa's Will"), HIDDEN_MOB, 1, instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead");
else if (.@rand < 4)
- monster .@map$,.@x[.@i],.@y[.@i],"Bakonawa's Will",2343,1,instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
+ monster(.@map$, .@x[.@i], .@y[.@i], _("Bakonawa's Will"), HIDDEN_MOB_W, 1, instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead");
}
end;
OnTimer50000:
- killmonster instance_mapname("1@ma_b"),instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#SummonPuppetsn1");
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#SummonPuppetsn1"));
end;
OnMyMobDead:
end;
@@ -259,111 +268,126 @@ OnMyMobDead:
1@ma_b,1,5,4 script #BakonawaDeadn1 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#BakonawaDeadn1");
+ disablenpc(instance_npcname("#BakonawaDeadn1"));
end;
OnStart:
- enablenpc instance_npcname("#BakonawaDeadn1");
- initnpctimer;
+ enablenpc(instance_npcname("#BakonawaDeadn1"));
+ initnpctimer();
end;
OnTimer100:
- mapannounce instance_mapname("1@ma_b"),"Taho: Good! Bakonawa is hidden under water. He will now try to swallow the moon.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: Good! Bakonawa is hidden under water. He will now try to swallow the moon."), bc_map, C_AQUA); //FW_NORMAL 15 0 0
end;
OnTimer5000:
- mapannounce instance_mapname("1@ma_b"),"Taho: We must make loud noises with caldron and gong so he can never concentrate on the moon!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: We must make loud noises with caldron and gong so he can never concentrate on the moon!"), bc_map, C_AQUA); //FW_NORMAL 15 0 0
end;
OnTimer10000:
- mapannounce instance_mapname("1@ma_b"),"Taho: Do not engage on him even if he come above the surface. Just make loud noises!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: Do not engage on him even if he come above the surface. Just make loud noises!"), bc_map, C_AQUA); //FW_NORMAL 15 0 0
end;
OnTimer15000:
- mapannounce instance_mapname("1@ma_b"),"Mission - Destroy 2 caldrons and 2 gongs on left and right sides of the lake.",bc_map,"0xff3300"; //FW_NORMAL 15 0 0
- donpcevent instance_npcname("#Bakonawan2")+"::OnStart";
- stopnpctimer;
- disablenpc instance_npcname("#BakonawaDeadn1");
+ mapannounce(instance_mapname("1@ma_b"), _("Mission - Destroy 2 caldrons and 2 gongs on left and right sides of the lake."), bc_map, "0xff3300"); //FW_NORMAL 15 0 0
+ donpcevent(instance_npcname("#Bakonawan2")+"::OnStart");
+ stopnpctimer();
+ disablenpc(instance_npcname("#BakonawaDeadn1"));
end;
}
1@ma_b,36,111,4 script #Bakonawan2 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Bakonawan2");
+ disablenpc(instance_npcname("#Bakonawan2"));
end;
OnStart:
- enablenpc instance_npcname("#Bakonawan2");
+ enablenpc(instance_npcname("#Bakonawan2"));
.@label$ = instance_npcname("#Bakonawan2")+"::OnMyMobDead";
.@map$ = instance_mapname("1@ma_b");
- monster .@map$,95,98,"Caldron",2328,1,.@label$;
- monster .@map$,60,98,"Caldron",2328,1,.@label$;
- monster .@map$,97,104,"Gong",2328,1,.@label$;
- monster .@map$,58,104,"Gong",2328,1,.@label$;
- donpcevent instance_npcname("#Bakonawan2-1")+"::OnStart";
- initnpctimer;
+ monster(.@map$, 95, 98, _("Caldron"), MA_DRUM, 1, .@label$);
+ monster(.@map$, 60, 98, _("Caldron"), MA_DRUM, 1, .@label$);
+ monster(.@map$, 97, 104, _("Gong"), MA_DRUM, 1, .@label$);
+ monster(.@map$, 58, 104, _("Gong"), MA_DRUM, 1, .@label$);
+ donpcevent(instance_npcname("#Bakonawan2-1")+"::OnStart");
+ initnpctimer();
end;
OnMyMobDead:
.@map$ = instance_mapname("1@ma_b");
- .@mob_dead_num = mobcount(.@map$,instance_npcname("#Bakonawan2")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(.@map$, instance_npcname("#Bakonawan2")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
- donpcevent instance_npcname("#Bakonawan2-1")+"::OnEnd";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan2");
- } else
- mapannounce .@map$,"Taho: Good! "+.@mob_dead_num+" left to go!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
- end;
-OnTimer1000: callsub OnAnnounce,"5 minutes",15,1;
-OnTimer60000: callsub OnAnnounce,"4 minutes",15,1;
-OnTimer120000: callsub OnAnnounce,"3 minutes",15,1;
-OnTimer180000: callsub OnAnnounce,"2 minutes",15,1;
-OnTimer240000: callsub OnAnnounce,"1 minute",15,1;
-OnTimer270000: callsub OnAnnounce,"30 seconds",15,0;
-OnTimer280000: callsub OnAnnounce,"20 seconds",15,0;
-OnTimer290000: callsub OnAnnounce,"10 seconds",15,0;
-OnTimer295000: callsub OnAnnounce,"5 seconds",16,0;
-OnTimer296000: callsub OnAnnounce,"4 seconds",17,0;
-OnTimer297000: callsub OnAnnounce,"3 seconds",18,0;
-OnTimer298000: callsub OnAnnounce,"2 seconds",19,0;
-OnTimer299000: callsub OnAnnounce,"1 second",20,0;
+ donpcevent(instance_npcname("#Bakonawan2-1")+"::OnEnd");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan2"));
+ } else {
+ mapannounce(.@map$, sprintf(_$("Taho: Good! %d left to go!"), .@mob_dead_num), bc_map, C_AQUA); //FW_NORMAL 15 0 0
+ }
+ end;
+OnTimer1000:
+ callsub(OnAnnounce, _("5 minutes"), 15, 1);
+OnTimer60000:
+ callsub(OnAnnounce, _("4 minutes"), 15, 1);
+OnTimer120000:
+ callsub(OnAnnounce, _("3 minutes"), 15, 1);
+OnTimer180000:
+ callsub(OnAnnounce, _("2 minutes"), 15, 1);
+OnTimer240000:
+ callsub(OnAnnounce, _("1 minute"), 15, 1);
+OnTimer270000:
+ callsub(OnAnnounce, _("30 seconds"), 15, 0);
+OnTimer280000:
+ callsub(OnAnnounce, _("20 seconds"), 15, 0);
+OnTimer290000:
+ callsub(OnAnnounce, _("10 seconds"), 15, 0);
+OnTimer295000:
+ callsub(OnAnnounce, _("5 seconds"), 16, 0);
+OnTimer296000:
+ callsub(OnAnnounce, _("4 seconds"), 17, 0);
+OnTimer297000:
+ callsub(OnAnnounce, _("3 seconds"), 18, 0);
+OnTimer298000:
+ callsub(OnAnnounce, _("2 seconds"), 19, 0);
+OnTimer299000:
+ callsub(OnAnnounce, _("1 second"), 20, 0);
OnTimer300000:
.@map$ = instance_mapname("1@ma_b");
- mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
- donpcevent instance_npcname("Taho#Fail")+"::OnStart";
- donpcevent instance_npcname("#Bakonawan2-1")+"::OnFail";
- killmonster .@map$,instance_npcname("#Bakonawan2")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan2");
+ mapannounce(.@map$, _("Bakonawa has escaped deep into the lake."), bc_map, C_YELLOW); //FW_NORMAL 20 0 0
+ donpcevent(instance_npcname("Taho#Fail")+"::OnStart");
+ donpcevent(instance_npcname("#Bakonawan2-1")+"::OnFail");
+ killmonster(.@map$, instance_npcname("#Bakonawan2")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan2"));
end;
OnAnnounce:
- mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL getarg(1) 0 0
- if (getarg(2)) donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
+ mapannounce(instance_mapname("1@ma_b"), sprintf(_$("Time Limit: %s"), getarg(0)), bc_map, "0xff4400"); //FW_NORMAL getarg(1) 0 0
+ if (getarg(2))
+ donpcevent(instance_npcname("#SummonPuppetsn1")+"::OnStart");
end;
}
1@ma_b,36,111,4 script #Bakonawan2-1 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Bakonawan2-1");
+ disablenpc(instance_npcname("#Bakonawan2-1"));
end;
OnStart:
- enablenpc instance_npcname("#Bakonawan2-1");
- monster instance_mapname("1@ma_b"),78,81,"Enraged Bakonawa",2321,1,instance_npcname("#Bakonawan2-1")+"::OnMyMobDead"; //original: (78,93)
+ enablenpc(instance_npcname("#Bakonawan2-1"));
+ monster(instance_mapname("1@ma_b"), 78, 81, _("Enraged Bakonawa"), BAKONAWA_2, 1, instance_npcname("#Bakonawan2-1")+"::OnMyMobDead"); //original: (78, 93)
end;
OnFail:
- killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan2-1")+"::OnMyMobDead";
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan2-1")+"::OnMyMobDead");
end;
OnEnd:
- enablenpc instance_npcname("#Bakonawan2-1");
- killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan2-1")+"::OnMyMobDead";
- initnpctimer;
+ enablenpc(instance_npcname("#Bakonawan2-1"));
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan2-1")+"::OnMyMobDead");
+ initnpctimer();
end;
OnTimer1000:
- mapannounce instance_mapname("1@ma_b"),"Taho: He is back into the lake again. Is it over?",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: He is back into the lake again. Is it over?"), bc_map, C_AQUA); //FW_NORMAL 15 0 0
end;
OnTimer5000:
- mapannounce instance_mapname("1@ma_b"),"Taho: UHM! Something is moving up rapidly under the water! Ba... Bakonawa is coming!!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: UHM! Something is moving up rapidly under the water! Ba... Bakonawa is coming!!"), bc_map, C_AQUA); //FW_NORMAL 15 0 0
end;
OnTimer10000:
- mapannounce instance_mapname("1@ma_b"),"Mission - Eliminate Bakonawa who became more fierce.",bc_map,"0xff3300"; //FW_NORMAL 15 0 0
- donpcevent instance_npcname("#Bakonawan3")+"::OnStart";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan2-1");
+ mapannounce(instance_mapname("1@ma_b"), _("Mission - Eliminate Bakonawa who became more fierce."), bc_map, "0xff3300"); //FW_NORMAL 15 0 0
+ donpcevent(instance_npcname("#Bakonawan3")+"::OnStart");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan2-1"));
end;
OnMyMobDead:
end;
@@ -372,190 +396,212 @@ OnMyMobDead:
1@ma_b,36,111,4 script #Bakonawan3 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Bakonawan3");
+ disablenpc(instance_npcname("#Bakonawan3"));
end;
OnStart:
- enablenpc instance_npcname("#Bakonawan3");
- initnpctimer;
- monster instance_mapname("1@ma_b"),78,81,"Enraged Bakonawa",2322,1,instance_npcname("#Bakonawan3")+"::OnMyMobDead"; //original: (78,83)
- donpcevent instance_npcname("#Bakonawan3-1")+"::OnStart";
+ enablenpc(instance_npcname("#Bakonawan3"));
+ initnpctimer();
+ monster(instance_mapname("1@ma_b"), 78, 81, _("Enraged Bakonawa"), BAKONAWA_3, 1, instance_npcname("#Bakonawan3")+"::OnMyMobDead"); //original: (78, 83)
+ donpcevent(instance_npcname("#Bakonawan3-1")+"::OnStart");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@ma_b");
- .@mob_dead_num = mobcount(.@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(.@map$, instance_npcname("#Bakonawan3")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
- mapannounce .@map$,"Taho: We got him! I can see he has threw up something that looks like a box.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
- donpcevent instance_npcname("Taho#Completed")+"::OnStart";
- donpcevent instance_npcname("#Bakonawan3-1")+"::OnEnd";
- killmonster .@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan3");
+ mapannounce(.@map$, _("Taho: We got him! I can see he has threw up something that looks like a box."), bc_map, C_AQUA); //FW_NORMAL 15 0 0
+ donpcevent(instance_npcname("Taho#Completed")+"::OnStart");
+ donpcevent(instance_npcname("#Bakonawan3-1")+"::OnEnd");
+ killmonster(.@map$, instance_npcname("#Bakonawan3")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan3"));
}
end;
OnTimer1000:
- callsub OnAnnounce,"10 minutes",15,1;
+ callsub(OnAnnounce, _("10 minutes"), 15, 1);
end;
OnTimer60000:
OnTimer120000:
OnTimer180000:
OnTimer240000:
- donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
- end;
-OnTimer300000: callsub OnAnnounce,"5 minutes",15,1;
-OnTimer360000: callsub OnAnnounce,"4 minutes",15,1;
-OnTimer420000: callsub OnAnnounce,"3 minutes",15,1;
-OnTimer480000: callsub OnAnnounce,"2 minutes",15,1;
-OnTimer540000: callsub OnAnnounce,"1 minute",15,1;
-OnTimer570000: callsub OnAnnounce,"30 seconds",15,0;
-OnTimer580000: callsub OnAnnounce,"20 seconds",15,0;
-OnTimer590000: callsub OnAnnounce,"10 seconds",15,0;
-OnTimer595000: callsub OnAnnounce,"5 seconds",16,0;
-OnTimer596000: callsub OnAnnounce,"4 seconds",17,0;
-OnTimer597000: callsub OnAnnounce,"3 seconds",18,0;
-OnTimer598000: callsub OnAnnounce,"2 seconds",19,0;
-OnTimer599000: callsub OnAnnounce,"1 second",20,0;
+ donpcevent(instance_npcname("#SummonPuppetsn1")+"::OnStart");
+ end;
+OnTimer300000:
+ callsub(OnAnnounce, _("5 minutes"), 15, 1);
+OnTimer360000:
+ callsub(OnAnnounce, _("4 minutes"), 15, 1);
+OnTimer420000:
+ callsub(OnAnnounce, _("3 minutes"), 15, 1);
+OnTimer480000:
+ callsub(OnAnnounce, _("2 minutes"), 15, 1);
+OnTimer540000:
+ callsub(OnAnnounce, _("1 minute"), 15, 1);
+OnTimer570000:
+ callsub(OnAnnounce, _("30 seconds"), 15, 0);
+OnTimer580000:
+ callsub(OnAnnounce, _("20 seconds"), 15, 0);
+OnTimer590000:
+ callsub(OnAnnounce, _("10 seconds"), 15, 0);
+OnTimer595000:
+ callsub(OnAnnounce, _("5 seconds"), 16, 0);
+OnTimer596000:
+ callsub(OnAnnounce, _("4 seconds"), 17, 0);
+OnTimer597000:
+ callsub(OnAnnounce, _("3 seconds"), 18, 0);
+OnTimer598000:
+ callsub(OnAnnounce, _("2 seconds"), 19, 0);
+OnTimer599000:
+ callsub(OnAnnounce, _("1 second"), 20, 0);
OnTimer600000:
.@map$ = instance_mapname("1@ma_b");
- mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
- donpcevent instance_npcname("Taho#Fail")+"::OnStart";
- killmonster .@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead";
- stopnpctimer;
- disablenpc instance_npcname("#Bakonawan3");
+ mapannounce(.@map$, _("Bakonawa has escaped deep into the lake."), bc_map, C_YELLOW); //FW_NORMAL 20 0 0
+ donpcevent(instance_npcname("Taho#Fail")+"::OnStart");
+ killmonster(.@map$, instance_npcname("#Bakonawan3")+"::OnMyMobDead");
+ stopnpctimer();
+ disablenpc(instance_npcname("#Bakonawan3"));
end;
OnAnnounce:
- mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL getarg(1) 0 0
- if (getarg(2)) donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
+ mapannounce(instance_mapname("1@ma_b"), sprintf(_$("Time Limit: %s"), getarg(0)), bc_map, "0xff4400"); //FW_NORMAL getarg(1) 0 0
+ if (getarg(2))
+ donpcevent(instance_npcname("#SummonPuppetsn1")+"::OnStart");
end;
}
1@ma_b,36,111,4 script #Bakonawan3-1 CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Bakonawan3-1");
+ disablenpc(instance_npcname("#Bakonawan3-1"));
end;
OnStart:
- initnpctimer;
+ initnpctimer();
end;
OnEnd:
- killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
- //showdigit 0;
- stopnpctimer;
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan3-1")+"::OnMyMobDead");
+ //showdigit(0);
+ stopnpctimer();
end;
OnMyMobDead:
- showdigit mobcount(instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead");
- end;
-OnTimer120000: callsub OnMobSpawn,10;
-OnTimer180000: callsub OnMobSpawn,15;
-OnTimer240000: callsub OnMobSpawn,20;
-//OnTimer300000: callsub OnMobSpawn,25;
-OnTimer300000: callsub OnMobSpawn,30;
-OnTimer360000: callsub OnMobSpawn,35;
-OnTimer420000: callsub OnMobSpawn,40;
-OnTimer480000: callsub OnMobSpawn,45;
-OnTimer540000: callsub OnMobSpawn,50;
+ showdigit(mobcount(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan3-1")+"::OnMyMobDead"));
+ end;
+OnTimer120000:
+ callsub(OnMobSpawn, 10);
+OnTimer180000:
+ callsub(OnMobSpawn, 15);
+OnTimer240000:
+ callsub(OnMobSpawn, 20);
+//OnTimer300000:
+// callsub(OnMobSpawn, 25);
+OnTimer300000:
+ callsub(OnMobSpawn, 30);
+OnTimer360000:
+ callsub(OnMobSpawn, 35);
+OnTimer420000:
+ callsub(OnMobSpawn, 40);
+OnTimer480000:
+ callsub(OnMobSpawn, 45);
+OnTimer540000:
+ callsub(OnMobSpawn, 50);
OnTimer600000:
- killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
- stopnpctimer;
+ killmonster(instance_mapname("1@ma_b"), instance_npcname("#Bakonawan3-1")+"::OnMyMobDead");
+ stopnpctimer();
end;
OnMobSpawn:
.@label$ = instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
.@map$ = instance_mapname("1@ma_b");
- killmonster .@map$,.@label$;
- .@mob_dead_num = mobcount(.@map$,.@label$);
+ killmonster(.@map$, .@label$);
+ .@mob_dead_num = mobcount(.@map$, .@label$);
if (.@mob_dead_num < 50) {
.@mob_rg = 50 - .@mob_dead_num;
if (.@mob_rg > getarg(0))
.@mob_rg = getarg(0);
- while(1) {
- areamonster .@map$,74,74,82,74,"Bakonawa's Puppet",2334,1,.@label$;
- .@mob_dead_num = mobcount(.@map$,.@label$);
- if (.@mob_dead_num >= .@mob_rg) {
+ while (true) {
+ areamonster(.@map$, 74, 74, 82, 74, _("Bakonawa's Puppet"), G_WAKWAK, 1, .@label$);
+ .@mob_dead_num = mobcount(.@map$, .@label$);
+ if (.@mob_dead_num >= .@mob_rg)
break;
- }
}
}
end;
}
1@ma_b,62,52,4 script Taho#Completed 4_M_DEWZATIMAN,{
- disable_items;
- if (checkweight(Knife,1) == 0) {
- mes "It seems you are carrying too many different kinds of items. Please try again after reducing it.";
- close;
+ disable_items();
+ if (checkweight(Knife, 1) == 0) {
+ mes("It seems you are carrying too many different kinds of items. Please try again after reducing it.");
+ close();
}
if (MaxWeight - Weight < 10000) {
- mes "It seems you are already carrying items of too much weight. Please try again after reducing the weight.";
- close;
- }
- if (questprogress(12279,HUNTING) == 2) {
- erasequest 12279;
- mes "[Taho]";
- mes "This was found from Bakonawa's corpse. It would be better if you take this.";
+ mes("It seems you are already carrying items of too much weight. Please try again after reducing the weight.");
+ close();
+ }
+ if (questprogress(12279, HUNTING) == 2) {
+ erasequest(12279);
+ mes("[Taho]");
+ mes("This was found from Bakonawa's corpse. It would be better if you take this.");
// if (IsPremiumPcCafe == 10)
- getitem Ancient_Grudge,7;
+ getitem(Ancient_Grudge, 7);
// else
-// getitem Ancient_Grudge,5;
- getexp 0,100000;
- next;
+// getitem(Ancient_Grudge, 5);
+ getexp(0, 100000);
+ next();
}
- mes "[Taho]";
- mes "We better hurry and get out of this place. This place is still dangerous even without Bakonawa...";
- next;
- mes "[Taho]";
- mes "Then let's use to the rope to go up!";
- close2;
- warp "ma_scene01",175,176;
+ mes("[Taho]");
+ mes("We better hurry and get out of this place. This place is still dangerous even without Bakonawa...");
+ next();
+ mes("[Taho]");
+ mes("Then let's use to the rope to go up!");
+ close2();
+ warp("ma_scene01", 175, 176);
end;
OnInstanceInit:
- disablenpc instance_npcname("Taho#Completed");
+ disablenpc(instance_npcname("Taho#Completed"));
end;
OnStart:
- enablenpc instance_npcname("Taho#Completed");
- initnpctimer;
+ enablenpc(instance_npcname("Taho#Completed"));
+ initnpctimer();
end;
OnTimer1000:
- monster instance_mapname("1@ma_b"),78,74,"Bakonawa Treasure Box",2335,1;
+ monster(instance_mapname("1@ma_b"), 78, 74, _("Bakonawa Treasure Box"), MA_TREASURE, 1);
end;
OnTimer10000:
- mapannounce instance_mapname("1@ma_b"),"Taho: After opening the treasure box, please visit me at the top of the hill. I've got something to give to you.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
- stopnpctimer;
+ mapannounce(instance_mapname("1@ma_b"), _("Taho: After opening the treasure box, please visit me at the top of the hill. I've got something to give to you."), bc_map, C_AQUA); //FW_NORMAL 15 0 0
+ stopnpctimer();
end;
}
1@ma_b,62,52,4 script Taho#Fail 4_M_DEWZATIMAN,{
- mes "[Taho]";
- mes "HMM. We almost got him but he is one fast creature...";
- next;
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY),2)) {
- mes "[Taho]";
- mes "Are we going to try again?";
- next;
- switch(select("Hold on a sec!", "Of course! We cannot stand back now!")) {
+ mes("[Taho]");
+ mes("HMM. We almost got him but he is one fast creature...");
+ next();
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
+ mes("[Taho]");
+ mes("Are we going to try again?");
+ next();
+ switch (select("Hold on a sec!", "Of course! We cannot stand back now!")) {
case 1:
- mes "[Taho]";
- mes "AWW... I almost brought him out.";
- close;
+ mes("[Taho]");
+ mes("AWW... I almost brought him out.");
+ close();
case 2:
- mes "[Taho]";
- mes "Then I will use Albopal once again to the lake.";
- next;
- mes "[Taho]";
- mes "We are about to see Bakonawa with intenser anger...";
- disablenpc instance_npcname("Taho#Fail");
- donpcevent instance_npcname("#Bakonawan1")+"::OnStart";
- close;
+ mes("[Taho]");
+ mes("Then I will use Albopal once again to the lake.");
+ next();
+ mes("[Taho]");
+ mes("We are about to see Bakonawa with intenser anger...");
+ disablenpc(instance_npcname("Taho#Fail"));
+ donpcevent(instance_npcname("#Bakonawan1")+"::OnStart");
+ close();
}
- close;
+ close();
} else {
- mes "[Taho]";
- mes "I am dropping Albopal like I did a while ago. I hope it pisses him off...";
- close;
+ mes("[Taho]");
+ mes("I am dropping Albopal like I did a while ago. I hope it pisses him off...");
+ close();
}
OnInstanceInit:
- disablenpc instance_npcname("Taho#Fail");
+ disablenpc(instance_npcname("Taho#Fail"));
end;
OnStart:
- enablenpc instance_npcname("Taho#Fail");
+ enablenpc(instance_npcname("Taho#Fail"));
end;
}
diff --git a/npc/re/instances/BangungotHospital.txt b/npc/re/instances/BangungotHospital.txt
index 3962ee4fa..4af583879 100644
--- a/npc/re/instances/BangungotHospital.txt
+++ b/npc/re/instances/BangungotHospital.txt
@@ -48,7 +48,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 4_F_NURSE,{
else if (malaya_bang == 31)
callsub L_Closed,0;
else
- goto L_NoParty;
+ callsub L_NoParty;
}
if (questprogress(11309,HUNTING) != 2) {
.@playtime = questprogress(9224,PLAYTIME);
@@ -100,7 +100,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 4_F_NURSE,{
cutin "",255;
end;
} else {
- //if (!.@party_id) goto L_NoParty; //unneeded
+ //if (!.@party_id) callsub L_NoParty; //unneeded
if (malaya_bang > 39)
callsub L_Enter,(getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2))?1:0,1,1;
else {
@@ -122,7 +122,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 4_F_NURSE,{
end;
}
} else if (.@quest == 1) {
- if (!.@party_id) goto L_NoParty;
+ if (!.@party_id) callsub L_NoParty;
if (malaya_bang > 39) {
if (questprogress(9222,HUNTING) == 1) {
.@playtime = questprogress(9224,PLAYTIME);
@@ -132,7 +132,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 4_F_NURSE,{
next;
callsub L_Enter,0,0;
} else if (.@playtime == 2) {
- //if (!.@party_id) goto L_NoParty; //unneeded
+ //if (!.@party_id) callsub L_NoParty; //unneeded
if (malaya_bang > 39)
callsub L_Enter,(getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2))?1:0,1,1;
else {
@@ -211,7 +211,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 4_F_NURSE,{
cutin "",255;
end;
} else {
- if (!.@party_id) goto L_NoParty;
+ if (!.@party_id) callsub L_NoParty;
if (malaya_bang > 39)
callsub L_Enter,(getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2))?1:0,1,1;
else {
@@ -274,21 +274,19 @@ L_Enter:
switch(select(((getarg(0))?"Prepare to enter the second floor.":""), "Enter the second floor.", "Do not enter.")) {
case 1:
.@instance = instance_create(.@md_name$,getcharid(CHAR_ID_PARTY));
- if (.@instance < 0) {
- mes "[Nurse Maenne]";
- mes "A critical situation has happened.";
- mes "You can't go up to the 2nd floor.";
- close2;
- cutin "",255;
- end;
- }
- if (instance_attachmap("1@ma_h",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- instance_destroy(.@instance);
- close;
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@ma_h", .@instance) == "") {
+ mes("[Nurse Maenne]");
+ mes("A critical situation has happened.");
+ mes("You can't go up to the 2nd floor.");
+ instance_destroy(.@instance);
+ close2();
+ cutin("", 255);
+ end;
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- instance_set_timeout 3600,300,.@instance;
- instance_init(.@instance);
mes "[Nurse Maenne]";
mes "We are preparing to go up";
mes "to the second floor.";
@@ -406,7 +404,7 @@ OnInstanceInit:
disablenpc instance_npcname("#Memorial Start_time");
end;
OnEnable:
- specialeffect EF_BAT2,AREA,instance_npcname("#Memorial Start");
+ specialeffect(EF_BAT2, AREA, getnpcid(instance_npcname("#Memorial Start")));
initnpctimer;
end;
OnDisable:
@@ -892,19 +890,19 @@ OnStopTimer:
end;
OnTimer1000:
mapannounce instance_mapname("1@ma_h"),"- Bangungot's Pillar of Spirit is curing Bangungot. If you don't hunt it now, he will fully recover!! -",bc_map,"0xFF8200";
- specialeffect EF_MAPPILLAR2,AREA,instance_npcname("#Patternwarp45");
+ specialeffect(EF_MAPPILLAR2, AREA, getnpcid(instance_npcname("#Patternwarp45")));
end;
OnTimer7000:
mapannounce instance_mapname("1@ma_h"),"Bangungot: I never die!!!!",bc_map,"0xFF82FF";
- specialeffect EF_MAPPILLAR2,AREA,instance_npcname("#Patternwarp45");
+ specialeffect(EF_MAPPILLAR2, AREA, getnpcid(instance_npcname("#Patternwarp45")));
end;
OnTimer14000:
mapannounce instance_mapname("1@ma_h"),"Bangungot: If you dare, kill me!! I will revive soon!!!",bc_map,"0xFF82FF";
- specialeffect EF_MAPPILLAR2,AREA,instance_npcname("#Patternwarp45");
+ specialeffect(EF_MAPPILLAR2, AREA, getnpcid(instance_npcname("#Patternwarp45")));
end;
OnTimer21000:
mapannounce instance_mapname("1@ma_h"),"Bangungot: I cannot die this way...!!!!",bc_map,"0xFF82FF";
- specialeffect EF_MAPPILLAR2,AREA,instance_npcname("#Patternwarp45");
+ specialeffect(EF_MAPPILLAR2, AREA, getnpcid(instance_npcname("#Patternwarp45")));
end;
OnTimer30000:
donpcevent instance_npcname("#Summon Pillar")+"::OnReset";
diff --git a/npc/re/instances/BuwayaCave.txt b/npc/re/instances/BuwayaCave.txt
index 859d6bd85..1d3eddc6a 100644
--- a/npc/re/instances/BuwayaCave.txt
+++ b/npc/re/instances/BuwayaCave.txt
@@ -35,95 +35,92 @@
ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
if (BaseLevel < 130) {
- mes "[Guard]";
- mes "People under ^ff0000level 130^000000";
- mes "cannot enter this place.";
- mes "This place is dangerous. Please go back.";
- close;
+ mes("[Guard]");
+ mes("People under ^ff0000level 130^000000");
+ mes("cannot enter this place.");
+ mes("This place is dangerous. Please go back.");
+ close();
}
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Buwaya Cave";
+ .@md_name$ = _("Buwaya Cave");
if (!.@party_id) {
- mes "[Guard]";
- mes "Buwaya is dangerous.";
- mes "Please come back after you form a";
- mes "team with other people.";
- close;
+ mes("[Guard]");
+ mes("Buwaya is dangerous.");
+ mes("Please come back after you form a");
+ mes("team with other people.");
+ close();
}
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) {
- mes "[Guard]";
- mes "This place is dangerous. Please go back.";
- mes "If you dont have any business here, please go back.";
- next;
- while(1) {
- switch(select("Why is it so dangerous?", "I'm here to hunt down Buwaya.", "End conversation.")) {
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2)) {
+ mes("[Guard]");
+ mes("This place is dangerous. Please go back.");
+ mes("If you dont have any business here, please go back.");
+ next();
+ while (true) {
+ switch (select("Why is it so dangerous?", "I'm here to hunt down Buwaya.", "End conversation.")) {
case 1:
- mes "[Guard]";
- mes "Recently, there has been a case";
- mes "where villagers have disappeared.";
- mes "After investigating the tracks, ";
- mes "we found out the giant monster Buwaya";
- mes "was responsible.";
- next;
- mes "[Guard]";
- mes "Soldiers and mercenaries have been dispatched to ";
- mes "hunt down Buwaya, but were never";
- mes "completely successful.";
- next;
- mes "[Guard]";
- mes "Buwaya is still kidnapping";
- mes "the villagers to this day.";
- mes "Please gather some people to get rid of Buwaya.";
- next;
+ mes("[Guard]");
+ mes("Recently, there has been a case");
+ mes("where villagers have disappeared.");
+ mes("After investigating the tracks, ");
+ mes("we found out the giant monster Buwaya");
+ mes("was responsible.");
+ next();
+ mes("[Guard]");
+ mes("Soldiers and mercenaries have been dispatched to ");
+ mes("hunt down Buwaya, but were never");
+ mes("completely successful.");
+ next();
+ mes("[Guard]");
+ mes("Buwaya is still kidnapping");
+ mes("the villagers to this day.");
+ mes("Please gather some people to get rid of Buwaya.");
+ next();
break;
case 2:
- .@playtime = questprogress(4229,PLAYTIME);
+ .@playtime = questprogress(4229, PLAYTIME);
if (!.@playtime) {
// fall through
} else if (.@playtime == 1) {
- mes "[Guard]";
- mes "Buwaya is still hiding.";
- mes "Even if you enter now, Buwaya will not come out. ";
- mes "Please come back later.";
- close;
+ mes("[Guard]");
+ mes("Buwaya is still hiding.");
+ mes("Even if you enter now, Buwaya will not come out. ");
+ mes("Please come back later.");
+ close();
} else {
- erasequest 4229;
+ erasequest(4229);
// fall through
}
- .@instance = instance_create(.@md_name$,.@party_id);
- if (.@instance < 0) {
- mes "[Guard]";
- mes "Party name is... "+getpartyname(.@party_id)+".";;
- mes "Party leader is... "+strcharinfo(PC_NAME);
- mes "^0000ff"+.@md_name$+"^000000 cannot be opened now.";
- mes "Please try a moment later.";
- close;
+ .@instance = instance_create(.@md_name$, .@party_id);
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@ma_c", .@instance) == "") {
+ mes("[Guard]");
+ mesf("Party name is... %s.", getpartyname(.@party_id));
+ mesf("Party leader is... %s", strcharinfo(PC_NAME));
+ mesf("^0000ff%s^000000 cannot be opened now.", .@md_name$);
+ mes("Please try a moment later.");
+ instance_destroy(.@instance);
+ close();
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- if (instance_attachmap("1@ma_c",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- instance_destroy(.@instance);
- close;
- }
- instance_set_timeout 3600,300,.@instance;
- instance_init(.@instance);
-
- mes "[Guard]";
- mes "I will open up the tunnel to ^0000ff"+.@md_name$+"^000000.";
- mes "I wish you good luck.";
- close;
+ mes("[Guard]");
+ mesf("I will open up the tunnel to ^0000ff%s^000000.", .@md_name$);
+ mes("I wish you good luck.");
+ close();
case 3:
- mes "[Guard]";
- mes "This place is dangerous. You cannot enter.";
- close;
+ mes("[Guard]");
+ mes("This place is dangerous. You cannot enter.");
+ close();
}
}
} else {
- mes "[Guard]";
- mes "Let me talk with the party leader.";
- mes "Please call forth the leader.";
- close;
+ mes("[Guard]");
+ mes("Let me talk with the party leader.");
+ mes("Please call forth the leader.");
+ close();
}
}
@@ -131,214 +128,214 @@ ma_fild02,315,323,0 script Cave Entrance#buwaya WARPNPC,2,2,{
end;
OnTouch:
if (BaseLevel < 130) {
- mes "[Guard]";
- mes "People under ^ff0000level 130^000000";
- mes "cannot enter this place.";
- mes "This place is dangerous. Please go back.";
- close;
+ mes("[Guard]");
+ mes("People under ^ff0000level 130^000000");
+ mes("cannot enter this place.");
+ mes("This place is dangerous. Please go back.");
+ close();
}
- .@playtime = questprogress(4229,PLAYTIME);
+ .@playtime = questprogress(4229, PLAYTIME);
if (!.@playtime) {
// fall through
} else if (.@playtime == 1) {
- mes "[Guard]";
- mes "Buwaya is still hiding.";
- mes "Even if you enter now, Buwaya will not come out.";
- mes "Please come back later.";
- close;
+ mes("[Guard]");
+ mes("Buwaya is still hiding.");
+ mes("Even if you enter now, Buwaya will not come out.");
+ mes("Please come back later.");
+ close();
} else {
- erasequest 4229;
+ erasequest(4229);
// fall through
}
- switch(select("Enter.", "Turn back.")) {
+ switch (select("Enter.", "Turn back.")) {
case 1:
- if( has_instance("1@ma_c") == "" ) {
- mes "The memorial dungeon Buwaya Cave does not exist.";
- mes "The party leader did not generate the dungeon yet.";
- close;
+ if (has_instance("1@ma_c") == "") {
+ mes("The memorial dungeon Buwaya Cave does not exist.");
+ mes("The party leader did not generate the dungeon yet.");
+ close();
} else {
- mapannounce "ma_fild02",getpartyname(getcharid(CHAR_ID_PARTY))+" party's "+strcharinfo(PC_NAME)+" member began hunting Buwaya in Buwaya Cave.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
- setquest 4229;
- warp "1@ma_c",35,57;
+ mapannounce("ma_fild02", sprintf(_$("%s party's %s member began hunting Buwaya in Buwaya Cave."), getpartyname(getcharid(CHAR_ID_PARTY)), strcharinfo(PC_NAME)), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
+ setquest(4229);
+ warp("1@ma_c", 35, 57);
end;
}
case 2:
- mes "[Guard]";
- mes "You must value your life.";
- mes "It is better to think carefully before you act.";
- close;
+ mes("[Guard]");
+ mes("You must value your life.");
+ mes("It is better to think carefully before you act.");
+ close();
}
}
1@ma_c,33,112,0 script #damage HIDDEN_WARP_NPC,7,7,{
end;
OnInstanceInit:
- initnpctimer;
- disablenpc instance_npcname("#damage");
+ initnpctimer();
+ disablenpc(instance_npcname("#damage"));
end;
OnTimer1000:
- enablenpc instance_npcname("#damage");
- specialeffect EF_POISONHIT;
+ enablenpc(instance_npcname("#damage"));
+ specialeffect(EF_POISONHIT);
end;
OnTimer2000:
- stopnpctimer;
- initnpctimer;
- disablenpc instance_npcname("#damage");
+ stopnpctimer();
+ initnpctimer();
+ disablenpc(instance_npcname("#damage"));
end;
OnTouch:
- percentheal -10,-10;
- sc_start SC_BLOODING,60000,0;
- sc_start SC_POISON,60000,0;
+ percentheal(-10, -10);
+ sc_start(SC_BLOODING, 60000, 0);
+ sc_start(SC_POISON, 60000, 0);
end;
}
1@ma_c,29,110,5 script Kidnapped People#1 4_F_BARYO_OLD,{
- mes "[Kidnapped Residents]";
- mes "Buwaya was running around,";
- mes "and new people got caught.";
- mes "We will be stuck in here for the rest of our lives.";
- next;
- switch(select("Get me outta here!!", "Ca...can't escape?")) {
+ mes("[Kidnapped Residents]");
+ mes("Buwaya was running around,");
+ mes("and new people got caught.");
+ mes("We will be stuck in here for the rest of our lives.");
+ next();
+ switch (select("Get me outta here!!", "Ca...can't escape?")) {
case 1:
- mes "[Kidnapped Residents]";
- mes "We don't have enough power to destroy it but Buwaya has a weakness.";
- mes "Look at the wall over there.";
- mes "If you knock there, Buywaya will feel pain and spit you out.";
- donpcevent instance_npcname("#box_mob_call")+"::OnEnable";
- close2;
- disablenpc instance_npcname("Kidnapped People#1");
+ mes("[Kidnapped Residents]");
+ mes("We don't have enough power to destroy it but Buwaya has a weakness.");
+ mes("Look at the wall over there.");
+ mes("If you knock there, Buywaya will feel pain and spit you out.");
+ donpcevent(instance_npcname("#box_mob_call")+"::OnEnable");
+ close2();
+ disablenpc(instance_npcname("Kidnapped People#1"));
end;
case 2:
- mes "[Kidnapped People]";
- mes "Somthing is wrong here...";
- mes "Have you experienced this before?";
- close;
+ mes("[Kidnapped People]");
+ mes("Somthing is wrong here...");
+ mes("Have you experienced this before?");
+ close();
}
end;
OnInstanceInit:
- disablenpc instance_npcname("Kidnapped People#1");
+ disablenpc(instance_npcname("Kidnapped People#1"));
end;
OnEnable:
- enablenpc instance_npcname("Kidnapped People#1");
- donpcevent instance_npcname("#box_mob_call")+"::OnDisable";
+ enablenpc(instance_npcname("Kidnapped People#1"));
+ donpcevent(instance_npcname("#box_mob_call")+"::OnDisable");
end;
}
1@ma_c,36,110,5 script Kidnapped People#2 4_M_BARYO_OLD,{
- mes "[Kidnapped Residents]";
- mes "Ahaa! I wish I had a little more power...";
- mes "I know its weakness...";
- next;
- switch(select("Tell me.", "Do you really know?")) {
+ mes("[Kidnapped Residents]");
+ mes("Ahaa! I wish I had a little more power...");
+ mes("I know its weakness...");
+ next();
+ switch (select("Tell me.", "Do you really know?")) {
case 1:
- mes "[Kidnapped Residents]";
- mes "Are you sure you can do it...?";
- mes "Ok, listen carefully,";
- mes "its weakness is...";
- next;
- mes "[Kidnapped Residents]";
- mes "...behind us on the walls.";
- sc_start SC_ATKPOTION,60000,45;
- sc_start SC_MATKPOTION,60000,45;
- disablenpc instance_npcname("Kidnapped People#2");
- close;
+ mes("[Kidnapped Residents]");
+ mes("Are you sure you can do it...?");
+ mes("Ok, listen carefully,");
+ mes("its weakness is...");
+ next();
+ mes("[Kidnapped Residents]");
+ mes("...behind us on the walls.");
+ sc_start(SC_ATKPOTION, 60000, 45);
+ sc_start(SC_MATKPOTION, 60000, 45);
+ disablenpc(instance_npcname("Kidnapped People#2"));
+ close();
case 2:
- mes "[Kidnapped Residents]";
- mes "WHAT?!";
- mes "Are you ignoring me";
- mes "because I'm captured in here?";
- close;
+ mes("[Kidnapped Residents]");
+ mes("WHAT?!");
+ mes("Are you ignoring me");
+ mes("because I'm captured in here?");
+ close();
}
end;
OnInstanceInit:
- disablenpc instance_npcname("Kidnapped People#2");
+ disablenpc(instance_npcname("Kidnapped People#2"));
end;
OnEnable:
- enablenpc instance_npcname("Kidnapped People#2");
+ enablenpc(instance_npcname("Kidnapped People#2"));
end;
}
1@ma_c,3,3,0 script #box_mob_call HIDDEN_WARP_NPC,1,1,{
end;
OnInstanceInit:
- setcell instance_mapname("1@ma_c"),30,118,35,118,cell_shootable,1; //custom
- disablenpc instance_npcname("#box_mob_call");
+ setcell(instance_mapname("1@ma_c"), 30, 118, 35, 118, cell_shootable, 1); //custom
+ disablenpc(instance_npcname("#box_mob_call"));
end;
OnEnable:
- enablenpc instance_npcname("#box_mob_call");
+ enablenpc(instance_npcname("#box_mob_call"));
.@label$ = instance_npcname("#box_mob_call")+"::OnMyMobDead";
.@map$ = instance_mapname("1@ma_c");
- monster .@map$,30,118,"Buwaya's Weakness",2333,1,.@label$;
- monster .@map$,35,118,"Buwaya's Weakness",2333,1,.@label$;
+ monster(.@map$, 30, 118, _("Buwaya's Weakness"), BUWAYA_WEAK, 1, .@label$);
+ monster(.@map$, 35, 118, _("Buwaya's Weakness"), BUWAYA_WEAK, 1, .@label$);
end;
OnDisable:
- killmonster instance_mapname("1@ma_c"),instance_npcname("#box_mob_call")+"::OnMyMobDead";
- disablenpc instance_npcname("#box_mob_call");
+ killmonster(instance_mapname("1@ma_c"), instance_npcname("#box_mob_call")+"::OnMyMobDead");
+ disablenpc(instance_npcname("#box_mob_call"));
end;
OnMyMobDead:
- if (mobcount(instance_mapname("1@ma_c"),instance_npcname("#box_mob_call")+"::OnMyMobDead") < 1)
- donpcevent instance_npcname("#box_out")+"::OnEnable";
+ if (mobcount(instance_mapname("1@ma_c"), instance_npcname("#box_mob_call")+"::OnMyMobDead") < 1)
+ donpcevent(instance_npcname("#box_out")+"::OnEnable");
end;
}
1@ma_c,38,118,0 script #box_out WARPNPC,2,2,{
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#box_out");
+ disablenpc(instance_npcname("#box_out"));
end;
OnEnable:
- enablenpc instance_npcname("#box_out");
+ enablenpc(instance_npcname("#box_out"));
end;
OnTouch:
- .@x = rand(1,20) + 97;
- .@y = rand(1,20) + 74;
- warp instance_mapname("1@ma_c"),.@x,.@y;
+ .@x = rand(1, 20) + 97;
+ .@y = rand(1, 20) + 74;
+ warp(instance_mapname("1@ma_c"), .@x, .@y);
end;
}
1@ma_c,97,74,0 script #box_call HIDDEN_WARP_NPC,50,50,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#box_call");
- initnpctimer;
+ disablenpc(instance_npcname("#box_call"));
+ initnpctimer();
end;
OnTimer30000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : I will put you in my treasure box!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : I will put you in my treasure box!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
// Should execute OnTimer33000, but client doesn't render the effect fast enough.
- for(.@i = 1; .@i<=9; ++.@i)
- donpcevent instance_npcname("#yunobi"+.@i)+"::OnEnable";
+ for(.@i = 1; .@i <= 9; ++.@i)
+ donpcevent(instance_npcname("#yunobi"+.@i)+"::OnEnable");
end;
OnTimer33000:
- donpcevent instance_npcname("#box_out")+"::OnDisable";
- donpcevent instance_npcname("#box_mob_call")+"::OnDisable";
- donpcevent instance_npcname("Kidnapped People#1")+"::OnEnable";
- donpcevent instance_npcname("Kidnapped People#2")+"::OnEnable";
+ donpcevent(instance_npcname("#box_out")+"::OnDisable");
+ donpcevent(instance_npcname("#box_mob_call")+"::OnDisable");
+ donpcevent(instance_npcname("Kidnapped People#1")+"::OnEnable");
+ donpcevent(instance_npcname("Kidnapped People#2")+"::OnEnable");
end;
OnTimer34000:
- enablenpc instance_npcname("#box_call");
+ enablenpc(instance_npcname("#box_call"));
end;
OnTimer35000:
- stopnpctimer;
- initnpctimer;
- disablenpc instance_npcname("#box_call");
+ stopnpctimer();
+ initnpctimer();
+ disablenpc(instance_npcname("#box_call"));
end;
OnTouch:
- specialeffect2 EF_GUIDEDATTACK;
- warp instance_mapname("1@ma_c"),33,112;
+ specialeffect(EF_GUIDEDATTACK, AREA, playerattached());
+ warp(instance_mapname("1@ma_c"), 33, 112);
end;
OnDisable:
- stopnpctimer;
- disablenpc instance_npcname("#box_call");
+ stopnpctimer();
+ disablenpc(instance_npcname("#box_call"));
end;
}
1@ma_c,97,74,0 script #yunobi1 HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideonnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- specialeffect EF_MAPPILLAR2;
+ specialeffect(EF_MAPPILLAR2);
end;
}
1@ma_c,97,94,0 duplicate(#yunobi1) #yunobi2 HIDDEN_WARP_NPC
@@ -353,65 +350,65 @@ OnEnable:
1@ma_c,1,1,0 script #bunshin HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- initnpctimer;
+ initnpctimer();
end;
OnTimer58000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : I had enough with this, let's go till the end!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : I had enough with this, let's go till the end!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer61000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : This is!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : This is!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer62000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : This is...MY!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : This is...MY!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer63000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : This is...MY...Deadly!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : This is...MY...Deadly!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer64000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : This is...MY...Deadly... ATTACK!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : This is...MY...Deadly... ATTACK!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer65000:
.@label$ = instance_npcname("#bunshin")+"::OnMyMobDead";
.@map$ = instance_mapname("1@ma_c");
- areamonster .@map$,112,89,122,99,"Buwaya",2332,1,.@label$;
- areamonster .@map$,112,49,122,59,"Buwaya",2332,1,.@label$;
- areamonster .@map$,72,49,82,59,"Buwaya",2332,1,.@label$;
- areamonster .@map$,72,89,82,99,"Buwaya",2332,1,.@label$;
+ areamonster(.@map$, 112, 89, 122, 99, _("Buwaya"), BUWAYA_GHOST, 1, .@label$);
+ areamonster(.@map$, 112, 49, 122, 59, _("Buwaya"), BUWAYA_GHOST, 1, .@label$);
+ areamonster(.@map$, 72, 49, 82, 59, _("Buwaya"), BUWAYA_GHOST, 1, .@label$);
+ areamonster(.@map$, 72, 89, 82, 99, _("Buwaya"), BUWAYA_GHOST, 1, .@label$);
end;
OnTimer66000:
- mapannounce instance_mapname("1@ma_c"),"Buwaya : Are you scared?",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ma_c"), _("Buwaya : Are you scared?"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
end;
OnTimer105000:
- killmonster instance_mapname("1@ma_c"),instance_npcname("#bunshin")+"::OnMyMobDead";
- stopnpctimer;
- initnpctimer;
+ killmonster(instance_mapname("1@ma_c"), instance_npcname("#bunshin")+"::OnMyMobDead");
+ stopnpctimer();
+ initnpctimer();
end;
OnMyMobDead:
- if (mobcount(instance_mapname("1@ma_c"),instance_npcname("#bunshin")+"::OnMyMobDead") < 1) {
- stopnpctimer;
- initnpctimer;
+ if (mobcount(instance_mapname("1@ma_c"), instance_npcname("#bunshin")+"::OnMyMobDead") < 1) {
+ stopnpctimer();
+ initnpctimer();
}
end;
OnDisable:
- stopnpctimer;
- killmonster instance_mapname("1@ma_c"),instance_npcname("#bunshin")+"::OnMyMobDead";
- disablenpc instance_npcname("#bunshin");
+ stopnpctimer();
+ killmonster(instance_mapname("1@ma_c"), instance_npcname("#bunshin")+"::OnMyMobDead");
+ disablenpc(instance_npcname("#bunshin"));
end;
}
1@ma_c,2,2,0 script #buwaya_con HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- areamonster instance_mapname("1@ma_c"),90,67,104,81,"Buwaya",2319,1,instance_npcname("#buwaya_con")+"::OnMyMobDead";
+ areamonster(instance_mapname("1@ma_c"), 90, 67, 104, 81, _("Buwaya"), BUWAYA, 1, instance_npcname("#buwaya_con")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@ma_c");
- if (mobcount(.@map$,instance_npcname("#buwaya_con")+"::OnMyMobDead") < 1) {
- donpcevent instance_npcname("#box_call")+"::OnDisable";
- donpcevent instance_npcname("#bunshin")+"::OnDisable";
- donpcevent instance_npcname("#exit_mob")+"::OnDisable";
- donpcevent instance_npcname("#cave_out")+"::OnEnable";
- mapannounce .@map$,"Guard : You did great work. Please hurry up and escape to the way you came in!",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ if (mobcount(.@map$, instance_npcname("#buwaya_con")+"::OnMyMobDead") < 1) {
+ donpcevent(instance_npcname("#box_call")+"::OnDisable");
+ donpcevent(instance_npcname("#bunshin")+"::OnDisable");
+ donpcevent(instance_npcname("#exit_mob")+"::OnDisable");
+ donpcevent(instance_npcname("#cave_out")+"::OnEnable");
+ mapannounce(.@map$, _("Guard : You did great work. Please hurry up and escape to the way you came in!"), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
}
end;
}
@@ -419,24 +416,24 @@ OnMyMobDead:
1@ma_c,3,3,0 script #exit_mob HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- initnpctimer;
+ initnpctimer();
end;
OnTimer60000:
.@label$ = instance_npcname("#exit_mob")+"::OnMyMobDead";
.@map$ = instance_mapname("1@ma_c");
- if (mobcount(.@map$,.@label$) < 30)
+ if (mobcount(.@map$, .@label$) < 30)
.@amount = 10;
else
.@amount = 1;
- areamonster .@map$,43,58,47,60,"Water Plant",2331,.@amount,.@label$;
- areamonster .@map$,43,58,47,60,"Egg",2329,.@amount,.@label$;
- stopnpctimer;
- initnpctimer;
+ areamonster(.@map$, 43, 58, 47, 60, _("Water Plant"), MA_SEAW, .@amount, .@label$);
+ areamonster(.@map$, 43, 58, 47, 60, _("Egg"), BUWAYA_EGG, .@amount, .@label$);
+ stopnpctimer();
+ initnpctimer();
end;
OnDisable:
- stopnpctimer;
- killmonster instance_mapname("1@ma_c"),instance_npcname("#exit_mob")+"::OnMyMobDead";
- disablenpc instance_npcname("#exit_mob");
+ stopnpctimer();
+ killmonster(instance_mapname("1@ma_c"), instance_npcname("#exit_mob")+"::OnMyMobDead");
+ disablenpc(instance_npcname("#exit_mob"));
end;
OnMyMobDead:
end;
@@ -444,35 +441,35 @@ OnMyMobDead:
1@ma_c,28,57,0 script #cave_out WARPNPC,2,2,{
OnInstanceInit:
- disablenpc instance_npcname("#cave_out");
+ disablenpc(instance_npcname("#cave_out"));
end;
OnEnable:
- enablenpc instance_npcname("#cave_out");
+ enablenpc(instance_npcname("#cave_out"));
end;
OnTouch:
- mes "Would like to go out?";
- next;
- if(select("Yes!", "No, I will stay.") == 1)
- warp "ma_fild02",315,315;
- close;
+ mes("Would like to go out?");
+ next();
+ if (select("Yes!", "No, I will stay.") == 1)
+ warp("ma_fild02", 315, 315);
+ close();
}
1@ma_c,1,1,0 script #buwaya_spawn_mobs FAKE_NPC,{
OnInstanceInit:
.@map$ = instance_mapname("1@ma_c");
- areamonster .@map$,73,81,93,101,"Seaweed",2331,18;
- areamonster .@map$,110,97,116,103,"Seaweed",2331,8;
- areamonster .@map$,59,63,63,67,"Seaweed",2331,8;
- areamonster .@map$,73,55,77,59,"Seaweed",2331,4;
- areamonster .@map$,103,69,107,73,"Seaweed",2331,4;
- areamonster .@map$,108,45,122,63,"Seaweed",2331,15;
- areamonster .@map$,73,81,93,101,"Buwaya's Egg",2329,10;
- areamonster .@map$,110,97,116,103,"Buwaya's Egg",2329,8;
- areamonster .@map$,59,63,63,67,"Buwaya's Egg",2329,4;
- areamonster .@map$,73,55,77,59,"Buwaya's Egg",2329,3;
- areamonster .@map$,103,69,107,73,"Buwaya's Egg",2329,3;
- areamonster .@map$,108,45,122,63,"Buwaya's Egg",2329,15;
- monster .@map$,0,0,"Seaweed",2331,5;
- monster .@map$,0,0,"Buwaya's Slave",2330,5;
+ areamonster(.@map$, 73, 81, 93, 101, _("Seaweed"), MA_SEAW, 18);
+ areamonster(.@map$, 110, 97, 116, 103, _("Seaweed"), MA_SEAW, 8);
+ areamonster(.@map$, 59, 63, 63, 67, _("Seaweed"), MA_SEAW, 8);
+ areamonster(.@map$, 73, 55, 77, 59, _("Seaweed"), MA_SEAW, 4);
+ areamonster(.@map$, 103, 69, 107, 73, _("Seaweed"), MA_SEAW, 4);
+ areamonster(.@map$, 108, 45, 122, 63, _("Seaweed"), MA_SEAW, 15);
+ areamonster(.@map$, 73, 81, 93, 101, _("Buwaya's Egg"), BUWAYA_EGG, 10);
+ areamonster(.@map$, 110, 97, 116, 103, _("Buwaya's Egg"), BUWAYA_EGG, 8);
+ areamonster(.@map$, 59, 63, 63, 67, _("Buwaya's Egg"), BUWAYA_EGG, 4);
+ areamonster(.@map$, 73, 55, 77, 59, _("Buwaya's Egg"), BUWAYA_EGG, 3);
+ areamonster(.@map$, 103, 69, 107, 73, _("Buwaya's Egg"), BUWAYA_EGG, 3);
+ areamonster(.@map$, 108, 45, 122, 63, _("Buwaya's Egg"), BUWAYA_EGG, 15);
+ monster(.@map$, 0, 0, _("Seaweed"), MA_SEAW, 5);
+ monster(.@map$, 0, 0, _("Buwaya's Slave"), BUWAYA_SLAVE, 5);
end;
}
diff --git a/npc/re/instances/EclageInterior.txt b/npc/re/instances/EclageInterior.txt
index 9ad8519b4..2b2117b93 100644
--- a/npc/re/instances/EclageInterior.txt
+++ b/npc/re/instances/EclageInterior.txt
@@ -34,133 +34,130 @@
ecl_hub01,132,12,3 script Chief of Staff#tl01::EclInstance 4_F_FAIRY,{
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Eclage Interior";
- if (!.@party_id){
- mes "-! Warning !-";
- mes "This current quest will be held at Memorial dungeon.";
- mes "Only the party leader will enter. Please create your party.";
- close;
+ .@md_name$ = _("Eclage Interior");
+ if (!.@party_id) {
+ mes("-! Warning !-");
+ mes("This current quest will be held at Memorial dungeon.");
+ mes("Only the party leader will enter. Please create your party.");
+ close();
}
-
- if (getpartyleader(.@party_id,2) != getcharid(CHAR_ID_CHAR)) {
- mes "-! Warning !-";
- mes "This current quest will be held at Memorial dungeon.";
- mes "Only the party leader will enter. Please create your party.";
- close;
+ if (getpartyleader(.@party_id, 2) != getcharid(CHAR_ID_CHAR)) {
+ mes("-! Warning !-");
+ mes("This current quest will be held at Memorial dungeon.");
+ mes("Only the party leader will enter. Please create your party.");
+ close();
}
if (ep14_2_mylord == 29) {
- mes "[Shenime]";
- mes "This place is set up with lighting for Orb.";
- mes "If you favor Mayor, you should be cautious here.";
- next;
+ mes("[Shenime]");
+ mes("This place is set up with lighting for Orb.");
+ mes("If you favor Mayor, you should be cautious here.");
+ next();
switch (select("Enter it.", "Forget it.")) {
- case 1:
- .@instance = instance_create(.@md_name$,.@party_id);
- if (.@instance < 0) {
- mes "[Shenime]";
- mes "There are some soldiers dispatched by Mayor not too long ago.";
- mes "I should sure hope that you aren't the disturbance they're looking for, right?";
- close;
- }
- if (instance_attachmap("1@ecl",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
+ case 1:
+ .@instance = instance_create(.@md_name$, .@party_id);
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@ecl", .@instance) == "") {
+ mes("[Shenime]");
+ mes("There are some soldiers dispatched by Mayor not too long ago.");
+ mes("I should sure hope that you aren't the disturbance they're looking for, right?");
instance_destroy(.@instance);
- close;
+ close();
}
- ecl_interior_time = gettimetick(2)+20*60;
- instance_set_timeout 1200,1200,.@instance;
+ ecl_interior_time = gettimetick(2) + 20 * 60;
+ instance_set_timeout(1200, 1200, .@instance);
instance_init(.@instance);
- mes "[Shenime]";
- mes "Given the tight internal security, you should prepare yourself.";
- mes "Wait here for a minute.";
- close;
- case 2:
- mes "[Shenime]";
- mes "It's not an easy task.";
- close;
+ }
+ mes("[Shenime]");
+ mes("Given the tight internal security, you should prepare yourself.");
+ mes("Wait here for a minute.");
+ close();
+ case 2:
+ mes("[Shenime]");
+ mes("It's not an easy task.");
+ close();
}
}
- mes "[High-level Laphine's]";
- mes "Hmm? This room?";
- mes "Never mind. Don't worry about it.";
- close;
+ mes("[High-level Laphine's]");
+ mes("Hmm? This room?");
+ mes("Never mind. Don't worry about it.");
+ close();
}
ecl_hub01,130,15,0 script It is closed shut. CLEAR_NPC,{
if (ep14_2_mylord == 29) {
- mes "This door connects to the plaza's ceiling.";
- mes "It's also a place where the lighting is set up to make Orb seem more beautiful.";
- next;
+ mes("This door connects to the plaza's ceiling.");
+ mes("It's also a place where the lighting is set up to make Orb seem more beautiful.");
+ next();
switch (select("Enter it.", "Forget it.")) {
- case 1:
- .@party_id = getcharid(CHAR_ID_PARTY);
+ case 1:
+ .@party_id = getcharid(CHAR_ID_PARTY);
- if (has_instance("1@ecl") == "") {
- mes "It is closed shut.";
- close;
+ if (has_instance("1@ecl") == "") {
+ mes("It is closed shut.");
+ close();
+ }
+ if (.@party_id) {
+ .@md_name$ = _("Eclage Interior");
+ if (getpartyleader(.@party_id, 2) != getcharid(CHAR_ID_CHAR)) {
+ mes("-! Warning !-");
+ mes("This current quest will be held at Memorial dungeon.");
+ mes("Only the party leader will enter. Please create your party.");
+ close();
}
- if (.@party_id) {
- .@md_name$ = "Eclage Interior";
- if (getpartyleader(.@party_id,2) != getcharid(CHAR_ID_CHAR)){
- mes "-! Warning !-";
- mes "This current quest will be held at Memorial dungeon.";
- mes "Only the party leader will enter. Please create your party.";
- close;
- }
- if (gettimetick(2) >= ecl_interior_time){
- mes "[Shenime]";
- mes "Looks like the soldiers inside are really tense.";
- mes "It is pretty difficult to guide an outsider like you.";
- close;
- }
- close2;
- mapannounce "ecl_hub01",getpartyname(.@party_id) + " Party leader " + strcharinfo(PC_NAME) + " is entering " + .@md_name$,bc_map,"0x00ff99";
- warp "1@ecl",60,50;
- end;
+ if (gettimetick(2) >= ecl_interior_time) {
+ mes("[Shenime]");
+ mes("Looks like the soldiers inside are really tense.");
+ mes("It is pretty difficult to guide an outsider like you.");
+ close();
}
- mes "-! Warning !-";
- mes "This current quest will be held at Memorial dungeon.";
- mes "Only the party leader will enter. Please create your party.";
- close;
- case 2:
- close;
+ close2();
+ mapannounce("ecl_hub01", sprintf(_$("%s Party leader %s is entering %s"), getpartyname(.@party_id), strcharinfo(PC_NAME), .@md_name$), bc_map, C_SPRINGGREEN);
+ warp("1@ecl", 60, 50);
+ end;
+ }
+ mes("-! Warning !-");
+ mes("This current quest will be held at Memorial dungeon.");
+ mes("Only the party leader will enter. Please create your party.");
+ close();
+ case 2:
+ close();
}
}
- mes "This door connects to the plaza's ceiling.";
- mes "It's also a place where the lighting is set up to make Orb seem more beautiful.";
- mes "It is closed shut.";
- close;
+ mes("This door connects to the plaza's ceiling.");
+ mes("It's also a place where the lighting is set up to make Orb seem more beautiful.");
+ mes("It is closed shut.");
+ close();
}
1@ecl,58,69,3 script Shenime#ecl01 4_F_FAIRY,{
- mes "[Shenime]";
- mes "Oh, what's going on here?";
- mes "They destroyed additional troops that Mayor sent?";
- next;
+ mes("[Shenime]");
+ mes("Oh, what's going on here?");
+ mes("They destroyed additional troops that Mayor sent?");
+ next();
select("What...?", "I fought monsters off!");
- mes "[Shenime]";
- mes "It doesn't matter.";
- mes "Your job ends here.";
- mes "Now you became a betrayer.";
- mes "Farewell, then!";
- specialeffect EF_BEGINSPELL3;
- next;
- mes "[" + strcharinfo(PC_NAME) + "]";
- mes "No...way!!!";
- specialeffect2 EF_LORD;
- percentheal -99,0;
- soundeffect "wander_man_move.wav",1;
- sc_start SC_BLIND,60000,0;
- close2;
- warp "1@ecl",146,95;
+ mes("[Shenime]");
+ mes("It doesn't matter.");
+ mes("Your job ends here.");
+ mes("Now you became a betrayer.");
+ mes("Farewell, then!");
+ specialeffect(EF_BEGINSPELL3);
+ next();
+ mesf("[%s]", strcharinfo(PC_NAME));
+ mes("No...way!!!");
+ specialeffect(EF_LORD, AREA, playerattached());
+ percentheal(-99, 0);
+ soundeffect("wander_man_move.wav", 1);
+ sc_start(SC_BLIND, 60000, 0);
+ close2();
+ warp("1@ecl", 146, 95);
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideonnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- hideoffnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideoffnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
@@ -174,8 +171,9 @@ OnEnable:
1@ecl,42,80,5 script Suspicious Creature#5 MOROCC_2_142,{
end;
+
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideonnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
@@ -188,109 +186,113 @@ OnInstanceInit:
OnInstanceInit:
.mob_summoned = 0;
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- initnpctimer;
+ initnpctimer();
end;
OnReset:
- killmonster instance_mapname("1@ecl"),instance_npcname("#sndmaster")+"::OnMyMobDead";
- stopnpctimer;
+ killmonster(instance_mapname("1@ecl"), instance_npcname("#sndmaster")+"::OnMyMobDead");
+ stopnpctimer();
end;
+
OnTimer1000:
- mapannounce instance_mapname("1@ecl"),"Warning: Abnormal occurrence in the lighting room. Abnormal occurrence in the lighting room.",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@ecl"), _("Warning: Abnormal occurrence in the lighting room. Abnormal occurrence in the lighting room."), bc_map, C_YELLOW); //FW_NORMAL 12 0 0
end;
+
OnTimer2000:
- mapannounce instance_mapname("1@ecl"),"Suspicious Creature: Kerrrrr....krwahhhh!!",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
- hideoffnpc instance_npcname("Suspicious Creature#5");
- hideoffnpc instance_npcname("Suspicious Creature#6");
- hideoffnpc instance_npcname("Suspicious Creature#7");
- hideoffnpc instance_npcname("Suspicious Creature#8");
+ mapannounce(instance_mapname("1@ecl"), _("Suspicious Creature: Kerrrrr....krwahhhh!!"), bc_map, C_YELLOW); //FW_NORMAL 12 0 0
+ hideoffnpc(instance_npcname("Suspicious Creature#5"));
+ hideoffnpc(instance_npcname("Suspicious Creature#6"));
+ hideoffnpc(instance_npcname("Suspicious Creature#7"));
+ hideoffnpc(instance_npcname("Suspicious Creature#8"));
end;
OnTimer3000:
- hideonnpc instance_npcname("#sndmaster");
- stopnpctimer;
+ hideonnpc(instance_npcname("#sndmaster"));
+ stopnpctimer();
end;
OnMyMobDead:
- if (mobcount(instance_mapname("1@ecl"),instance_npcname("#sndmaster")+"::OnMyMobDead") == 0) {
- donpcevent instance_npcname("Shenime#ecl01")+"::OnEnable";
- mapannounce instance_mapname("1@ecl"),"Shenime: Good, I got here just in time.",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
+ if (mobcount(instance_mapname("1@ecl"), instance_npcname("#sndmaster")+"::OnMyMobDead") == 0) {
+ donpcevent(instance_npcname("Shenime#ecl01")+"::OnEnable");
+ mapannounce(instance_mapname("1@ecl"), _("Shenime: Good, I got here just in time."), bc_map, C_YELLOW); //FW_NORMAL 12 0 0
}
end;
OnTouch:
- if (.mob_summoned) end;
- mes "Upon eliminating the intruders near the Orb, another strange-looking creatures appeared.";
- next;
- mes "We couldn't communicate with them either, and one of them seemed furious after looking around and finding out that its fellows are defeated.";
- next;
- mes "[" + strcharinfo(PC_NAME) + "]";
- mes "They look as if they are incarnation of Morroc.";
- mes "Is the King of Domons after the Orb?";
- mes "Or is it just a coincidence?";
- next;
- mes "[Subordinate of the King of Demons]";
- mes "Kyaarr...Keraahhh!!!";
- mes "Kkwaaa!";
- next;
- mes "A battle cannot be avoided!";
- mes "They will kill me!";
- hideonnpc instance_npcname("Suspicious Creature#5");
- hideonnpc instance_npcname("Suspicious Creature#6");
- hideonnpc instance_npcname("Suspicious Creature#7");
- hideonnpc instance_npcname("Suspicious Creature#8");
+ if (.mob_summoned)
+ end;
+ mes("Upon eliminating the intruders near the Orb, another strange-looking creatures appeared.");
+ next();
+ mes("We couldn't communicate with them either, and one of them seemed furious after looking around and finding out that its fellows are defeated.");
+ next();
+ mesf("[%s]", strcharinfo(PC_NAME));
+ mes("They look as if they are incarnation of Morroc.");
+ mes("Is the King of Domons after the Orb?");
+ mes("Or is it just a coincidence?");
+ next();
+ mes("[Subordinate of the King of Demons]");
+ mes("Kyaarr...Keraahhh!!!");
+ mes("Kkwaaa!");
+ next();
+ mes("A battle cannot be avoided!");
+ mes("They will kill me!");
+ hideonnpc(instance_npcname("Suspicious Creature#5"));
+ hideonnpc(instance_npcname("Suspicious Creature#6"));
+ hideonnpc(instance_npcname("Suspicious Creature#7"));
+ hideonnpc(instance_npcname("Suspicious Creature#8"));
.@eclmap$ = instance_mapname("1@ecl");
.@sndmaster$ = instance_npcname("#sndmaster");
- monster .@eclmap$,42,80,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,48,86,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,59,82,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,56,88,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,39,72,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,42,69,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,47,64,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
- monster .@eclmap$,50,60,"Subordinate of the King of Demons",MOROCC_2_142,1,.@sndmaster$+"::OnMyMobDead";
+ monster(.@eclmap$, 42, 80, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 48, 86, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 59, 82, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 56, 88, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 39, 72, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 42, 69, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 47, 64, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
+ monster(.@eclmap$, 50, 60, _("Subordinate of the King of Demons"), MOROCC_2_142, 1, .@sndmaster$+"::OnMyMobDead");
.mob_summoned = 1;
- close;
+ close();
}
1@ecl,57,65,0 script #event HIDDEN_WARP_NPC,5,5,{
end;
OnTouch:
- if (.mob_summoned) end;
+ if (.mob_summoned)
+ end;
.@eclmap$ = instance_mapname("1@ecl");
.@eventname$ = instance_npcname("#event");
- mes "An empty room with nothing inside.";
- mes "a light is coming out of a circular equipment in the middle of the room.";
- next;
- mes "[Suspicious Creature]";
- mes "Keheehehehe......";
- next;
- mes "A group of unidentifiable creatures is approaching threateningly.";
- mes "They seemed surprised, and although Bifrost's will still holds, it's hard to communicate.";
- next;
- mes "[Suspicious Creature]";
- mes "Kyaarr...Ke...Keryarya!!";
- next;
- mes "It seems like they are going to start attacking any minute.";
- mes "We cannot help fighting them!";
- hideonnpc instance_npcname("Suspicious Creature#1");
- hideonnpc instance_npcname("Suspicious Creature#2");
- hideonnpc instance_npcname("Suspicious Creature#3");
- hideonnpc instance_npcname("Suspicious Creature#4");
- monster .@eclmap$,51,64,"Suspicious Creature",MOROCC_4_142,1,.@eventname$+"::OnMyMobDead";
- monster .@eclmap$,43,67,"Suspicious Creature",MOROCC_4_142,1,.@eventname$+"::OnMyMobDead";
- monster .@eclmap$,55,80,"Suspicious Creature",MOROCC_4_142,1,.@eventname$+"::OnMyMobDead";
- monster .@eclmap$,60,75,"Suspicious Creature",MOROCC_4_142,1,.@eventname$+"::OnMyMobDead";
+ mes("An empty room with nothing inside.");
+ mes("a light is coming out of a circular equipment in the middle of the room.");
+ next();
+ mes("[Suspicious Creature]");
+ mes("Keheehehehe......");
+ next();
+ mes("A group of unidentifiable creatures is approaching threateningly.");
+ mes("They seemed surprised, and although Bifrost's will still holds, it's hard to communicate.");
+ next();
+ mes("[Suspicious Creature]");
+ mes("Kyaarr...Ke...Keryarya!!");
+ next();
+ mes("It seems like they are going to start attacking any minute.");
+ mes("We cannot help fighting them!");
+ hideonnpc(instance_npcname("Suspicious Creature#1"));
+ hideonnpc(instance_npcname("Suspicious Creature#2"));
+ hideonnpc(instance_npcname("Suspicious Creature#3"));
+ hideonnpc(instance_npcname("Suspicious Creature#4"));
+ monster(.@eclmap$, 51, 64, _("Suspicious Creature"), MOROCC_4_142, 1, .@eventname$+"::OnMyMobDead");
+ monster(.@eclmap$, 43, 67, _("Suspicious Creature"), MOROCC_4_142, 1, .@eventname$+"::OnMyMobDead");
+ monster(.@eclmap$, 55, 80, _("Suspicious Creature"), MOROCC_4_142, 1, .@eventname$+"::OnMyMobDead");
+ monster(.@eclmap$, 60, 75, _("Suspicious Creature"), MOROCC_4_142, 1, .@eventname$+"::OnMyMobDead");
.mob_summoned = 1;
- close;
+ close();
OnMyMobDead:
- if (mobcount(instance_mapname("1@ecl"),instance_npcname("#event")+"::OnMyMobDead") == 0) {
- enablenpc instance_npcname("#sndmaster");
- donpcevent instance_npcname("#sndmaster")+"::OnEnable";
+ if (mobcount(instance_mapname("1@ecl"), instance_npcname("#event")+"::OnMyMobDead") == 0) {
+ enablenpc(instance_npcname("#sndmaster"));
+ donpcevent(instance_npcname("#sndmaster")+"::OnEnable");
}
end;
OnInstanceInit:
@@ -299,218 +301,218 @@ OnInstanceInit:
}
1@ecl,148,97,3 script Avant# 4_M_FAIRYAVANT,{
- mes "[Avant]";
- mes "Hey, look who's here!";
- mes "You're a friend of my son, right?";
- mes "What a strange chance it is that has brought us together here!";
- cutin "avant01",1;
- next;
- mes "[Avant]";
- mes "Did something happen to you?";
- mes "There was a subtle and magical echo to it.";
- mes "Immidiately after that, you were thrown here.";
- next;
+ mes("[Avant]");
+ mes("Hey, look who's here!");
+ mes("You're a friend of my son, right?");
+ mes("What a strange chance it is that has brought us together here!");
+ cutin("avant01", 1);
+ next();
+ mes("[Avant]");
+ mes("Did something happen to you?");
+ mes("There was a subtle and magical echo to it.");
+ mes("Immidiately after that, you were thrown here.");
+ next();
if (select("It's all because of you!", "Shenime said...") == 1) {
- mes "[Avant]";
- mes "I don't understand a word you're saying.";
- mes "Can't you organize your story? Don't you know 'five W's and one H' rule?";
- next;
+ mes("[Avant]");
+ mes("I don't understand a word you're saying.");
+ mes("Can't you organize your story? Don't you know 'five W's and one H' rule?");
+ next();
}
- mes "[Avant]";
- mes "Ooh...so that's what happened.";
- mes "So you're saying that Shenime was after the Orb?";
- next;
- mes "[Avant]";
- mes "hehehe...hahahhaha ahahahahha";
- mes "Well, well...did he get me, too?";
- mes "Me, Avant, of all the people?! Hahahaha!";
- cutin "avant02",1;
- next;
+ mes("[Avant]");
+ mes("Ooh...so that's what happened.");
+ mes("So you're saying that Shenime was after the Orb?");
+ next();
+ mes("[Avant]");
+ mes("hehehe...hahahhaha ahahahahha");
+ mes("Well, well...did he get me, too?");
+ mes("Me, Avant, of all the people?! Hahahaha!");
+ cutin("avant02", 1);
+ next();
select("What do you mean?");
- mes "[Avant]";
- mes "I was doing a research on the power of the Orb on my own.";
- mes "But Shenime just urged me persistently.";
- cutin "avant01",1;
- next;
- mes "[Avant]";
- mes "I started from thinking about the beauty of the Orb and went on to wondering what kind of power is accumulated inside the Orb...";
- mes "and I started questioning the principle of the Orb's power since we all benefit from it.";
- next;
- mes "[Avant]";
- mes "All Laphines think of the Orb as something natural as air and water, but he was the first one to make me perceive it differently and investigate its origin.";
- mes "Right...Shenime. He excited my curiosity on purpose.";
- next;
- mes "[Avant]";
- mes "Stimulate a person who wasn't aware of air and water, and make him recognize and carry on investigating!";
- mes "Well, well...isn't that interesting!";
- cutin "avant02",1;
- next;
- mes "[Avant]";
- mes "Ha...hahaha...";
- mes "...I'm so angry about the fact that I just realized how he used me, but what's even worse is that I've done something horrible to our people.";
- mes "I think I'm pretty irritated now.";
- next;
+ mes("[Avant]");
+ mes("I was doing a research on the power of the Orb on my own.");
+ mes("But Shenime just urged me persistently.");
+ cutin("avant01", 1);
+ next();
+ mes("[Avant]");
+ mes("I started from thinking about the beauty of the Orb and went on to wondering what kind of power is accumulated inside the Orb...");
+ mes("and I started questioning the principle of the Orb's power since we all benefit from it.");
+ next();
+ mes("[Avant]");
+ mes("All Laphines think of the Orb as something natural as air and water, but he was the first one to make me perceive it differently and investigate its origin.");
+ mes("Right...Shenime. He excited my curiosity on purpose.");
+ next();
+ mes("[Avant]");
+ mes("Stimulate a person who wasn't aware of air and water, and make him recognize and carry on investigating!");
+ mes("Well, well...isn't that interesting!");
+ cutin("avant02", 1);
+ next();
+ mes("[Avant]");
+ mes("Ha...hahaha...");
+ mes("...I'm so angry about the fact that I just realized how he used me, but what's even worse is that I've done something horrible to our people.");
+ mes("I think I'm pretty irritated now.");
+ next();
select("You had a conscience?");
- mes "[Avant]";
- mes "What kind of a person do you think I am, seriously!";
- mes "Is it because of my sons?";
- mes "Well, then, I can't blame you too much.";
- cutin "avant01",1;
- next;
- mes "[Avant]";
- mes "...Bah.";
- mes "It's no fun.";
- mes "It's not fun anymore. I'm no longer interested in you.";
- next;
- mes "[Avant]";
- mes "......";
- mes "Seems like there's a visitor.";
- next;
- cutin "minuel01",4;
- mes "[Minuel]";
- mes "" + strcharinfo(PC_NAME) + "Sir,";
- mes "Although you're detained on suspicion of being responsible for the recent incident in the lighting room,";
- mes "there are some witnesses to prove your innocence.";
- next;
- mes "[Minuel]";
- mes "I don't know the details,";
- mes "but I also believe you're not guilty.";
- mes "I'll move you to the treatment room since this seems like a severe wound.";
- next;
- mes "[Minuel]";
- mes "I don't think it's a big deal.";
- mes "...hopefully.";
- mes "Let's go. I'll guide you.";
- close2;
- cutin "",255;
- warp "1@ecl",146,29;
+ mes("[Avant]");
+ mes("What kind of a person do you think I am, seriously!");
+ mes("Is it because of my sons?");
+ mes("Well, then, I can't blame you too much.");
+ cutin("avant01", 1);
+ next();
+ mes("[Avant]");
+ mes("...Bah.");
+ mes("It's no fun.");
+ mes("It's not fun anymore. I'm no longer interested in you.");
+ next();
+ mes("[Avant]");
+ mes("......");
+ mes("Seems like there's a visitor.");
+ next();
+ cutin("minuel01", 4);
+ mes("[Minuel]");
+ mesf("%s Sir,", strcharinfo(PC_NAME));
+ mes("Although you're detained on suspicion of being responsible for the recent incident in the lighting room,");
+ mes("there are some witnesses to prove your innocence.");
+ next();
+ mes("[Minuel]");
+ mes("I don't know the details,");
+ mes("but I also believe you're not guilty.");
+ mes("I'll move you to the treatment room since this seems like a severe wound.");
+ next();
+ mes("[Minuel]");
+ mes("I don't think it's a big deal.");
+ mes("...hopefully.");
+ mes("Let's go. I'll guide you.");
+ close2();
+ cutin("", 255);
+ warp("1@ecl", 146, 29);
end;
}
1@ecl,148,29,3 script Loki#ecl01 4_M_ROKI2,{
- mes "[Loki]";
- mes "It seems like this guy next to me has a lot more to say than I do.";
- mes "Why don't you explain to him first?";
- close;
+ mes("[Loki]");
+ mes("It seems like this guy next to me has a lot more to say than I do.");
+ mes("Why don't you explain to him first?");
+ close();
}
1@ecl,147,30,3 script Nydhog#ecl01 4_F_NYDHOG,{
- mes "[Guardian Nydhog]";
- mes "I think you should talk to Hisie first.";
- close;
+ mes("[Guardian Nydhog]");
+ mes("I think you should talk to Hisie first.");
+ close();
}
1@ecl,144,27,5 script Hisie#ecl01 4_M_FARIY_HISIE,{
- cutin "hisie01",0;
- mes "[Hisie]";
- mes "Can you tell me exactly what happened?";
- next;
+ cutin("hisie01", 0);
+ mes("[Hisie]");
+ mes("Can you tell me exactly what happened?");
+ next();
select("I fought with monsters.");
- cutin "hisie03",0;
- mes "[Hisie]";
- mes "Monsters? Subordinates of Morroc?";
- mes "What you were trying to kill were our soldiers, the Laphines!!";
- mes "What on earth happened there?";
- npcskill AL_HEAL,9,99,80;
- next;
- cutin "",255;
- mes "[Loki]";
- mes "It's because of this.";
- mes "" + strcharinfo(PC_NAME) + "It was inside the body of -";
- mes "This is how powerful Shenime is.";
- next;
- mes "On Loki's palm, there rested a small, thin, and dried piece of thorn.";
- next;
- cutin "hisie03",0;
- mes "[Hisie]";
- mes "Shenime, the Chief of Staff?";
- mes "Why is he related to this?";
- npcskill AL_HEAL,9,99,80;
- next;
- cutin "",255;
- mes "[Loki]";
- mes "Shenime is one of the subordinates of Morroc.";
- mes "His power enbales him to control another person directly or mentally influence that person indirectly through a part of his body.";
- next;
+ cutin("hisie03", 0);
+ mes("[Hisie]");
+ mes("Monsters? Subordinates of Morroc?");
+ mes("What you were trying to kill were our soldiers, the Laphines!!");
+ mes("What on earth happened there?");
+ npcskill(AL_HEAL, 9, 99, 80);
+ next();
+ cutin("", 255);
+ mes("[Loki]");
+ mes("It's because of this.");
+ mesf("%s It was inside the body of -", strcharinfo(PC_NAME));
+ mes("This is how powerful Shenime is.");
+ next();
+ mes("On Loki's palm, there rested a small, thin, and dried piece of thorn.");
+ next();
+ cutin("hisie03", 0);
+ mes("[Hisie]");
+ mes("Shenime, the Chief of Staff?");
+ mes("Why is he related to this?");
+ npcskill(AL_HEAL, 9, 99, 80);
+ next();
+ cutin("", 255);
+ mes("[Loki]");
+ mes("Shenime is one of the subordinates of Morroc.");
+ mes("His power enbales him to control another person directly or mentally influence that person indirectly through a part of his body.");
+ next();
select("Now that I think about it...");
- mes "[" + strcharinfo(PC_NAME) + "]";
- mes "Right before coming here, Shenime reached his hand out to me and I felt a spark when I held his hand.";
- mes "I thought it was just my imagination and ignored it...maybe that's when he...";
- next;
- mes "[Nydhog]";
- mes "You're probably right.";
- mes "They use wicked tricks.";
- mes "This thorn here probably has clouded your judgement.";
- next;
- cutin "hisie03",0;
- mes "[Hisie]";
- mes "So you're saying that he deceived us all?";
- mes "The Chief of Staff is a Laphine who stayed with us for a long time! He can't be...";
- npcskill AL_HEAL,9,99,80;
- next;
- cutin "",255;
- mes "[Loki]";
- mes "He might have been under the influence for a good while.";
- mes "Anyway, this guy is not guilty.";
- mes "I can prove it.";
- next;
- mes "[Nydhog]";
- mes "I swear by the name of the guardian of Yggdrasil, too.";
- mes "" + strcharinfo(PC_NAME) + "- will by no means do such a thing.";
- next;
- cutin "hisie02",0;
- mes "[Hisie]";
- mes "Hah...";
- mes "But things got out of control.";
- mes "I didn't expect this.";
- next;
+ mesf("[%s]", strcharinfo(PC_NAME));
+ mes("Right before coming here, Shenime reached his hand out to me and I felt a spark when I held his hand.");
+ mes("I thought it was just my imagination and ignored it...maybe that's when he...");
+ next();
+ mes("[Nydhog]");
+ mes("You're probably right.");
+ mes("They use wicked tricks.");
+ mes("This thorn here probably has clouded your judgement.");
+ next();
+ cutin("hisie03", 0);
+ mes("[Hisie]");
+ mes("So you're saying that he deceived us all?");
+ mes("The Chief of Staff is a Laphine who stayed with us for a long time! He can't be...");
+ npcskill(AL_HEAL, 9, 99, 80);
+ next();
+ cutin("", 255);
+ mes("[Loki]");
+ mes("He might have been under the influence for a good while.");
+ mes("Anyway, this guy is not guilty.");
+ mes("I can prove it.");
+ next();
+ mes("[Nydhog]");
+ mes("I swear by the name of the guardian of Yggdrasil, too.");
+ mesf("%s - will by no means do such a thing.", strcharinfo(PC_NAME));
+ next();
+ cutin("hisie02", 0);
+ mes("[Hisie]");
+ mes("Hah...");
+ mes("But things got out of control.");
+ mes("I didn't expect this.");
+ next();
select("What happened to the Orb?");
- mes "[Hisie]";
- mes "The inner core is stolen.";
- mes "Nobody knows that the Orb's inner core is gone,";
- mes "and that's why Karr didn't make it here.";
- npcskill AL_HEAL,9,99,80;
- next;
- mes "[Hisie]";
- mes "And what's more, several soldiers are injured because of you.";
- mes "None of them died fortunately, but most of them are wounded severely.";
- mes "The situation is not very good right now.";
- next;
- cutin "",255;
- mes "[Loki]";
- mes "Someone has to take the responsibility here then.";
- mes "In all probablility," + strcharinfo(PC_NAME) + "it will be you.";
- next;
- cutin "hisie02",0;
- mes "[Hisie]";
- mes "......these two gentlemen here cleared up all charges related to the Orb,";
- mes "but both you and Karr won't be able to avoid your responsibility.";
- mes "you'll have to catch Shenime.";
- npcskill AL_HEAL,9,99,80;
- next;
- cutin "hisie01",0;
- mes "[Hisie]";
- mes "It seems like you've rested enough. Let's get going.";
- mes "Karr is waiting for you.";
- mes "What will you two do?";
- next;
- cutin "",255;
- mes "[Loki]";
- mes "Don't worry about us.";
- mes "Our target is Morroc, the King of Demons.";
- mes "It's good enough that we found an evidence here.";
- next;
- cutin "hisie01",0;
- mes "[Hisie]";
- mes "Thank you for your help.";
- mes "We will take off now.";
- mes "Let's go." + strcharinfo(PC_NAME) + ".";
+ mes("[Hisie]");
+ mes("The inner core is stolen.");
+ mes("Nobody knows that the Orb's inner core is gone,");
+ mes("and that's why Karr didn't make it here.");
+ npcskill(AL_HEAL, 9, 99, 80);
+ next();
+ mes("[Hisie]");
+ mes("And what's more, several soldiers are injured because of you.");
+ mes("None of them died fortunately, but most of them are wounded severely.");
+ mes("The situation is not very good right now.");
+ next();
+ cutin("", 255);
+ mes("[Loki]");
+ mes("Someone has to take the responsibility here then.");
+ mesf("In all probablility, %s it will be you.", strcharinfo(PC_NAME));
+ next();
+ cutin("hisie02", 0);
+ mes("[Hisie]");
+ mes("......these two gentlemen here cleared up all charges related to the Orb,");
+ mes("but both you and Karr won't be able to avoid your responsibility.");
+ mes("you'll have to catch Shenime.");
+ npcskill(AL_HEAL, 9, 99, 80);
+ next();
+ cutin("hisie01", 0);
+ mes("[Hisie]");
+ mes("It seems like you've rested enough. Let's get going.");
+ mes("Karr is waiting for you.");
+ mes("What will you two do?");
+ next();
+ cutin("", 255);
+ mes("[Loki]");
+ mes("Don't worry about us.");
+ mes("Our target is Morroc, the King of Demons.");
+ mes("It's good enough that we found an evidence here.");
+ next();
+ cutin("hisie01", 0);
+ mes("[Hisie]");
+ mes("Thank you for your help.");
+ mes("We will take off now.");
+ mesf("Let's go. %s.", strcharinfo(PC_NAME));
ep14_2_mylord = 30;
- changequest 7450,7451;
- erasequest 7450;
- setquest 7451;
- close2;
- cutin "",255;
- warp "ecl_in03",57,76;
+ changequest(7450, 7451);
+ erasequest(7450);
+ setquest(7451);
+ close2();
+ cutin("", 255);
+ warp("ecl_in03", 57, 76);
end;
}
diff --git a/npc/re/instances/HazyForest.txt b/npc/re/instances/HazyForest.txt
index c649171f8..24e03b22e 100644
--- a/npc/re/instances/HazyForest.txt
+++ b/npc/re/instances/HazyForest.txt
@@ -37,147 +37,148 @@
bif_fild01,158,340,5 script Laphine Soldier#mist 4_M_FAIRYSOLDIER,{
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Mistwood Maze";
+ .@md_name$ = _("Mistwood Maze");
- mes "[Laphine Soldier]";
- mes "Are you going into the forest?";
- next;
+ mes("[Laphine Soldier]");
+ mes("Are you going into the forest?");
+ next();
if (!.@party_id) {
- mes "[Laphine Soldier]";
- mes "Well, well, well, aren't you being too rash?";
- mes "Why don't you at least organize a party?";
- close;
+ mes("[Laphine Soldier]");
+ mes("Well, well, well, aren't you being too rash?");
+ mes("Why don't you at least organize a party?");
+ close();
}
- .@playtime = questprogress(7211,PLAYTIME);
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) {
+ .@playtime = questprogress(7211, PLAYTIME);
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2)) {
if (.@playtime == 1) {
- mes "[Laphine Soldier]";
- mes "...Are you sure you're not doing too much?";
- mes "I think you'd better get some rest.";
- mes "You'll only wear yourself out by trying to do too much";
- next;
- mes "[Laphine Soldier]";
- mes "I don't think the authority will give you permission, either.";
- mes "...Even a Sapha would be stopped from entering the forest.";
- next;
+ mes("[Laphine Soldier]");
+ mes("...Are you sure you're not doing too much?");
+ mes("I think you'd better get some rest.");
+ mes("You'll only wear yourself out by trying to do too much");
+ next();
+ mes("[Laphine Soldier]");
+ mes("I don't think the authority will give you permission, either.");
+ mes("...Even a Sapha would be stopped from entering the forest.");
+ next();
select("You speak our language quite well, don't you?");
- mes "[Laphine Soldier]";
- mes "...Do I?";
- mes "Actually I'm not speaking your language.";
- mes "I'm speaking Laphine language.";
- next;
- mes "[Laphine Soldier]";
- mes "But it's one of the mysteries of Bifrost.";
- mes "That we can understand each other even if we speak different languages.";
- next;
- mes "[Laphine Soldier]";
- mes "To be able to talk with everybody...";
- mes "Perhaps that's the power of Bifrost.";
- close;
+ mes("[Laphine Soldier]");
+ mes("...Do I?");
+ mes("Actually I'm not speaking your language.");
+ mes("I'm speaking Laphine language.");
+ next();
+ mes("[Laphine Soldier]");
+ mes("But it's one of the mysteries of Bifrost.");
+ mes("That we can understand each other even if we speak different languages.");
+ next();
+ mes("[Laphine Soldier]");
+ mes("To be able to talk with everybody...");
+ mes("Perhaps that's the power of Bifrost.");
+ close();
} else if (.@playtime == 2) {
- mes "[Laphine Soldier]";
- mes "Great, great.";
- mes "Now the forest won't reject you.";
- mes "What are you going to do now?";
- erasequest 7211;
+ mes("[Laphine Soldier]");
+ mes("Great, great.");
+ mes("Now the forest won't reject you.");
+ mes("What are you going to do now?");
+ erasequest(7211);
} else {
- mes "[Laphine Soldier]";
- mes "You human adventurers are incredible.";
- mes "You're always going into the forest, where no one else dares to go.";
- next;
- mes "[Laphine Soldier]";
- mes "Phew. But I have to report to the authority";
- mes "everyone who goes into the forest, just in case.";
- next;
- mes "[Laphine Soldier]";
- mes "You'll get permission";
- mes "after you register.";
- mes "Are you going to venture into the Hazy Forest?";
+ mes("[Laphine Soldier]");
+ mes("You human adventurers are incredible.");
+ mes("You're always going into the forest, where no one else dares to go.");
+ next();
+ mes("[Laphine Soldier]");
+ mes("Phew. But I have to report to the authority");
+ mes("everyone who goes into the forest, just in case.");
+ next();
+ mes("[Laphine Soldier]");
+ mes("You'll get permission");
+ mes("after you register.");
+ mes("Are you going to venture into the Hazy Forest?");
}
- next;
+ next();
switch(select("Venture into the Hazy Forest.", "Give up.")) {
case 1:
- mes "[Laphine Soldier]";
- mes "Party Name "+getpartyname(.@party_id)+"...";
- mes "Party Leader "+strcharinfo(PC_NAME)+"...";
+ mes("[Laphine Soldier]");
+ mesf("Party Name %s...", getpartyname(.@party_id));
+ mesf("Party Leader %s...", strcharinfo(PC_NAME));
.@instance = instance_create(.@md_name$, .@party_id);
- if (.@instance < 0) {
- mes "Hmm...";
- next;
- mes "[Laphine Soldier]";
- if (!.@playtime)
- mes "It's dangerous in the forest.";
- else
- mes "The atmosphere is somewhat tense in the forest.";
- mes "...Why don't you just go back today?";
- close;
- }
- if (instance_attachmap("1@mist",.@instance) != "") {
- instance_set_timeout 7200,300,.@instance;
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@mist", .@instance) == "") {
+ mes("Hmm...");
+ next();
+ mes("[Laphine Soldier]");
+ if (!.@playtime)
+ mes("It's dangerous in the forest.");
+ else
+ mes("The atmosphere is somewhat tense in the forest.");
+ mes("...Why don't you just go back today?");
+ instance_destroy(.@instance);
+ close();
+ }
+ instance_set_timeout(7200, 300, .@instance);
instance_init(.@instance);
- mes "I've got it. I've written them down on the report here.";
- next;
- mes "[Laphine Soldier]";
- mes "You'll get permission soon.";
- mes "Now go to the log tunnel, the only way to get into the Hazy Forest.";
- mes "You understand?";
- next;
- mes "[Laphine Soldier]";
- mes "We can't go against the forest,";
- mes "but maybe you humans can.";
- mes "Good luck!";
- close;
- } else {
- instance_destroy(.@instance);
}
+ mes("I've got it. I've written them down on the report here.");
+ next();
+ mes("[Laphine Soldier]");
+ mes("You'll get permission soon.");
+ mes("Now go to the log tunnel, the only way to get into the Hazy Forest.");
+ mes("You understand?");
+ next();
+ mes("[Laphine Soldier]");
+ mes("We can't go against the forest,");
+ mes("but maybe you humans can.");
+ mes("Good luck!");
+ close();
case 2:
- mes "[Laphine Soldier]";
- mes "Well, you've made the right decision.";
+ mes("[Laphine Soldier]");
+ mes("Well, you've made the right decision.");
if (!.@playtime)
- mes "That's what's good for you.";
- close;
+ mes("That's what's good for you.");
+ close();
}
} else {
- mes "[Laphine Soldier]";
- mes "Where's your party leader?";
- mes "It's dangerous in there.";
- next;
+ mes("[Laphine Soldier]");
+ mes("Where's your party leader?");
+ mes("It's dangerous in there.");
+ next();
if (.@playtime == 2) {
- mes "[Laphine Soldier]";
- mes "I see you've been into the forest before.";
- mes "Okay, at least the forest won't reject you.";
- mes "However...";
- erasequest 7211;
- next;
+ mes("[Laphine Soldier]");
+ mes("I see you've been into the forest before.");
+ mes("Okay, at least the forest won't reject you.");
+ mes("However...");
+ erasequest(7211);
+ next();
}
- mes "[Laphine Soldier]";
- mes "Put yourself in my shoes, the entrance guard, and let me meet the representative of your party.";
- mes "I have to discuss some things with him/her.";
- close;
+ mes("[Laphine Soldier]");
+ mes("Put yourself in my shoes, the entrance guard, and let me meet the representative of your party.");
+ mes("I have to discuss some things with him/her.");
+ close();
}
}
bif_fild01,161,355,0 script Log Tunnel CLEAR_NPC,{
- mes "I see the forest through the log tunnel.";
- mes "It looks like I can enter the forest through the log tunnel.";
- next;
- if(select("Enter the tunnel.", "Give up.") == 2)
- close;
+ mes("I see the forest through the log tunnel.");
+ mes("It looks like I can enter the forest through the log tunnel.");
+ next();
+ if (select("Enter the tunnel.", "Give up.") == 2)
+ close();
if (has_instance("1@mist") == "") {
- if (questprogress(7211,PLAYTIME) == 1) {
- mes "You try to crawl into the log, but some mysterious power pushes you back with a gush of wind.";
- mes "It seems like you can't force your way into the forest.";
- close;
+ if (questprogress(7211, PLAYTIME) == 1) {
+ mes("You try to crawl into the log, but some mysterious power pushes you back with a gush of wind.");
+ mes("It seems like you can't force your way into the forest.");
+ close();
}
- mes "The world beyond the log tunnel looks dark and suffocating.";
- mes "Your instinct is screaming that this forest is dangerous.";
- close;
+ mes("The world beyond the log tunnel looks dark and suffocating.");
+ mes("Your instinct is screaming that this forest is dangerous.");
+ close();
} else {
- if (questprogress(7211,PLAYTIME) == 2) erasequest 7211;
- if (!questprogress(7211,PLAYTIME)) setquest 7211;
- mapannounce "bif_fild01",getpartyname(getcharid(CHAR_ID_PARTY))+" party's "+strcharinfo(PC_NAME)+" member is entering the Mistwood Maze.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
- warp "1@mist",89,29;
- close;
+ if (questprogress(7211, PLAYTIME) == 2)
+ erasequest(7211);
+ if (!questprogress(7211, PLAYTIME))
+ setquest(7211);
+ mapannounce("bif_fild01", sprintf(_$("%s party's %s member is entering the Mistwood Maze."), getpartyname(getcharid(CHAR_ID_PARTY)), strcharinfo(PC_NAME)), bc_map, C_SPRINGGREEN); //FW_NORMAL 12 0 0
+ warp("1@mist", 89, 29);
+ close();
}
}
@@ -185,284 +186,325 @@ bif_fild01,161,355,0 script Log Tunnel CLEAR_NPC,{
1@mist,89,29,0 script #Whisper_mist CLEAR_NPC,1,1,{
end;
OnInstanceInit:
- enablenpc instance_npcname("#Whisper_mist");
+ enablenpc(instance_npcname("#Whisper_mist"));
end;
OnTouch:
- disablenpc instance_npcname("#Whisper_mist");
- initnpctimer;
+ disablenpc(instance_npcname("#Whisper_mist"));
+ initnpctimer();
end;
OnTimer10000:
OnTimer20000:
- mapannounce instance_mapname("1@mist"),"Whisper: Who's this? Who's this!? The forest is open! Tom, Tomba, Tired Rem, Remi! Wake up!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Whisper: Who's this? Who's this!? The forest is open! Tom, Tomba, Tired Rem, Remi! Wake up!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer60000:
- mapannounce instance_mapname("1@mist"),"Loud Whisper: What are the forest keepers doing? What are the gardeners doing??",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Loud Whisper: What are the forest keepers doing? What are the gardeners doing??"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer120000:
- mapannounce instance_mapname("1@mist"),"Loud Whisper: Don't go out, wander around forever, and play with us!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Loud Whisper: Don't go out, wander around forever, and play with us!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer180000:
- mapannounce instance_mapname("1@mist"),"Loud Whisper: Useless, useless. Wandering around and around, you'll meet your end!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
- stopnpctimer;
+ mapannounce(instance_mapname("1@mist"), _("Loud Whisper: Useless, useless. Wandering around and around, you'll meet your end!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
+ stopnpctimer();
end;
}
-// callfunc "F_Mora_Mist",<warp to enable>,<success message>,<fail message>{,<end flag>}
+// callfunc("F_Mora_Mist", <warp to enable>, <success message>, <fail message>{, <end flag>})
function script F_Mora_Mist {
.@map$ = instance_mapname("1@mist");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") == 0) {
- mes "Obviously no one is taking care of it.";
- mes "It seems like you can chop down the garden tree.";
- next;
- if(select("Chop down the garden tree.", "Give up.") == 2)
- close;
- mes "You chop down the tree, which was blocking the path of the maze, "+((getarg(3,0))?"clearing the way out of the forest.":"so now you can continue.");
- mapannounce .@map$,getarg(1),bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
- enablenpc instance_npcname(getarg(0));
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
- close;
- } else
- mapannounce .@map$,((getarg(3,0))?getarg(2):getarg(2)+"'s Cry: Huh? Who's doing bad things to my tree?!"),bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ if (mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") == 0) {
+ mes("Obviously no one is taking care of it.");
+ mes("It seems like you can chop down the garden tree.");
+ next();
+ if (select("Chop down the garden tree.", "Give up.") == 2)
+ close();
+ mesf("You chop down the tree, which was blocking the path of the maze, %s", ((getarg(3, 0))?"clearing the way out of the forest.":"so now you can continue."));
+ mapannounce(.@map$, getarg(1), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
+ enablenpc(instance_npcname(getarg(0)));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
+ close();
+ } else {
+ mapannounce(.@map$, (getarg(3, 0) ? getarg(2) : sprintf(_$("%s's Cry: Huh? Who's doing bad things to my tree?!"), getarg(2))), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
+ }
+ end;
+}
+
+1@mist,251,121,3 script Tom's Garden 4_BULLETIN_BOARD2,{
end;
}
-1@mist,251,121,3 script Tom's Garden 4_BULLETIN_BOARD2,{ end; }
1@mist,247,123,0 script Tom's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"a25_a18-1",
"Roaring Cry: Tom's bolt is broken! Watch out, Tomba! Watch out, Tomba!",
- "Tom";
+ "Tom");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),249,120,"Tom",2136,1,instance_npcname("Tom's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 249, 120, _("Tom"), LITTLE_FATUM, 1, instance_npcname("Tom's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,226,95,3 script Tomba's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,226,95,3 script Tomba's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,225,98,0 script Tomba's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"a27-2_af1-2",
"Roaring Cry: Tomba's Garden Tree is gone with Tomba. Remi, what are you going to do now?",
- "Tomba";
+ "Tomba");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),200,64,"Tomba",2136,1,instance_npcname("Tomba's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 200, 64, _("Tomba"), LITTLE_FATUM, 1, instance_npcname("Tomba's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,157,183,3 script Remi's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,157,183,3 script Remi's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,159,184,0 script Remi's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"a15-2_a4-1",
"Roaring Cry: Remi, Remi's Garden Tree was chopped down- Rem, it's your turn next. Poor Rem!",
- "Remi";
+ "Remi");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),154,184,"Remi the Tired",2137,1,instance_npcname("Remi's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 154, 184, _("Remi the Tired"), MIMING, 1, instance_npcname("Remi's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,58,39,3 script Tired Rem's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,58,39,3 script Tired Rem's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,61,39,0 script Tired Rem's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"a4-2_a11",
"Rem's Desperate Cry: Argh... Rem will sleep. Rem will sleep now, and won't wake up forever!",
- "Rem";
+ "Rem");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),101,107,"Rem the Gardener",2136,1,instance_npcname("Tired Rem's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 101, 107, _("Rem the Gardener"), LITTLE_FATUM, 1, instance_npcname("Tired Rem's Garden Tree")+"::OnMyMobDead");
end;
OnTimer10000:
- mapannounce instance_mapname("1@mist"),"Whisper of the Forest: So Tom's, Tomba's, Remi's, and Rem's garden trees were all chopped down?",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Whisper of the Forest: So Tom's, Tomba's, Remi's, and Rem's garden trees were all chopped down?"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer15000:
- mapannounce instance_mapname("1@mist"),"Whisper of the Forest: Trouble, trouble, we're in big trouble.",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Whisper of the Forest: Trouble, trouble, we're in big trouble."), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer20000:
- mapannounce instance_mapname("1@mist"),"Loud Whisper: They've come to the second deepest forest. Gardeners of the deep forest, watch out!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
- stopnpctimer;
+ mapannounce(instance_mapname("1@mist"), _("Loud Whisper: They've come to the second deepest forest. Gardeners of the deep forest, watch out!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
+ stopnpctimer();
end;
OnMyMobDead:
end;
}
-1@mist,227,179,3 script Ron's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,227,179,3 script Ron's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,230,179,0 script Ron's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b4-2_b2",
"Ron the Gardener's Cry: I'm getting off work! Don't look for Ron, the second gardener, any more!!",
- "Ron";
+ "Ron");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),227,178,"Ron the Gardener",2134,1,instance_npcname("Ron's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 227, 178, _("Ron the Gardener"), PARUS, 1, instance_npcname("Ron's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,288,226,3 script Rover's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,288,226,3 script Rover's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,285,225,0 script Rover's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b7_bf1-2",
"Roaring Whisper: Ron's, and Rover's trees were chopped down as well. Who is forcing his way into the forest? Who is it?",
- "Rover";
+ "Rover");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),304,237,"Rover the Strutter",2134,1,instance_npcname("Rover's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 304, 237, _("Rover the Strutter"), PARUS, 1, instance_npcname("Rover's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,159,318,3 script Mona's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,159,318,3 script Mona's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,161,316,0 script Mona's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b31_b16",
"Clamoring Whisper: Mona the Seedseeker's garden tree is gone! Mona is gone too! Namon will be okay, because he is brave, right? Namon, are you okay?",
- "Mona";
+ "Mona");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),239,253,"Mona the Seedseeker",2133,1,instance_npcname("Mona's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 239, 253, _("Mona the Seedseeker"), ANGRA_MANTIS, 1, instance_npcname("Mona's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,205,300,3 script Namon's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,205,300,3 script Namon's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,204,299,0 script Namon's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b27-3_bN-1",
"Clamoring Whisper: Brave Namon met his fate not so bravely... *giggle*",
- "Namon";
+ "Namon");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),89,173,"Brave Namon",2134,1,instance_npcname("Namon's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 89, 173, _("Brave Namon"), PARUS, 1, instance_npcname("Namon's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,219,232,3 script Sad Neoron's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,219,232,3 script Sad Neoron's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,221,236,0 script Sad Neoron's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b6-1_b33",
"Lamenting Whisper: Sad Neoron has become cheerful! Spyder the Superior Spider, what are you going to do? What are you going to do now?",
- "Neoron";
+ "Neoron");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),143,265,"Sad Neoron",2137,1,instance_npcname("Sad Neoron's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 143, 265, _("Sad Neoron"), MIMING, 1, instance_npcname("Sad Neoron's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,206,202,3 script Spyder's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,206,202,3 script Spyder's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,206,200,0 script Spyder's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"b5_b14",
"Depressed Whisper: Now it's all over with the second deepest forest. Gardeners are dying out-",
- "Spyder";
+ "Spyder");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),209,200,"Spyder the Eight-Legged",2132,1,instance_npcname("Spyder's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 209, 200, _("Spyder the Eight-Legged"), POM_SPIDER, 1, instance_npcname("Spyder's Garden Tree")+"::OnMyMobDead");
end;
OnTimer5000:
- mapannounce instance_mapname("1@mist"),"Roaring Whisper: The path is about to open. The tight bolts have been removed!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Roaring Whisper: The path is about to open. The tight bolts have been removed!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer9000:
- mapannounce instance_mapname("1@mist"),"Roaring Whisper: A forest opened, another opened, and the other is going to open as well. Tito and Pumba, they are heading your way!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Roaring Whisper: A forest opened, another opened, and the other is going to open as well. Tito and Pumba, they are heading your way!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer13000:
- mapannounce instance_mapname("1@mist"),"Roaring Whisper: Where you get after wandering around, around and around, everybody you've met while wandering around, around and around,",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
+ mapannounce(instance_mapname("1@mist"), _("Roaring Whisper: Where you get after wandering around, around and around, everybody you've met while wandering around, around and around,"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
end;
OnTimer17000:
- mapannounce instance_mapname("1@mist"),"Roaring Whisper: all the gardeners will be waiting for you, with their clippers in their hands-!",bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
- stopnpctimer;
+ mapannounce(instance_mapname("1@mist"), _("Roaring Whisper: all the gardeners will be waiting for you, with their clippers in their hands-!"), bc_map, "0xccffcc"); //FW_NORMAL 12 0 0
+ stopnpctimer();
end;
OnMyMobDead:
end;
}
-1@mist,96,288,3 script Tito's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,96,288,3 script Tito's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,95,287,0 script Tito's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"c1_c13-1",
"Tito's Cry: *sob* *sob* Tito's gone now! Tito's done for! Boo hoo!!",
- "Tito";
+ "Tito");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),264,291,"Tito the Flipper",2133,1,instance_npcname("Tito's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 264, 291, _("Tito the Flipper"), ANGRA_MANTIS, 1, instance_npcname("Tito's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,326,325,3 script Pumba's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,326,325,3 script Pumba's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,324,325,0 script Pumba's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"c13-3_c4",
"Roaring Whisper: Tito the Hard Worker was defeated! Stop playing and go to work, Tete! Start working!",
- "Pumba";
+ "Pumba");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),309,165,"Diligent Pumba",2134,1,instance_npcname("Pumba's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 309, 165, _("Diligent Pumba"), PARUS, 1, instance_npcname("Pumba's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
-1@mist,278,345,3 script Tete's Garden 4_BULLETIN_BOARD2,{ end; }
+1@mist,278,345,3 script Tete's Garden 4_BULLETIN_BOARD2,{
+ end;
+}
+
1@mist,280,344,0 script Tete's Garden Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"c19_c4",
"Whisper: They are strong, strong indeed. What are we going to do now? Are there any gardeners left? Are there any?",
- "Tete";
+ "Tete");
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),277,343,"Carefree Tete",2136,1,instance_npcname("Tete's Garden Tree")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 277, 343, _("Carefree Tete"), LITTLE_FATUM, 1, instance_npcname("Tete's Garden Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
1@mist,345,186,0 script The Gardeners' Tree 4_CREEPER,{
- callfunc "F_Mora_Mist",
+ callfunc("F_Mora_Mist",
"#to_bif02",
"Roaring Whisper: The forest will remember you! It will remember you, the one who broke the clippers of all the gardeners!",
- "Gardeners: We're not dead, yet!!!!",1;
+ "Gardeners: We're not dead, yet!!!!", 1);
end;
OnInstanceInit:
.@map$ = instance_mapname("1@mist");
- monster .@map$,318,137,"Baby Tom",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,321,137,"Tomba the Baby",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,324,137,"Exhausted Remi",2137,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,319,135,"Rem the Exhausted",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,323,135,"Ron the Ex-Gardener",2134,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,320,133,"Rover the Strutter",2134,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,323,133,"Mona the Seedpicker",2133,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,317,132,"Timid Namon",2134,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,326,132,"Indifferent Neoron",2137,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,317,129,"Spyder the Seven-Legged",2132,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,320,129,"Tito the Flapper",2133,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,324,129,"Lazy Pumba",2134,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
- monster .@map$,327,129,"Careless Tete",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
+ monster(.@map$, 318, 137, _("Baby Tom"), LITTLE_FATUM, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 321, 137, _("Tomba the Baby"), LITTLE_FATUM, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 324, 137, _("Exhausted Remi"), MIMING, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 319, 135, _("Rem the Exhausted"), LITTLE_FATUM, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 323, 135, _("Ron the Ex-Gardener"), PARUS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 320, 133, _("Rover the Strutter"), PARUS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 323, 133, _("Mona the Seedpicker"), ANGRA_MANTIS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 317, 132, _("Timid Namon"), PARUS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 326, 132, _("Indifferent Neoron"), MIMING, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 317, 129, _("Spyder the Seven-Legged"), POM_SPIDER, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 320, 129, _("Tito the Flapper"), ANGRA_MANTIS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 324, 129, _("Lazy Pumba"), PARUS, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
+ monster(.@map$, 327, 129, _("Careless Tete"), LITTLE_FATUM, 1, instance_npcname("The Gardeners' Tree")+"::OnMyMobDead");
end;
OnMyMobDead:
end;
}
1@mist,73,290,0 script Mysterious Flower#1 CLEAR_NPC,{
- specialeffect EF_LEVEL99_4;
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
- getitem Mysterious_Seed,1;
+ specialeffect(EF_LEVEL99_4);
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
+ getitem(Mysterious_Seed, 1);
end;
}
+
1@mist,69,295,0 duplicate(Mysterious Flower#1) Mysterious Flower#2 CLEAR_NPC
1@mist,62,291,0 duplicate(Mysterious Flower#1) Mysterious Flower#3 CLEAR_NPC
1@mist,54,293,0 duplicate(Mysterious Flower#1) Mysterious Flower#4 CLEAR_NPC
@@ -516,420 +558,432 @@ OnMyMobDead:
1@mist,2,2,0 script #Dragon Herder CLEAR_NPC,{
end;
OnInstanceInit:
- switch(rand(1,6)) {
- case 1: setarray .@c[0],77,240; break;
- case 2: setarray .@c[0],147,261; break;
- case 3: setarray .@c[0],182,263; break;
- case 4: setarray .@c[0],194,350; break;
- case 5: setarray .@c[0],268,183; break;
- case 6: setarray .@c[0],65,278; break;
+ switch (rand(1, 6)) {
+ case 1:
+ setarray .@c[0], 77, 240;
+ break;
+ case 2:
+ setarray .@c[0], 147, 261;
+ break;
+ case 3:
+ setarray .@c[0], 182, 263;
+ break;
+ case 4:
+ setarray .@c[0], 194, 350;
+ break;
+ case 5:
+ setarray .@c[0], 268, 183;
+ break;
+ case 6:
+ setarray .@c[0], 65, 278;
+ break;
}
- monster instance_mapname("1@mist"),.@c[0],.@c[1],"Wandering Purple Dragon",2131,1,instance_npcname("#Dragon Herder")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), .@c[0], .@c[1], _("Wandering Purple Dragon"), LOST_DRAGON, 1, instance_npcname("#Dragon Herder")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- if (mobcount(.@map$,instance_npcname("#Dragon Herder")+"::OnMyMobDead") == 0) {
- donpcevent instance_npcname("Collapsed Girl#mist")+"::OnEnable";
- donpcevent instance_npcname("Mysterious Young Man#mis")+"::OnEnable";
- donpcevent instance_npcname("Loki#mist")+"::OnEnable";
- mapannounce .@map$,"The Dragon's Cry: Am I being punished... for abandoning the way... of the guardian...?",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
- disablenpc instance_npcname("#Dragon Herder");
- initnpctimer;
+ if (mobcount(.@map$, instance_npcname("#Dragon Herder")+"::OnMyMobDead") == 0) {
+ donpcevent(instance_npcname("Collapsed Girl#mist")+"::OnEnable");
+ donpcevent(instance_npcname("Mysterious Young Man#mis")+"::OnEnable");
+ donpcevent(instance_npcname("Loki#mist")+"::OnEnable");
+ mapannounce(.@map$, _("The Dragon's Cry: Am I being punished... for abandoning the way... of the guardian...?"), bc_map, C_YELLOW); //FW_NORMAL 12 0 0
+ disablenpc(instance_npcname("#Dragon Herder"));
+ initnpctimer();
}
end;
OnTimer3000:
- stopnpctimer;
- mapannounce instance_mapname("1@mist"),"Voice in your head: ...Will you... save... me... please......?",bc_map,"0xffff00"; //FW_NORMAL 12 0 0
+ stopnpctimer();
+ mapannounce(instance_mapname("1@mist"), _("Voice in your head: ...Will you... save... me... please......?"), bc_map, C_YELLOW); //FW_NORMAL 12 0 0
end;
}
1@mist,97,30,3 script Mysterious Young Man#mis 4_M_ROKI2,{
if (BaseLevel < 98) {
- mes "[Mysterious Young Man]";
- mes "Huh? Do you plan to pass through here?";
- mes ".....I'm afraid it's beyond your ability, but I won't meddle in your affairs.";
- mes "We'll meet again, if you survive.";
- close;
+ mes("[Mysterious Young Man]");
+ mes("Huh? Do you plan to pass through here?");
+ mes(".....I'm afraid it's beyond your ability, but I won't meddle in your affairs.");
+ mes("We'll meet again, if you survive.");
+ close();
}
if (ep14_1_mistwoods == 0) {
if (ep13_3_secret > 23) {
- mes "[Mysterious Young Man]";
- mes "You... I remember seeing you at the camp.";
- mes "The information you gave on Ahat was useful.";
- mes "Thanks!";
- next;
- mes "[Mysterious Young Man]";
- mes "But do you plan to pass through here?";
- mes "What good is it to go across Bifrost?";
- next;
+ mes("[Mysterious Young Man]");
+ mes("You... I remember seeing you at the camp.");
+ mes("The information you gave on Ahat was useful.");
+ mes("Thanks!");
+ next();
+ mes("[Mysterious Young Man]");
+ mes("But do you plan to pass through here?");
+ mes("What good is it to go across Bifrost?");
+ next();
} else {
- mes "[Mysterious Young Man]";
- mes "Do you plan to pass through here?";
- mes "I will advise against it if you're just curious.";
- mes "It will only bring about your untimely death...";
- next;
+ mes("[Mysterious Young Man]");
+ mes("Do you plan to pass through here?");
+ mes("I will advise against it if you're just curious.");
+ mes("It will only bring about your untimely death...");
+ next();
}
- mes "[Mysterious Young Man]";
- mes "If you are determined to pass through here,";
- mes "I will ask for your help with something.";
- next;
+ mes("[Mysterious Young Man]");
+ mes("If you are determined to pass through here,");
+ mes("I will ask for your help with something.");
+ next();
select("Who are you?");
- mes "[Loki]";
- mes "Loki... from the Assassin's Guild.";
- mes "That's my name.";
- mes "And yours?";
- next;
- mes "["+strcharinfo(PC_NAME)+"]";
- mes "....";
- mes "...."+strcharinfo(PC_NAME)+" sir.";
- next;
- mes "[Loki]";
- mes "I see. "+strcharinfo(PC_NAME)+".";
- mes "I'm asking you again.";
- mes "Do you plan to pass through this forest?";
- next;
+ mes("[Loki]");
+ mes("Loki... from the Assassin's Guild.");
+ mes("That's my name.");
+ mes("And yours?");
+ next();
+ mesf("[%s]", strcharinfo(PC_NAME));
+ mes("....");
+ mesf("....%s sir.", strcharinfo(PC_NAME));
+ next();
+ mes("[Loki]");
+ mesf("I see. %s.", strcharinfo(PC_NAME));
+ mes("I'm asking you again.");
+ mes("Do you plan to pass through this forest?");
+ next();
switch(select("Yes, I do.", "No, I don't.")) {
case 1:
- mes "[Loki]";
- mes "Then I'll ask you a question.";
- mes "Have you ever seen a guard... a girl with purple hair?";
- next;
+ mes("[Loki]");
+ mes("Then I'll ask you a question.");
+ mes("Have you ever seen a guard... a girl with purple hair?");
+ next();
switch(select("No, I haven't.", "Yes, I might have...")) {
case 1:
- mes "[Loki]";
- mes "So you haven't.";
- mes "You're telling the truth.";
- next;
+ mes("[Loki]");
+ mes("So you haven't.");
+ mes("You're telling the truth.");
+ next();
break;
case 2:
- mes "[Loki]";
- mes "Wait.";
- mes "(Loki comes closer.)";
- mes "... No.";
- mes "You're telling the truth.";
- next;
+ mes("[Loki]");
+ mes("Wait.");
+ mes("(Loki comes closer.)");
+ mes("... No.");
+ mes("You're telling the truth.");
+ next();
break;
}
- mes "[Loki]";
- mes "Now we have to say goodbye here.";
- mes "If you survive this forest, of course.";
+ mes("[Loki]");
+ mes("Now we have to say goodbye here.");
+ mes("If you survive this forest, of course.");
ep14_1_mistwoods = 2;
- setquest 7212;
- close;
+ setquest(7212);
+ close();
case 2:
- mes "[Loki]";
- mes "I understand.";
- mes "Step back if you aren't ready.";
- mes "This forest doesn't like strangers.";
+ mes("[Loki]");
+ mes("I understand.");
+ mes("Step back if you aren't ready.");
+ mes("This forest doesn't like strangers.");
ep14_1_mistwoods = 1;
- close;
+ close();
}
} else if (ep14_1_mistwoods == 1) {
- mes "[Loki]";
- mes "I told you - step back if you don't want to die.";
- mes "It's not easy going through the forest.";
- mes "It may cost you your life.";
- next;
+ mes("[Loki]");
+ mes("I told you - step back if you don't want to die.");
+ mes("It's not easy going through the forest.");
+ mes("It may cost you your life.");
+ next();
switch(select("Okay.", "What do you want?")) {
case 1:
- mes "- When you step back,";
- mes "Loki nods slightly and then looks away. -";
- close;
+ mes("- When you step back,");
+ mes("Loki nods slightly and then looks away. -");
+ close();
case 2:
- mes "[Loki]";
- mes "I'm looking for somebody.";
- mes "Have you ever seen a guard... a girl with purple hair?";
- next;
+ mes("[Loki]");
+ mes("I'm looking for somebody.");
+ mes("Have you ever seen a guard... a girl with purple hair?");
+ next();
switch(select("No, I haven't.", "Yes, I might have...")) {
case 1:
- mes "[Loki]";
- mes "So you haven't.";
- mes "You're telling the truth.";
- next;
+ mes("[Loki]");
+ mes("So you haven't.");
+ mes("You're telling the truth.");
+ next();
break;
case 2:
- mes "[Loki]";
- mes "Wait.";
- mes "(Loki comes closer.)";
- mes "... No.";
- mes "You're telling the truth.";
- next;
+ mes("[Loki]");
+ mes("Wait.");
+ mes("(Loki comes closer.)");
+ mes("... No.");
+ mes("You're telling the truth.");
+ next();
break;
}
- mes "[Loki]";
- mes "Now we have to say goodbye here.";
- mes "Hopefully, we will see each other again in Mora.";
+ mes("[Loki]");
+ mes("Now we have to say goodbye here.");
+ mes("Hopefully, we will see each other again in Mora.");
ep14_1_mistwoods = 2;
- setquest 7212;
- close;
+ setquest(7212);
+ close();
}
} else if (ep14_1_mistwoods == 2) {
- mes "[Loki]";
- mes "I don't want to go with you.";
- mes "Hopefully, we will see each other again in Mora.";
- close;
+ mes("[Loki]");
+ mes("I don't want to go with you.");
+ mes("Hopefully, we will see each other again in Mora.");
+ close();
} else if (ep14_1_mistwoods == 3) {
- mes "[Loki]";
- mes "So we meet again.";
- mes "Are you used to this place?";
- mes "Come to the inn in Mora.";
- mes "I have something to give to you.";
- close;
+ mes("[Loki]");
+ mes("So we meet again.");
+ mes("Are you used to this place?");
+ mes("Come to the inn in Mora.");
+ mes("I have something to give to you.");
+ close();
} else {
- mes "[Loki]";
- mes "We're seeing a lot of each other these days.";
- mes "It seems you are completely comfortable with the place.";
- mes "You'd better not be too proud of yourself.";
- close;
+ mes("[Loki]");
+ mes("We're seeing a lot of each other these days.");
+ mes("It seems you are completely comfortable with the place.");
+ mes("You'd better not be too proud of yourself.");
+ close();
}
end;
OnEnable:
- enablenpc instance_npcname("Mysterious Young Man#mis");
+ enablenpc(instance_npcname("Mysterious Young Man#mis"));
end;
OnDisable:
- disablenpc instance_npcname("Mysterious Young Man#mis");
+ disablenpc(instance_npcname("Mysterious Young Man#mis"));
end;
}
1@mist,183,304,3 script Loki#mist 4_M_ROKI2,{
if (ep14_1_mistwoods < 2) {
- mes "[Loki]";
- mes "An adventurer in the forest.";
- mes ".....";
- mes "You can go to Mora through this forest.";
- close;
+ mes("[Loki]");
+ mes("An adventurer in the forest.");
+ mes(".....");
+ mes("You can go to Mora through this forest.");
+ close();
} else if (ep14_1_mistwoods == 2) {
- mes "[Loki]";
- mes "Is it you that took care of this unruly girl?";
- mes "I guess I have to thank you.";
- mes "You've calmed her down.";
- next;
+ mes("[Loki]");
+ mes("Is it you that took care of this unruly girl?");
+ mes("I guess I have to thank you.");
+ mes("You've calmed her down.");
+ next();
select("What's happening?", "This girl...?");
- mes "[Loki]";
- mes "You might be able to change your appearance, but you cannot change your unique, innate light.";
- mes "A scent strong enough to burn your nose.";
- next;
- mes "[Loki]";
- mes "This is Nydhogg, the Guardian of Yggdrasil,";
- mes "whom I was looking for.";
- mes "Now she won't wander around crazy any more.";
- next;
+ mes("[Loki]");
+ mes("You might be able to change your appearance, but you cannot change your unique, innate light.");
+ mes("A scent strong enough to burn your nose.");
+ next();
+ mes("[Loki]");
+ mes("This is Nydhogg, the Guardian of Yggdrasil,");
+ mes("whom I was looking for.");
+ mes("Now she won't wander around crazy any more.");
+ next();
select("What are you going to do now?");
- mes "[Loki]";
- mes "I'll wait for her to wake up and get out of this forest.";
- mes "I can manage it on my own.";
- mes "I'll see you in Mora.";
+ mes("[Loki]");
+ mes("I'll wait for her to wake up and get out of this forest.");
+ mes("I can manage it on my own.");
+ mes("I'll see you in Mora.");
ep14_1_mistwoods = 3;
- erasequest 7212;
- setquest 7213;
- close;
+ erasequest(7212);
+ setquest(7213);
+ close();
} else if (ep14_1_mistwoods == 3) {
- mes "[Loki]";
- mes "I don't want to go with you.";
- mes "I can manage her on my own.";
- mes "If you have something to say, say it after we get out of the forest.";
- close;
+ mes("[Loki]");
+ mes("I don't want to go with you.");
+ mes("I can manage her on my own.");
+ mes("If you have something to say, say it after we get out of the forest.");
+ close();
} else {
- mes "[Loki]";
- mes "I don't want to go with you.";
- mes "If you have something to say, say it after we get out of the forest.";
- close;
+ mes("[Loki]");
+ mes("I don't want to go with you.");
+ mes("If you have something to say, say it after we get out of the forest.");
+ close();
}
end;
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Loki#mist");
+ disablenpc(instance_npcname("Loki#mist"));
end;
OnEnable:
- enablenpc instance_npcname("Loki#mist");
+ enablenpc(instance_npcname("Loki#mist"));
end;
}
1@mist,181,303,3 script Collapsed Girl#mist 4_F_NYDHOG2,{
- mes "You see a girl with mysterious hair collapsed on the ground.";
- mes "As you approach her, you smell the scent of flowers so strong that it makes you dizzy.";
- close;
+ mes("You see a girl with mysterious hair collapsed on the ground.");
+ mes("As you approach her, you smell the scent of flowers so strong that it makes you dizzy.");
+ close();
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Collapsed Girl#mist");
+ disablenpc(instance_npcname("Collapsed Girl#mist"));
end;
OnEnable:
- enablenpc instance_npcname("Collapsed Girl#mist");
+ enablenpc(instance_npcname("Collapsed Girl#mist"));
end;
}
mora,46,152,5 script Flower Smelling Lady 4_F_NYDHOG,{
if (ep14_1_mistwoods < 3) {
- mes "[Flower Smell Lady]";
- mes "I need rest.";
- mes "I'm too tired to talk to you.";
- mes "I'm sorry.";
- close;
+ mes("[Flower Smell Lady]");
+ mes("I need rest.");
+ mes("I'm too tired to talk to you.");
+ mes("I'm sorry.");
+ close();
} else if (ep14_1_mistwoods == 3) {
- mes "[Nydhogg the Guardian]";
- mes "I've been waiting for you.";
- mes "I'm still confused, but I know what I did wrong.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "If it weren't for you, I would still be wandering in the abyssal darkness.";
- mes "I thank you, from the bottom of my heart.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "I'm ashamed of myself, falling for the sweet but empty words that came to me in my loneliness.";
- mes "....";
- next;
- mes "[Nydhogg the Guardian]";
- mes "I don't deserve to be a guardian any more.";
- mes "A dragon gone crazy is not a guardian any more.";
- next;
- mes "[Loki]";
- mes "Yggdrasil doesn't think so.";
- mes "Nidi, don't forget your duties.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "Are you...?";
- mes "I see...";
- mes "I thought I was forsaken...";
- next;
- mes "The Guardian slowly looked away as if deep in thought.";
+ mes("[Nydhogg the Guardian]");
+ mes("I've been waiting for you.");
+ mes("I'm still confused, but I know what I did wrong.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("If it weren't for you, I would still be wandering in the abyssal darkness.");
+ mes("I thank you, from the bottom of my heart.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("I'm ashamed of myself, falling for the sweet but empty words that came to me in my loneliness.");
+ mes("....");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("I don't deserve to be a guardian any more.");
+ mes("A dragon gone crazy is not a guardian any more.");
+ next();
+ mes("[Loki]");
+ mes("Yggdrasil doesn't think so.");
+ mes("Nidi, don't forget your duties.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("Are you...?");
+ mes("I see...");
+ mes("I thought I was forsaken...");
+ next();
+ mes("The Guardian slowly looked away as if deep in thought.");
ep14_1_mistwoods = 4;
- close2;
+ close2();
} else if (ep14_1_mistwoods == 4) {
- mes "- He seems to be deep in thought. -";
- close;
+ mes("- He seems to be deep in thought. -");
+ close();
} else {
- mes "[Nydhogg the Guardian]";
- mes "I haven't gotten all of my powers back.";
- mes "I'm sorry I can't protect you.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "Loki said...";
- mes "that I won't cry from loneliness again,";
- mes "that I will always have new friends like you...";
- next;
- mes "[Nydhogg the Guardian]";
- mes "...I've lost everything, but I'm happy now.";
- close;
+ mes("[Nydhogg the Guardian]");
+ mes("I haven't gotten all of my powers back.");
+ mes("I'm sorry I can't protect you.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("Loki said...");
+ mes("that I won't cry from loneliness again,");
+ mes("that I will always have new friends like you...");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("...I've lost everything, but I'm happy now.");
+ close();
}
}
mora,48,152,3 script Sharp Eyed Man 4_M_ROKI2,{
- if (checkweight(Knife,1) == 0 || MaxWeight - Weight < 1000) {
- mes "- You have too many items to do this quest. -";
- close;
+ if (checkweight(Knife, 1) == 0 || MaxWeight - Weight < 1000) {
+ mes("- You have too many items to do this quest. -");
+ close();
}
if (ep14_1_mistwoods < 3) {
- mes "He won't look at you. It's like he's not interested at all.";
- close;
+ mes("He won't look at you. It's like he's not interested at all.");
+ close();
} else if (ep14_1_mistwoods == 3) {
- mes "[Loki]";
- mes "So you've passed through the forest.";
- mes "It seems Niddy has something to say to you.";
- close;
+ mes("[Loki]");
+ mes("So you've passed through the forest.");
+ mes("It seems Niddy has something to say to you.");
+ close();
} else if (ep14_1_mistwoods == 4) {
- mes "[Loki]";
- mes "Nydhogg was one of the guardians of the World Tree.";
- mes "But he abandoned his duties as a guardian when he gave in to Morroc's temptation.";
- next;
- mes "[Loki]";
- mes "Some fools performed a ritual to break the seal that held Morroc.";
- mes "But the ritual didn't work right. The servant of Morroc failed to break the seal.";
- next;
- mes "[Loki]";
- mes "But the seal is so weak that it can break open any time.";
- mes "It's Yggdrasil the World Tree's will that has kept the seal from breaking.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "That's right. The power of the World Tree is linked to the whole world.";
- mes "When the bond between the guardians and Yggdrasil broke, Yggdrasil became unstable.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "That's why all those disasters happened to Yggdrasil.";
- mes "As the World Tree became unstable, the influence it had on the seal grew weak.";
- next;
- mes "[Loki]";
- mes "And Morroc broke himself free from the seal.";
- mes "Although it seems like he used most of his powers just to break the seal...";
- next;
- mes "[Nydhogg the Guardian]";
- mes "It's all my fault.";
- mes "I couldn't break free from Morroc's temptation.";
- mes "For too... too long...";
- next;
- mes "[Nydhogg the Guardian]";
- mes "...I wanted to be relieved of my thousands of years of loneliness.";
- mes "I wasn't in my right mind then.";
- mes "It was none other than I that broke my bond with Yggdrasil.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "I lost control of myself, and did what I shouldn't have done.";
- mes "The other side of me became a shadow and a reckless tyrant.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "Facing the world, I realized...";
- mes "I felt too great a sense of loss... it was much more painful than the loneliness I had endured for thousands of years.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "That's how I was left alone.";
- mes "I felt too great a sense of loss... it was much more painful than the loneliness I had endured for thousands of years.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "So I became a sinner, forgotten to the world.";
- next;
- mes "[Loki]";
- mes "It's not too late.";
- mes "You're still a guardian.";
- mes "You still have things to do.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "...Oh, yes. It's late, but I have to fulfill my duties as a guardian.";
- mes "Now I know. I'll destroy Morroc with my own hands.";
- mes "I will fulfill my duties as a guardian.";
- next;
+ mes("[Loki]");
+ mes("Nydhogg was one of the guardians of the World Tree.");
+ mes("But he abandoned his duties as a guardian when he gave in to Morroc's temptation.");
+ next();
+ mes("[Loki]");
+ mes("Some fools performed a ritual to break the seal that held Morroc.");
+ mes("But the ritual didn't work right. The servant of Morroc failed to break the seal.");
+ next();
+ mes("[Loki]");
+ mes("But the seal is so weak that it can break open any time.");
+ mes("It's Yggdrasil the World Tree's will that has kept the seal from breaking.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("That's right. The power of the World Tree is linked to the whole world.");
+ mes("When the bond between the guardians and Yggdrasil broke, Yggdrasil became unstable.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("That's why all those disasters happened to Yggdrasil.");
+ mes("As the World Tree became unstable, the influence it had on the seal grew weak.");
+ next();
+ mes("[Loki]");
+ mes("And Morroc broke himself free from the seal.");
+ mes("Although it seems like he used most of his powers just to break the seal...");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("It's all my fault.");
+ mes("I couldn't break free from Morroc's temptation.");
+ mes("For too... too long...");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("...I wanted to be relieved of my thousands of years of loneliness.");
+ mes("I wasn't in my right mind then.");
+ mes("It was none other than I that broke my bond with Yggdrasil.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("I lost control of myself, and did what I shouldn't have done.");
+ mes("The other side of me became a shadow and a reckless tyrant.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("Facing the world, I realized...");
+ mes("I felt too great a sense of loss... it was much more painful than the loneliness I had endured for thousands of years.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("That's how I was left alone.");
+ mes("I felt too great a sense of loss... it was much more painful than the loneliness I had endured for thousands of years.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("So I became a sinner, forgotten to the world.");
+ next();
+ mes("[Loki]");
+ mes("It's not too late.");
+ mes("You're still a guardian.");
+ mes("You still have things to do.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("...Oh, yes. It's late, but I have to fulfill my duties as a guardian.");
+ mes("Now I know. I'll destroy Morroc with my own hands.");
+ mes("I will fulfill my duties as a guardian.");
+ next();
switch(select("You're not alone.", "Those are very important duties.")) {
case 1:
- mes "[Nydhogg the Guardian]";
- mes "You're right.";
- mes "It may be why I haven't been forsaken - to realize that I'm not alone.";
- mes "You are a kind soul.";
- next;
+ mes("[Nydhogg the Guardian]");
+ mes("You're right.");
+ mes("It may be why I haven't been forsaken - to realize that I'm not alone.");
+ mes("You are a kind soul.");
+ next();
break;
case 2:
- mes "[Nydhogg the Guardian]";
- mes "But this is my atonement.";
- mes "I'm happy, though.";
- mes "I don't have to fight the loneliness any more.";
- next;
+ mes("[Nydhogg the Guardian]");
+ mes("But this is my atonement.");
+ mes("I'm happy, though.");
+ mes("I don't have to fight the loneliness any more.");
+ next();
break;
}
- mes "[Nydhogg the Guardian]";
- mes strcharinfo(PC_NAME)+"...";
- mes "Thanks for listening to my long story.";
- next;
- mes "[Nydhogg the Guardian]";
- mes "It's what I always have with me.";
- mes "I'm sure it will protect you someday.";
- next;
- mes "[Loki]";
- mes "(Removes his scarf from around his neck and hands it to you.)";
- next;
- mes "[Nydhogg the Guardian]";
- mes "May the blessing of Mother Yggdrasil be with you...";
+ mes("[Nydhogg the Guardian]");
+ mesf("%s...", strcharinfo(PC_NAME));
+ mes("Thanks for listening to my long story.");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("It's what I always have with me.");
+ mes("I'm sure it will protect you someday.");
+ next();
+ mes("[Loki]");
+ mes("(Removes his scarf from around his neck and hands it to you.)");
+ next();
+ mes("[Nydhogg the Guardian]");
+ mes("May the blessing of Mother Yggdrasil be with you...");
ep14_1_mistwoods = 10;
- completequest 7213;
- getitem Muffler_Of_Roki,1;
- getitem Pendant_Of_Guardian,1;
- getexp 400000,400000;
- close;
+ completequest(7213);
+ getitem(Muffler_Of_Roki, 1);
+ getitem(Pendant_Of_Guardian, 1);
+ getexp(400000, 400000);
+ close();
} else {
- mes "[Loki]";
- mes "I'll be staying here for a while.";
- mes "We may meet again.";
- next;
- mes "[Loki]";
- mes "The day when Morroc reveals his despicable nature...";
- mes "I will be waiting for him.";
- close;
+ mes("[Loki]");
+ mes("I'll be staying here for a while.");
+ mes("We may meet again.");
+ next();
+ mes("[Loki]");
+ mes("The day when Morroc reveals his despicable nature...");
+ mes("I will be waiting for him.");
+ close();
}
}
@@ -937,98 +991,98 @@ mora,48,152,3 script Sharp Eyed Man 4_M_ROKI2,{
1@mist,1,1,0 script #Mist Mobs Respawn1 CLEAR_NPC,{
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),0,0,"Miming",2137,15,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 0, 0, _("Miming"), MIMING, 15, instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- .@num_mobs = 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
+ .@num_mobs = 15 - mobcount(.@map$, instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
if (.@num_mobs > 0)
- monster .@map$,0,0,"Miming",2137,.@num_mobs,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead";
+ monster(.@map$, 0, 0, _("Miming"), MIMING, .@num_mobs, instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
end;
}
1@mist,1,2,0 script #Mist Mobs Respawn2 CLEAR_NPC,{
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),0,0,"Pom Spider",2132,35,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 0, 0, _("Pom Spider"), POM_SPIDER, 35, instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
+ .@num_mobs = 35 - mobcount(.@map$, instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
if (.@num_mobs > 0)
- monster .@map$,0,0,"Pom Spider",2132,.@num_mobs,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead";
+ monster(.@map$, 0, 0, _("Pom Spider"), POM_SPIDER, .@num_mobs, instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
end;
}
1@mist,1,3,0 script #Mist Mobs Respawn3 CLEAR_NPC,{
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),0,0,"Angra Mantis",2133,35,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 0, 0, _("Angra Mantis"), ANGRA_MANTIS, 35, instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
+ .@num_mobs = 35 - mobcount(.@map$, instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
if (.@num_mobs > 0)
- monster .@map$,0,0,"Angra Mantis",2133,.@num_mobs,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead";
+ monster(.@map$, 0, 0, _("Angra Mantis"), ANGRA_MANTIS, .@num_mobs, instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
end;
}
1@mist,1,4,0 script #Mist Mobs Respawn4 CLEAR_NPC,{
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),0,0,"Parus",2134,35,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 0, 0, _("Parus"), PARUS, 35, instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
+ .@num_mobs = 35 - mobcount(.@map$, instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
if (.@num_mobs > 0)
- monster .@map$,0,0,"Parus",2134,.@num_mobs,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead";
+ monster(.@map$, 0, 0, _("Parus"), PARUS, .@num_mobs, instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
end;
}
1@mist,1,5,0 script #Mist Mobs Respawn5 CLEAR_NPC,{
end;
OnInstanceInit:
- monster instance_mapname("1@mist"),0,0,"Little Fatum",2136,15,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead";
+ monster(instance_mapname("1@mist"), 0, 0, _("Little Fatum"), LITTLE_FATUM, 15, instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@mist");
- .@num_mobs = 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
+ .@num_mobs = 15 - mobcount(.@map$, instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
if (.@num_mobs > 0)
- monster .@map$,0,0,"Little Fatum",2136,.@num_mobs,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead";
+ monster(.@map$, 0, 0, _("Little Fatum"), LITTLE_FATUM, .@num_mobs, instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
end;
}
1@mist,1,6,0 script #Fragments of Memory CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("#Fragments of Memory");
- monster instance_mapname("1@mist"),0,0,"Guardian's Fragments of Memory",2138,15;
+ disablenpc(instance_npcname("#Fragments of Memory"));
+ monster(instance_mapname("1@mist"), 0, 0, _("Guardian's Fragments of Memory"), NYDHOG_MEMORY1_1, 15);
end;
}
//== Warp Portals ==========================================
bif_fild01,38,374,0 script Mysterious Flower#ep14_1 CLEAR_NPC,{
- mes "It's a giant flower with mysterious energy.";
+ mes("It's a giant flower with mysterious energy.");
if (countitem(Mysterious_Seed)) {
- mes "It's reacting to the Mysterious Flower Seeds you have with you.";
- next;
+ mes("It's reacting to the Mysterious Flower Seeds you have with you.");
+ next();
switch(select("Observe the reaction.", "Stop the reaction.")) {
case 1:
- mes "The flower started to shake violently";
- mes "and swing forward as if trying to send the seeds as far away as possible!!!";
- close2;
- delitem Mysterious_Seed,1;
- warp "bif_fild02",160,230;
+ mes("The flower started to shake violently");
+ mes("and swing forward as if trying to send the seeds as far away as possible!!!");
+ close2();
+ delitem(Mysterious_Seed, 1);
+ warp("bif_fild02", 160, 230);
end;
case 2:
- mes "As you hold onto the Mysterious Flower Seeds tightly,";
- mes "the flower shook violently and then became calm again.";
- close;
+ mes("As you hold onto the Mysterious Flower Seeds tightly,");
+ mes("the flower shook violently and then became calm again.");
+ close();
}
}
- mes "It looks like it has some special use, but you're not sure what.";
- close;
+ mes("It looks like it has some special use, but you're not sure what.");
+ close();
}
1@mist,104,23,0 warp #to_bif01 1,1,bif_fild01,160,352
@@ -1036,9 +1090,9 @@ bif_fild01,38,374,0 script Mysterious Flower#ep14_1 CLEAR_NPC,{
1@mist,109,70,0 script a1_a2 WARPNPC,1,1,{
end;
OnTouch:
- if (!questprogress(7211,PLAYTIME))
- setquest 7211;
- warp instance_mapname("1@mist"),116,40;
+ if (!questprogress(7211, PLAYTIME))
+ setquest(7211);
+ warp(instance_mapname("1@mist"), 116, 40);
end;
}
@@ -1140,21 +1194,21 @@ OnTouch:
1@mist,1,1,0 script #mist_warp_init CLEAR_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname("a25_a18-1");
- disablenpc instance_npcname("a27-2_af1-2");
- disablenpc instance_npcname("a15-2_a4-1");
- disablenpc instance_npcname("a4-2_a11");
- disablenpc instance_npcname("b4-2_b2");
- disablenpc instance_npcname("b7_bf1-2");
- disablenpc instance_npcname("b31_b16");
- disablenpc instance_npcname("b27-3_bN-1");
- disablenpc instance_npcname("b6-1_b33");
- disablenpc instance_npcname("b5_b14");
- disablenpc instance_npcname("c1_c13-1");
- disablenpc instance_npcname("c13-3_c4");
- disablenpc instance_npcname("c19_c4");
- disablenpc instance_npcname("#to_bif02");
- disablenpc instance_npcname("#mist_warp_init");
+ disablenpc(instance_npcname("a25_a18-1"));
+ disablenpc(instance_npcname("a27-2_af1-2"));
+ disablenpc(instance_npcname("a15-2_a4-1"));
+ disablenpc(instance_npcname("a4-2_a11"));
+ disablenpc(instance_npcname("b4-2_b2"));
+ disablenpc(instance_npcname("b7_bf1-2"));
+ disablenpc(instance_npcname("b31_b16"));
+ disablenpc(instance_npcname("b27-3_bN-1"));
+ disablenpc(instance_npcname("b6-1_b33"));
+ disablenpc(instance_npcname("b5_b14"));
+ disablenpc(instance_npcname("c1_c13-1"));
+ disablenpc(instance_npcname("c13-3_c4"));
+ disablenpc(instance_npcname("c19_c4"));
+ disablenpc(instance_npcname("#to_bif02"));
+ disablenpc(instance_npcname("#mist_warp_init"));
end;
}
1@mist,247,123,0 warp a25_a18-1 1,1,1@mist,164,66 //Tom
diff --git a/npc/re/instances/MalangdoCulvert.txt b/npc/re/instances/MalangdoCulvert.txt
index 1bd76aedb..d61509511 100644
--- a/npc/re/instances/MalangdoCulvert.txt
+++ b/npc/re/instances/MalangdoCulvert.txt
@@ -37,245 +37,261 @@
//== Quest NPCs ============================================
mal_in01,172,28,2 script Albo#mal 4_CAT_SAILOR5,{
- if (checkweight(Knife,1) == 0) {
- mes "You have too many kinds of objects. Try to continue after reducing those objects.";
- close;
+ if (checkweight(Knife, 1) == 0) {
+ mes("You have too many kinds of objects. Try to continue after reducing those objects.");
+ close();
}
if (MaxWeight - Weight < 1000) {
- mes "You have too many heavy objects. Try to continue after reducing your weight.";
- close;
+ mes("You have too many heavy objects. Try to continue after reducing your weight.");
+ close();
}
if (BaseLevel < 90) {
- mes "[Albo]";
- mes "Who are you?";
- mes "We don't need a weaking!!";
- close;
+ mes("[Albo]");
+ mes("Who are you?");
+ mes("We don't need a weaking!!");
+ close();
}
- setarray .@quests[0],12271,12272,12273,12274;
- setarray .@names$[0],
- "General Culvert Daily Service","^990000Hard Culvert Daily Service^000000",
- "General Culvert Weekly Service","^990000Hard Culvert Weekly Service^000000";
- .@menu$ = "Why are doing this job?:";
+ setarray(.@quests[0], 12271, 12272, 12273, 12274);
+ setarray(.@names$[0],
+ _("General Culvert Daily Service"), _("^990000Hard Culvert Daily Service^000000"),
+ _("General Culvert Weekly Service"), _("^990000Hard Culvert Weekly Service^000000"));
+ .@menu$ = _("Why are doing this job?:");
for(.@i = 0; .@i<4; ++.@i) {
- if (questprogress(.@quests[.@i],PLAYTIME)) {
+ if (questprogress(.@quests[.@i], PLAYTIME)) {
.@status[.@i] = 2;
- .@menu$ += "^aaaaaa- There is no new task -^000000:";
+ .@menu$ += _("^aaaaaa- There is no new task -^000000:");
} else if (.@i%2 && BaseLevel < 140) {
.@status[.@i] = 0;
- .@menu$ += "^aaaaaaCan't take this job because level is too low^000000:";
+ .@menu$ += _("^aaaaaaCan't take this job because level is too low^000000:");
} else {
.@status[.@i] = 1;
.@menu$ += .@names$[.@i]+":";
}
}
- mes "[Albo]";
- mes "We crossed the sea!";
- mes "We are great heroes of Culvert! We do not forgive the seafood that aims at Culvert!";
- next;
- .@i = select(.@menu$)-1;
+ mes("[Albo]");
+ mes("We crossed the sea!");
+ mes("We are great heroes of Culvert! We do not forgive the seafood that aims at Culvert!");
+ next();
+ .@i = select(.@menu$) - 1;
if (.@i == 0) {
- mes "[Albo]";
- mes "We used to be the henchmen of Mr. Missing! We almost became guards of such a historic site.";
- next;
- mes "[Albo]";
- mes "However, when sea water flooded all precious the resources, my dream... all my dreams melted away...";
- next;
- mes "[Albo]";
- mes "We do not forgive the seafood that invaded our territory. I'll eat them with spicy paste!!!";
- next;
- mes "^0000ffAlbo's voice shakes with anger. He smacked his lips when he mentioned spicy paste.^000000";
- close;
+ mes("[Albo]");
+ mes("We used to be the henchmen of Mr. Missing! We almost became guards of such a historic site.");
+ next();
+ mes("[Albo]");
+ mes("However, when sea water flooded all precious the resources, my dream... all my dreams melted away...");
+ next();
+ mes("[Albo]");
+ mes("We do not forgive the seafood that invaded our territory. I'll eat them with spicy paste!!!");
+ next();
+ mes("^0000ffAlbo's voice shakes with anger. He smacked his lips when he mentioned spicy paste.^000000");
+ close();
}
- switch(.@status[.@i-1]) {
+ switch (.@status[.@i - 1]) {
case 0:
- mes "[Albo]";
- mes "That task is really hard for you, so I can't tell you about it. Why don't you find another one?";
- close;
+ mes("[Albo]");
+ mes("That task is really hard for you, so I can't tell you about it. Why don't you find another one?");
+ close();
case 1:
break;
case 2:
- mes "[Albo]";
- mes "I'm sorry. There is no new task yet! If I find any work, I'll tell you so!";
- close;
+ mes("[Albo]");
+ mes("I'm sorry. There is no new task yet! If I find any work, I'll tell you so!");
+ close();
}
- switch(.@i) {
+ switch (.@i) {
case 1: // General Culvert Daily Service
- switch(rand(1,6)) {
- case 1: callsub L_GiveQuest,.@i,12255,12271,"Deep Sea Crab";
- case 2: callsub L_GiveQuest,.@i,12256,12271,"Deep Sea Marse";
- case 3: callsub L_GiveQuest,.@i,12257,12271,"Deep Sea Vadon";
- case 4: callsub L_GiveQuest,.@i,12258,12271,"Deep Sea Shellfish";
- case 5: callsub L_GiveQuest,.@i,12259,12271,"Deep Sea Kukre";
- case 6: callsub L_GiveQuest,.@i,12260,12271,"Deep Sea Cornutus";
+ switch (rand(1, 6)) {
+ case 1:
+ callsub(L_GiveQuest, .@i, 12255, 12271, _("Deep Sea Crab"));
+ case 2:
+ callsub(L_GiveQuest, .@i, 12256, 12271, _("Deep Sea Marse"));
+ case 3:
+ callsub(L_GiveQuest, .@i, 12257, 12271, _("Deep Sea Vadon"));
+ case 4:
+ callsub(L_GiveQuest, .@i, 12258, 12271, _("Deep Sea Shellfish"));
+ case 5:
+ callsub(L_GiveQuest, .@i, 12259, 12271, _("Deep Sea Kukre"));
+ case 6:
+ callsub(L_GiveQuest, .@i, 12260, 12271, _("Deep Sea Cornutus"));
}
case 2: // Hard Culvert Daily Service
- switch(rand(1,6)) {
- case 1: callsub L_GiveQuest,.@i,12261,12272,"Deep Sea Marc";
- case 2: callsub L_GiveQuest,.@i,12262,12272,"Deep Sea Sword Fish";
- case 3: callsub L_GiveQuest,.@i,12263,12272,"Deep Sea Strouf";
- case 4: callsub L_GiveQuest,.@i,12264,12272,"Deep Sea Anolian";
- case 5: callsub L_GiveQuest,.@i,12265,12272,"Deep Sea Obeanue";
- case 6: callsub L_GiveQuest,.@i,12266,12272,"Deep Sea Kapha";
+ switch (rand(1, 6)) {
+ case 1:
+ callsub(L_GiveQuest, .@i, 12261, 12272, _("Deep Sea Marc"));
+ case 2:
+ callsub(L_GiveQuest, .@i, 12262, 12272, _("Deep Sea Sword Fish"));
+ case 3:
+ callsub(L_GiveQuest, .@i, 12263, 12272, _("Deep Sea Strouf"));
+ case 4:
+ callsub(L_GiveQuest, .@i, 12264, 12272, _("Deep Sea Anolian"));
+ case 5:
+ callsub(L_GiveQuest, .@i, 12265, 12272, _("Deep Sea Obeanue"));
+ case 6:
+ callsub(L_GiveQuest, .@i, 12266, 12272, _("Deep Sea Kapha"));
}
case 3: // General Culvert Weekly Service
- switch(rand(1,2)) {
- case 1: callsub L_GiveQuest,.@i,12267,12273,"Weird Coelacanth";
- case 2: callsub L_GiveQuest,.@i,12268,12273,"Gloomy Coelacanth";
+ switch (rand(1, 2)) {
+ case 1:
+ callsub(L_GiveQuest, .@i, 12267, 12273, _("Weird Coelacanth"));
+ case 2:
+ callsub(L_GiveQuest, .@i, 12268, 12273, _("Gloomy Coelacanth"));
}
case 4: // Hard Culvert Weekly Service
- switch(rand(1,2)) {
- case 1: callsub L_GiveQuest,.@i,12269,12274,"Violent Coelacanth";
- case 2: callsub L_GiveQuest,.@i,12270,12274,"Mutant Coelacanth";
+ switch (rand(1, 2)) {
+ case 1:
+ callsub(L_GiveQuest, .@i, 12269, 12274, _("Violent Coelacanth"));
+ case 2:
+ callsub(L_GiveQuest, .@i, 12270, 12274, _("Mutant Coelacanth"));
}
default:
- mes "[Albo]";
- mes "Uh!? Where is the task? Let me find that quickly. You must speak with Madeca!";
- close;
+ mes("[Albo]");
+ mes("Uh!? Where is the task? Let me find that quickly. You must speak with Madeca!");
+ close();
}
end;
-// callsub L_GiveQuest,.@i,<quest 1>,<quest 2>,<monster>;
+// callsub(L_GiveQuest, .@i, <quest 1>, <quest 2>, <monster>);
L_GiveQuest:
- setquest getarg(1);
- setquest getarg(2);
- mes "[Albo]";
- mes "Today, the heroes of Culvert!";
- mes "We raise our voices and set a date for the extermination of ^0000ff"+getarg(3)+"^000000!";
- next;
- mes "[Albo]";
- switch(getarg(0)) {
+ setquest(getarg(1));
+ setquest(getarg(2));
+ mes("[Albo]");
+ mes("Today, the heroes of Culvert!");
+ mesf("We raise our voices and set a date for the extermination of ^0000ff%s^000000!", getarg(3));
+ next();
+ mes("[Albo]");
+ switch (getarg(0)) {
case 1:
case 2:
- mes "Come on, heroes! Don't be afraid of them! Just go on, since it's a one-day mission!";
+ mes("Come on, heroes! Don't be afraid of them! Just go on, since it's a one-day mission!");
break;
case 3:
- mes "I'll give you one week to finish this job! Terminate all of them in Culvert Dungeon, Normal Mode!";
+ mes("I'll give you one week to finish this job! Terminate all of them in Culvert Dungeon, Normal Mode!");
break;
case 4:
- mes "I'll give you one week to finish this job! Terminate all of them in Culvert Dungeon, Hard Mode!";
+ mes("I'll give you one week to finish this job! Terminate all of them in Culvert Dungeon, Hard Mode!");
break;
}
- next;
- mes "You received a request for the Extermination of ^005500"+getarg(3)+"^000000. If you need more details, please check the quest window.";
- close;
+ next();
+ mesf("You received a request for the Extermination of ^005500%s^000000. If you need more details, please check the quest window.", getarg(3));
+ close();
}
mal_in01,172,26,2 script Madeca#mal 4_CAT_SAILOR1,{
- if (checkweight(Knife,1) == 0) {
- mes "You have too many kinds of objects. Try to continue after reducing those objects.";
- close;
+ if (checkweight(Knife, 1) == 0) {
+ mes("You have too many kinds of objects. Try to continue after reducing those objects.");
+ close();
}
if (MaxWeight - Weight < 1000) {
- mes "You have too many heavy objects. Try to continue after reducing your weight.";
- close;
+ mes("You have too many heavy objects. Try to continue after reducing your weight.");
+ close();
}
if (BaseLevel < 90) {
- mes "[Madeca]";
- mes "Karrrrrrr!!";
- mes "Let's have some bad seafood that can be boiled or grilled!";
- next;
- mes "[Madeca]";
- mes "Who are you? You are such a totterer. Even seaweed could kill you!";
- close;
+ mes("[Madeca]");
+ mes("Karrrrrrr!!");
+ mes("Let's have some bad seafood that can be boiled or grilled!");
+ next();
+ mes("[Madeca]");
+ mes("Who are you? You are such a totterer. Even seaweed could kill you!");
+ close();
}
- mes "[Madeca]";
- mes "Oh?";
- mes "You're the one who took care of my big brother Albo's request. It was a hard job!";
- next;
- .@i = select("What are you doing here?", "General Culvert Daily Service Compensation", "Hard Culvert Daily Service Compensation", "General Culvert Weekly Service Compensation", "Hard Culvert Weekly Service Compensation")-1;
+ mes("[Madeca]");
+ mes("Oh?");
+ mes("You're the one who took care of my big brother Albo's request. It was a hard job!");
+ next();
+ .@i = select("What are you doing here?", "General Culvert Daily Service Compensation", "Hard Culvert Daily Service Compensation", "General Culvert Weekly Service Compensation", "Hard Culvert Weekly Service Compensation") - 1;
if (.@i == 0) {
- mes "[Madeca]";
- mes "I'm here to help my big brother Albo!";
- next;
- mes "[Madeca]";
- mes "We provide precious materials to humans who make sludge out of the bad seafood in the Culverts!";
- next;
- mes "[Madeca]";
- mes "We provide A~B Grade Coins as compensation for daily service, and the precious Sea God's Wrath as compensation for weekly service.";
- next;
- mes "[Madeca]";
- mes "If you take care of big brother Albo's request, I will see you very often. So, let's stay close!";
- close;
+ mes("[Madeca]");
+ mes("I'm here to help my big brother Albo!");
+ next();
+ mes("[Madeca]");
+ mes("We provide precious materials to humans who make sludge out of the bad seafood in the Culverts!");
+ next();
+ mes("[Madeca]");
+ mes("We provide A~B Grade Coins as compensation for daily service, and the precious Sea God's Wrath as compensation for weekly service.");
+ next();
+ mes("[Madeca]");
+ mes("If you take care of big brother Albo's request, I will see you very often. So, let's stay close!");
+ close();
}
- mes "[Madeca]";
- mes "I can't give you compensation for an expired request, so let me check if any of yours have expired.";
- next;
- specialeffect2 EF_SPHERE;
- progressbar "0xFFFF00",3;
- specialeffect2 EF_STEAL;
- switch(.@i) {
+ mes("[Madeca]");
+ mes("I can't give you compensation for an expired request, so let me check if any of yours have expired.");
+ next();
+ specialeffect(EF_SPHERE, AREA, playerattached());
+ progressbar(sprintf("0x%x", C_YELLOW), 3);
+ specialeffect(EF_STEAL, AREA, playerattached());
+ switch (.@i) {
case 1: // General Culvert Daily Service
- if (questprogress(12271,PLAYTIME) == 2)
- callsub L_EraseQuest,12255,12256,12257,12258,12259,12260,12271;
- else {
+ if (questprogress(12271, PLAYTIME) == 2) {
+ callsub(L_EraseQuest, 12255, 12256, 12257, 12258, 12259, 12260, 12271);
+ } else {
// Reward: 2x B Grade Coin
- callsub L_CheckQuest,12255,"Deep Sea Crab",6419,2;
- callsub L_CheckQuest,12256,"Deep Sea Marse",6419,2;
- callsub L_CheckQuest,12257,"Deep Sea Vadon",6419,2;
- callsub L_CheckQuest,12258,"Deep Sea Shellfish",6419,2;
- callsub L_CheckQuest,12259,"Deep Sea Kukre",6419,2;
- callsub L_CheckQuest,12260,"Deep Sea Cornutus",6419,2;
+ callsub(L_CheckQuest, 12255, _("Deep Sea Crab"), Bgrade_Coin, 2);
+ callsub(L_CheckQuest, 12256, _("Deep Sea Marse"), Bgrade_Coin, 2);
+ callsub(L_CheckQuest, 12257, _("Deep Sea Vadon"), Bgrade_Coin, 2);
+ callsub(L_CheckQuest, 12258, _("Deep Sea Shellfish"), Bgrade_Coin, 2);
+ callsub(L_CheckQuest, 12259, _("Deep Sea Kukre"), Bgrade_Coin, 2);
+ callsub(L_CheckQuest, 12260, _("Deep Sea Cornutus"), Bgrade_Coin, 2);
}
break;
case 2: // Hard Culvert Daily Service
- if (questprogress(12272,PLAYTIME) == 2)
- callsub L_EraseQuest,12261,12262,12263,12264,12265,12266,12272;
- else {
+ if (questprogress(12272, PLAYTIME) == 2) {
+ callsub(L_EraseQuest, 12261, 12262, 12263, 12264, 12265, 12266, 12272);
+ } else {
// Reward: 1x A Grade Coin
- callsub L_CheckQuest,12261,"Deep Sea Marc",6418,1;
- callsub L_CheckQuest,12262,"Deep Sea Sword Fish",6418,1;
- callsub L_CheckQuest,12263,"Deep Sea Strouf",6418,1;
- callsub L_CheckQuest,12264,"Deep Sea Anolian",6418,1;
- callsub L_CheckQuest,12265,"Deep Sea Obeaune",6418,1;
- callsub L_CheckQuest,12266,"Deep Sea Kapha",6418,1;
+ callsub(L_CheckQuest, 12261, _("Deep Sea Marc"), Agrade_Coin, 1);
+ callsub(L_CheckQuest, 12262, _("Deep Sea Sword Fish"), Agrade_Coin, 1);
+ callsub(L_CheckQuest, 12263, _("Deep Sea Strouf"), Agrade_Coin, 1);
+ callsub(L_CheckQuest, 12264, _("Deep Sea Anolian"), Agrade_Coin, 1);
+ callsub(L_CheckQuest, 12265, _("Deep Sea Obeaune"), Agrade_Coin, 1);
+ callsub(L_CheckQuest, 12266, _("Deep Sea Kapha"), Agrade_Coin, 1);
}
break;
case 3: // General Culvert Weekly Service
- if (questprogress(12273,PLAYTIME) == 2)
- callsub L_EraseQuest,12267,12268,12273;
- else {
+ if (questprogress(12273, PLAYTIME) == 2) {
+ callsub(L_EraseQuest, 12267, 12268, 12273);
+ } else {
// Reward: 1x Sea God's Wrath
- callsub L_CheckQuest,12267,"Weird Coelacanth",6423,1;
- callsub L_CheckQuest,12268,"Gloomy Coelacanth",6423,1;
+ callsub(L_CheckQuest, 12267, _("Weird Coelacanth"), Anger_Seagod, 1);
+ callsub(L_CheckQuest, 12268, _("Gloomy Coelacanth"), Anger_Seagod, 1);
}
break;
case 4: // Hard Culvert Weekly Service
- if (questprogress(12274,PLAYTIME) == 2)
- callsub L_EraseQuest,12269,12270,12274;
- else {
+ if (questprogress(12274, PLAYTIME) == 2) {
+ callsub(L_EraseQuest, 12269, 12270, 12274);
+ } else {
// Reward: 5x Sea God's Wrath
- callsub L_CheckQuest,12269,"Violent Coelacanth",6423,5;
- callsub L_CheckQuest,12270,"Mutant Coelacanth",6423,5;
+ callsub(L_CheckQuest, 12269, _("Violent Coelacanth"), Anger_Seagod, 5);
+ callsub(L_CheckQuest, 12270, _("Mutant Coelacanth"), Anger_Seagod, 5);
}
break;
default:
- mes "[Madeca]";
- mes "Something is wrong. Please check this again!";
- close;
+ mes("[Madeca]");
+ mes("Something is wrong. Please check this again!");
+ close();
}
- mes "[Madeca]";
- mes "I don't see any completed mission!";
- close;
+ mes("[Madeca]");
+ mes("I don't see any completed mission!");
+ close();
L_EraseQuest:
for(.@j = 0; .@j<getargcount(); ++.@j) {
if (questprogress(getarg(.@j)))
- erasequest getarg(.@j);
+ erasequest(getarg(.@j));
}
- mes "[Madeca]";
- mes "Um, I'm sorry. You exceeded the time limit, so I can't give you any payment.";
- close;
+ mes("[Madeca]");
+ mes("Um, I'm sorry. You exceeded the time limit, so I can't give you any payment.");
+ close();
-// callsub L_CheckQuest,<quest ID>,<monster>,<reward item ID>,<reward item amount>;
+// callsub(L_CheckQuest, <quest ID>, <monster>, <reward item ID>, <reward item amount>);
L_CheckQuest:
- if (questprogress(getarg(0),HUNTING) == 2) {
- mes "[Madeca]";
- mes "You've punished ^0000ff"+getarg(1)+"^000000!";
- mes "Here's your pay!";
- erasequest getarg(0);
- specialeffect2 EF_STEAL;
- getitem getarg(2),getarg(3);
- close;
+ if (questprogress(getarg(0), HUNTING) == 2) {
+ mes("[Madeca]");
+ mesf("You've punished ^0000ff%s^000000!", getarg(1));
+ mes("Here's your pay!");
+ erasequest(getarg(0));
+ specialeffect(EF_STEAL, AREA, playerattached());
+ getitem(getarg(2), getarg(3));
+ close();
}
return;
}
@@ -283,248 +299,248 @@ L_CheckQuest:
//== Instance Creation =====================================
mal_in01,160,34,4 script Missing, the Cleaner 4_CAT_SAILOR2,{
if (BaseLevel < 90) {
- mes "[Missing, the Cleaner]";
- mes "Are you talking to me?!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I'm not sure what made you come here but you can't enter!";
- mes "Tomas' orders...";
- next;
- mes "^770099You must be Base level 90 to enter.^000000";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Are you talking to me?!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I'm not sure what made you come here but you can't enter!");
+ mes("Tomas' orders...");
+ next();
+ mes("^770099You must be Base level 90 to enter.^000000");
+ close();
}
if (in_canal_n == 0) {
- mes "[Missing, the Cleaner]";
- mes "(trembling)";
- next;
- mes "^660066This cat looks like it's in bad shape. It is slightly trembling.^000000";
- next;
- if(select("Pet the cat", "Are you ok?") == 1) {
- mes "[Missing, the Cleaner]";
- mes "Are you talking to me?!";
- next;
- mes "^660066A trembling cat is looking up at you.^000000";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("(trembling)");
+ next();
+ mes("^660066This cat looks like it's in bad shape. It is slightly trembling.^000000");
+ next();
+ if (select("Pet the cat", "Are you ok?") == 1) {
+ mes("[Missing, the Cleaner]");
+ mes("Are you talking to me?!");
+ next();
+ mes("^660066A trembling cat is looking up at you.^000000");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "Achoo!";
- next;
- mes "[Missing, the Cleaner]";
- mes "We have had many issues during the";
- mes "cleaning of the culverts. But a";
- mes "cat's gotta do it...";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("Achoo!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("We have had many issues during the");
+ mes("cleaning of the culverts. But a");
+ mes("cat's gotta do it...");
+ next();
select("What culvert are you cleaning?");
- mes "[Missing, the Cleaner]";
- mes "It might look unfamiliar for an";
- mes "outsider, but actually this place";
- mes "is made to keep souvenirs and";
- mes "luxurious things.";
- next;
- mes "[Missing, the Cleaner]";
- mes "After there was a big trembling on";
- mes "this island, things started leaking";
- mes "around here. So that's why I became";
- mes "a cleaner here, though I used";
- mes "to be a manager.";
- next;
- mes "^660066The cat looks like it's been crying...^000000";
- next;
- mes "[Missing, the Cleaner]";
- mes "There is a culvert along this way";
- mes "to the basement. There are many bad";
- mes "guys who hurt me. I am tired of";
- mes "fighting with them so many times a";
- mes "day!";
- next;
- mes "[Missing, the Cleaner]";
- mes "Ohh! You touched my fur!";
- mes "My fur is falling out... it's all";
- mes "those guys' fault~";
- next;
- mes "^660066You just now notice that the cat's fur is missing in some places.^000000";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("It might look unfamiliar for an");
+ mes("outsider, but actually this place");
+ mes("is made to keep souvenirs and");
+ mes("luxurious things.");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("After there was a big trembling on");
+ mes("this island, things started leaking");
+ mes("around here. So that's why I became");
+ mes("a cleaner here, though I used");
+ mes("to be a manager.");
+ next();
+ mes("^660066The cat looks like it's been crying...^000000");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("There is a culvert along this way");
+ mes("to the basement. There are many bad");
+ mes("guys who hurt me. I am tired of");
+ mes("fighting with them so many times a");
+ mes("day!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("Ohh! You touched my fur!");
+ mes("My fur is falling out... it's all");
+ mes("those guys' fault~");
+ next();
+ mes("^660066You just now notice that the cat's fur is missing in some places.^000000");
+ next();
select("Why don't you just quit!");
- mes "[Missing, the Cleaner]";
- mes "I still have to make a living, don't I?";
- next;
- mes "[Missing, the Cleaner]";
- mes "Sometimes I can get a lucky box,";
- mes "or even better, I can get cans...";
- next;
- if(select("Okay, cheers!", "I will help if possible...") == 1) {
- mes "[Missing, the Cleaner]";
- mes "Thank you. I am going back to pour the water!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("I still have to make a living, don't I?");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("Sometimes I can get a lucky box,");
+ mes("or even better, I can get cans...");
+ next();
+ if (select("Okay, cheers!", "I will help if possible...") == 1) {
+ mes("[Missing, the Cleaner]");
+ mes("Thank you. I am going back to pour the water!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "(turns down his voice)";
- mes "If you really want to help, come closer!";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("(turns down his voice)");
+ mes("If you really want to help, come closer!");
+ next();
select("(get in closer)");
- mes "[Missing, the Cleaner]";
- mes "Not everyone can be an assistant";
- mes "here. But I can't help choosing";
- mes "anyone at the moment...";
- next;
- mes "[Missing, the Cleaner]";
- mes "If you want to go down here, let me get this code.";
- next;
- mes "^660066The cat scribbles a memo for code to you.^000000";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("Not everyone can be an assistant");
+ mes("here. But I can't help choosing");
+ mes("anyone at the moment...");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("If you want to go down here, let me get this code.");
+ next();
+ mes("^660066The cat scribbles a memo for code to you.^000000");
+ next();
select("Open the memo.");
- mes "^660000Aragam insulted me.^000000";
- next;
- mes "[Missing, the Cleaner]";
- mes "You must be here with friends";
- mes "because you can't go in alone! And";
- mes "the password code will be from the";
- mes "party leader!";
- next;
- mes "[Missing, the Cleaner]";
- mes "What is also important is you must";
- mes "have a Seagod Protection with you.";
- next;
- mes "[Missing, the Cleaner]";
- mes "Don't forget! I will not open the";
- mes "door if you do not have Seagod Protection!";
+ mes("^660000Aragam insulted me.^000000");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("You must be here with friends");
+ mes("because you can't go in alone! And");
+ mes("the password code will be from the");
+ mes("party leader!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("What is also important is you must");
+ mes("have a Seagod Protection with you.");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("Don't forget! I will not open the");
+ mes("door if you do not have Seagod Protection!");
in_canal_n = 1;
- close;
+ close();
}
if (countitem(Ptotection_Seagod) == 0) {
- mes "[Missing, the Cleaner]";
- mes "You don't look like you have Seagod Protection. I can't open door at the moment!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("You don't look like you have Seagod Protection. I can't open door at the moment!");
+ close();
}
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Culvert";
+ .@md_name$ = _("Culvert");
if (!.@party_id) {
- mes "^0000ffYou have to organize a party of";
- mes "more than 1 member or be a member";
- mes "of the party and come back.^000000";
- close;
+ mes("^0000ffYou have to organize a party of");
+ mes("more than 1 member or be a member");
+ mes("of the party and come back.^000000");
+ close();
}
- .@playtime = questprogress(12254,PLAYTIME);
+ .@playtime = questprogress(12254, PLAYTIME);
if (!.@playtime) {
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) {
- mes "[Missing, the Cleaner]";
- mes "Ummm? What's up? Tell me the password if you're the leader!";
- next;
- switch(select("No... nothing.", "Aragam insulted me.", "Enter the Culvert.")) {
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2)) {
+ mes("[Missing, the Cleaner]");
+ mes("Ummm? What's up? Tell me the password if you're the leader!");
+ next();
+ switch (select("No... nothing.", "Aragam insulted me.", "Enter the Culvert.")) {
case 1:
- mes "[Missing, the Cleaner]";
- mes "What a rookie.";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("What a rookie.");
+ close();
case 2:
- .@instance = instance_create(.@md_name$,.@party_id);
- if (.@instance < 0) {
- mes "Party name: "+getpartyname(.@party_id);
- mes "Party leader: "+strcharinfo(PC_NAME);
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- close;
- }
- if (instance_attachmap("1@pump",.@instance) == "" || instance_attachmap("2@pump",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- instance_destroy(.@instance);
- close;
+ .@instance = instance_create(.@md_name$, .@party_id);
+ if (.@instance >= 0) {
+ for (.@i = 1; .@i <= 2; .@i++) {
+ if (instance_attachmap(.@i + "@pump", .@instance) == "") {
+ mesf("Party name: %s", getpartyname(.@party_id));
+ mesf("Party leader: %s", strcharinfo(PC_NAME));
+ mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$);
+ instance_destroy(.@instance);
+ close();
+ }
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- instance_set_timeout 3600,300,.@instance;
- instance_init(.@instance);
-
- mes "^3333FF"+.@md_name$+"^000000 - Reserving";
- mes "After making the reservation, you";
- mes "have to select Enter the Culvert.";
- close;
+ mesf("^3333FF%s^000000 - Reserving", .@md_name$);
+ mes("After making the reservation, you");
+ mes("have to select Enter the Culvert.");
+ close();
case 3:
- callsub L_Enter,0;
+ callsub(L_Enter, 0);
}
}
- if(select("Enter Culvert", "Cancel") == 2)
+ if (select("Enter Culvert", "Cancel") == 2)
end;
- callsub L_Enter,1;
+ callsub(L_Enter, 1);
} else if (.@playtime == 1) {
- mes "You can enter the Culvert if the gate is open.";
- next;
- if(select("Enter Culvert", "Cancel") == 2)
- close;
- callsub L_Enter,0;
+ mes("You can enter the Culvert if the gate is open.");
+ next();
+ if (select("Enter Culvert", "Cancel") == 2)
+ close();
+ callsub(L_Enter, 0);
} else if (.@playtime == 2) {
- mes "^0000ffThe gate to the Culvert is open again.^000000";
- erasequest 12254;
- close;
+ mes("^0000ffThe gate to the Culvert is open again.^000000");
+ erasequest(12254);
+ close();
}
end;
L_Enter:
if (has_instance("1@pump") == "") {
- if (questprogress(12254,PLAYTIME) == 1) {
- mes "The gate to the Culvert is still closed.";
- mes "You must wait until you are able to enter or find a party leader who can create the instance.";
- close;
+ if (questprogress(12254, PLAYTIME) == 1) {
+ mes("The gate to the Culvert is still closed.");
+ mes("You must wait until you are able to enter or find a party leader who can create the instance.");
+ close();
}
- mes "The memorial dungeon Culvert does not exist.";
- mes "The party leader has not reserved entrance to the dungeon yet.";
- close;
+ mes("The memorial dungeon Culvert does not exist.");
+ mes("The party leader has not reserved entrance to the dungeon yet.");
+ close();
}
- mapannounce "mal_in01", strcharinfo(PC_NAME)+" of the party "+getpartyname(.@party_id)+" is entering the Culvert.",bc_map,"0x00ff99";
- if (!questprogress(12254)) setquest 12254;
- warp "1@pump",63,98;
+ mapannounce("mal_in01", sprintf(_$("%s of the party %s is entering the Culvert."), strcharinfo(PC_NAME), getpartyname(.@party_id)), bc_map, C_SPRINGGREEN);
+ if (!questprogress(12254))
+ setquest(12254);
+ warp("1@pump", 63, 98);
end;
}
//== Instance: Common Scripts ==============================
1@pump,63,100,4 script Missing, the Cleaner#0 4_CAT_SAILOR2,{
- if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY),2)) {
- mes "[Missing, the Cleaner]";
- mes "I am trying to have a conversation with your leader now. Please don't disturb and wait!";
- close;
+ if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
+ mes("[Missing, the Cleaner]");
+ mes("I am trying to have a conversation with your leader now. Please don't disturb and wait!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "This is the underground culvert where you will clean with your friends!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I'll open the door first. By the way, do you know how to fight?";
- next;
- switch(select("I'm pretty good at delivering bread.", "I know how to fight.", "^ffffffGive me the diamond.^000000")) {
+ mes("[Missing, the Cleaner]");
+ mes("This is the underground culvert where you will clean with your friends!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I'll open the door first. By the way, do you know how to fight?");
+ next();
+ switch (select("I'm pretty good at delivering bread.", "I know how to fight.", "^ffffffGive me the diamond.^000000")) {
case 1:
- mes "[Missing, the Cleaner]";
- mes "Ok then, I'll let you clean the culverts here as usual! I will prepare at the right-hand corner, please follow me!";
- next;
- if(select("Wait! I changed my mind!", "As you wish~") == 1) {
- mes "[Missing, the Cleaner]";
- mes "Huh? Not ready yet? Talk to me again when you're ready.";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Ok then, I'll let you clean the culverts here as usual! I will prepare at the right-hand corner, please follow me!");
+ next();
+ if (select("Wait! I changed my mind!", "As you wish~") == 1) {
+ mes("[Missing, the Cleaner]");
+ mes("Huh? Not ready yet? Talk to me again when you're ready.");
+ close();
}
'party_id = getcharid(CHAR_ID_PARTY);
- mapannounce instance_mapname("1@pump"),"Missing: Move toward the 3 o'clock direction and wait for my next order!",bc_map,"0xff88ff",FW_NORMAL,15;
- disablenpc instance_npcname("Missing, the Cleaner#0");
- enablenpc instance_npcname("Missing, the Cleaner#n");
- close;
+ mapannounce(instance_mapname("1@pump"), _("Missing: Move toward the 3 o'clock direction and wait for my next order!"), bc_map, "0xff88ff", FW_NORMAL, 15);
+ disablenpc(instance_npcname("Missing, the Cleaner#0"));
+ enablenpc(instance_npcname("Missing, the Cleaner#n"));
+ close();
case 2:
if (BaseLevel < 140) {
- mes "[Missing, the Cleaner]";
- mes "Hmmm... Missing thinks you're weak! Tell me the truth!!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Hmmm... Missing thinks you're weak! Tell me the truth!!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "Huh? You have some fighting skills? Well, then, there is one place I wasn't able to clean... why don't you go there?!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I must tell you that it's been such a long~~ time since we've cleaned that place, so anyone under level 140 cannot even enter! Are you sure you still want to go?";
- next;
- if(select("Wait! I changed my mind!", "Sure, I'm prepared already~") == 1) {
- mes "[Missing, the Cleaner]";
- mes "Hmm? Talk to me again when you're ready.";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Huh? You have some fighting skills? Well, then, there is one place I wasn't able to clean... why don't you go there?!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I must tell you that it's been such a long~~ time since we've cleaned that place, so anyone under level 140 cannot even enter! Are you sure you still want to go?");
+ next();
+ if (select("Wait! I changed my mind!", "Sure, I'm prepared already~") == 1) {
+ mes("[Missing, the Cleaner]");
+ mes("Hmm? Talk to me again when you're ready.");
+ close();
}
'party_id = getcharid(CHAR_ID_PARTY);
- mapannounce instance_mapname("1@pump"),"Missing: I'll go in first, so follow me! I'll open up a gate at the 3 o'clock direction!",bc_map,"0xff88ff",FW_NORMAL,15;
- disablenpc instance_npcname("Missing, the Cleaner#0");
- enablenpc instance_npcname("Culvert Entrance#i");
- close;
+ mapannounce(instance_mapname("1@pump"), _("Missing: I'll go in first, so follow me! I'll open up a gate at the 3 o'clock direction!"), bc_map, "0xff88ff", FW_NORMAL, 15);
+ disablenpc(instance_npcname("Missing, the Cleaner#0"));
+ enablenpc(instance_npcname("Culvert Entrance#i"));
+ close();
case 3:
- mes "[Missing, the Cleaner]";
- mes "I told you not to play with me~!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("I told you not to play with me~!");
+ close();
}
end;
}
@@ -532,134 +548,134 @@ L_Enter:
1@pump,84,105,0 script Culvert Entrance#i WARPNPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname("Culvert Entrance#i");
+ disablenpc(instance_npcname("Culvert Entrance#i"));
end;
OnTouch:
if (BaseLevel >= 140)
- warp instance_mapname("2@pump"),38,88;
+ warp(instance_mapname("2@pump"), 38, 88);
else
- warp instance_mapname("1@pump"),74,105;
+ warp(instance_mapname("1@pump"), 74, 105);
end;
}
function script F_mal_missing {
- mes "[Missing, the Cleaner]";
- mes "I will tell you how to clean shortly. Can you see the culverts around you?";
- next;
- if(select("What culverts??", "Yes, I see them.") == 1) {
- mes "[Missing, the Cleaner]";
- mes "Huh? Is this your first time seeing culverts? You'll see many buried machines in the ground. You may look around and come back!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("I will tell you how to clean shortly. Can you see the culverts around you?");
+ next();
+ if (select("What culverts??", "Yes, I see them.") == 1) {
+ mes("[Missing, the Cleaner]");
+ mes("Huh? Is this your first time seeing culverts? You'll see many buried machines in the ground. You may look around and come back!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "That's right! Those culverts are very important! We must clean the culverts to prevent seaweed from blocking them. This is what we, cleaners, do!";
- next;
- mes "[Missing, the Cleaner]";
- mes "Watch out! Some monsters will be after you while you're cleaning the culverts! But do not yield to them!";
- next;
- mes "[Missing, the Cleaner]";
- mes "And... NEVER let 6 seaweeds stack! Up to 5 is acceptable! If there are 6, I'll drag you out of here!!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I don't care if you get help from your friends or not. I want you to clean up all culverts! Don't forget! I will watch you and give you instructions. Just do what I said!!";
- next;
- if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY),2)) {
- mes "[Missing, the Cleaner]";
- mes "Once your leader finishes preparing, it will begin, so get your hearts ready for it!!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("That's right! Those culverts are very important! We must clean the culverts to prevent seaweed from blocking them. This is what we, cleaners, do!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("Watch out! Some monsters will be after you while you're cleaning the culverts! But do not yield to them!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("And... NEVER let 6 seaweeds stack! Up to 5 is acceptable! If there are 6, I'll drag you out of here!!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I don't care if you get help from your friends or not. I want you to clean up all culverts! Don't forget! I will watch you and give you instructions. Just do what I said!!");
+ next();
+ if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
+ mes("[Missing, the Cleaner]");
+ mes("Once your leader finishes preparing, it will begin, so get your hearts ready for it!!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "So, are you ready to clean now?";
- next;
- switch(select("Wait! Not yet!", "Let's start!")) {
+ mes("[Missing, the Cleaner]");
+ mes("So, are you ready to clean now?");
+ next();
+ switch (select("Wait! Not yet!", "Let's start!")) {
case 1:
- mes "[Missing, the Cleaner]";
- mes "Huh? Not ready yet? Then talk to me when you're ready.";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Huh? Not ready yet? Then talk to me when you're ready.");
+ close();
case 2:
- mes "[Missing, the Cleaner]";
- mes "OK! Now it begins!";
+ mes("[Missing, the Cleaner]");
+ mes("OK! Now it begins!");
return;
}
}
//== Instance: Normal Mode =================================
1@pump,84,105,4 script Missing, the Cleaner#nf 4_CAT_SAILOR2,{
- mes "[Missing, the Cleaner]";
- mes "I have the cleaning job for 40 years and I've never seen such a terrible team!!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I see seaweed everywhere because you're wiggling! All the culverts will be blocked with seaweed!";
- next;
- if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY),2)) {
- mes "[Missing, the Cleaner]";
- mes "Once your leader finishes preparing, settlement will be decided so get your hearts ready for it!!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("I have the cleaning job for 40 years and I've never seen such a terrible team!!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I see seaweed everywhere because you're wiggling! All the culverts will be blocked with seaweed!");
+ next();
+ if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
+ mes("[Missing, the Cleaner]");
+ mes("Once your leader finishes preparing, settlement will be decided so get your hearts ready for it!!");
+ close();
}
- mes "[Missing, the Cleaner]";
- mes "If you got some guts to challenge again, I'll give you another chance! What's your choice going to be!?";
- next;
- switch(select("Wait! Not yet!", "Okay, let's start again!")) {
+ mes("[Missing, the Cleaner]");
+ mes("If you got some guts to challenge again, I'll give you another chance! What's your choice going to be!?");
+ next();
+ switch (select("Wait! Not yet!", "Okay, let's start again!")) {
case 1:
- mes "[Missing, the Cleaner]";
- mes "You're still slow! Talk to me again whenever your're ready.";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("You're still slow! Talk to me again whenever your're ready.");
+ close();
case 2:
- mes "[Missing, the Cleaner]";
- mes "Ok! Let's start now!";
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
- enablenpc instance_npcname("Missing, the Cleaner#"+.@i$);
- donpcevent instance_npcname("Missing, the Cleaner#"+.@i$)+"::OnStart";
- disablenpc instance_npcname("Culvert Entrance#"+.@i$);
- disablenpc instance_npcname("Missing, the Cleaner#"+.@i$+"o");
- donpcevent instance_npcname("Monster Hole#"+.@i$)+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
- close;
+ mes("[Missing, the Cleaner]");
+ mes("Ok! Let's start now!");
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
+ enablenpc(instance_npcname("Missing, the Cleaner#"+.@i$));
+ donpcevent(instance_npcname("Missing, the Cleaner#"+.@i$)+"::OnStart");
+ disablenpc(instance_npcname("Culvert Entrance#"+.@i$));
+ disablenpc(instance_npcname("Missing, the Cleaner#"+.@i$+"o"));
+ donpcevent(instance_npcname("Monster Hole#"+.@i$)+"::OnClear");
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
+ close();
}
- close;
+ close();
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
1@pump,84,105,4 script Missing, the Cleaner#n 4_CAT_SAILOR2,{
- callfunc "F_mal_missing";
- donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnStart";
- close;
+ callfunc("F_mal_missing");
+ donpcevent(instance_npcname("Missing, the Cleaner#n")+"::OnStart");
+ close();
OnInstanceInit:
- disablenpc instance_npcname("Missing, the Cleaner#n");
+ disablenpc(instance_npcname("Missing, the Cleaner#n"));
end;
OnStart:
- killmonster instance_mapname("1@pump"),instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead";
- disablenpc instance_npcname("Missing, the Cleaner#n");
- initnpctimer;
+ killmonster(instance_mapname("1@pump"), instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ disablenpc(instance_npcname("Missing, the Cleaner#n"));
+ initnpctimer();
end;
OnAddSeaweed:
.@map$ = instance_mapname("1@pump");
- areamonster .@map$,55,99,61,105,"Contaminated Seaweed",2191,1,instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead";
- .@mob_dead_num = mobcount(.@map$,instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ areamonster(.@map$, 55, 99, 61, 105, _("Contaminated Seaweed"), MD_SEAWEED, 1, instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(.@map$, instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#n")+"::OnFail");
else
- mapannounce .@map$,"Contaminated Seaweed: "+.@mob_dead_num+" stem",bc_map,"0xff3333",FW_NORMAL,20;
+ mapannounce(.@map$, sprintf(_$("Contaminated Seaweed: %s stem"), .@mob_dead_num), bc_map, "0xff3333", FW_NORMAL, 20);
end;
OnMyMobDead:
end;
OnFail:
- stopnpctimer;
- donpcevent instance_npcname("Monster Hole#n")+"::OnClear";
+ stopnpctimer();
+ donpcevent(instance_npcname("Monster Hole#n")+"::OnClear");
.@map$ = instance_mapname("1@pump");
- killmonster .@map$,instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead";
- enablenpc instance_npcname("Missing, the Cleaner#nf");
- mapannounce .@map$,"What is this!! Seaweed is all over the culverts! You're done with cleaning! Get out!!",bc_map,"0xff88ff",FW_NORMAL,15;
- disablenpc instance_npcname("Missing, the Cleaner#n");
+ killmonster(.@map$, instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ enablenpc(instance_npcname("Missing, the Cleaner#nf"));
+ mapannounce(.@map$, _("What is this!! Seaweed is all over the culverts! You're done with cleaning! Get out!!"), bc_map, "0xff88ff", FW_NORMAL, 15);
+ disablenpc(instance_npcname("Missing, the Cleaner#n"));
end;
OnTimer100:
- mapannounce instance_mapname("1@pump"),"First culvert will be opened in 5 sec. Cleaner can find the opened drain and click to start cleaning.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce(instance_mapname("1@pump"), _("First culvert will be opened in 5 sec. Cleaner can find the opened drain and click to start cleaning."), bc_map, "0x00ffcc", FW_NORMAL, 15);
end;
OnTimer5500:
- mapannounce instance_mapname("1@pump"),"The one who's in charge of cleaning the culvert cannot move or be attacked until the casting is over.",bc_map,"0x00ffcc",FW_NORMAL,15;
- donpcevent instance_npcname("Monster Hole#n")+"::OnSpawn";
+ mapannounce(instance_mapname("1@pump"), _("The one who's in charge of cleaning the culvert cannot move or be attacked until the casting is over."), bc_map, "0x00ffcc", FW_NORMAL, 15);
+ donpcevent(instance_npcname("Monster Hole#n")+"::OnSpawn");
end;
OnTimer45000:
OnTimer95000:
@@ -670,12 +686,12 @@ OnTimer295000:
OnTimer345000:
OnTimer395000:
OnTimer445000:
- mapannounce instance_mapname("1@pump"),"Next culvert will be opened in 5 sec. Please hurry up and find the position of the next culvert.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce(instance_mapname("1@pump"), _("Next culvert will be opened in 5 sec. Please hurry up and find the position of the next culvert."), bc_map, "0x00ffcc", FW_NORMAL, 15);
end;
OnTimer50000:
OnTimer100000:
OnTimer150000:
- donpcevent instance_npcname("Monster Hole#n")+"::OnSpawn";
+ donpcevent(instance_npcname("Monster Hole#n")+"::OnSpawn");
end;
OnTimer200000:
OnTimer250000:
@@ -683,103 +699,116 @@ OnTimer300000:
OnTimer350000:
OnTimer400000:
OnTimer450000:
- .@mob_dead_num = mobcount(instance_mapname("1@pump"),instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(instance_mapname("1@pump"), instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#n")+"::OnFail");
else
- donpcevent instance_npcname("Monster Hole#n")+"::OnSpawn";
+ donpcevent(instance_npcname("Monster Hole#n")+"::OnSpawn");
end;
OnTimer515000:
.@map$ = instance_mapname("1@pump");
- .@mob_dead_num = mobcount(.@map$,instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
- mapannounce .@map$,"Contaminated Seaweed: "+.@mob_dead_num+" stem. Missing will come and inspect the results of the cleaning soon.",bc_map,"0xff3333",FW_NORMAL,20;
+ .@mob_dead_num = mobcount(.@map$, instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ mapannounce(.@map$, sprintf(_$("Contaminated Seaweed: %s stem. Missing will come and inspect the results of the cleaning soon."), .@mob_dead_num), bc_map, "0xff3333", FW_NORMAL, 20);
end;
OnTimer520000:
- stopnpctimer;
- .@mob_dead_num = mobcount(instance_mapname("1@pump"),instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
+ stopnpctimer();
+ .@mob_dead_num = mobcount(instance_mapname("1@pump"), instance_npcname("Missing, the Cleaner#n")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#n")+"::OnFail");
else
- donpcevent instance_npcname("Boss Creation#n")+"::OnEnable";
+ donpcevent(instance_npcname("Boss Creation#n")+"::OnEnable");
end;
}
1@pump,1,1,4 script Monster Hole#n FAKE_NPC,{
end;
OnSpawn:
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
if (.@i$ == "n")
.@n = 6;
else if (.@i$ == "h")
.@n = 10;
- donpcevent instance_npcname("#Culvert_"+.@i$+rand(1,.@n))+"::OnEnable";
+ donpcevent(instance_npcname("#Culvert_"+.@i$+rand(1, .@n))+"::OnEnable");
end;
OnClear:
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
if (.@i$ == "n")
.@n = 6;
else if (.@i$ == "h")
.@n = 10;
- for(.@i = 1; .@i<=.@n; ++.@i)
- donpcevent instance_npcname("#Culvert_"+.@i$+.@n)+"::OnClear";
+ for(.@i = 1; .@i <= .@n; ++.@i)
+ donpcevent(instance_npcname("#Culvert_"+.@i$+.@n)+"::OnClear");
end;
}
1@pump,36,111,4 script #Culvert_n1 CLEAR_NPC,14,14,{ //temporary workaround for ALL_SAMEMAP
- progressbar "0xFFFF00",10;
- stopnpctimer;
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ progressbar(sprintf("0x%x", C_YELLOW), 10);
+ stopnpctimer();
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
.@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
.@map$ = instance_mapname("1@pump");
- .@index = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9));
- switch(.@index) {
- case 1: setarray .@c[0],32,107,40,115; break;
- case 2: setarray .@c[0],64,120,72,128; break;
- case 3: setarray .@c[0],76,110,84,118; break;
- case 4: setarray .@c[0],36,76,44,84; break;
- case 5: setarray .@c[0],71,76,79,84; break;
- case 6: setarray .@c[0],54,97,62,105; break;
+ .@index = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN), 9));
+ switch (.@index) {
+ case 1:
+ setarray(.@c[0], 32, 107, 40, 115);
+ break;
+ case 2:
+ setarray(.@c[0], 64, 120, 72, 128);
+ break;
+ case 3:
+ setarray(.@c[0], 76, 110, 84, 118);
+ break;
+ case 4:
+ setarray(.@c[0], 36, 76, 44, 84);
+ break;
+ case 5:
+ setarray(.@c[0], 71, 76, 79, 84);
+ break;
+ case 6:
+ setarray(.@c[0], 54, 97, 62, 105);
+ break;
}
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Abysmal Crab",2176,rand(1,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Abysmal Marse",2175,rand(1,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Ancient Vadon",2174,rand(1,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Abysmal Shellfish",2178,rand(1,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Ancient Kukre",2179,rand(1,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Abysmal Cornutus",2177,rand(1,3),.@label$;
- specialeffect EF_MAPPILLAR2,ALL_SAMEMAP; //currently broken
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Abysmal Crab"), MD_CRAB, rand(1, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Abysmal Marse"), MD_MARSE, rand(1, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Ancient Vadon"), MD_VADON, rand(1, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Abysmal Shellfish"), MD_SHELLFISH, rand(1, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Ancient Kukre"), MD_KUKRE, rand(1, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Abysmal Cornutus"), MD_CORNUTUS, rand(1, 3), .@label$);
+ specialeffect(EF_MAPPILLAR2, ALL_SAMEMAP); //currently broken
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
- getpartymember 'party_id,2;
- copyarray .@partymemberaid[0],$@partymemberaid[0],$@partymembercount;
+ getpartymember('party_id, 2);
+ copyarray(.@partymemberaid[0], $@partymemberaid[0], $@partymembercount);
for(.@i = 0; .@i<$@partymembercount; ++.@i) {
if (attachrid(.@partymemberaid[.@i])) {
if (strcharinfo(PC_MAP) == .@map$)
- viewpoint 0,.@x,.@y,.@index,0xFFFF00;
- detachrid;
+ viewpoint(0, .@x, .@y, .@index, C_YELLOW);
+ detachrid();
}
}
- initnpctimer;
+ initnpctimer();
end;
OnMyMobDead:
end;
OnClear:
- stopnpctimer;
- killmonster instance_mapname("1@pump"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ stopnpctimer();
+ killmonster(instance_mapname("1@pump"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnTimer49500: //OnTimer50000 clashes with the timer in "Missing, the Cleaner#h".
- donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnAddSeaweed";
- donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ donpcevent(instance_npcname("Missing, the Cleaner#n")+"::OnAddSeaweed");
+ donpcevent(instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear");
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
- specialeffect EF_MAPPILLAR2;
+ specialeffect(EF_MAPPILLAR2);
end;
}
+
1@pump,68,124,4 duplicate(#Culvert_n1) #Culvert_n2 CLEAR_NPC,14,14
1@pump,80,114,4 duplicate(#Culvert_n1) #Culvert_n3 CLEAR_NPC,14,14
1@pump,40,80,4 duplicate(#Culvert_n1) #Culvert_n4 CLEAR_NPC,14,14
@@ -789,126 +818,139 @@ OnTouch:
1@pump,1,1,4 script Boss Creation#n FAKE_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
- initnpctimer;
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
+ initnpctimer();
end;
OnTimer100:
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
if (.@i$ == "n")
- mapannounce instance_mapname("1@pump"),"Hmm! That wasn't so bad!",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce(instance_mapname("1@pump"), _("Hmm! That wasn't so bad!"), bc_map, "0xff88ff", FW_NORMAL, 15);
else if (.@i$ == "h")
- mapannounce instance_mapname("2@pump"),"Hmm! You guys are pretty good!!",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce(instance_mapname("2@pump"), _("Hmm! You guys are pretty good!!"), bc_map, "0xff88ff", FW_NORMAL, 15);
end;
OnTimer5000:
- mapannounce strnpcinfo(NPC_MAP),"Let's pack up and go... WHAT!!?",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce(strnpcinfo(NPC_MAP), _("Let's pack up and go... WHAT!!?"), bc_map, "0xff88ff", FW_NORMAL, 15);
end;
OnTimer10000:
- mapannounce strnpcinfo(NPC_MAP),"I sense something strange!! Don't loosen up-- prepare for a fight!!",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce(strnpcinfo(NPC_MAP), _("I sense something strange!! Don't loosen up-- prepare for a fight!!"), bc_map, "0xff88ff", FW_NORMAL, 15);
end;
OnTimer20000:
- stopnpctimer;
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ stopnpctimer();
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
.@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
- if (rand(1,100) > 50) {
+ if (rand(1, 100) > 50) {
if (.@i$ == "n")
- monster instance_mapname("1@pump"),0,0,"Weird Coelacanth",2188,1,.@label$;
+ monster(instance_mapname("1@pump"), 0, 0, _("Weird Coelacanth"), COELACANTH_N_M, 1, .@label$);
else if (.@i$ == "h")
- monster instance_mapname("2@pump"),0,0,"Mutant Coelacanth",2189,1,.@label$;
- mapannounce strnpcinfo(NPC_MAP),"Something big inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ monster(instance_mapname("2@pump"), 0, 0, _("Mutant Coelacanth"), COELACANTH_H_M, 1, .@label$);
+ mapannounce(strnpcinfo(NPC_MAP), _("Something big inside the abyss appears with a huge noise."), bc_map, "0x00ffcc", FW_NORMAL, 15);
} else {
if (.@i$ == "n")
- monster instance_mapname("1@pump"),0,0,"Gloomy Coelacanth",2187,1,.@label$;
+ monster(instance_mapname("1@pump"), 0, 0, _("Gloomy Coelacanth"), COELACANTH_N_A, 1, .@label$);
else if (.@i$ == "h")
- monster instance_mapname("2@pump"),0,0,"Violent Coelacanth",2190,1,.@label$;
- mapannounce strnpcinfo(NPC_MAP),"Something savage inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ monster(instance_mapname("2@pump"), 0, 0, _("Violent Coelacanth"), COELACANTH_H_A, 1, .@label$);
+ mapannounce(strnpcinfo(NPC_MAP), _("Something savage inside the abyss appears with a huge noise."), bc_map, "0x00ffcc", FW_NORMAL, 15);
}
end;
OnMyMobDead:
- if (mobcount(strnpcinfo(NPC_MAP),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
- mapannounce strnpcinfo(NPC_MAP),"You've destroyed all monsters in the culverts. There are trophies lying on the ground, please look for them.",bc_map,"0xffff00",FW_NORMAL,15;
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ if (mobcount(strnpcinfo(NPC_MAP), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
+ mapannounce(strnpcinfo(NPC_MAP), _("You've destroyed all monsters in the culverts. There are trophies lying on the ground, please look for them."), bc_map, C_YELLOW, FW_NORMAL, 15);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
.@map$ = strnpcinfo(NPC_MAP);
- enablenpc instance_npcname("Culvert Entrance#"+.@i$);
- enablenpc instance_npcname("Missing, the Cleaner#"+.@i$+"o");
+ enablenpc(instance_npcname("Culvert Entrance#"+.@i$));
+ enablenpc(instance_npcname("Missing, the Cleaner#"+.@i$+"o"));
if (.@i$ == "n") {
- for(.@i = 0; .@i<10; ++.@i) {
- .@j = rand(1,6401);
- if (.@j < 5001) .@item = 12636; //Malang_Sp_Can
- else if (.@j < 5501) .@item = 12615; //Low_Coin_Pocket
- else if (.@j < 6001) .@item = 12621; //Egrade_Pocket
- else if (.@j < 6201) .@item = 12620; //Dgrade_Pocket
- else if (.@j < 6401) .@item = 12623; //High_Weapon_Box
- else continue;
- makeitem .@item,1,.@map$,rand(40,77),rand(87,120);
+ for(.@i = 0; .@i < 10; ++.@i) {
+ .@j = rand(1, 6401);
+ if (.@j < 5001)
+ .@item = Malang_Sp_Can;
+ else if (.@j < 5501)
+ .@item = Low_Coin_Pocket;
+ else if (.@j < 6001)
+ .@item = Egrade_Pocket;
+ else if (.@j < 6201)
+ .@item = Dgrade_Pocket;
+ else if (.@j < 6401)
+ .@item = High_Weapon_Box;
+ else
+ continue;
+ makeitem(.@item, 1, .@map$, rand(40, 77), rand(87, 120));
}
} else if (.@i$ == "h") {
- for(.@i = 0; .@i<10; ++.@i) {
- .@j = rand(1,5001);
- if (.@j < 2001) .@item = 12615; //Low_Coin_Pocket
- else if (.@j < 3001) .@item = 12621; //Egrade_Pocket
- else if (.@j < 4001) .@item = 12620; //Dgrade_Pocket
- else if (.@j < 4501) .@item = 12619; //Cgrade_Pocket
- else if (.@j < 5001) .@item = 12623; //High_Weapon_Box
- else continue;
- makeitem .@item,1,.@map$,rand(40,77),rand(87,120);
+ for(.@i = 0; .@i < 10; ++.@i) {
+ .@j = rand(1, 5001);
+ if (.@j < 2001)
+ .@item = Low_Coin_Pocket;
+ else if (.@j < 3001)
+ .@item = Egrade_Pocket;
+ else if (.@j < 4001)
+ .@item = Dgrade_Pocket;
+ else if (.@j < 4501)
+ .@item = Cgrade_Pocket;
+ else if (.@j < 5001)
+ .@item = High_Weapon_Box;
+ else
+ continue;
+ makeitem(.@item, 1, .@map$, rand(40, 77), rand(87, 120));
}
}
- } else
- mapannounce strnpcinfo(NPC_MAP),"There are still monsters alive.",bc_map,"0x00ff99",FW_NORMAL,20;
+ } else {
+ mapannounce(strnpcinfo(NPC_MAP), _("There are still monsters alive."), bc_map, C_SPRINGGREEN, FW_NORMAL, 20);
+ }
end;
}
1@pump,84,105,4 script Missing, the Cleaner#no 4_CAT_SAILOR2,{
- .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN), 0);
if (.@i$ == "n") {
- mes "[Missing, the Cleaner]";
- mes "I was very surprised!!";
- next;
- mes "[Missing, the Cleaner]";
- mes "That funny-looking fish seems to be one of Coelacanths living around here. This is my first time seeing one coming here alone!";
- next;
- mes "[Missing, the Cleaner]";
- mes "I'll clean up the remains. Go pack and leave! Enterance is located on the other side, look for it!";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("I was very surprised!!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("That funny-looking fish seems to be one of Coelacanths living around here. This is my first time seeing one coming here alone!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I'll clean up the remains. Go pack and leave! Enterance is located on the other side, look for it!");
+ next();
} else if (.@i$ == "h") {
- mes "[Missing, the Cleaner]";
- mes "You've destroyed an immense monster!";
- next;
- mes "[Missing, the Cleaner]";
- mes "The one you destroyed was among the variety of Coelacanths. Others have tried to destroy them but failed.";
- next;
- mes "[Missing, the Cleaner]";
- mes "I'll clean up the remains. You go ahead to get trophies and leave!";
- next;
+ mes("[Missing, the Cleaner]");
+ mes("You've destroyed an immense monster!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("The one you destroyed was among the variety of Coelacanths. Others have tried to destroy them but failed.");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("I'll clean up the remains. You go ahead to get trophies and leave!");
+ next();
}
- mes "[Missing, the Cleaner]";
- mes "One more thing! DO NOT TALK to ANYONE about what you've seen here today!!";
- next;
- mes "[Missing, the Cleaner]";
- mes "If Tomas closes this down, we will lose our jobs!";
- close;
+ mes("[Missing, the Cleaner]");
+ mes("One more thing! DO NOT TALK to ANYONE about what you've seen here today!!");
+ next();
+ mes("[Missing, the Cleaner]");
+ mes("If Tomas closes this down, we will lose our jobs!");
+ close();
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
1@pump,32,100,0 script Culvert Entrance#n WARPNPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
- warp "mal_in01",161,32;
+ warp("mal_in01", 161, 32);
end;
}
//MD_Putmob "1@pump" 0 0 0 0 20 HYDRA 0 0 2
1@pump,1,1,4 script Hydra#n FAKE_NPC,{
OnInstanceInit:
- monster strnpcinfo(NPC_MAP),0,0,"Hydra",1068,20;
+ monster(strnpcinfo(NPC_MAP), 0, 0, _("Hydra"), HYDRA, 20);
end;
}
@@ -916,40 +958,40 @@ OnInstanceInit:
2@pump,39,88,4 duplicate(Missing, the Cleaner#nf) Missing, the Cleaner#hf 4_CAT_SAILOR2
2@pump,39,88,4 script Missing, the Cleaner#h 4_CAT_SAILOR2,{
- callfunc "F_mal_missing";
- donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnStart";
- close;
+ callfunc("F_mal_missing");
+ donpcevent(instance_npcname("Missing, the Cleaner#h")+"::OnStart");
+ close();
OnStart:
- killmonster instance_mapname("2@pump"),instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead";
- disablenpc instance_npcname("Missing, the Cleaner#h");
- initnpctimer;
+ killmonster(instance_mapname("2@pump"), instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ disablenpc(instance_npcname("Missing, the Cleaner#h"));
+ initnpctimer();
end;
OnAddSeaweed:
.@map$ = instance_mapname("2@pump");
- areamonster .@map$,75,78,85,88,"Contaminated Seaweed",2191,1,instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead";
- .@mob_dead_num = mobcount(.@map$,instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ areamonster(.@map$, 75, 78, 85, 88, _("Contaminated Seaweed"), MD_SEAWEED, 1, instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(.@map$, instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#h")+"::OnFail");
else
- mapannounce .@map$,"Proliferous Contaminated Seaweed: "+.@mob_dead_num+" stem",bc_map,"0xff3333",FW_NORMAL,20;
+ mapannounce(.@map$, sprintf(_$("Proliferous Contaminated Seaweed: %s stem"), .@mob_dead_num), bc_map, "0xff3333", FW_NORMAL, 20);
end;
OnMyMobDead:
end;
OnFail:
- stopnpctimer;
- donpcevent instance_npcname("Monster Hole#h")+"::OnClear";
+ stopnpctimer();
+ donpcevent(instance_npcname("Monster Hole#h")+"::OnClear");
.@map$ = instance_mapname("2@pump");
- killmonster .@map$, instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead";
- enablenpc instance_npcname("Missing, the Cleaner#hf");
- mapannounce .@map$,"What is this!! Seaweed is all over the culverts! You're done with cleaning! Get out!!",bc_map,"0xff88ff",FW_NORMAL,15;
- disablenpc instance_npcname("Missing, the Cleaner#h");
+ killmonster(.@map$, instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ enablenpc(instance_npcname("Missing, the Cleaner#hf"));
+ mapannounce(.@map$, _("What is this!! Seaweed is all over the culverts! You're done with cleaning! Get out!!"), bc_map, "0xff88ff", FW_NORMAL, 15);
+ disablenpc(instance_npcname("Missing, the Cleaner#h"));
end;
OnTimer100:
- mapannounce instance_mapname("2@pump"),"First culvert will be opened in 5 sec. Cleaner can find the opened drain and click to start cleaning.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce(instance_mapname("2@pump"), _("First culvert will be opened in 5 sec. Cleaner can find the opened drain and click to start cleaning."), bc_map, "0x00ffcc", FW_NORMAL, 15);
end;
OnTimer5500:
- mapannounce instance_mapname("2@pump"),"The one who's in charge of cleaning the culvert cannot move or be attacked until the casting is over.",bc_map,"0x00ffcc",FW_NORMAL,15;
- donpcevent instance_npcname("Monster Hole#h")+"::OnSpawn";
+ mapannounce(instance_mapname("2@pump"), _("The one who's in charge of cleaning the culvert cannot move or be attacked until the casting is over."), bc_map, "0x00ffcc", FW_NORMAL, 15);
+ donpcevent(instance_npcname("Monster Hole#h")+"::OnSpawn");
end;
OnTimer35000:
OnTimer75000:
@@ -960,12 +1002,12 @@ OnTimer235000:
OnTimer275000:
OnTimer315000:
OnTimer355000:
- mapannounce instance_mapname("2@pump"),"Next culvert will be opened in 5 sec. Please hurry up and find the position of the next culvert.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce(instance_mapname("2@pump"), _("Next culvert will be opened in 5 sec. Please hurry up and find the position of the next culvert."), bc_map, "0x00ffcc", FW_NORMAL, 15);
end;
OnTimer40000:
OnTimer80000:
OnTimer120000:
- donpcevent instance_npcname("Monster Hole#h")+"::OnSpawn";
+ donpcevent(instance_npcname("Monster Hole#h")+"::OnSpawn");
end;
OnTimer160000:
OnTimer200000:
@@ -973,72 +1015,92 @@ OnTimer240000:
OnTimer280000:
OnTimer320000:
OnTimer360000:
- .@mob_dead_num = mobcount(instance_mapname("2@pump"),instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ .@mob_dead_num = mobcount(instance_mapname("2@pump"), instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#h")+"::OnFail");
else
- donpcevent instance_npcname("Monster Hole#h")+"::OnSpawn";
+ donpcevent(instance_npcname("Monster Hole#h")+"::OnSpawn");
end;
OnTimer420000:
- mapannounce instance_mapname("2@pump"),"It seems Missing will come and inspect the results of the cleaning soon. Shall we clean up the mess around here?",bc_map,"0xff3333",FW_NORMAL,20;
+ mapannounce(instance_mapname("2@pump"), _("It seems Missing will come and inspect the results of the cleaning soon. Shall we clean up the mess around here?"), bc_map, "0xff3333", FW_NORMAL, 20);
end;
OnTimer425000:
- stopnpctimer;
- .@mob_dead_num = mobcount(instance_mapname("2@pump"),instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
+ stopnpctimer();
+ .@mob_dead_num = mobcount(instance_mapname("2@pump"), instance_npcname("Missing, the Cleaner#h")+"::OnMyMobDead");
if (.@mob_dead_num >= 6)
- donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnFail";
+ donpcevent(instance_npcname("Missing, the Cleaner#h")+"::OnFail");
else
- donpcevent instance_npcname("Boss Creation#h")+"::OnEnable";
+ donpcevent(instance_npcname("Boss Creation#h")+"::OnEnable");
end;
}
2@pump,53,114,4 script #Culvert_h1 CLEAR_NPC,14,14,{ //temporary workaround for ALL_SAMEMAP
- progressbar "0xFFFF00",15;
- stopnpctimer;
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ progressbar(sprintf("0x%x", C_YELLOW), 15);
+ stopnpctimer();
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
.@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
.@map$ = instance_mapname("2@pump");
- .@index = atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),9,getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1));
- switch(.@index) {
- case 1: setarray .@c[0],49,110,57,118; break;
- case 2: setarray .@c[0],75,105,83,113; break;
- case 3: setarray .@c[0],110,110,118,118; break;
- case 4: setarray .@c[0],94,94,102,102; break;
- case 5: setarray .@c[0],58,92,66,100; break;
- case 6: setarray .@c[0],53,66,61,74; break;
- case 7: setarray .@c[0],43,45,51,53; break;
- case 8: setarray .@c[0],77,59,85,67; break;
- case 9: setarray .@c[0],96,70,104,78; break;
- case 10: setarray .@c[0],111,46,119,54; break;
+ .@index = atoi(substr(strnpcinfo(NPC_NAME_HIDDEN), 9, getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1));
+ switch (.@index) {
+ case 1:
+ setarray(.@c[0], 49, 110, 57, 118);
+ break;
+ case 2:
+ setarray(.@c[0], 75, 105, 83, 113);
+ break;
+ case 3:
+ setarray(.@c[0], 110, 110, 118, 118);
+ break;
+ case 4:
+ setarray(.@c[0], 94, 94, 102, 102);
+ break;
+ case 5:
+ setarray(.@c[0], 58, 92, 66, 100);
+ break;
+ case 6:
+ setarray(.@c[0], 53, 66, 61, 74);
+ break;
+ case 7:
+ setarray(.@c[0], 43, 45, 51, 53);
+ break;
+ case 8:
+ setarray(.@c[0], 77, 59, 85, 67);
+ break;
+ case 9:
+ setarray(.@c[0], 96, 70, 104, 78);
+ break;
+ case 10:
+ setarray(.@c[0], 111, 46, 119, 54);
+ break;
}
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Ancient Marc",2182,rand(2,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Ancient Sword Fish",2181,rand(2,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Ancient Strouf",2180,rand(2,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Mutant Anolian",2183,rand(2,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Abysmal Obeaune",2184,rand(2,3),.@label$;
- areamonster .@map$,.@c[0],.@c[1],.@c[2],.@c[3],"Metamorphous Kapha",2185,rand(2,3),.@label$;
- specialeffect EF_MAPPILLAR2,ALL_SAMEMAP; //currently broken
- initnpctimer;
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Ancient Marc"), MD_MARC, rand(2, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Ancient Sword Fish"), MD_SWORD_FISH, rand(2, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Ancient Strouf"), MD_STROUF, rand(2, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Mutant Anolian"), MD_ANOLIAN, rand(2, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Abysmal Obeaune"), MD_OBEAUNE, rand(2, 3), .@label$);
+ areamonster(.@map$, .@c[0], .@c[1], .@c[2], .@c[3], _("Metamorphous Kapha"), MD_KAPHA, rand(2, 3), .@label$);
+ specialeffect(EF_MAPPILLAR2, ALL_SAMEMAP); //currently broken
+ initnpctimer();
end;
OnMyMobDead:
end;
OnClear:
- stopnpctimer;
- killmonster instance_mapname("2@pump"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ stopnpctimer();
+ killmonster(instance_mapname("2@pump"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnTimer39500: //OnTimer40000 clashes with the timer in "Missing, the Cleaner#h".
- donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnAddSeaweed";
- donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ donpcevent(instance_npcname("Missing, the Cleaner#h")+"::OnAddSeaweed");
+ donpcevent(instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear");
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
- specialeffect EF_MAPPILLAR2;
+ specialeffect(EF_MAPPILLAR2);
end;
}
2@pump,79,109,4 duplicate(#Culvert_h1) #Culvert_h2 CLEAR_NPC,14,14
diff --git a/npc/re/instances/OldGlastHeim.txt b/npc/re/instances/OldGlastHeim.txt
index 9f3f29fdf..44b5f1e61 100644
--- a/npc/re/instances/OldGlastHeim.txt
+++ b/npc/re/instances/OldGlastHeim.txt
@@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
-//= Copyright (C) 2013-2016 Hercules Dev Team
+//= Copyright (C) 2013-2018 Hercules Dev Team
//= Copyright (C) Ridley
//= Copyright (C) Exneval
//= Copyright (C) Euphy
@@ -41,68 +41,68 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{
if (BaseLevel < 130) { // iRO text
mes("[Hugin]");
mes("Why don't you come back after becoming stronger Maybe, level 130.");
- close;
+ close();
}
if (!questprogress(12316)) {
mes("[Hugin]");
mes("A long time ago, this castle did not look like this.");
- next;
+ next();
mes("[Hugin]");
mes("Ah I'm sorry. I'm muttering in front of a stranger.");
- next;
+ next();
mes("[Hugin]");
mes("My name is Hugin. I'm studying the dimensional gap between time and space.");
- next;
+ next();
select("There's something like that here?");
mes("[Hugin]");
mes("Have you ever wondered about the history of Glast Heim?");
- next;
+ next();
mes("[Hugin]");
mes("There was a King named Shumiche who was known as a tyrant in the history of the Rune-Midgarts Kingdom.");
- next;
+ next();
mes("[Hugin]");
mes("Time will reveal the true answers if we look in the right places.");
- next;
+ next();
if (select("I don't care about history", "That is interesting. Find anything?") == 1) {
mes("[Hugin]");
mes("Really? Hmm, please come back later when you are interested then.");
- close;
+ close();
}
mes("[Hugin]");
mes("Actually, dimensional time travel is possible but I'm so afraid to go there.");
- next;
+ next();
mes("[Hugin]");
mes("Yes! It might be possible for you.");
- next;
+ next();
mes("[Hugin]");
mes("Do you want to time travel?");
- next;
+ next();
if (select("No thanks.", "Yes, of course I do!") == 1) {
mes("[Hugin]");
mes("Really? But, jumping gigawatts like this is such a great opportunity.");
- close;
+ close();
}
mes("[Hugin]");
mes("I knew that you would understand what I said. Well, please tell what you gonna do.");
setquest(12316);
- next;
+ next();
}
mes("[Hugin]");
mes("Umm? Did you see me at another place? I don't think so. What about this time?");
- next;
+ next();
if (!questprogress(12317, PLAYTIME)) {
.@party_id = getcharid(CHAR_ID_PARTY);
.@p_name$ = getpartyname(.@party_id);
- .@md_name$ = "Old Glast Heim";
+ .@md_name$ = _("Old Glast Heim");
if (!instance_check_party(.@party_id)) {
mes("[Hugin]");
mes("Why don't you make a party with more than 1 person and talk to me again?");
- close;
+ close();
}
if (!questprogress(12318, HUNTING))
- setquest 12318;
+ setquest(12318);
if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2))
- .@menu1$ = "Generate Time Gap";
+ .@menu1$ = _("Generate Time Gap");
else
.@menu1$ = "";
switch (select(.@menu1$, "Enter Old Glast Heim", "Cancel")) {
@@ -110,53 +110,52 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{
if (getcharid(CHAR_ID_CHAR) != getpartyleader(.@party_id, 2))
end;
.@instance = instance_create(.@md_name$, .@party_id);
- if (.@instance < 0) {
- mesf("Party Name: %s", .@p_name$);
- mesf("Party Leader: %s", strcharinfo(PC_NAME));
- mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$);
- close;
- }
- if (instance_attachmap("1@gl_k", .@instance) == "" || instance_attachmap("2@gl_k", .@instance) == "") {
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- instance_destroy(.@instance);
- close;
+ if (.@instance >= 0) {
+ for (.@i = 1; .@i <= 2; .@i++) {
+ if (instance_attachmap(.@i + "@gl_k", .@instance) == "") {
+ mesf("Party Name: %s", .@p_name$);
+ mesf("Party Leader: %s", strcharinfo(PC_NAME));
+ mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$);
+ instance_destroy(.@instance);
+ close();
+ }
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- instance_set_timeout(3600, 300, .@instance);
- instance_init(.@instance);
mes("[Hugin]");
mes("The time gap was created. When you're ready, talk to me again.");
- close;
+ close();
case 2:
if (has_instance("1@gl_k") == "" ) {
mesf("The memorial dungeon ^0000FF%s^000000 does not exist.\r"
- "The party leader did not generate the dungeon yet.", .@md_name$);
- close;
+ "The party leader did not generate the dungeon yet.", .@md_name$);
+ close();
}
mapannounce("glast_01", sprintf(_$("%s, member of the party %s entered the instance %s."), strcharinfo(PC_NAME), .@p_name$, .@md_name$), bc_map, C_SPRINGGREEN);
- setquest 12317;
- warp "1@gl_k", 150, 20;
+ setquest(12317);
+ warp("1@gl_k", 150, 20);
end;
case 3:
- close;
+ close();
}
} else if (questprogress(12317, PLAYTIME) == 1) {
mes("[Hugin]");
mes("Oh, my... You still have after-effects of time travel. You can't travel in this condition.");
- if (questprogress(12322) == 1) {
- erasequest 12322;
- }
- next;
+ if (questprogress(12322) == 1)
+ erasequest(12322);
+ next();
mes("[Hugin]");
mes("Staying healthy is important so please take a break and come back again later.");
- close;
+ close();
} else {
mes("^0000FFAll trace of access to Old Glast Heim have been removed. Now you can talk with Hugin again.^000000");
- erasequest 12317;
+ erasequest(12317);
if (questprogress(12318))
- erasequest 12318;
+ erasequest(12318);
if (questprogress(12319))
- erasequest 12319;
- close;
+ erasequest(12319);
+ close();
}
}
@@ -167,7 +166,7 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{
cutin("gl_barmund2", 2);
mes("[Varmundt]");
mes("Where's your leader? I need his help.");
- close2;
+ close2();
cutin("gl_barmund2", 255);
end;
}
@@ -175,80 +174,102 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{
mes("[Varmundt]");
mes("Are you the one ^0000FFHerico^000000 sent to help me?");
npctalk(_("Are you the one Herico sent to help me?"));
- next;
+ next();
select("Oh. Well I...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Ah yes, I am. Herico told me to meet you.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Ah yes, I am. Herico told me to meet you."));
- next;
+ next();
cutin("gl_barmund2", 2);
mes("[Varmundt]");
mes("We don't have much time. We must report to Sir. Heinrich about Himelmez's invasion.");
npctalk(_("We don't have much time. We must report to Sir. Heinrich about Himelmez's invasion."));
- next;
+ next();
select("Himelmez...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Who is Himelmez?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Who is Himelmez?"));
- next;
+ next();
cutin("gl_barmund3", 2);
mes("[Varmundt]");
mes("Herico didn't tell you?");
npctalk(_("Herico didn't tell you?"));
- next;
+ next();
cutin("gl_barmund2", 2);
mes("[Varmundt]");
mes("She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the heart of Ymir from us.");
npctalk(_("She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the heart of Ymir from us."));
- next;
+ next();
mes("[Varmundt]");
mes("She might even destroy this whole castle if she wanted to.");
npctalk(_("She might even destroy this whole castle if she wanted to."));
- next;
+ next();
mes("[Varmundt]");
mes("Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!");
npctalk(_("Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!"));
- close2;
+ close2();
cutin("gl_barmund2", 255);
donpcevent(instance_npcname("Varmundt#ghinstance1")+"::OnDisable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Varmundt#ghinstance1")+"::OnEnable";
+ donpcevent(instance_npcname("Varmundt#ghinstance1")+"::OnEnable");
end;
OnDisable:
- hideonnpc instance_npcname("Varmundt#ghinstance1");
- hideoffnpc instance_npcname("Heinrich#ghinstance1");
- hideoffnpc instance_npcname("Varmundt#ghinstance2");
+ hideonnpc(instance_npcname("Varmundt#ghinstance1"));
+ hideoffnpc(instance_npcname("Heinrich#ghinstance1"));
+ hideoffnpc(instance_npcname("Varmundt#ghinstance2"));
end;
OnEnable:
- hideoffnpc instance_npcname("Varmundt#ghinstance1");
+ hideoffnpc(instance_npcname("Varmundt#ghinstance1"));
end;
}
1@gl_k,145,54,6 script Khalitzburg Knight#1 4_F_KHALITZBURG,{
mesf("[%s]", strnpcinfo(NPC_NAME_VISIBLE));
switch ((atoi(strnpcinfo(NPC_NAME_HIDDEN)) + 1) / 2) {
- case 1: mes("Is there something you need?"); break;
- case 2: mes("What can I do for you?"); break;
- case 3: mes("..."); break;
- case 4: mes("I do not like to chat during work."); break;
- case 5: mes("Doesn't this castle seem weird all of a sudden? Something's not quite right."); break;
- case 6: mes("How do you know Varmundt? I heard that he's not really a friendly man..."); break;
- case 7: mes("Orders please."); break;
- case 8: mes("Please do not make a mess here."); break;
- case 9: mes("I had a weird dream last night. My mom was in it... Wonder if she is ok..."); break;
- case 10: mes("Are you wit Varmundt? Commander is waiting for you."); break;
- case 11: mes("My work shift will be over soon, but the next crew is not coming."); break;
+ case 1:
+ mes("Is there something you need?");
+ break;
+ case 2:
+ mes("What can I do for you?");
+ break;
+ case 3:
+ mes("...");
+ break;
+ case 4:
+ mes("I do not like to chat during work.");
+ break;
+ case 5:
+ mes("Doesn't this castle seem weird all of a sudden? Something's not quite right.");
+ break;
+ case 6:
+ mes("How do you know Varmundt? I heard that he's not really a friendly man...");
+ break;
+ case 7:
+ mes("Orders please.");
+ break;
+ case 8:
+ mes("Please do not make a mess here.");
+ break;
+ case 9:
+ mes("I had a weird dream last night. My mom was in it... Wonder if she is ok...");
+ break;
+ case 10:
+ mes("Are you wit Varmundt? Commander is waiting for you.");
+ break;
+ case 11:
+ mes("My work shift will be over soon, but the next crew is not coming.");
+ break;
}
- close;
+ close();
OnDisable:
- hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideonnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- hideoffnpc instance_npcname(strnpcinfo(NPC_NAME));
+ hideoffnpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
@@ -279,7 +300,7 @@ OnEnable:
cutin("gl_heinrich2", 2);
mes("[Heinrich]");
mes("Where is your leader? I must talk to him.");
- close2;
+ close2();
cutin("gl_heinrich2", 255);
end;
}
@@ -288,49 +309,49 @@ OnEnable:
mesf("[%s]", strcharinfo(PC_NAME));
mes("Sir. Heinrich. Do you know what is happening in the castle now?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Sir. Heinrich. Do you know what is happening in the castle now?"));
- next;
+ next();
mes("[Heinrich]");
mes("Aren't you the adventurer that came along with Varmundt?");
npctalk(_("Aren't you the adventurer that came along with Varmundt?"));
- next;
+ next();
mes("[Heinrich]");
mes("What is it? Something wrong with the castle?");
npctalk(_("What is it? Something wrong with the castle?"));
- next;
+ next();
select("Himelmez's invasion...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!"));
- next;
+ next();
cutin("gl_heinrich1", 2);
mes("[Heinrich]");
mes("Haha. Funny. Do you really think that is possible?");
npctalk(_("Haha. Funny. Do you really think that is possible?"));
- next;
+ next();
cutin("gl_barmund2", 2);
mes("[Varmundt]");
mes("I'm not kidding, Sir. Heinrich. If I'm correct, then she will be here very soon.");
npctalk(_("I'm not kidding, Sir. Heinrich. If I'm correct, then she will be here very soon."), instance_npcname("Varmundt#ghinstance2"));
- next;
+ next();
mes("[Varmundt]");
mes("We must hide the heart piece to a safe place before Himelmez's attack starts!");
npctalk(_("We must hide the heart piece to a safe place before Himelmez's attack starts!"), instance_npcname("Varmundt#ghinstance2"));
- next;
+ next();
select("Even if you don't believe me...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("I can't make you believe me, but there's no time to argue!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("I can't make you believe me, but there's no time to argue!"));
cutin("gl_barmund2", 255);
- next;
+ next();
cutin("gl_heinrich1", 2);
mes("[Heinrich]");
mes("Thank you for the help. But, we don't even have our king with us right now.");
npctalk(_("Thank you for the help. But, we don't even have our king with us right now."));
- next;
+ next();
mes("[Heinrich]");
mes("We cannot risk moving the heart just because some stranger says so.");
npctalk(_("We cannot risk moving the heart just because some stranger says so."));
- close2;
+ close2();
donpcevent(instance_npcname("Heinrich#ghinstance1")+"::OnDisable");
donpcevent(instance_npcname("Heinrich#ghinstance2")+"::OnEnable");
donpcevent(instance_npcname("Himelmez#ghinstance1")+"::OnEnable");
@@ -341,11 +362,11 @@ OnEnable:
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance1");
+ hideonnpc(instance_npcname("Heinrich#ghinstance1"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance1");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance1"));
end;
}
@@ -354,11 +375,11 @@ OnEnable:
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Varmundt#ghinstance2");
+ hideonnpc(instance_npcname("Varmundt#ghinstance2"));
end;
OnEnable:
- hideoffnpc instance_npcname("Varmundt#ghinstance2");
+ hideoffnpc(instance_npcname("Varmundt#ghinstance2"));
end;
}
@@ -367,11 +388,11 @@ OnEnable:
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance2");
+ hideonnpc(instance_npcname("Heinrich#ghinstance2"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance2");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance2"));
end;
}
@@ -380,11 +401,11 @@ OnEnable:
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance3");
+ hideonnpc(instance_npcname("Heinrich#ghinstance3"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance3");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance3"));
end;
}
@@ -393,11 +414,11 @@ OnEnable:
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Himelmez#ghinstance1");
+ hideonnpc(instance_npcname("Himelmez#ghinstance1"));
end;
OnEnable:
- hideoffnpc instance_npcname("Himelmez#ghinstance1");
+ hideoffnpc(instance_npcname("Himelmez#ghinstance1"));
end;
}
@@ -408,12 +429,12 @@ OnEnable:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#talkinstance1");
+ disablenpc(instance_npcname("#talkinstance1"));
end;
OnEnable:
- enablenpc instance_npcname("#talkinstance1");
- initnpctimer;
+ enablenpc(instance_npcname("#talkinstance1"));
+ initnpctimer();
end;
OnTimer1500:
@@ -470,7 +491,7 @@ OnTimer78000:
OnTimer84500:
npctalk(_("She probably already knows where the Ymir's heart piece is."), instance_npcname("Heinrich#ghinstance2"));
- donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnDisable";
+ donpcevent(instance_npcname("Himelmez#ghinstance1")+"::OnDisable");
end;
OnTimer90500:
@@ -478,49 +499,49 @@ OnTimer90500:
end;
OnTimer92000:
- for (.@i=1; .@i <= 20; .@i += 4) {
- hideonnpc instance_npcname("Khalitzburg Knight#"+.@i);
- hideonnpc instance_npcname("Khalitzburg Knight#"+(.@i+1));
- hideonnpc instance_npcname("White Knight#"+(.@i+2));
- hideonnpc instance_npcname("White Knight#"+(.@i+3));
+ for (.@i = 1; .@i <= 20; .@i += 4) {
+ hideonnpc(instance_npcname("Khalitzburg Knight#"+.@i));
+ hideonnpc(instance_npcname("Khalitzburg Knight#"+(.@i+1)));
+ hideonnpc(instance_npcname("White Knight#"+(.@i+2)));
+ hideonnpc(instance_npcname("White Knight#"+(.@i+3)));
}
- hideonnpc instance_npcname("Khalitzburg Knight#21");
- hideonnpc instance_npcname("Khalitzburg Knight#22");
+ hideonnpc(instance_npcname("Khalitzburg Knight#21"));
+ hideonnpc(instance_npcname("Khalitzburg Knight#22"));
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#talkinstance1")+"::OnMyMobDead";
- monster .@map$,145,59,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,154,59,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,145,69,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,154,69,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,145,79,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,154,79,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,145,89,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,154,89,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,145,99,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,154,99,"Abysmal Knight",2470,1,.@label$;
- monster .@map$,145,54,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 59, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 154, 59, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 145, 69, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 154, 69, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 145, 79, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 154, 79, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 145, 89, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 154, 89, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 145, 99, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 154, 99, _("Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
+ monster(.@map$, 145, 54, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("Water... Someone give me water..."));
- monster .@map$,154,54,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 54, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], "Kkkrrrruughgh...");
- monster .@map$,145,64,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 64, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("Sir. Heinrich. Save me..."));
- monster .@map$,154,64,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 64, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("I miss my sister..."));
- monster .@map$,145,74,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 74, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("Don't leave me alone, help me."));
- monster .@map$,154,74,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 74, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], "Aaarrrrrhhhh");
- monster .@map$,145,84,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 84, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("I am so thirsty."));
- monster .@map$,154,84,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 84, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("Oh...No...I can't die yet..."));
- monster .@map$,145,94,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 94, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("I feel sick to my stomach urrgg"));
- monster .@map$,154,94,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 94, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("Can someone..."));
- monster .@map$,145,104,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 145, 104, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], "Arrgg... My body");
- monster .@map$,154,104,"Khalitzburg",2471,1,.@label$;
+ monster(.@map$, 154, 104, _("Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
unittalk($@mobid[0], _("My throat is burning!"));
end;
@@ -549,70 +570,70 @@ OnTimer109000:
end;
OnTimer109500:
- enablenpc instance_npcname(".#ghinstance22");
- enablenpc instance_npcname(".#ghinstance21");
- donpcevent instance_npcname(".#ghinstance22")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance21")+"::OnEffect1";
+ enablenpc(instance_npcname(".#ghinstance22"));
+ enablenpc(instance_npcname(".#ghinstance21"));
+ donpcevent(instance_npcname(".#ghinstance22")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance21")+"::OnEffect1");
end;
OnTimer110000:
- enablenpc instance_npcname(".#ghinstance20");
- enablenpc instance_npcname(".#ghinstance19");
- enablenpc instance_npcname(".#ghinstance18");
- enablenpc instance_npcname(".#ghinstance17");
- donpcevent instance_npcname(".#ghinstance20")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance19")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance18")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance17")+"::OnEffect1";
+ enablenpc(instance_npcname(".#ghinstance20"));
+ enablenpc(instance_npcname(".#ghinstance19"));
+ enablenpc(instance_npcname(".#ghinstance18"));
+ enablenpc(instance_npcname(".#ghinstance17"));
+ donpcevent(instance_npcname(".#ghinstance20")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance19")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance18")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance17")+"::OnEffect1");
end;
OnTimer110500:
- enablenpc instance_npcname(".#ghinstance16");
- enablenpc instance_npcname(".#ghinstance15");
- enablenpc instance_npcname(".#ghinstance14");
- enablenpc instance_npcname(".#ghinstance13");
- donpcevent instance_npcname(".#ghinstance16")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance15")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance14")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance13")+"::OnEffect1";
+ enablenpc(instance_npcname(".#ghinstance16"));
+ enablenpc(instance_npcname(".#ghinstance15"));
+ enablenpc(instance_npcname(".#ghinstance14"));
+ enablenpc(instance_npcname(".#ghinstance13"));
+ donpcevent(instance_npcname(".#ghinstance16")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance15")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance14")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance13")+"::OnEffect1");
end;
OnTimer111000:
- enablenpc instance_npcname(".#ghinstance12");
- enablenpc instance_npcname(".#ghinstance11");
- enablenpc instance_npcname(".#ghinstance10");
- enablenpc instance_npcname(".#ghinstance9");
- donpcevent instance_npcname(".#ghinstance12")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance11")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance10")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance9")+"::OnEffect1";
+ enablenpc(instance_npcname(".#ghinstance12"));
+ enablenpc(instance_npcname(".#ghinstance11"));
+ enablenpc(instance_npcname(".#ghinstance10"));
+ enablenpc(instance_npcname(".#ghinstance9"));
+ donpcevent(instance_npcname(".#ghinstance12")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance11")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance10")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance9")+"::OnEffect1");
end;
OnTimer111500:
- enablenpc instance_npcname(".#ghinstance8");
- enablenpc instance_npcname(".#ghinstance7");
- enablenpc instance_npcname(".#ghinstance6");
- enablenpc instance_npcname(".#ghinstance5");
- donpcevent instance_npcname(".#ghinstance8")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance7")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance6")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance5")+"::OnEffect1";
+ enablenpc(instance_npcname(".#ghinstance8"));
+ enablenpc(instance_npcname(".#ghinstance7"));
+ enablenpc(instance_npcname(".#ghinstance6"));
+ enablenpc(instance_npcname(".#ghinstance5"));
+ donpcevent(instance_npcname(".#ghinstance8")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance7")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance6")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance5")+"::OnEffect1");
end;
OnTimer112000:
- enablenpc instance_npcname(".#ghinstance4");
- enablenpc instance_npcname(".#ghinstance3");
- enablenpc instance_npcname(".#ghinstance2");
- enablenpc instance_npcname(".#ghinstance1");
- donpcevent instance_npcname(".#ghinstance4")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance3")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance2")+"::OnEffect1";
- donpcevent instance_npcname(".#ghinstance1")+"::OnEffect1";
- donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnEnable";
- donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnDisable";
- for (.@i=1; .@i <= 22; .@i++)
- disablenpc instance_npcname(".#ghinstance"+.@i);
- killmonster instance_mapname("1@gl_k"),instance_npcname("#talkinstance1")+"::OnMyMobDead";
+ enablenpc(instance_npcname(".#ghinstance4"));
+ enablenpc(instance_npcname(".#ghinstance3"));
+ enablenpc(instance_npcname(".#ghinstance2"));
+ enablenpc(instance_npcname(".#ghinstance1"));
+ donpcevent(instance_npcname(".#ghinstance4")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance3")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance2")+"::OnEffect1");
+ donpcevent(instance_npcname(".#ghinstance1")+"::OnEffect1");
+ donpcevent(instance_npcname("Heinrich#ghinstance3")+"::OnEnable");
+ donpcevent(instance_npcname("Heinrich#ghinstance2")+"::OnDisable");
+ for (.@i = 1; .@i <= 22; .@i++)
+ disablenpc(instance_npcname(".#ghinstance"+.@i));
+ killmonster(instance_mapname("1@gl_k"), instance_npcname("#talkinstance1")+"::OnMyMobDead");
end;
OnTimer112500:
@@ -656,17 +677,17 @@ OnTimer143500:
end;
OnTimer147500:
- donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnDisable";
+ donpcevent(instance_npcname("Heinrich#ghinstance3")+"::OnDisable");
end;
OnTimer148500:
- donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnDisable";
- stopnpctimer;
- donpcevent instance_npcname("#ghinstancewarp1")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp2")+"::OnEnable";
+ donpcevent(instance_npcname("Varmundt#ghinstance2")+"::OnDisable");
+ stopnpctimer();
+ donpcevent(instance_npcname("#ghinstancewarp1")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp2")+"::OnEnable");
mapannounce(instance_mapname("1@gl_k"), _("A portal has opened to the west."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#talkinstance1")+"::OnDisable";
- donpcevent instance_npcname("#ghmemorialmob01")+"::OnEnable";
+ donpcevent(instance_npcname("#talkinstance1")+"::OnDisable");
+ donpcevent(instance_npcname("#ghmemorialmob01")+"::OnEnable");
end;
OnMyMobDead:
@@ -678,16 +699,16 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEffect1:
- specialeffect EF_GRANDCROSS;
- specialeffect EF_LEXAETERNA;
+ specialeffect(EF_GRANDCROSS);
+ specialeffect(EF_LEXAETERNA);
end;
}
@@ -719,32 +740,62 @@ OnEffect1:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
.@map1$ = instance_mapname("1@gl_k");
.@map2$ = instance_mapname("2@gl_k");
switch (atoi(replacestr(strnpcinfo(NPC_NAME_HIDDEN), "ghinstancewarp", ""))) {
- case 1: warp .@map1$,80,80; break;
- case 2: warp .@map1$,105,80; break;
- case 3: warp .@map1$,215,79; break;
- case 4: warp .@map1$,195,79; break;
- case 5: warp .@map1$,215,216; break;
- case 6: warp .@map1$,235,216; break;
- case 7: warp .@map2$,150,46; break;
- case 8: warp .@map2$,126,123; break;
- case 9: warp .@map2$,150,116; break;
- case 10: warp .@map2$,174,101; break;
- case 11: warp .@map2$,150,110; break;
- case 12: warp .@map2$,150,179; break;
- case 13: warp .@map2$,150,160; break;
- case 14: warp .@map1$,150,281; break;
- case 15: warp .@map1$,48,168; break;
+ case 1:
+ warp(.@map1$, 80, 80);
+ break;
+ case 2:
+ warp(.@map1$, 105, 80);
+ break;
+ case 3:
+ warp(.@map1$, 215, 79);
+ break;
+ case 4:
+ warp(.@map1$, 195, 79);
+ break;
+ case 5:
+ warp(.@map1$, 215, 216);
+ break;
+ case 6:
+ warp(.@map1$, 235, 216);
+ break;
+ case 7:
+ warp(.@map2$, 150, 46);
+ break;
+ case 8:
+ warp(.@map2$, 126, 123);
+ break;
+ case 9:
+ warp(.@map2$, 150, 116);
+ break;
+ case 10:
+ warp(.@map2$, 174, 101);
+ break;
+ case 11:
+ warp(.@map2$, 150, 110);
+ break;
+ case 12:
+ warp(.@map2$, 150, 179);
+ break;
+ case 13:
+ warp(.@map2$, 150, 160);
+ break;
+ case 14:
+ warp(.@map1$, 150, 281);
+ break;
+ case 15:
+ warp(.@map1$, 48, 168);
+ break;
}
end;
}
@@ -771,11 +822,11 @@ OnTouch:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob01");
+ disablenpc(instance_npcname("#ghmemorialmob01"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob01");
+ enablenpc(instance_npcname("#ghmemorialmob01"));
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob01")+"::OnMyMobDead";
areamonster(.@map$, 76, 99, 87, 10, _("Grand Chamberlain in pain"), MG_GHOUL, 15, .@label$);
@@ -788,12 +839,12 @@ OnEnable:
OnMyMobDead:
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob01")+"::OnMyMobDead";
- .@mob_dead_num = 56 - mobcount(.@map$,.@label$);
+ .@mob_dead_num = 56 - mobcount(.@map$, .@label$);
if (.@mob_dead_num > 35) {
mapannounce(.@map$, _("Himelmez's curse is getting weaker. Find any survivors!"), bc_map, C_WHITE);
- killmonster .@map$,.@label$;
- donpcevent instance_npcname("Altar boy Domun#clearGH")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob01")+"::OnDisable";
+ killmonster(.@map$, .@label$);
+ donpcevent(instance_npcname("Altar boy Domun#clearGH")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob01")+"::OnDisable");
}
end;
}
@@ -802,60 +853,60 @@ OnMyMobDead:
if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
mes("[Altar boy Domun]");
mes("Save me, save me, please...");
- close;
+ close();
}
mes("[Altar boy Domun]");
mes("Save me! Save me!!!");
npctalk(_("Save me! Save me!!!"));
- next;
+ next();
select("Hold on!Are you the only survivor?");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Hold on!\r"
"Are you the only survivor?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Hold on! Are you the only survivor?"));
- next;
+ next();
mes("[Altar boy Domun]");
mes("Chamberlains... monks...\r"
"They all turned into monsters. I couldn't do anything.");
npctalk(_("Altar boy Domun : Chamberlains... monks... They all turned into monsters. I couldn't do anything."));
- next;
+ next();
mes("[Altar boy Domun]");
mes("All I could do was... \r"
"Just hide in here...\r"
"Nothing, nothing I could do...");
npctalk(_("Altar boy Domun : All I could do was... Just hide in here... Nothing, nothing I could do..."));
- next;
+ next();
select("Pull it together!");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Wake up kid! Go east and find the middle passage to the outside! That is safe!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Wake up kid! Go east and find the middle passage to the outside! That is safe!")); // Displays 1st Letter of char name in small?
- next;
+ next();
mes("[Altar boy Domun]");
mes("To the east passage?\r"
"Alone?\r"
"How?");
npctalk(_("Altar boy Domun : To the east passage? Alone? How?"));
- next;
+ next();
select("I will give you a weapon.");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Here's a weapon. Just close your eye and swing for those monsters.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Here's a weapon. Just close your eye and swing for those monsters."));
- next;
+ next();
mes("[Altar boy Domun]");
mes("Ok, I... I'l try.");
npctalk(_("Altar boy Domun : Ok, I... I'l try."));
- close2;
- donpcevent instance_npcname("Altar boy Domun#clearGH")+"::OnDisable";
- donpcevent instance_npcname("#ghmemorialmob02")+"::OnEnable";
+ close2();
+ donpcevent(instance_npcname("Altar boy Domun#clearGH")+"::OnDisable");
+ donpcevent(instance_npcname("#ghmemorialmob02")+"::OnEnable");
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Altar boy Domun#clearGH");
+ hideonnpc(instance_npcname("Altar boy Domun#clearGH"));
end;
OnEnable:
- hideoffnpc instance_npcname("Altar boy Domun#clearGH");
+ hideoffnpc(instance_npcname("Altar boy Domun#clearGH"));
end;
}
@@ -866,13 +917,13 @@ OnEnable:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob02");
+ disablenpc(instance_npcname("#ghmemorialmob02"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob02");
- donpcevent instance_npcname("#ghinstancewarp3")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp4")+"::OnEnable";
+ enablenpc(instance_npcname("#ghmemorialmob02"));
+ donpcevent(instance_npcname("#ghinstancewarp3")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp4")+"::OnEnable");
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob02")+"::OnMyMobDead";
mapannounce(.@map$, _("A portal has opened to the east."), bc_map, C_YELLOW);
@@ -885,12 +936,12 @@ OnEnable:
OnMyMobDead:
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob02")+"::OnMyMobDead";
- .@mob_dead_num = 48 - mobcount(.@map$,.@label$);
+ .@mob_dead_num = 48 - mobcount(.@map$, .@label$);
if (.@mob_dead_num > 28) {
mapannounce(.@map$, _("Himelmez's curse is getting weaker. Find any survivors!"), bc_map, C_WHITE);
- killmonster .@map$,.@label$;
- donpcevent instance_npcname("Holgren the Destroyer")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob02")+"::OnDisable";
+ killmonster(.@map$, .@label$);
+ donpcevent(instance_npcname("Holgren the Destroyer")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob02")+"::OnDisable");
}
end;
}
@@ -899,51 +950,51 @@ OnMyMobDead:
if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2)) {
mes("[Holgren the Destroyer]");
mes("Are you human?");
- close;
+ close();
}
mes("[Holgren the Destroyer]");
mes("Die!! You shall die!!!");
npctalk(_("Holgren the Destroyer : Die!! You shall die!!!"));
- specialeffect EF_CRASHEARTH;
- next;
+ specialeffect(EF_CRASHEARTH);
+ next();
select("Relax! I'm not a monster!");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Relax! I am Human. Are you alone? Anyone else here?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Relax! I am Human. Are you alone? Anyone else here?"));
- next;
+ next();
mes("[Holgren the Destroyer]");
mes("It's only me alive.");
npctalk(_("Holgren the Destroyer : It's only me alive."));
- next;
+ next();
select("It's dangerous here...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("It's dangerous here. You know the way to the middle passage? Can you move?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("It's dangerous here. You know the way to the middle passage? Can you move?")); // Displays 1st Letter of char name in small?
- next;
+ next();
mes("[Holgren the Destroyer]");
mes("Yes, I can move. I need to get out of here.");
npctalk(_("Holgren the Destroyer : Yes, I can move. I need to get out of here."));
- next;
+ next();
select("Be safe...");
mesf("[%s]", strcharinfo(PC_NAME));
mes("Sorry, I can't go with you.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Sorry, I can't go with you."));
- next;
+ next();
mes("[Holgren the Destroyer]");
mes("It's ok. You've already done enough. I can help myself. Good luck to you too.");
npctalk(_("Holgren the Destroyer : It's ok. You've already done enough. I can help myself. Good luck to you too."));
- close2;
- donpcevent instance_npcname("Holgren the Destroyer")+"::OnDisable";
- donpcevent instance_npcname("#ghmemorialmob03")+"::OnEnable";
+ close2();
+ donpcevent(instance_npcname("Holgren the Destroyer")+"::OnDisable");
+ donpcevent(instance_npcname("#ghmemorialmob03")+"::OnEnable");
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Holgren the Destroyer");
+ hideonnpc(instance_npcname("Holgren the Destroyer"));
end;
OnEnable:
- hideoffnpc instance_npcname("Holgren the Destroyer");
+ hideoffnpc(instance_npcname("Holgren the Destroyer"));
end;
}
@@ -953,16 +1004,21 @@ OnEnable:
end;
OnTouch:
- .@i = rand(1,10);
- if (.@i == 1) .@mobs = 3;
- else if (.@i == 2) .@mobs = 4;
- else if (.@i == 3) .@mobs = 5;
- else if (.@i < 7) .@mobs = 6;
- else .@mobs = 7;
+ .@i = rand(1, 10);
+ if (.@i == 1)
+ .@mobs = 3;
+ else if (.@i == 2)
+ .@mobs = 4;
+ else if (.@i == 3)
+ .@mobs = 5;
+ else if (.@i < 7)
+ .@mobs = 6;
+ else
+ .@mobs = 7;
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
- specialeffect EF_VENOMDUST;
- monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ specialeffect(EF_VENOMDUST);
+ monster(.@map$, .@x, .@y, _("Maggot"), MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnMyMobDead:
@@ -970,11 +1026,11 @@ OnMyMobDead:
OnInstanceInit:
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnDisable:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
}
@@ -1023,13 +1079,13 @@ OnDisable:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob03");
+ disablenpc(instance_npcname("#ghmemorialmob03"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob03");
- donpcevent instance_npcname("#ghinstancewarp5")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp6")+"::OnEnable";
+ enablenpc(instance_npcname("#ghmemorialmob03"));
+ donpcevent(instance_npcname("#ghinstancewarp5")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp6")+"::OnEnable");
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob03")+"::OnMyMobDead";
mapannounce(.@map$, _("A portal has appeared to the northwest."), bc_map, C_YELLOW);
@@ -1046,15 +1102,15 @@ OnEnable:
OnMyMobDead:
.@map$ = instance_mapname("1@gl_k");
.@label$ = instance_npcname("#ghmemorialmob03")+"::OnMyMobDead";
- .@mob_dead_num = 100 - mobcount(.@map$,.@label$);
+ .@mob_dead_num = 100 - mobcount(.@map$, .@label$);
if (.@mob_dead_num > 85) {
mapannounce(.@map$, _("Himelmez: Not bad. Thought you would be dead by now by my creatures~"), bc_map, C_WHITE);
- killmonster .@map$,.@label$;
- donpcevent instance_npcname("#GHMclear3")+"::OnEnable";
- donpcevent instance_npcname("Heinrich#ghinstance4")+"::OnEnable";
- donpcevent instance_npcname("Himelmez#ghinstance2")+"::OnEnable";
- donpcevent instance_npcname("Varmundt#ghinstance3")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob03")+"::OnDisable";
+ killmonster(.@map$, .@label$);
+ donpcevent(instance_npcname("#GHMclear3")+"::OnEnable");
+ donpcevent(instance_npcname("Heinrich#ghinstance4")+"::OnEnable");
+ donpcevent(instance_npcname("Himelmez#ghinstance2")+"::OnEnable");
+ donpcevent(instance_npcname("Varmundt#ghinstance3")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob03")+"::OnDisable");
}
end;
}
@@ -1066,26 +1122,26 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob04");
+ disablenpc(instance_npcname("#ghmemorialmob04"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob04");
- monster instance_mapname("1@gl_k"), 150, 258, _("Corrupted Soul"), MG_CORRUPTION_ROOT, 1, instance_npcname("#ghmemorialmob04")+"::OnMyMobDead";
+ enablenpc(instance_npcname("#ghmemorialmob04"));
+ monster(instance_mapname("1@gl_k"), 150, 258, _("Corrupted Soul"), MG_CORRUPTION_ROOT, 1, instance_npcname("#ghmemorialmob04")+"::OnMyMobDead");
unittalk($@mobid[0], _("Grrrrrrhh~~~"));
end;
OnMyMobDead:
.@map$ = instance_mapname("1@gl_k");
- if (mobcount(.@map$,instance_npcname("#ghmemorialmob04")+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$, instance_npcname("#ghmemorialmob04")+"::OnMyMobDead") < 1) {
mapannounce(.@map$, _("Opening 2nd floor entrance towards 12 O'clock direction."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#ghinstancewarp7")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp14")+"::OnEnable";
+ donpcevent(instance_npcname("#ghinstancewarp7")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp14")+"::OnEnable");
npctalk(_("I collected some items dropped from its body. You can take it from me."), instance_npcname("Varmundt#ghinstance3"));
- donpcevent instance_npcname("#effectGH01")+"::OnEnable";
- donpcevent instance_npcname("Heinrich#ghinstance5")+"::OnEnable";
- donpcevent instance_npcname("Varmundt#ghinstance4")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob04")+"::OnDisable";
+ donpcevent(instance_npcname("#effectGH01")+"::OnEnable");
+ donpcevent(instance_npcname("Heinrich#ghinstance5")+"::OnEnable");
+ donpcevent(instance_npcname("Varmundt#ghinstance4")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob04")+"::OnDisable");
}
end;
}
@@ -1094,24 +1150,24 @@ OnMyMobDead:
end;
OnTouch:
- donpcevent instance_npcname("#controlGH3")+"::OnEnable";
- specialeffect EF_BASH;
- donpcevent instance_npcname("#GHMclear3")+"::OnDisable";
+ donpcevent(instance_npcname("#controlGH3")+"::OnEnable");
+ specialeffect(EF_BASH);
+ donpcevent(instance_npcname("#GHMclear3")+"::OnDisable");
end;
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#GHMclear3");
+ disablenpc(instance_npcname("#GHMclear3"));
end;
OnEnable:
- enablenpc instance_npcname("#GHMclear3");
- initnpctimer;
+ enablenpc(instance_npcname("#GHMclear3"));
+ initnpctimer();
end;
OnTimer2000:
mapannounce(instance_mapname("1@gl_k"), _("Himelmez: I'll wait for you at the north of the castle. I want to see you how lucky you are."), bc_map, C_WHITE);
- stopnpctimer;
+ stopnpctimer();
end;
}
@@ -1120,12 +1176,12 @@ OnTimer2000:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#controlGH3");
+ disablenpc(instance_npcname("#controlGH3"));
end;
OnEnable:
- enablenpc instance_npcname("#controlGH3");
- initnpctimer;
+ enablenpc(instance_npcname("#controlGH3"));
+ initnpctimer();
end;
OnTimer3000:
@@ -1165,7 +1221,7 @@ OnTimer27000:
end;
OnTimer28000:
- donpcevent instance_npcname("Himelmez#ghinstance2")+"::OnDisable";
+ donpcevent(instance_npcname("Himelmez#ghinstance2")+"::OnDisable");
end;
OnTimer31000:
@@ -1173,7 +1229,7 @@ OnTimer31000:
end;
OnTimer32000:
- donpcevent instance_npcname("Heinrich#ghinstance4")+"::OnDisable";
+ donpcevent(instance_npcname("Heinrich#ghinstance4")+"::OnDisable");
end;
OnTimer35000:
@@ -1181,117 +1237,117 @@ OnTimer35000:
end;
OnTimer38000:
- donpcevent instance_npcname("#ghmemorialmob04")+"::OnEnable";
- stopnpctimer;
- donpcevent instance_npcname("#controlGH3")+"::OnDisable";
+ donpcevent(instance_npcname("#ghmemorialmob04")+"::OnEnable");
+ stopnpctimer();
+ donpcevent(instance_npcname("#controlGH3")+"::OnDisable");
end;
}
1@gl_k,144,258,6 script Heinrich#ghinstance4 4_M_HEINRICH,{
- cutin "gl_heinrich1",2;
+ cutin("gl_heinrich1", 2);
mes("[Heinrich]");
mes("Himelmez... I will never forget what you've done to my men.");
- close2;
- cutin "gl_heinrich1",255;
+ close2();
+ cutin("gl_heinrich1", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance4");
+ hideonnpc(instance_npcname("Heinrich#ghinstance4"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance4");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance4"));
end;
}
1@gl_k,150,257,3 script Himelmez#ghinstance2 4_F_HIMEL,{
- cutin "gl_himel2",2;
+ cutin("gl_himel2", 2);
mes("[Himelmez]");
mes("Don't look at me nervous like that. It will be over soon...");
- close2;
- cutin "gl_himel2",255;
+ close2();
+ cutin("gl_himel2", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Himelmez#ghinstance2");
+ hideonnpc(instance_npcname("Himelmez#ghinstance2"));
end;
OnEnable:
- hideoffnpc instance_npcname("Himelmez#ghinstance2");
+ hideoffnpc(instance_npcname("Himelmez#ghinstance2"));
end;
}
1@gl_k,156,259,3 script Varmundt#ghinstance3 4_M_BARMUND,{ // not disabling it so all players can get their reward
if (questprogress(12318, HUNTING) == 2) {
- cutin "gl_barmund1", 2;
+ cutin("gl_barmund1", 2);
mes("[Varmundt]");
mes("This item has extraordinary aura with it. Can be very useful for someone special.");
- erasequest 12318;
+ erasequest(12318);
if (!questprogress(12319, HUNTING))
- setquest 12319;
- setquest 12320;
- erasequest 12320;
- getitem Temporal_Crystal, 1;
- getitem Coagulated_Spell, 1;
- getexp 250000, 250000;
- close2;
- cutin "gl_barmund1", 255;
+ setquest(12319);
+ setquest(12320);
+ erasequest(12320);
+ getitem(Temporal_Crystal, 1);
+ getitem(Coagulated_Spell, 1);
+ getexp(250000, 250000);
+ close2();
+ cutin("gl_barmund1", 255);
end;
}
- cutin "gl_barmund1",2;
+ cutin("gl_barmund1", 2);
mes("[Varmundt]");
mes("I guess this is it. Is it impossible to stop the time traveler's will?! A portal seems to have appeared to the north.");
- close2;
- cutin "gl_barmund2",255;
+ close2();
+ cutin("gl_barmund2", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Varmundt#ghinstance3");
+ hideonnpc(instance_npcname("Varmundt#ghinstance3"));
end;
OnEnable:
- hideoffnpc instance_npcname("Varmundt#ghinstance3");
+ hideoffnpc(instance_npcname("Varmundt#ghinstance3"));
end;
}
// Floor 2
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2@gl_k,148,67,1 script Heinrich#ghinstance5 4_M_HEINRICH,{
- cutin "gl_heinrich1",2;
+ cutin("gl_heinrich1", 2);
mes("[Heinrich]");
mes("Himelmez's closed space covers everywhere...");
- close2;
- cutin "gl_heinrich1",255;
+ close2();
+ cutin("gl_heinrich1", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance5");
+ hideonnpc(instance_npcname("Heinrich#ghinstance5"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance5");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance5"));
end;
}
2@gl_k,151,71,7 script Varmundt#ghinstance4 4_M_BARMUND,{
- cutin "gl_barmund1",2;
+ cutin("gl_barmund1", 2);
mes("[Varmundt]");
mes("How many times I do this job. In my dream, I did it over and over again...");
- close2;
- cutin "gl_barmund1",255;
+ close2();
+ cutin("gl_barmund1", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Varmundt#ghinstance4");
+ hideonnpc(instance_npcname("Varmundt#ghinstance4"));
end;
OnEnable:
- hideoffnpc instance_npcname("Varmundt#ghinstance4");
+ hideoffnpc(instance_npcname("Varmundt#ghinstance4"));
end;
}
@@ -1301,22 +1357,22 @@ OnEnable:
OnTouch:
if ('touch) {
'touch = 0;
- specialeffect EF_BASH;
- donpcevent instance_npcname("#controlGH4")+"::OnEnable";
+ specialeffect(EF_BASH);
+ donpcevent(instance_npcname("#controlGH4")+"::OnEnable");
}
end;
OnEffect:
- specialeffect EF_LORD;
+ specialeffect(EF_LORD);
end;
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#effectGH01");
+ disablenpc(instance_npcname("#effectGH01"));
end;
OnEnable:
- enablenpc instance_npcname("#effectGH01");
+ enablenpc(instance_npcname("#effectGH01"));
'touch = 1; // Only activate OnTouch once
end;
}
@@ -1326,17 +1382,17 @@ OnEnable:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#controlGH4");
+ disablenpc(instance_npcname("#controlGH4"));
end;
OnEnable:
- enablenpc instance_npcname("#controlGH4");
- initnpctimer;
+ enablenpc(instance_npcname("#controlGH4"));
+ initnpctimer();
end;
OnTimer3000:
npctalk(_("This structure was not in the castle before!"), instance_npcname("Heinrich#ghinstance5"));
- donpcevent instance_npcname("#ghmemorialmob05")+"::OnEnable";
+ donpcevent(instance_npcname("#ghmemorialmob05")+"::OnEnable");
end;
OnTimer6000:
@@ -1352,11 +1408,11 @@ OnTimer12000:
end;
OnTimer15000:
- donpcevent instance_npcname("#effectGH01")+"::OnEffect";
+ donpcevent(instance_npcname("#effectGH01")+"::OnEffect");
end;
OnTimer18000:
- donpcevent instance_npcname("#effectGH01")+"::OnDisable";
+ donpcevent(instance_npcname("#effectGH01")+"::OnDisable");
npctalk(_("I think that part of closed space is broke down."), instance_npcname("Varmundt#ghinstance4"));
end;
@@ -1426,16 +1482,16 @@ OnTimer66000:
OnTimer69000:
mapannounce(instance_mapname("2@gl_k"), _("A portal to the west has opened in the central hallway."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#ghinstancewarp8")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp9")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob06")+"::OnEnable";
- donpcevent instance_npcname("Varmundt#ghinstance4")+"::OnDisable";
- donpcevent instance_npcname("Heinrich#ghinstance5")+"::OnDisable";
+ donpcevent(instance_npcname("#ghinstancewarp8")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp9")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob06")+"::OnEnable");
+ donpcevent(instance_npcname("Varmundt#ghinstance4")+"::OnDisable");
+ donpcevent(instance_npcname("Heinrich#ghinstance5")+"::OnDisable");
end;
OnTimer70000:
- stopnpctimer;
- donpcevent instance_npcname("#controlGH4")+"::OnDisable";
+ stopnpctimer();
+ donpcevent(instance_npcname("#controlGH4")+"::OnDisable");
end;
}
@@ -1444,11 +1500,11 @@ OnTimer70000:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob05");
+ disablenpc(instance_npcname("#ghmemorialmob05"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob05");
+ enablenpc(instance_npcname("#ghmemorialmob05"));
.@map$ = instance_mapname("2@gl_k");
.@label$ = instance_npcname("#ghmemorialmob05")+"::OnMyMobDead";
areamonster(.@map$, 124, 20, 31, 162, _("Corrupted Palace Guard"), MG_RAYDRIC, 8, .@label$);
@@ -1464,26 +1520,26 @@ OnMyMobDead:
'MyMobs = 'MyMobs - 1;
if ('MyMobs == 0) {
mapannounce(.@map$, _("Evil Forces are appearing in this area."), bc_map, C_YELLOW, FW_NORMAL, 18);
- donpcevent instance_npcname("#ghmemorialmob06")+"::OnDisable2";
- donpcevent instance_npcname("#ghmemorialmob07")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob05")+"::OnDisable";
+ donpcevent(instance_npcname("#ghmemorialmob06")+"::OnDisable2");
+ donpcevent(instance_npcname("#ghmemorialmob07")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob05")+"::OnDisable");
} else {
.@label$ = instance_npcname("#ghmemorialmob05")+"::OnMyMobDead";
- switch(rand(5)) {
+ switch (rand(5)) {
case 0:
- areamonster(.@map$, 124, 20, 31, 162, _("Corrupted Palace Guard"), 2468, 1, .@label$);
+ areamonster(.@map$, 124, 20, 31, 162, _("Corrupted Palace Guard"), MG_RAYDRIC, 1, .@label$);
break;
case 1:
- areamonster(.@map$, 124, 20, 31, 162, _("Archer of Death"), 2469, 1, .@label$);
+ areamonster(.@map$, 124, 20, 31, 162, _("Archer of Death"), MG_RAYDRIC_ARCHER, 1, .@label$);
break;
case 2:
- areamonster(.@map$, 124, 20, 31, 162, _("Corrupted Abysmal Knight"), 2470, 1, .@label$);
+ areamonster(.@map$, 124, 20, 31, 162, _("Corrupted Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 1, .@label$);
break;
case 3:
- areamonster(.@map$, 124, 20, 31, 162, _("Suffered Khalitzburg"), 2471, 1, .@label$);
+ areamonster(.@map$, 124, 20, 31, 162, _("Suffered Khalitzburg"), MG_KHALITZBURG, 1, .@label$);
break;
case 4:
- areamonster(.@map$, 124, 20, 31, 162, _("Bloody Knight"), 2472, 1, .@label$);
+ areamonster(.@map$, 124, 20, 31, 162, _("Bloody Knight"), MG_BLOODY_KNIGHT, 1, .@label$);
break;
}
}
@@ -1495,34 +1551,34 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob06");
+ disablenpc(instance_npcname("#ghmemorialmob06"));
end;
OnDisable2:
- stopnpctimer;
- disablenpc instance_npcname("#ghmemorialmob06");
+ stopnpctimer();
+ disablenpc(instance_npcname("#ghmemorialmob06"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob06");
- donpcevent instance_npcname("#ghmemorialmob06")+"::OnSpawn";
+ enablenpc(instance_npcname("#ghmemorialmob06"));
+ donpcevent(instance_npcname("#ghmemorialmob06")+"::OnSpawn");
end;
OnSpawn:
- initnpctimer;
+ initnpctimer();
end;
OnTimer90000:
.@map$ = instance_mapname("2@gl_k");
.@label$ = instance_npcname("#ghmemorialmob05")+"::OnMyMobDead";
- setarray .@c[0],
- 114,141,118,139,
- 128,83,131,78,
- 88,53,93,48,
- 54,47,61,40,
- 58,83,63,78,
- 69,138,80,127,
- 34,143,39,138;
+ setarray(.@c[0],
+ 114, 141, 118, 139,
+ 128, 83, 131, 78,
+ 88, 53, 93, 48,
+ 54, 47, 61, 40,
+ 58, 83, 63, 78,
+ 69, 138, 80, 127,
+ 34, 143, 39, 138);
for (.@i = 0; .@i < getarraysize(.@c); .@i += 4) {
areamonster(.@map$, .@c[.@i], .@c[.@i+1], .@c[.@i+2], .@c[.@i+3], _("Corrupted Palace Guard"), MG_RAYDRIC, 1, .@label$);
areamonster(.@map$, .@c[.@i], .@c[.@i+1], .@c[.@i+2], .@c[.@i+3], _("Archer of Death"), MG_RAYDRIC_ARCHER, 1, .@label$);
@@ -1533,8 +1589,8 @@ OnTimer90000:
end;
OnTimer92000:
- stopnpctimer;
- donpcevent instance_npcname("#ghmemorialmob06")+"::OnSpawn";
+ stopnpctimer();
+ donpcevent(instance_npcname("#ghmemorialmob06")+"::OnSpawn");
end;
}
@@ -1543,22 +1599,22 @@ OnTimer92000:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob07");
+ disablenpc(instance_npcname("#ghmemorialmob07"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob07");
- areamonster instance_mapname("2@gl_k"), 124, 20, 31, 162, _("1st Commander of Destruction"), MG_M_UNDEAD_KNIGHT, 1, instance_npcname("#ghmemorialmob07")+"::OnMyMobDead";
+ enablenpc(instance_npcname("#ghmemorialmob07"));
+ areamonster(instance_mapname("2@gl_k"), 124, 20, 31, 162, _("1st Commander of Destruction"), MG_M_UNDEAD_KNIGHT, 1, instance_npcname("#ghmemorialmob07")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("2@gl_k");
- if (mobcount(.@map$,instance_npcname("#ghmemorialmob07")+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$, instance_npcname("#ghmemorialmob07")+"::OnMyMobDead") < 1) {
mapannounce(.@map$, _("A portal has opened to the east in the central hallway."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#ghinstancewarp10")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp11")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob08")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob07")+"::OnDisable";
+ donpcevent(instance_npcname("#ghinstancewarp10")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp11")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob08")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob07")+"::OnDisable");
}
end;
}
@@ -1568,18 +1624,18 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob08");
+ disablenpc(instance_npcname("#ghmemorialmob08"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob08");
+ enablenpc(instance_npcname("#ghmemorialmob08"));
.@map$ = instance_mapname("2@gl_k");
.@label$ = instance_npcname("#ghmemorialmob08")+"::OnMyMobDead";
- areamonster .@map$, 175, 163, 265, 18, "Corrupted Palace Guard", 2468, 7, .@label$;
- areamonster .@map$, 175, 163, 265, 18, "Wandering Archer", 2469, 7, .@label$;
- areamonster .@map$, 175, 163, 265, 18, "Corrupted Abysmal Knight", 2470, 7, .@label$;
- areamonster .@map$, 175, 163, 265, 18, "Suffered Khalitzburg", 2471, 7, .@label$;
- areamonster .@map$, 175, 163, 265, 18, "Bloody Knight", 2472, 7, .@label$;
+ areamonster(.@map$, 175, 163, 265, 18, _("Corrupted Palace Guard"), MG_RAYDRIC, 7, .@label$);
+ areamonster(.@map$, 175, 163, 265, 18, _("Wandering Archer"), MG_RAYDRIC_ARCHER, 7, .@label$);
+ areamonster(.@map$, 175, 163, 265, 18, _("Corrupted Abysmal Knight"), MG_KNIGHT_OF_ABYSS, 7, .@label$);
+ areamonster(.@map$, 175, 163, 265, 18, _("Suffered Khalitzburg"), MG_KHALITZBURG, 7, .@label$);
+ areamonster(.@map$, 175, 163, 265, 18, _("Bloody Knight"), MG_BLOODY_KNIGHT, 7, .@label$);
'MyMobs = 35;
end;
@@ -1588,8 +1644,8 @@ OnMyMobDead:
'MyMobs = 'MyMobs-1;
if ('MyMobs == 0) {
mapannounce(.@map$, _("An evil presence has teleported into this area."), bc_map, C_YELLOW, FW_NORMAL, 18);
- donpcevent instance_npcname("#ghmemorialmob09")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob08")+"::OnDisable";
+ donpcevent(instance_npcname("#ghmemorialmob09")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob08")+"::OnDisable");
} else {
.@label$ = instance_npcname("#ghmemorialmob08")+"::OnMyMobDead";
switch (rand(5)) {
@@ -1618,23 +1674,23 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob09");
+ disablenpc(instance_npcname("#ghmemorialmob09"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob09");
+ enablenpc(instance_npcname("#ghmemorialmob09"));
areamonster(instance_mapname("2@gl_k"), 175, 163, 265, 18, _("2nd Commander of Destruction"), MG_F_UNDEAD_KNIGHT, 1, instance_npcname("#ghmemorialmob09")+"::OnMyMobDead");
end;
OnMyMobDead:
.@map$ = instance_mapname("2@gl_k");
- if (mobcount(.@map$,instance_npcname("#ghmemorialmob09")+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$, instance_npcname("#ghmemorialmob09")+"::OnMyMobDead") < 1) {
mapannounce(.@map$, _("A new portal has appeared at the end of the central corridor."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#ghinstancewarp12")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp13")+"::OnEnable";
- donpcevent instance_npcname("#controlGH6")+"::OnEnable";
- donpcevent instance_npcname("#ghmemorialmob08")+"::OnDisable";
- donpcevent instance_npcname("#ghmemorialmob09")+"::OnDisable";
+ donpcevent(instance_npcname("#ghinstancewarp12")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp13")+"::OnEnable");
+ donpcevent(instance_npcname("#controlGH6")+"::OnEnable");
+ donpcevent(instance_npcname("#ghmemorialmob08")+"::OnDisable");
+ donpcevent(instance_npcname("#ghmemorialmob09")+"::OnDisable");
}
end;
}
@@ -1644,15 +1700,15 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#ghmemorialmob10");
+ disablenpc(instance_npcname("#ghmemorialmob10"));
end;
OnEnable:
- enablenpc instance_npcname("#ghmemorialmob10");
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnDisable";
+ enablenpc(instance_npcname("#ghmemorialmob10"));
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnDisable");
monster(instance_mapname("2@gl_k"), 158, 255, _("Amdarais"), MG_AMDARAIS, 1, instance_npcname("#ghmemorialmob10")+"::OnMyMobDead");
unittalk($@mobid[0], _("Run away... run away from me..."));
- initnpctimer;
+ initnpctimer();
end;
OnTimer6000:
@@ -1669,72 +1725,72 @@ OnTimer18000:
OnTimer24000:
unittalk($@mobid[0], _("Demolition... Death!..."));
- stopnpctimer;
+ stopnpctimer();
end;
OnMyMobDead:
- if (mobcount(instance_mapname("2@gl_k"),instance_npcname("#ghmemorialmob10")+"::OnMyMobDead") < 1) {
- donpcevent instance_npcname("Hugin#ghinstance1")+"::OnEnable";
- donpcevent instance_npcname("#ghinstancewarp15")+"::OnEnable";
+ if (mobcount(instance_mapname("2@gl_k"), instance_npcname("#ghmemorialmob10")+"::OnMyMobDead") < 1) {
+ donpcevent(instance_npcname("Hugin#ghinstance1")+"::OnEnable");
+ donpcevent(instance_npcname("#ghinstancewarp15")+"::OnEnable");
for (.@i = 1; .@i <= 8; .@i++)
- enablenpc instance_npcname("Strange crack#"+.@i);
- stopnpctimer;
- donpcevent instance_npcname("#ghmemorialmob10")+"::OnDisable";
+ enablenpc(instance_npcname("Strange crack#"+.@i));
+ stopnpctimer();
+ donpcevent(instance_npcname("#ghmemorialmob10")+"::OnDisable");
}
end;
}
2@gl_k,155,250,7 script Heinrich#ghinstance6 4_M_HEINRICH,{
- cutin "gl_heinrich1",2;
+ cutin("gl_heinrich1", 2);
mes("[Heinrich]");
mes("What are you decorating Himelmez!");
- close2;
- cutin "gl_heinrich1",255;
+ close2();
+ cutin("gl_heinrich1", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Heinrich#ghinstance6");
+ hideonnpc(instance_npcname("Heinrich#ghinstance6"));
end;
OnEnable:
- hideoffnpc instance_npcname("Heinrich#ghinstance6");
+ hideoffnpc(instance_npcname("Heinrich#ghinstance6"));
end;
}
2@gl_k,162,250,1 script Varmundt#ghinstance5 4_M_BARMUND,{
- cutin "gl_barmund2",2;
+ cutin("gl_barmund2", 2);
mes("[Varmundt]");
mes("Can't take off this bridle...");
- close2;
- cutin "gl_barmund2",255;
+ close2();
+ cutin("gl_barmund2", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Varmundt#ghinstance5");
+ hideonnpc(instance_npcname("Varmundt#ghinstance5"));
end;
OnEnable:
- hideoffnpc instance_npcname("Varmundt#ghinstance5");
+ hideoffnpc(instance_npcname("Varmundt#ghinstance5"));
end;
}
2@gl_k,158,252,3 script Himelmez#ghinstance4 4_F_HIMEL,{
- cutin "gl_himel2",2;
+ cutin("gl_himel2", 2);
mes("[Himelmez]");
mes("That is amazing ~ you made it all the way here. May I say thank you?");
- close2;
- cutin "gl_himel2",255;
+ close2();
+ cutin("gl_himel2", 255);
end;
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Himelmez#ghinstance4");
+ hideonnpc(instance_npcname("Himelmez#ghinstance4"));
end;
OnEnable:
- hideoffnpc instance_npcname("Himelmez#ghinstance4");
+ hideoffnpc(instance_npcname("Himelmez#ghinstance4"));
end;
}
@@ -1743,21 +1799,21 @@ OnEnable:
OnTouch:
mapannounce(instance_mapname("2@gl_k"), _("???: Do not come here! It's a trap... Kkkkah!!!"), bc_map, C_RED, FW_NORMAL, 18);
- specialeffect EF_BASH;
- donpcevent instance_npcname("Himelmez#ghinstance3")+"::OnEnable";
- donpcevent instance_npcname("Heinrich#ghinstance6")+"::OnEnable";
- donpcevent instance_npcname("Varmundt#ghinstance5")+"::OnEnable";
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEnable";
- donpcevent instance_npcname("#controlGH6")+"::OnDisable";
+ specialeffect(EF_BASH);
+ donpcevent(instance_npcname("Himelmez#ghinstance3")+"::OnEnable");
+ donpcevent(instance_npcname("Heinrich#ghinstance6")+"::OnEnable");
+ donpcevent(instance_npcname("Varmundt#ghinstance5")+"::OnEnable");
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEnable");
+ donpcevent(instance_npcname("#controlGH6")+"::OnDisable");
end;
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#controlGH6");
+ disablenpc(instance_npcname("#controlGH6"));
end;
OnEnable:
- enablenpc instance_npcname("#controlGH6");
+ enablenpc(instance_npcname("#controlGH6"));
end;
}
@@ -1765,19 +1821,19 @@ OnEnable:
end;
OnTouch:
- specialeffect EF_BASH;
- donpcevent instance_npcname("#controlGH5")+"::OnEnable";
- donpcevent instance_npcname("Himelmez#ghinstance4")+"::OnEnable";
- donpcevent instance_npcname("Himelmez#ghinstance3")+"::OnDisable";
+ specialeffect(EF_BASH);
+ donpcevent(instance_npcname("#controlGH5")+"::OnEnable");
+ donpcevent(instance_npcname("Himelmez#ghinstance4")+"::OnEnable");
+ donpcevent(instance_npcname("Himelmez#ghinstance3")+"::OnDisable");
end;
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Himelmez#ghinstance3");
+ disablenpc(instance_npcname("Himelmez#ghinstance3"));
end;
OnEnable:
- enablenpc instance_npcname("Himelmez#ghinstance3");
+ enablenpc(instance_npcname("Himelmez#ghinstance3"));
end;
}
@@ -1785,15 +1841,15 @@ OnEnable:
mes("[Gerhalt]");
mes("Uuuuu... Khhhah!\r"
"Just run away with the commander!");
- close;
+ close();
OnInstanceInit:
OnDisable:
- hideonnpc instance_npcname("Gerhalt#ghinstance1");
+ hideonnpc(instance_npcname("Gerhalt#ghinstance1"));
end;
OnEnable:
- hideoffnpc instance_npcname("Gerhalt#ghinstance1");
+ hideoffnpc(instance_npcname("Gerhalt#ghinstance1"));
end;
OnTalk3: /*Unused*/
@@ -1801,23 +1857,23 @@ OnTalk3: /*Unused*/
end;
OnEffect1:
- specialeffect EF_BARRIER;
+ specialeffect(EF_BARRIER);
end;
OnEffect2:
- specialeffect EF_CHAINCOMBO;
+ specialeffect(EF_CHAINCOMBO);
end;
OnEffect3:
- specialeffect EF_MAPPILLAR2;
+ specialeffect(EF_MAPPILLAR2);
end;
OnEffect4:
- specialeffect EF_MAPPILLAR;
+ specialeffect(EF_MAPPILLAR);
end;
OnEffect5:
- specialeffect EF_LORD;
+ specialeffect(EF_LORD);
end;
}
@@ -1826,12 +1882,12 @@ OnEffect5:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("#controlGH5");
+ disablenpc(instance_npcname("#controlGH5"));
end;
OnEnable:
- enablenpc instance_npcname("#controlGH5");
- initnpctimer;
+ enablenpc(instance_npcname("#controlGH5"));
+ initnpctimer();
end;
OnTimer3000:
@@ -1907,32 +1963,32 @@ OnTimer57000:
end;
OnTimer60000:
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect1";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect1");
end;
OnTimer63000:
- donpcevent instance_npcname("Himelmez#ghinstance4")+"::OnDisable";
+ donpcevent(instance_npcname("Himelmez#ghinstance4")+"::OnDisable");
end;
OnTimer65000:
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect3";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect3");
end;
OnTimer66000:
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect2";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect2");
end;
OnTimer67000:
npctalk(_("I'll never let you get away Himelmez!!"), instance_npcname("Heinrich#ghinstance6"));
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect4";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect4");
end;
OnTimer70000:
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect3";
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect4";
- donpcevent instance_npcname("Heinrich#ghinstance6")+"::OnDisable";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect3");
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect4");
+ donpcevent(instance_npcname("Heinrich#ghinstance6")+"::OnDisable");
npctalk(_("We have no choice. We have to fight against Amdarais!"), instance_npcname("Varmundt#ghinstance5"));
- donpcevent instance_npcname("Varmundt#ghinstance5")+"::OnDisable";
+ donpcevent(instance_npcname("Varmundt#ghinstance5")+"::OnDisable");
end;
OnTimer73000:
@@ -1940,13 +1996,13 @@ OnTimer73000:
end;
OnTimer76000:
- donpcevent instance_npcname("Gerhalt#ghinstance1")+"::OnEffect5";
+ donpcevent(instance_npcname("Gerhalt#ghinstance1")+"::OnEffect5");
end;
OnTimer80000:
- donpcevent instance_npcname("#ghmemorialmob10")+"::OnEnable";
- stopnpctimer;
- donpcevent instance_npcname("#controlGH5")+"::OnDisable";
+ donpcevent(instance_npcname("#ghmemorialmob10")+"::OnEnable");
+ stopnpctimer();
+ donpcevent(instance_npcname("#controlGH5")+"::OnDisable");
end;
}
@@ -1954,65 +2010,65 @@ OnTimer80000:
if (questprogress(12319, HUNTING) == 2) {
mes("[Hugin]");
mes("Hm, you are very well. First of all, let me give you some loot from Amdarais.");
- erasequest 12319;
- setquest 12321;
- setquest 12322;
- erasequest 12321;
+ erasequest(12319);
+ setquest(12321);
+ setquest(12322);
+ erasequest(12321);
if (gh_instance == 1) {
- getitem Temporal_Crystal, 1;
- getitem Coagulated_Spell, 1;
+ getitem(Temporal_Crystal, 1);
+ getitem(Coagulated_Spell, 1);
} else {
- getitem Temporal_Crystal, 5;
- getitem Coagulated_Spell, 5;
+ getitem(Temporal_Crystal, 5);
+ getitem(Coagulated_Spell, 5);
gh_instance = 1;
}
getexp(350000, 350000);
- next;
+ next();
mes("[Hugin]");
mes("Varmundt's time is stopped by me. And your time will be distorted soon.");
- specialeffect2 EF_BLIND,AREA;
- soundeffect "_blind.wav",0;
- next;
+ specialeffect(EF_BLIND, AREA, AREA, playerattached());
+ soundeffect("_blind.wav", 0);
+ next();
mes("[Hugin]");
mes("Maybe this poor time traveler will try to stop Glast Heim's tragedy from happening.");
- next;
+ next();
mes("[Hugin]");
mes("However, we will never overlook his behavior now and forever...");
- next;
+ next();
mes("[Hugin]");
mes("Now, let me remove your memory. If you see me again, that will be brand new.");
- specialeffect2 EF_FREEZE;
- close2;
+ specialeffect(EF_FREEZE, AREA, playerattached());
+ close2();
getmapxy(.@map$, .@x, .@y, UNITTYPE_PC);
- warp .@map$,.@x,.@y;
+ warp(.@map$, .@x, .@y);
end;
} else {
mes("[Hugin]");
mes("Oops I almost distorted the time gap. Come over here. We need to go out!");
- next;
+ next();
select("You were just with me...");
mes("[Hugin]");
mes("What did you say just before? Anyway that is not important, The gap of time will be closed so, we need to get out of here.");
- next;
- switch(select("Let me look around more:Please let me out")) {
+ next();
+ switch (select("Let me look around more:Please let me out")) {
case 1:
mes("[Hugin]");
mes("Really? This place will be broke down so, please look around quickly.");
- close;
+ close();
case 2:
- close2;
- warp "glast_01",204,270;
+ close2();
+ warp("glast_01", 204, 270);
end;
}
}
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Hugin#ghinstance1");
+ disablenpc(instance_npcname("Hugin#ghinstance1"));
end;
OnEnable:
- enablenpc instance_npcname("Hugin#ghinstance1");
+ enablenpc(instance_npcname("Hugin#ghinstance1"));
end;
}
@@ -2022,205 +2078,197 @@ OnEnable:
1@gl_k,269,267,0 script Strange crack#entrace HIDDEN_NPC,{
if (!questprogress(12322)) {
mes("The crack looks suspicious, but nothing more to check.");
- close;
+ close();
}
.@map$ = instance_mapname("1@gl_k");
- warp .@map$,149,193;
+ warp(.@map$, 149, 193);
end;
}
1@gl_k,129,136,0 script Strange crack#1 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i = 1; .@i <= .@random; .@i++) {
- makeitem White_Jewel, 1, "this", 129, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 129, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(White_Jewel, 1, "this", 129, 138);
+ makeitem(Coagulated_Spell, 1, "this", 129, 138);
if (.@random_ == 4) {
- //makeitem2 Heavy_Sword, 1, "this", 129, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Heavy_Sword, 1, "this", 129, 138;
+ //makeitem2(Heavy_Sword, 1, "this", 129, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Heavy_Sword, 1, "this", 129, 138);
}
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#1");
+ disablenpc(instance_npcname("Strange crack#1"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#1");
+ enablenpc(instance_npcname("Strange crack#1"));
end;
}
1@gl_k,135,136,0 script Strange crack#2 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Blue_Jewel, 1, "this", 135, 138;
- }
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Blue_Jewel, 1, "this", 135, 138);
if (.@random_ == 4) {
- //makeitem2 Staff_Of_Geffen, 1, "this", 135, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Staff_Of_Geffen, 1, "this", 135, 138;
+ //makeitem2(Staff_Of_Geffen, 1, "this", 135, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Staff_Of_Geffen, 1, "this", 135, 138);
}
- makeitem Coagulated_Spell, 1, "this", 135, 138;
+ makeitem(Coagulated_Spell, 1, "this", 135, 138);
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#2");
+ disablenpc(instance_npcname("Strange crack#2"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#2");
+ enablenpc(instance_npcname("Strange crack#2"));
end;
}
1@gl_k,141,136,0 script Strange crack#3 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Red_Jewel, 1, "this", 141, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 141, 138;
- makeitem Gold_Bullion, 1, "this", 141, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Red_Jewel, 1, "this", 141, 138);
+ makeitem(Coagulated_Spell, 1, "this", 141, 138);
+ makeitem(Gold_Bullion, 1, "this", 141, 138);
if (.@random_ == 4) {
- //makeitem2 Ceremonial_Sword, 1, "this", 141, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Ceremonial_Sword, 1, "this", 141, 138;
+ //makeitem2(Ceremonial_Sword, 1, "this", 141, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Ceremonial_Sword, 1, "this", 141, 138);
}
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#3");
+ disablenpc(instance_npcname("Strange crack#3"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#3");
+ enablenpc(instance_npcname("Strange crack#3"));
end;
}
1@gl_k,147,136,0 script Strange crack#4 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Scarlet_Jewel, 1, "this", 147, 138;
- }
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Scarlet_Jewel, 1, "this", 147, 138);
if (.@random_ == 4) {
- //makeitem2 Silversmith_Bracelet, 1, "this", 147, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Silversmith_Bracelet, 1, "this", 147, 138;
+ //makeitem2(Silversmith_Bracelet, 1, "this", 147, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Silversmith_Bracelet, 1, "this", 147, 138);
}
- makeitem Coagulated_Spell, 1, "this", 147, 138;
- makeitem Gold_Coin_Basket, 1, "this", 147, 138;
- makeitem Colorful_Brooch, 1, "this", 147, 138;
+ makeitem(Coagulated_Spell, 1, "this", 147, 138);
+ makeitem(Gold_Coin_Basket, 1, "this", 147, 138);
+ makeitem(Colorful_Brooch, 1, "this", 147, 138);
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#4");
+ disablenpc(instance_npcname("Strange crack#4"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#4");
+ enablenpc(instance_npcname("Strange crack#4"));
end;
}
1@gl_k,153,136,0 script Strange crack#5 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Azure_Jewel, 1, "this", 153, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 153, 138;
- makeitem White_Gold_Bullion, 1, "this", 153, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Azure_Jewel, 1, "this", 153, 138);
+ makeitem(Coagulated_Spell, 1, "this", 153, 138);
+ makeitem(White_Gold_Bullion, 1, "this", 153, 138);
if (.@random_ == 4) {
- //makeitem2 Goldsmithing_Dagger, 1, "this", 153, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Goldsmithing_Dagger, 1, "this", 153, 138;
+ //makeitem2(Goldsmithing_Dagger, 1, "this", 153, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Goldsmithing_Dagger, 1, "this", 153, 138);
}
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#5");
+ disablenpc(instance_npcname("Strange crack#5"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#5");
+ enablenpc(instance_npcname("Strange crack#5"));
end;
}
1@gl_k,159,136,0 script Strange crack#6 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
.@random_ = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Skyblue_Jewel, 1, "this", 159, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 159, 138;
- makeitem Silver_Bullion, 1, "this", 159, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Skyblue_Jewel, 1, "this", 159, 138);
+ makeitem(Coagulated_Spell, 1, "this", 159, 138);
+ makeitem(Silver_Bullion, 1, "this", 159, 138);
if (.@random_ == 4) {
- //makeitem2 Engraved_Armor, 1, "this", 159, 138, 0, 0, 0, 0, 0, 0, 0;
- makeitem Engraved_Armor, 1, "this", 159, 138;
+ //makeitem2(Engraved_Armor, 1, "this", 159, 138, 0, 0, 0, 0, 0, 0, 0);
+ makeitem(Engraved_Armor, 1, "this", 159, 138);
}
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#6");
+ disablenpc(instance_npcname("Strange crack#6"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#6");
+ enablenpc(instance_npcname("Strange crack#6"));
end;
}
1@gl_k,165,136,0 script Strange crack#7 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Violet_Jewel, 1, "this", 165, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 165, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Violet_Jewel, 1, "this", 165, 138);
+ makeitem(Coagulated_Spell, 1, "this", 165, 138);
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#7");
+ disablenpc(instance_npcname("Strange crack#7"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#7");
+ enablenpc(instance_npcname("Strange crack#7"));
end;
}
1@gl_k,171,136,0 script Strange crack#8 HIDDEN_NPC,{
- specialeffect EF_SPELLBREAKER;
- specialeffect EF_BASH;
+ specialeffect(EF_SPELLBREAKER);
+ specialeffect(EF_BASH);
.@random = rand(1, 4);
- for (.@i=1; .@i<=.@random; .@i++) {
- makeitem Dark_Red_Jewel, 1, "this", 171, 138;
- }
- makeitem Coagulated_Spell, 1, "this", 171, 138;
+ for (.@i = 1; .@i <= .@random; .@i++)
+ makeitem(Dark_Red_Jewel, 1, "this", 171, 138);
+ makeitem(Coagulated_Spell, 1, "this", 171, 138);
// FIXME[Haru]: Intention is not clear. Either add 'end;' or add '/* Fall through */'
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname("Strange crack#8");
+ disablenpc(instance_npcname("Strange crack#8"));
end;
OnEnable:
- enablenpc instance_npcname("Strange crack#8");
+ enablenpc(instance_npcname("Strange crack#8"));
end;
}
@@ -2229,57 +2277,57 @@ OnEnable:
// Uses Temporal_Crystal
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
glast_01,210,273,5 script Hugin's Butler 1_F_04,{
- disable_items;
+ disable_items();
mes("[Hugin's Butler]"); // custom check
if (MaxWeight - Weight < 1000) {
mes("Your bag is too heavy. Reduce some weight and come back.");
- close;
+ close();
}
mes("I would like to thank you for helping my master Hugin. I can transmute your ^FF0000Temporal Crystals^000000 into a pair of boots that have withstood the test of time... the ^FF0000Temporal Boots^000000.");
- next;
+ next();
mes("[Hugin's Butler]");
mes("What would you like me to do young adventurer?");
- next;
+ next();
switch (select("Give me the Temporal Boots", "Upgrade my Temporal Boots")) {
case 1:
if (countitem(Temporal_Crystal) > 0) {
mes("[Hugin's Butler]");
mes("Take these Temporal Boots. We can upgrade your Temporal Boots with 5 Temporal Crystals.");
- delitem Temporal_Crystal, 1;
- getitem Temporal_Boots, 1;
- close;
+ delitem(Temporal_Crystal, 1);
+ getitem(Temporal_Boots, 1);
+ close();
}
mes("[Hugin's Butler]");
mes("You need more Temporal Crystals. Come back when you get some more Temporal Crystals during your travel through Old Glast Heim.");
- close;
+ close();
case 2:
.@part = EQI_SHOES;
if (!getequipisequiped(.@part)) {
mes("[Hugin's Butler]");
mes("Wear the ^0000FFTemporal Boots^000000 you want to upgrade, and then talk to me once again.");
- close;
+ close();
}
if (!isequipped(Temporal_Boots)) { // check
mes("[Hugin's Butler]");
mes("You are not wearing the Temporal Boots. Talk to me once you're wearing them.");
- close;
+ close();
}
if (countitem(Temporal_Crystal) < 5) {
mes("[Hugin's Butler]");
mes("Not enough Temporal Crystals. You need ^FF00005 Temporal Crystals^000000 to upgrade your boots.");
- close;
+ close();
}
mes("[Hugin's Butler]");
mes("You can trade ^0000FF1 Temporal Boots and 5 Temporal Crystals^000000 for 1 of the following items. ^FF0000Previous refine rate will not be retained with these new ones^000000.");
- next;
- setarray .@type$[0], "Strength", "Intelligence", "Agility", "Vitality", "Dexterity", "Luck";
- setarray .@equip_type[0], Temporal_Str_Boots, Temporal_Int_Boots, Temporal_Agi_Boots, Temporal_Vit_Boots, Temporal_Dex_Boots, Temporal_Luk_Boots;
+ next();
+ setarray(.@type$[0], _("Strength"), _("Intelligence"), _("Agility"), _("Vitality"), _("Dexterity"), _("Luck"));
+ setarray(.@equip_type[0], Temporal_Str_Boots, Temporal_Int_Boots, Temporal_Agi_Boots, Temporal_Vit_Boots, Temporal_Dex_Boots, Temporal_Luk_Boots);
.@select = select("Cancel", "Str Boots", "Int Boots", "Agi Boots", "Vit Boots", "Dex Boots", "Luk Boots");
switch (.@select) {
case 1:
mes("[Hugin's Butler]");
mes("Come back anytime you want.");
- close;
+ close();
case 2:
case 3:
case 4:
@@ -2287,19 +2335,19 @@ glast_01,210,273,5 script Hugin's Butler 1_F_04,{
case 6:
case 7:
mes("[Hugin's Butler]");
- mesf("Are you sure about buying Temporal ^FF0000%s^000000 Boots? There is no refund.", .@type$[.@select-2]);
- next;
+ mesf("Are you sure about buying Temporal ^FF0000%s^000000 Boots? There is no refund.", .@type$[.@select - 2]);
+ next();
if (select("Think again", "Yes, I am sure.") == 2) {
mes("[Hugin's Butler]");
mes("The boots has been upgraded as you want.");
- delequip .@part;
- delitem Temporal_Crystal, 5;
- getitem2 .@equip_type[.@select-2], 1, 1, 0, 0, 0, 0, 0, 0; // Temporal_Str_Boots, Temporal_Int_Boots, Temporal_Agi_Boots, Temporal_Vit_Boots, Temporal_Dex_Boots, Temporal_Luk_Boots
- close;
+ delequip(.@part);
+ delitem(Temporal_Crystal, 5);
+ getitem2(.@equip_type[.@select - 2], 1, 1, 0, 0, 0, 0, 0, 0); // Temporal_Str_Boots, Temporal_Int_Boots, Temporal_Agi_Boots, Temporal_Vit_Boots, Temporal_Dex_Boots, Temporal_Luk_Boots
+ close();
}
mes("[Hugin's Butler]");
mes("Ok, come back again when you are sure.");
- close;
+ close();
}
}
}
@@ -2311,62 +2359,62 @@ glast_01,210,273,5 script Hugin's Butler 1_F_04,{
// Item Used: Coagulated_Spell
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to official enchant mechanics
- disable_items;
+ disable_items();
if (MaxWeight - Weight < 1000) {
mes("Your bag is too heavy. Reduce some weight and come back.");
- close;
+ close();
}
mes("[Hugin's Magic Master]"); // Custom text
mes("So you came to enchant the Temporal Boots. Be aware that adding a socket do your boots will remove my enchants as well as it's refine. It is only possible for the boots you are wearing.");
- next;
+ next();
if (select("How does the enchanting work?", "Give effect to my Temporal Boots") == 1) {
mes("[Hugin's Magic Master]");
mes("You can obtain ^0000FFCoagulated Spell^000000 through your time travels.");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("I can enchant your Temporal Boots with a variing amount of that item. ^0000FFAvailable for all Temporal STAT Boots^000000.");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("But, once you try to put a socket into the item, it will be resetted. So if you want a socket, you should do it first. Be sure to remember that.");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("I don't give out effect randomly. You can pick which effect you want for the item.");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("Of course it is for 4th slot only. You can have small effect at the start and then the effect grows stronger.\r"
"^FF0000Remember: It can fail and break your item!^000000");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("To get to the final option upgrade it will require way more Coagulated Spells. Don't forget that.");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("Once the 4th slot completes the best option, you get to have a random bonus effect to the 3rd slot. With.. certain payment and a ^0000FFguaranteed success rate~^000000");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("^FF0000Again: there is a risk on failing and breaking the item^000000.\r"
"But if the enchant is applied successful, ^0000FFthe refine and everything else will be retained.^000000");
- next;
+ next();
mes("[Hugin's Magic Master]");
mes("Phew... Anyways, that's all for basic enchant information. Now you should see for yourself.");
- close;
+ close();
}
.@part = EQI_SHOES;
if (!getequipisequiped(.@part)) {
mes("[Hugin's Magic Master]");
mes("Are you wearing the item?");
- close;
+ close();
}
.@equip_refine = getequiprefinerycnt(.@part);
.@equip_id = getequipid(.@part);
.@equip_name$ = getequipname(.@part);
.@card0 = getequipcardid(.@part, 0);
.@card3 = getequipcardid(.@part, 3);
- setarray .@enchant1st[0], Fighting_Spirit4, Expert_Archer1, Spell2, Vitality2, Attack_Delay_1, Luck3;
- setarray .@enchant2nd[0], Fighting_Spirit5, Expert_Archer2, Spell3, Vitality3, Attack_Delay_2, Luck4;
- setarray .@enchant3rd[0], Fighting_Spirit6, Expert_Archer3, Spell4, MHP1, Attack_Delay_3, Luck5;
- setarray .@enchant4th[0], Fighting_Spirit7, Expert_Archer4, Spell5, MHP2, Attack_Delay_4, Luck6;
- setarray .@enchant_cost[0], 1, 4, 15, 30, 10; // Coagulated_Spell costs
- setarray .@enchant_rate[0], 90, 80, 70, 50, 100; // Enchant Success Rate in %
+ setarray(.@enchant1st[0], Fighting_Spirit4, Expert_Archer1, Spell2, Vitality2, Attack_Delay_1, Luck3);
+ setarray(.@enchant2nd[0], Fighting_Spirit5, Expert_Archer2, Spell3, Vitality3, Attack_Delay_2, Luck4);
+ setarray(.@enchant3rd[0], Fighting_Spirit6, Expert_Archer3, Spell4, MHP1, Attack_Delay_3, Luck5);
+ setarray(.@enchant4th[0], Fighting_Spirit7, Expert_Archer4, Spell5, MHP2, Attack_Delay_4, Luck6);
+ setarray(.@enchant_cost[0], 1, 4, 15, 30, 10); // Coagulated_Spell costs
+ setarray(.@enchant_rate[0], 90, 80, 70, 50, 100); // Enchant Success Rate in %
.@random = rand(1, 100);
switch (.@equip_id) {
case Temporal_Str_Boots:
@@ -2387,30 +2435,30 @@ glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to of
.@number = 1;
mes("[Hugin's Magic Master]");
mesf("Want to enchant ^0000FF%s^000000? For the 1st enchanting, you need ^FF0000%d^000000 ^0000FFCoagulated Spells.^000000", .@equip_name$, .@cost);
- next;
+ next();
.@select = select("Quit", "Fighting Spirit", "Archery", "Spell", "Vitality", "Attack Speed", "Luck");
switch (.@select) {
case 1:
mes("[Hugin's Magic Master]");
mes("Ok, come back when you are ready.");
- close;
+ close();
case 2:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
case 3:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
case 4:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
case 5:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
case 6:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
case 7:
- .@enchant = .@enchant1st[.@select-2];
+ .@enchant = .@enchant1st[.@select - 2];
break;
}
} else {
@@ -2438,7 +2486,7 @@ glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to of
mes("[Hugin's Magic Master]"); // Custom text
mes("Your shoes have reached the maximum option to enchant.");
mes("Please bring me a new one if you want me to enchant again.");
- close;
+ close();
}
// 3rd slot random enchanting
switch (.@card3) {
@@ -2451,31 +2499,33 @@ glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to of
.@enchant = callfunc("F_Rand", Bears_Power, Runaway_Magic, Speed_Of_Light, Muscle_Fool, Hawkeye, Lucky_Day);
mes("[Hugin's Magic Master]"); // Custom text
mes("Seems you already completed the best upgrade option in your 4th slot. For that I can give a random bonus effect to your 3rd slot. And of course, with certain payment...");
- next;
+ next();
mes("[Hugin's Magic Master]");
mesf("Enchanting ^0000FF%s^000000's 3rd slot for obtaining a random bonus effect. Requires ^FF0000%d^000000 ^0000FFCoagulated Spells^000000", .@equip_name$, .@cost);
- next;
+ next();
if (select("Quit", "Effect Upgrade!") == 1) {
mes("[Hugin's Magic Master]");
mes("Ok, come back when you are ready.");
- close;
+ close();
}
if (countitem(Coagulated_Spell) < .@cost) {
mesf("Hmm, you are missing %s Coagulated Spells. Go get more, and then we can talk about more enchants.", .@cost - countitem(Coagulated_Spell));
- close;
+ close();
}
if (.@random > .@scs) {
mes("Arrggg, we failed. Better luck next time.");
- specialeffect2 EF_PHARMACY_FAIL; delitem Coagulated_Spell, .@cost; delequip .@part;
- close;
+ specialeffect(EF_PHARMACY_FAIL, AREA, playerattached());
+ delitem(Coagulated_Spell, .@cost);
+ delequip(.@part);
+ close();
}
- specialeffect2 EF_REPAIRWEAPON;
- delitem Coagulated_Spell, .@cost;
- delequip .@part;
+ specialeffect(EF_REPAIRWEAPON, AREA, playerattached());
+ delitem(Coagulated_Spell, .@cost);
+ delequip(.@part);
mes("[Hugin's Magic Master]");
mes("This is it! This special stone is now yours Hahaha... I am really the only master of these things. Thank you for believing in me.");
- getitem2 .@equip_id, 1, 1, .@equip_refine, 0, .@card0, 0, .@enchant, .@card3;
- close;
+ getitem2(.@equip_id, 1, 1, .@equip_refine, 0, .@card0, 0, .@enchant, .@card3);
+ close();
}
}
// 4th slot 2nd try enchanting
@@ -2519,49 +2569,49 @@ glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to of
.@enchant = .@enchant4th[5];
mes("[Hugin's Magic Master]");
mesf("Enchanting ^0000FF%s^000000's 4th slot as ^0000FF%d^000000 level effect. Requires ^FF0000%d^000000 ^0000FFCoagulated Spells.^000000", .@equip_name$, .@number, .@cost);
- next;
+ next();
if (select("Quit", "Effect Upgrade!") == 1) {
mes("[Hugin's Magic Master]");
mes("Ok, come back when you are ready.");
- close;
+ close();
}
if (countitem(Coagulated_Spell) < .@cost) {
mesf("Hmm, you are missing %d Coagulated Spells. Go get more, and then we can talk about more enchants.", .@cost - countitem(Coagulated_Spell));
- close;
+ close();
}
if (.@random > .@scs) {
mes("Arrggg, we failed. Better luck next time.");
- specialeffect2 EF_PHARMACY_FAIL;
- delitem Coagulated_Spell, .@cost;
- delequip .@part;
- close;
+ specialeffect(EF_PHARMACY_FAIL, AREA, playerattached());
+ delitem(Coagulated_Spell, .@cost);
+ delequip(.@part);
+ close();
}
}
break;
default:
mes("[Hugin's Magic Master]");
mes("This is not the right item for this enchant. Remember, only those 6 types of Temporal Boots are available for enchanting.");
- close;
+ close();
}
mes("[Hugin's Magic Master]");
if (countitem(Coagulated_Spell) < .@cost) {
mesf("Hmm, you are missing %d Coagulated Spells. Go get more, and then we can talk about more enchants.", .@cost - countitem(Coagulated_Spell));
- close;
+ close();
}
if (.@random > .@scs) {
mes("Arrggg, we failed. Better luck next time.");
- specialeffect2 EF_PHARMACY_FAIL;
- delitem Coagulated_Spell, .@cost;
- delequip .@part;
- close;
+ specialeffect(EF_PHARMACY_FAIL, AREA, playerattached());
+ delitem(Coagulated_Spell, .@cost);
+ delequip(.@part);
+ close();
}
- specialeffect2 EF_REPAIRWEAPON;
- delitem Coagulated_Spell, .@cost;
- delequip .@part;
+ specialeffect(EF_REPAIRWEAPON, AREA, playerattached());
+ delitem(Coagulated_Spell, .@cost);
+ delequip(.@part);
mes("[Hugin's Magic Master]");
mesf("Adding enchant number ^630000%d^000000.", .@number);
- getitem2 .@equip_id, 1, 1, .@equip_refine, 0, .@card0, 0, 0, .@enchant;
- close;
+ getitem2(.@equip_id, 1, 1, .@equip_refine, 0, .@card0, 0, 0, .@enchant);
+ close();
}
// Socket NPC - Corrupted_Charm or Temporal_Crystal to add card slot
@@ -2569,33 +2619,33 @@ glast_01,212,273,4 script Hugin's Magic Master 1_F_01,{ // Custom text due to of
// Item Used: Corrupted_Charm, Temporal_Crystal
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
glast_01,210,270,0 script Hugin's Craftsman 4_F_JOB_BLACKSMITH,{
- disable_items;
+ disable_items();
if (MaxWeight - Weight < 1000) {
mes("Your bag is too heavy. Reduce some weight and come back.");
- close;
+ close();
}
mes("[Hugin's Craftsman]");
mes("That Magic Master always says that enchanting Temporal Boots is the best. But, I think I can beat that!");
- next;
+ next();
mes("[Hugin's Craftsman]");
mes("I can try putting a slot into your boots. But there is some ^FF0000risk of failing.^000000");
- next;
+ next();
mes("[Hugin's Craftsman]");
mes("Bring me ^0000FF50 Contaminated Magic^000000 or ^0000FF10 Temporal Crystals^000000, and I will try to put a slot into your advanced Temporal Boots.");
- next;
+ next();
mes("[Hugin's Craftsman]");
mes("But, it's possible to ^FF0000fail and break the item^000000. Is that ok?");
- next;
+ next();
if (select("Cancel", "Take the risk and try to add a slot") == 1) {
mes("[Hugin's Craftsman]");
mes("Ok, come back anytime you want.");
- close;
+ close();
}
.@part = EQI_SHOES;
if (!getequipisequiped(.@part)) {
mes("[Hugin's Craftsman]");
mes("Are you sure you are wearing the item?");
- close;
+ close();
}
.@equip_id = getequipid(.@part);
switch (.@equip_id) {
@@ -2608,78 +2658,77 @@ glast_01,210,270,0 script Hugin's Craftsman 4_F_JOB_BLACKSMITH,{
mes("[Hugin's Craftsman]");
mes("The ^FF0000Boots and all enchants or refines will be lost if you fail this.^000000\r"
"Still want to risk it?");
- next;
+ next();
if (select("Cancel", "I am ok with it!") == 1) {
mes("[Hugin's Craftsman]");
mes("Ok, come back anytime you want.");
- close;
+ close();
}
mes("[Hugin's Craftsman]");
mes("Once again, ^FF0000That Magic Master won't enchant any item with a slot.^000000\r"
- "Still want to proceed?");
- next;
+ "Still want to proceed?");
+ next();
if (select("Cancel", "I understand. Try to slot it.") == 1) {
mes("[Hugin's Craftsman]");
mes("Ok, come back anytime you want.");
- close;
+ close();
}
mes("[Hugin's Craftsman]");
mes("Then my last question:\r"
- "Which item are you gonna use to pay me?");
- next;
- setarray .@slotpay[0], Temporal_Crystal, Corrupted_Charm;
- setarray .@slotcost[0], 10, 50;
- setarray .@slotchance[0], 80, 65; // Custom rates
+ "Which item are you gonna use to pay me?");
+ next();
+ setarray(.@slotpay[0], Temporal_Crystal, Corrupted_Charm);
+ setarray(.@slotcost[0], 10, 50);
+ setarray(.@slotchance[0], 80, 65); // Custom rates
.@select = select("Cancel", "Temporal Crystal", "Contaminated Magic");
switch (.@select) {
case 1:
mes("[Hugin's Craftsman]");
mes("Come back anytime you want.");
- close;
+ close();
case 2:
case 3:
- .@item = .@slotpay[.@select-2];
- .@cost = .@slotcost[.@select-2];
- .@chance = .@slotchance[.@select-2];
+ .@item = .@slotpay[.@select - 2];
+ .@cost = .@slotcost[.@select - 2];
+ .@chance = .@slotchance[.@select - 2];
if (countitem(.@item) < .@cost) {
mes("[Hugin's Craftsman]");
mesf("Requires ^FF0000%d^000000 ^0000FF%s^000000.", .@cost, getitemname(.@item));
- close;
+ close();
}
}
.@random = rand(1, 100);
if (.@random > .@chance) {
mes("[Hugin's Craftsman]");
mes("Arrggg, we failed. Better luck next time.");
- specialeffect2 EF_PHARMACY_FAIL;
- delitem .@item, .@cost;
- delequip .@part;
- close;
+ specialeffect(EF_PHARMACY_FAIL, AREA, playerattached());
+ delitem(.@item, .@cost);
+ delequip(.@part);
+ close();
}
mes("[Hugin's Craftsman]");
mesf("Yuhuu~ we succeed. There you go... A slot has been added to your ^FF0000%s^000000. Thank you for believing in me.", getitemname(.@equip_id));
- delitem .@item, .@cost;
- specialeffect2 EF_PHARMACY_OK;
- delequip .@part;
+ delitem(.@item, .@cost);
+ specialeffect(EF_PHARMACY_OK, AREA, playerattached());
+ delequip(.@part);
// todo: read aegis name and attach "_" to worn constant
- if (.@equip_id == Temporal_Str_Boots) {
- getitem2 Temporal_Str_Boots_, 1, 1, 0, 0, 0, 0, 0, 0;
- } else if (.@equip_id == Temporal_Int_Boots) {
- getitem2 Temporal_Int_Boots_, 1, 1, 0, 0, 0, 0, 0, 0;
- } else if (.@equip_id == Temporal_Agi_Boots) {
- getitem2 Temporal_Agi_Boots_, 1, 1, 0, 0, 0, 0, .0, 0;
- } else if (.@equip_id == Temporal_Vit_Boots) {
- getitem2 Temporal_Vit_Boots_, 1, 1, 0, 0, 0, 0, 0, 0;
- } else if (.@equip_id == Temporal_Dex_Boots) {
- getitem2 Temporal_Dex_Boots_, 1, 1, 0, 0, 0, 0, 0, 0;
- } else if (.@equip_id == Temporal_Luk_Boots) {
- getitem2 Temporal_Luk_Boots_, 1, 1, 0, 0, 0, 0, 0, 0;
- }
- close;
+ if (.@equip_id == Temporal_Str_Boots)
+ getitem2(Temporal_Str_Boots_, 1, 1, 0, 0, 0, 0, 0, 0);
+ else if (.@equip_id == Temporal_Int_Boots)
+ getitem2(Temporal_Int_Boots_, 1, 1, 0, 0, 0, 0, 0, 0);
+ else if (.@equip_id == Temporal_Agi_Boots)
+ getitem2(Temporal_Agi_Boots_, 1, 1, 0, 0, 0, 0, .0, 0);
+ else if (.@equip_id == Temporal_Vit_Boots)
+ getitem2(Temporal_Vit_Boots_, 1, 1, 0, 0, 0, 0, 0, 0);
+ else if (.@equip_id == Temporal_Dex_Boots)
+ getitem2(Temporal_Dex_Boots_, 1, 1, 0, 0, 0, 0, 0, 0);
+ else if (.@equip_id == Temporal_Luk_Boots)
+ getitem2(Temporal_Luk_Boots_, 1, 1, 0, 0, 0, 0, 0, 0);
+ close();
default:
mes("[Hugin's Craftsman]");
mes("This is not it! We need ^FF0000Advanced Temporal Boots^000000! The item ^0000FFwith a stat effect and without a slot^000000!");
- close;
+ close();
}
}
@@ -2688,67 +2737,67 @@ glast_01,210,270,0 script Hugin's Craftsman 4_F_JOB_BLACKSMITH,{
// Khalitzburg Knight Card cost 100 red coagulated spells or 5000 blue coagulated spells
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
glast_01,188,273,5 script White Knight#1a 4_WHITEKNIGHT,{
- disable_items;
+ disable_items();
mes("[White Knight]"); // custom
if (MaxWeight - Weight < 1000) {
mes("Your bag is too heavy. Reduce some weight and come back.");
- close;
+ close();
}
mes("I exchange you a White Knight Card for ^0000FF3000 Coagulated Spell^000000 or ^FF000070 Contaminated Magic^000000.");
mes("<ITEMLINK>White Knight Card<INFO>4608</INFO></ITEMLINK>");
- next;
- setarray .@item[0], Coagulated_Spell, Corrupted_Charm;
- setarray .@cost[0], 3000, 70;
+ next();
+ setarray(.@item[0], Coagulated_Spell, Corrupted_Charm);
+ setarray(.@cost[0], 3000, 70);
.@select = select("Cancel", "^0000FFUse Coagulated Spell^000000", "^FF0000Use Contaminated Magic^000000");
switch (.@select) {
case 1:
mes("[White Knight]");
mes("Come back any time.");
- close;
+ close();
case 2:
case 3:
- .@item = .@item[.@select-2];
- .@cost = .@cost[.@select-2];
+ .@item = .@item[.@select - 2];
+ .@cost = .@cost[.@select - 2];
if (countitem(.@item) < .@cost) {
mes("[White Knight]");
mesf("Requires ^0000FF%d %s^000000.", .@cost, getitemname(.@item));
- close;
+ close();
}
- delitem .@item, .@cost;
- getitem White_Knightage_Card, 1;
- close;
+ delitem(.@item, .@cost);
+ getitem(White_Knightage_Card, 1);
+ close();
}
}
glast_01,192,273,3 script Khalitzburg Knight#1a 4_F_KHALITZBURG,{
- disable_items;
+ disable_items();
mes("[Khalitzburg Knight]"); // custom
if (MaxWeight - Weight < 1000) {
mes("Your bag is too heavy. Reduce some weight and come back.");
- close;
+ close();
}
mes("I exchange you a Khalitzburg Knight Card for ^0000FF5000 Coagulated Spell^000000 or ^FF0000100 Contaminated Magic^000000.");
mes("<ITEMLINK>Khalitzburg Knight Card<INFO>4609</INFO></ITEMLINK>");
- next;
- setarray .@item[0], Coagulated_Spell, Corrupted_Charm;
- setarray .@cost[0], 5000, 100;
+ next();
+ setarray(.@item[0], Coagulated_Spell, Corrupted_Charm);
+ setarray(.@cost[0], 5000, 100);
.@select = select("Cancel", "^0000FFUse Coagulated Spell^000000", "^FF0000Use Contaminated Magic^000000");
switch (.@select) {
case 1:
mes("[Khalitzburg Knight]");
mes("Come back any time.");
- close;
+ close();
case 2:
case 3:
- .@item = .@item[.@select-2];
- .@cost = .@cost[.@select-2];
+ .@item = .@item[.@select - 2];
+ .@cost = .@cost[.@select - 2];
if (countitem(.@item) < .@cost) {
mes("[Khalitzburg Knight]");
mesf("Requires ^0000FF%d %s^000000.", .@cost, getitemname(.@item));
- close;
+ close();
}
- delitem .@item, .@cost;
- getitem Khali_Knightage_Card, 1;
- close;
+ delitem(.@item, .@cost);
+ getitem(Khali_Knightage_Card, 1);
+ close();
}
}
diff --git a/npc/re/instances/WolfchevLaboratory.txt b/npc/re/instances/WolfchevLaboratory.txt
index 51e2f8a06..3bbb74ad1 100644
--- a/npc/re/instances/WolfchevLaboratory.txt
+++ b/npc/re/instances/WolfchevLaboratory.txt
@@ -982,9 +982,9 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
mes "[Pudding]";
mes "Before! I need to check if this equipment can accept the power.";
next;
- specialeffect2 EF_SPHERE;
+ specialeffect(EF_SPHERE, AREA, playerattached());
progressbar "ffff00", 2;
- specialeffect2 EF_SUI_EXPLOSION;
+ specialeffect(EF_SUI_EXPLOSION, AREA, playerattached());
emotion e_sob;
mes "[Pudding]";
mes "Hm.... This equipment cannot accept the power of '^F2766EWill of Warrior^000000' or '^952420Thirst for Blood^000000'.";
@@ -1108,9 +1108,9 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
if (.@menu==2){ .@equip_card[3] = 0; }
else { .@equip_card[2] = 0; }
.@equip_item = getequipid(.@position);
- specialeffect EF_BEGINSPELL2, AREA, "Sorcerer#Bio4Reward";
+ specialeffect(EF_BEGINSPELL2, AREA, getnpcid("Sorcerer#Bio4Reward"));
progressbar "ffff00", 2;
- specialeffect2 EF_FROSTWEAPON;
+ specialeffect(EF_FROSTWEAPON, AREA, playerattached());
delitem Goast_Chill, 10;
delequip .@position;
getitem2 .@equip_item, 1, 1, .@refine_count, 0, .@equip_card[0], .@equip_card[1], .@equip_card[2], .@equip_card[3];
@@ -1303,7 +1303,7 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
setarray .@equip_card[0], getequipcardid(.@position,0),getequipcardid(.@position,1),getequipcardid(.@position,2),getequipcardid(.@position,3);
.@equip_card[(.@socket_type-1)] = .@enchant;
.@equip_item = getequipid(.@position);
- specialeffect EF_BEGINSPELL3, AREA, "Sorcerer#Bio4Reward";
+ specialeffect(EF_BEGINSPELL3, AREA, getnpcid("Sorcerer#Bio4Reward"));
progressbar "ffff00", 2;
if (.@socket_type == 3)
delitem Blood_Thirst, 10;
@@ -1311,7 +1311,7 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
delitem Will_Of_Warrior, 10;
delequip .@position;
if (.@enchant == 0) {
- specialeffect2 EF_SUI_EXPLOSION;
+ specialeffect(EF_SUI_EXPLOSION, AREA, playerattached());
emotion e_otl;
mes "[Pudding]";
mes "...Well....the equipment could not accept the power of "+((.@socket_type==3)?"'^952420Thirst for Blood^000000'":"'^F2766EWill of Warrior^000000'")+" and it got destroyed.";
@@ -1319,7 +1319,7 @@ lhz_cube,233,24,4 script Sorcerer#Bio4Reward 4_M_UMDANCEKID,{
enable_items;
end;
} else {
- specialeffect2 EF_FIREHIT;
+ specialeffect(EF_FIREHIT, AREA, playerattached());
getitem2 .@equip_item, 1, 1, .@refine_count, 0, .@equip_card[0], .@equip_card[1], .@equip_card[2], .@equip_card[3];
emotion e_ho;
mes "[Pudding]";
@@ -1608,42 +1608,42 @@ que_lhz,1,1,0 script #Eventctrl FAKE_NPC,{
end;
OnTimer1000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#01";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#01"));
specialeffect EF_BEGINASURA, "Human Guinea pig#01";
end;
OnTimer2000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#02";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#02"));
specialeffect EF_BEGINASURA, "Human Guinea pig#02";
end;
OnTimer3000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#03";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#03"));
specialeffect EF_BEGINASURA, "Human Guinea pig#03";
end;
OnTimer4000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#04";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#04"));
specialeffect EF_BEGINASURA, "Human Guinea pig#04";
end;
OnTimer5000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#05";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#05"));
specialeffect EF_BEGINASURA, "Human Guinea pig#05";
end;
OnTimer6000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#06";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#06"));
specialeffect EF_BEGINASURA, "Human Guinea pig#06";
end;
OnTimer7000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#07";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#07"));
specialeffect EF_BEGINASURA, "Human Guinea pig#07";
end;
OnTimer8000:
- specialeffect EF_SUI_EXPLOSION,AREA, "#08";
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid("#08"));
specialeffect EF_BEGINASURA, "Human Guinea pig#08";
stopnpctimer;
end;
@@ -1859,30 +1859,29 @@ lhz_dun04,151,276,3 script Researcher#memo 4_LGTSCIENCE,{
}
if (getpartyleader(getcharid(CHAR_ID_PARTY),2) == getcharid(CHAR_ID_CHAR)) {
.@instance = instance_create("Worsef", getcharid(CHAR_ID_PARTY));
- if (.@instance < 0) {
- mes "[Wolfchev]";
- mes "Hmm.. Lab entering system is a bit weird. Would wait for me to check the system?";
- } else {
- mes "[Wolfchev]";
- mes "Please hold on..";
- next;
- mes "Wolfchev starts to control certain gear.";
- next;
- progressbar "FF00FF", 2;
- if (instance_attachmap("1@lhz", .@instance) != "") {
- instance_set_timeout 14400, 300, .@instance;
- instance_init(.@instance);
- mes "[Wolfchev]";
- mes "Alright! I have marked lan entering system code as";
- mes "^0000ff"+ strcharinfo(PC_PARTY) +"^000000 party leader's name ^0000ff"+ strcharinfo(PC_NAME) +"^000000!!.";
- next;
- mes "[Wolfchev]";
- mes "Now, your party is free to pass the entrance.";
- } else {
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@lhz", .@instance) == "") {
+ mes("[Wolfchev]");
+ mes("Hmm.. Lab entering system is a bit weird. Would wait for me to check the system?");
instance_destroy(.@instance);
+ close();
}
+ instance_set_timeout 14400, 300, .@instance;
+ instance_init(.@instance);
}
- close;
+ mes("[Wolfchev]");
+ mes("Please hold on..");
+ next();
+ mes("Wolfchev starts to control certain gear.");
+ next();
+ progressbar("FF00FF", 2);
+ mes("[Wolfchev]");
+ mes("Alright! I have marked lan entering system code as");
+ mesf("^0000ff%s^000000 party leader's name ^0000ff%s^000000!!.", strcharinfo(PC_PARTY), strcharinfo(PC_NAME));
+ next();
+ mes("[Wolfchev]");
+ mes("Now, your party is free to pass the entrance.");
+ close();
} else {
mes "[Wolfchev]";
mes "You are not the ^0000ffLeader of the party^000000, are you? Please go get the leader.";
@@ -1932,7 +1931,7 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
pushpc 0, 10;
percentheal -5,0;
specialeffect EF_AUTOCOUNTER;
- specialeffect2 EF_BASH;
+ specialeffect(EF_BASH, AREA, playerattached());
mes "You have been wounded by laboratory entrance system attack.";
close;
} else {
@@ -2442,7 +2441,7 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
OnTimer63000:
for(.@i = 1; .@i < 7; .@i++) {
- specialeffect EF_SUI_EXPLOSION, AREA, instance_npcname("Valve#2_"+.@i+"");
+ specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid( instance_npcname("Valve#2_"+.@i+"")));
disablenpc instance_npcname("Valve#2_"+.@i+"");
}
'broken_pipes += 1;
@@ -2846,73 +2845,73 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
OnTimer1000:
mapannounce instance_mapname("1@lhz"),"Whisper: Who are you....",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Seyren Windsor#boss01");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Seyren Windsor#boss01")));
end;
OnTimer2000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Cecile Damon#boss02");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Cecile Damon#boss02")));
end;
OnTimer3000:
mapannounce instance_mapname("1@lhz"),"Whisper: Do not approach more...",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Gertie Wie#boss03");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Gertie Wie#boss03")));
end;
OnTimer4000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Eremes Guile#boss04");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Eremes Guile#boss04")));
end;
OnTimer5000:
mapannounce instance_mapname("1@lhz"),"Whisper: This is a very dangerous place..",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Trentini#boss05");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Trentini#boss05")));
end;
OnTimer6000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Chen Liu#boss06");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Chen Liu#boss06")));
end;
OnTimer7000:
mapannounce instance_mapname("1@lhz"),"Whisper: You won't go out alive....",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Alphochio Basil#boss07");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Alphochio Basil#boss07")));
end;
OnTimer8000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Flamel Emul#boss08");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Flamel Emul#boss08")));
end;
OnTimer9000:
mapannounce instance_mapname("1@lhz"),"Whisper: If you don't want to be a part of us....",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Randel Lawrence#boss09");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Randel Lawrence#boss09")));
end;
OnTimer10000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Celia Alde#boss10");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Celia Alde#boss10")));
end;
OnTimer11000:
mapannounce instance_mapname("1@lhz"),"Whisper: Leave now....",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Kathryne Keyron#boss11");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Kathryne Keyron#boss11")));
end;
OnTimer12000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Margaretha Sorin#boss12");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Margaretha Sorin#boss12")));
end;
OnTimer13000:
mapannounce instance_mapname("1@lhz"),"Whisper: Before this place is thoroughly filled with sorrow and pain....",bc_map,"0x7DCBF0";
- specialeffect EF_SPHERE,AREA,instance_npcname("Howard Alt-Eisen#boss13");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Howard Alt-Eisen#boss13")));
end;
OnTimer14000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Type_**Gren#boss14");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Type_**Gren#boss14")));
end;
OnTimer15000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Type_**Roke#boss15");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Type_**Roke#boss15")));
end;
OnTimer16000:
- specialeffect EF_SPHERE,AREA,instance_npcname("Type_**Dree#boss16");
+ specialeffect(EF_SPHERE, AREA, getnpcid(instance_npcname("Type_**Dree#boss16")));
end;
OnTimer17000:
diff --git a/npc/re/instances/ghost_palace.txt b/npc/re/instances/ghost_palace.txt
index 6e77db2f8..3e708dc57 100644
--- a/npc/re/instances/ghost_palace.txt
+++ b/npc/re/instances/ghost_palace.txt
@@ -35,7 +35,7 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{
if (BaseLevel < 120) {
mes("[Unpleasent Royal Guard]");
mes("Althought I need help with a task, you are not strong enough to assist me, noob~!");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("Come back after when you have done some training and are at least level 120!");
close();
@@ -50,7 +50,7 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{
mes("[Unpleasent Royal Guard]");
mes("Did the gate close?\r"
"Please enter the gate as soon as you can next time.");
- erasequest 1260;
+ erasequest(1260);
close();
}
mes("[Unpleasent Royal Guard]");
@@ -64,7 +64,7 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{
mes("This is a solo instance. Please form a solo party before continuing.");
close();
}
- if (getcharid(CHAR_ID_CHAR) != getpartyleader(.@party_id,2)) {
+ if (getcharid(CHAR_ID_CHAR) != getpartyleader(.@party_id, 2)) {
mes("[Unpleasent Royal Guard]");
mes("I'm looking for adventurers to help me!\r"
"I want to talk to the team leader, can I?");
@@ -72,68 +72,66 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{
}
mes("[Unpleasent Royal Guard]");
mes("I need some help, even from the likes of you.");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("In the middle of the battle the princess disappeared while I was guarding the palace.");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("You run ahead and i will catch up.\r"
"We must save her.");
- next;
+ next();
if (select("I will help.", "This is not a good time.") == 2) {
mes("[Unpleasent Royal Guard]");
mes("Even now all the royal guards are fighting and dying to the monsters.");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("We must save the princess no matter how much fear grips our hearts!");
close();
}
- .@instance = instance_create("Ghost Palace", .@party_id);
+ .@instance = instance_create(_("Ghost Palace"), .@party_id);
.@p_name$ = getpartyname(.@party_id);
- .@md_name$ = "Ghost Palace";
- if (.@instance < 0) {
- mesf("Party Name: %s", .@p_name$);
- mesf("Party Leader: %s", strcharinfo(PC_NAME));
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- close();
- }
- if (instance_attachmap("1@spa", .@instance) != "") {
+ .@md_name$ = _("Ghost Palace");
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@spa", .@instance) == "") {
+ mesf("Party Name: %s", .@p_name$);
+ mesf("Party Leader: %s", strcharinfo(PC_NAME));
+ mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
+ instance_destroy(.@instance);
+ close();
+ }
instance_set_timeout(3600, 300, .@instance);
instance_init(.@instance);
- if (!questprogress(1260)) setquest 1260;
- mes("[Unpleasent Royal Guard]");
- mes("Thank You..\r"
- "I will open the secret passage to ^0000FFGhost Palace.^000000\r"
- "Please be ready!");
- close();
- } else {
- instance_destroy(.@instance);
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- close();
+ if (!questprogress(1260))
+ setquest(1260);
}
+ mes("[Unpleasent Royal Guard]");
+ mes("Thank You..\r"
+ "I will open the secret passage to ^0000FFGhost Palace.^000000\r"
+ "Please be ready!");
+ close();
}
dali02,41,134,0 script Interdimensional Device::gpportal PORTAL,{
if (BaseLevel < 120) {
mes("[Unpleasent Royal Guard]");
mes("Althought I need help with a task, you are not strong enough to assist me, noob~!");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("Come back after when you have done some training and are at least level 120!");
close();
}
if (questprogress(1261)) {
if (questprogress(1261, PLAYTIME) == 2) {
- erasequest 1261;
+ erasequest(1261);
if (questprogress(1260))
- erasequest 1260;
+ erasequest(1260);
end;
}
mes("[Unpleasent Royal Guard]");
mes("The monsters that attacked the palace are wandering around the secret entrance. It would be very bad if they spotted us... Please wait until the time limit for re-entrance passed.");
close();
}
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2) && !questprogress(1260)) {
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2) && !questprogress(1260)) {
mes("[Unpleasent Royal Guard]");
mes("I'm looking for adventurers to help me!\r"
"I want to talk to the team leader, can I?");
@@ -141,11 +139,11 @@ dali02,41,134,0 script Interdimensional Device::gpportal PORTAL,{
}
mes("[Unpleasent Royal Guard]");
mes("I can see the secret passage into the Palace... Are you ready to save the princess?!");
- next;
+ next();
if (select("Enter", "Stop") == 2) {
mes("[Unpleasent Royal Guard]");
mes("Even now all the royal guards are fighting and dying to the monsters.");
- next;
+ next();
mes("[Unpleasent Royal Guard]");
mes("We must save the princess no matter how much fear grips our hearts!");
close();
@@ -155,8 +153,9 @@ dali02,41,134,0 script Interdimensional Device::gpportal PORTAL,{
close();
}
mapannounce("dali", sprintf(_$("%s of the party, %s, is entering the Ghost Palace."), strcharinfo(PC_NAME), getpartyname(getcharid(CHAR_ID_PARTY))), bc_map, C_SPRINGGREEN);
- if (!questprogress(1260)) setquest 1260;
- setquest 1261;
+ if (!questprogress(1260))
+ setquest(1260);
+ setquest(1261);
warp("1@spa", 198, 188);
close();
}
@@ -165,35 +164,35 @@ dali02,41,134,0 script Interdimensional Device::gpportal PORTAL,{
mes("[King]");
mes("You are hereby appointed as the personal guard to Princess Tiara. I trust your loyalty above all else.");
npctalk(_("You are hereby appointed as the personal guard to Princess Tiara. I trust your loyalty above all else."), instance_npcname("King#gp1"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("I will protect the Princess with my life.");
npctalk(_("I will protect the Princess with my life."), instance_npcname("Lurid Royal Guard#gp1"));
- next;
+ next();
mes("[King]");
mes("The marriage arrangements are going as planned. The prince is here to meet the princess.");
npctalk(_("The marriage arrangements are going as planned. The prince is here to meet the princess."), instance_npcname("King#gp1"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("...Yes, your majesty.");
npctalk(_("...Yes, your majesty."), instance_npcname("Lurid Royal Guard#gp1"));
- next;
+ next();
mes("[King]");
mes("My gods, there are monsters in the castle! Get rid of them now!");
npctalk(_("My gods, there are monsters in the castle! Get rid of them now!"), instance_npcname("King#gp1"));
close2();
- donpcevent instance_npcname("#gp1control")+"::OnStart";
+ donpcevent(instance_npcname("#gp1control")+"::OnStart");
end;
}
1@spa,1,1,1 script #gp1control HIDDEN_NPC,{
end;
OnStart:
- hideonnpc instance_npcname("Lurid Royal Guard#gp1");
- hideonnpc instance_npcname("King#gp1");
- sleep 1000;
+ hideonnpc(instance_npcname("Lurid Royal Guard#gp1"));
+ hideonnpc(instance_npcname("King#gp1"));
+ sleep(1000);
OnSummon:
- sleep 2000;
+ sleep(2000);
.@map$ = instance_mapname("1@spa");
areamonster(.@map$, 182, 190, 214, 214, _("Cursed Sentinel"), CURSED_SENTINEL, 2, instance_npcname("#gp1control")+"::OnMyMobDead");
areamonster(.@map$, 182, 190, 214, 214, _("Cursed Solider"), CURSED_SOLDIER, 2, instance_npcname("#gp1control")+"::OnMyMobDead");
@@ -203,16 +202,16 @@ OnMyMobDead:
end;
if ('gp1 < 2) {
++'gp1;
- donpcevent instance_npcname("#gp1control")+"::OnSummon";
+ donpcevent(instance_npcname("#gp1control")+"::OnSummon");
end;
}
mapannounce(instance_mapname("1@spa"), _("The passage on 2nd floor in the palace of the ghost is open."), bc_map, C_YELLOW);
- enablenpc instance_npcname("#gp1warp");
- disablenpc instance_npcname("#gp1control");
+ enablenpc(instance_npcname("#gp1warp"));
+ disablenpc(instance_npcname("#gp1control"));
end;
OnInstanceInit:
'gp1 = 0;
- disablenpc instance_npcname("#gp1warp");
+ disablenpc(instance_npcname("#gp1warp"));
end;
}
@@ -221,53 +220,53 @@ OnInstanceInit:
mes("[Lurid Royal Guard]");
mes("Your Highness, the King has invited a prince from a neighboring country to be your betrothed. Be ready to meet him...");
npctalk(_("Your Highness, the King has invited a prince from a neighboring country to be your betrothed. Be ready to meet him..."), instance_npcname("Lurid Royal Guard#gp2"));
- next;
+ next();
mes("[Princess Tiara]");
mes("If...if a marriage is arranged what should I do ?");
npctalk(_("If...if a marriage is arranged what should I do ?"), instance_npcname("Tiara Princess#gp2"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("The only thing I can do is protect you from physical harm.");
npctalk(_("The only thing I can do is protect you from physical harm."), instance_npcname("Lurid Royal Guard#gp2"));
- next;
+ next();
mes("[Princess Tiara]");
mes("Then, what can I do?");
npctalk(_("Then, what can I do?"), instance_npcname("Tiara Princess#gp2"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("......");
mes("You must decide that for yourself your highness...");
npctalk(_("You must decide that for yourself your highness..."), instance_npcname("Lurid Royal Guard#gp2"));
- next;
+ next();
mes("[Princess Tiara]");
mes("Would it be easier for you if I were married and sent off to another country?");
npctalk(_("Would it be easier for you if I were married and sent off to another country?"), instance_npcname("Tiara Princess#gp2"));
- next;
+ next();
cutin("", 255);
mes("[Lurid Royal Guard]");
mes("I will alway stand by you and protect you forever.");
npctalk(_("I will alway stand by you and protect you forever."), instance_npcname("Lurid Royal Guard#gp2"));
- next;
+ next();
mes("[Princess Tiara]");
mes("Monsters in the castle? Protect me!");
npctalk(_("Monsters in the castle? Protect me!"), instance_npcname("Tiara Princess#gp2"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("Step back, Let's go!");
npctalk(_("Step back, Let's go!"), instance_npcname("Lurid Royal Guard#gp2"));
close2();
- donpcevent instance_npcname("#gp2control")+"::OnStart";
+ donpcevent(instance_npcname("#gp2control")+"::OnStart");
end;
}
1@spa,1,1,1 script #gp2control HIDDEN_NPC,{
end;
OnStart:
- hideonnpc instance_npcname("Lurid Royal Guard#gp2");
- hideonnpc instance_npcname("Tiara Princess#gp2");
- sleep 1000;
+ hideonnpc(instance_npcname("Lurid Royal Guard#gp2"));
+ hideonnpc(instance_npcname("Tiara Princess#gp2"));
+ sleep(1000);
OnSummon:
- sleep 2000;
+ sleep(2000);
.@map$ = instance_mapname("1@spa");
areamonster(.@map$, 143, 96, 94, 143, _("Broken Mind"), BROKEN_MIND, 3, instance_npcname("#gp2control")+"::OnMyMobDead");
areamonster(.@map$, 143, 96, 94, 143, _("Floating Word"), FLOATING_WORD, 4, instance_npcname("#gp2control")+"::OnMyMobDead");
@@ -277,11 +276,11 @@ OnMyMobDead:
if (mobcount(instance_mapname("1@spa"), instance_npcname("#gp2control")+"::OnMyMobDead"))
end;
mapannounce(instance_mapname("1@spa"), _("The passage on the 3rd floor of the palace is open."), bc_map, C_YELLOW);
- enablenpc instance_npcname("#gp2warp");
- disablenpc instance_npcname("#gp2control");
+ enablenpc(instance_npcname("#gp2warp"));
+ disablenpc(instance_npcname("#gp2control"));
end;
OnInstanceInit:
- disablenpc instance_npcname("#gp2warp");
+ disablenpc(instance_npcname("#gp2warp"));
end;
}
@@ -289,29 +288,29 @@ OnInstanceInit:
mes("[King]");
mes("It was you who brought the monsters here, you want to get rid of me and have the princess for yourself?");
npctalk(_("It was you who brought the monsters here, you want to get rid of me and have the princess for yourself?"), instance_npcname("King#gp3"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("It's a trap, you should trust me, your majesty!");
npctalk(_("It's a trap, you should trust me, your majesty!"), instance_npcname("Lurid Royal Guard#gp3"));
- next;
+ next();
mes("[King]");
mes("Shut up! You're betrayed me ! I trusted you... you must pay for your disgrace.");
npctalk(_("Shut up! You're betrayed me ! I trusted you... you must pay for your disgrace."), instance_npcname("King#gp3"));
- next;
+ next();
mes("[King]");
mes("You will suffer for the rest of your life.");
npctalk(_("You will suffer for the rest of your life."), instance_npcname("King#gp3"));
close2();
- donpcevent instance_npcname("#gp3control")+"::OnStart";
+ donpcevent(instance_npcname("#gp3control")+"::OnStart");
end;
}
1@spa,54,28,0 script #gp3warp WARPNPC,1,1,{
- if (!'gp5)
+ if (!'gp5) {
warp("1@spa", 218, 186);
- else {
+ } else {
if (questprogress(40024))
- completequest 40024;
+ completequest(40024);
mes("It is time to leave Palace of the ghost.\r"
"Everything is completed.\r"
"Everything will be vanished...");
@@ -332,7 +331,7 @@ OnInstanceInit:
1@spa,35,56,1 script Ominous Voice#gp3 4_TRACE,{
end;
OnStart:
- initnpctimer;
+ initnpctimer();
end;
OnTimer3000:
npctalk(_("Oh, faithful royal guard, you are trapped."));
@@ -356,32 +355,32 @@ OnTimer21000:
npctalk(_("Kukuku... What do you want boy?"));
end;
OnTimer24000:
- stopnpctimer;
- hideonnpc instance_npcname("Ominous Voice#gp3");
- hideonnpc instance_npcname("Lurid Royal Guard#gp3");
- donpcevent instance_npcname("#gp3control")+"::OnSummon";
+ stopnpctimer();
+ hideonnpc(instance_npcname("Ominous Voice#gp3"));
+ hideonnpc(instance_npcname("Lurid Royal Guard#gp3"));
+ donpcevent(instance_npcname("#gp3control")+"::OnSummon");
end;
}
1@spa,1,1,1 script #gp3control HIDDEN_NPC,{
end;
OnStart:
- hideonnpc instance_npcname("King#gp3");
- hideonnpc instance_npcname("Soldier#gp3_1");
- hideonnpc instance_npcname("Soldier#gp3_2");
- hideonnpc instance_npcname("Soldier#gp3_3");
- hideonnpc instance_npcname("Captain of the Guard#gp3");
- donpcevent instance_npcname("Ominous Voice#gp3")+"::OnStart";
+ hideonnpc(instance_npcname("King#gp3"));
+ hideonnpc(instance_npcname("Soldier#gp3_1"));
+ hideonnpc(instance_npcname("Soldier#gp3_2"));
+ hideonnpc(instance_npcname("Soldier#gp3_3"));
+ hideonnpc(instance_npcname("Captain of the Guard#gp3"));
+ donpcevent(instance_npcname("Ominous Voice#gp3")+"::OnStart");
end;
OnSummon:
- initnpctimer;
+ initnpctimer();
.@map$ = instance_mapname("1@spa");
'talkid[0] = areamonster(.@map$, 61, 63, 24, 24, _("Cursed Memory"), CURSED_MEMORY, 2 + 'gp3, instance_npcname("#gp3control")+"::OnMyMobDead");
'talkid[1] = areamonster(.@map$, 61, 63, 24, 24, _("Colorless Vow"), COLORLESS_VOW, 3 + 'gp3, instance_npcname("#gp3control")+"::OnMyMobDead");
'talkid[2] = areamonster(.@map$, 61, 63, 24, 24, _("Old Friendship"), OLD_FRIENDSHIP, 2 + 'gp3, instance_npcname("#gp3control")+"::OnMyMobDead");
end;
OnTimer2000:
- stopnpctimer;
+ stopnpctimer();
unittalk('talkid[0], _("Faithful Guards"));
unittalk('talkid[1], _("Run!"));
unittalk('talkid[2], _("Being framed..."));
@@ -390,21 +389,21 @@ OnMyMobDead:
if (mobcount(instance_mapname("1@spa"), instance_npcname("#gp3control")+"::OnMyMobDead"))
end;
if (!'gp3) {
- mapannounce instance_mapname("1@spa"), "The passage on the 4rd floor of the palace is open.", bc_map, C_YELLOW;
- enablenpc instance_npcname("#gp3warp");
- donpcevent instance_npcname("#gp4control")+"::OnSummon";
- disablenpc instance_npcname("#gp1warp");
+ mapannounce(instance_mapname("1@spa"), _("The passage on the 4rd floor of the palace is open."), bc_map, C_YELLOW);
+ enablenpc(instance_npcname("#gp3warp"));
+ donpcevent(instance_npcname("#gp4control")+"::OnSummon");
+ disablenpc(instance_npcname("#gp1warp"));
}
++'gp3;
- if ('gp3 < 5)
- donpcevent instance_npcname("#gp3control")+"::OnSummon";
- else {
- stopnpctimer;
- disablenpc instance_npcname("#gp3control");
+ if ('gp3 < 5) {
+ donpcevent(instance_npcname("#gp3control")+"::OnSummon");
+ } else {
+ stopnpctimer();
+ disablenpc(instance_npcname("#gp3control"));
}
end;
OnInstanceInit:
- disablenpc instance_npcname("#gp3warp");
+ disablenpc(instance_npcname("#gp3warp"));
'gp3 = 0;
end;
}
@@ -413,26 +412,26 @@ OnInstanceInit:
mes("[Lurid Royal Guard]");
mes("Where is Princess Tiara?");
npctalk(_("Where is Princess Tiara?"), instance_npcname("Lurid Royal Guard#gp4"));
- next;
+ next();
mes("[Visiting Prince]");
mes("You are too late... but you brought what I was looking for. Thanks for your help.");
npctalk(_("You are too late... but you brought what I was looking for. Thanks for your help."), instance_npcname("Visiting Prince#gp4"));
- next;
+ next();
mes("[Visiting Prince]");
mes("Cursed Thanatos Magic Trace! Are you ready to have a new master?");
npctalk(_("Cursed Thanatos Magic Trace! Are you ready to have a new master?"), instance_npcname("Visiting Prince#gp4"));
- next;
+ next();
cutin("tartanos", 3);
mes("[Thanatos Magic Trace]");
mes("How dare you!");
npctalk(_("How dare you!"), instance_npcname("Thanatos Magic Trace#gp4"));
- next;
+ next();
mes("[Visiting Prince]");
mes("Aah, aah!!!");
npctalk(_("Aah, aah!!!"), instance_npcname("Visiting Prince#gp4"));
close2();
cutin("", 255);
- donpcevent instance_npcname("#gp4control")+"::OnBoss";
+ donpcevent(instance_npcname("#gp4control")+"::OnBoss");
end;
}
@@ -442,56 +441,56 @@ OnStart:
end;
OnSummon:
.@map$ = instance_mapname("1@spa");
- areamonster(.@map$, 182, 217, 214, 188, _("Cursed Sentinel"), CURSED_SENTINEL, rand(2,3), instance_npcname("#gp4control")+"::OnMyMobDead");
- areamonster(.@map$, 182, 217, 214, 188, _("Sweet Slaughter"), SWEET_SLAUGHTER, rand(2,3), instance_npcname("#gp4control")+"::OnMyMobDead");
+ areamonster(.@map$, 182, 217, 214, 188, _("Cursed Sentinel"), CURSED_SENTINEL, rand(2, 3), instance_npcname("#gp4control")+"::OnMyMobDead");
+ areamonster(.@map$, 182, 217, 214, 188, _("Sweet Slaughter"), SWEET_SLAUGHTER, rand(2, 3), instance_npcname("#gp4control")+"::OnMyMobDead");
end;
OnMyMobDead:
if (mobcount(instance_mapname("1@spa"), instance_npcname("#gp4control")+"::OnMyMobDead"))
end;
++'gp4;
if ('gp4 > 3)
- donpcevent instance_npcname("#gp4control")+"::OnStory";
+ donpcevent(instance_npcname("#gp4control")+"::OnStory");
else
- donpcevent instance_npcname("#gp4control")+"::OnSummon";
+ donpcevent(instance_npcname("#gp4control")+"::OnSummon");
end;
OnStory:
for(.@i = 1; .@i <= 4; ++.@i)
- enablenpc instance_npcname("Soldier's Corpse#gp4_"+.@i);
- enablenpc instance_npcname("Captain's Corpse#gp4");
- enablenpc instance_npcname("King's Corpse#gp4");
- enablenpc instance_npcname("Lurid Royal Guard#gp4");
- enablenpc instance_npcname("Thanatos Magic Trace#gp4");
- enablenpc instance_npcname("Visiting Prince#gp4");
+ enablenpc(instance_npcname("Soldier's Corpse#gp4_"+.@i));
+ enablenpc(instance_npcname("Captain's Corpse#gp4"));
+ enablenpc(instance_npcname("King's Corpse#gp4"));
+ enablenpc(instance_npcname("Lurid Royal Guard#gp4"));
+ enablenpc(instance_npcname("Thanatos Magic Trace#gp4"));
+ enablenpc(instance_npcname("Visiting Prince#gp4"));
end;
OnBoss:
for(.@i = 1; .@i <= 4; ++.@i)
- hideonnpc instance_npcname("Soldier's Corpse#gp4_"+.@i);
- hideonnpc instance_npcname("Captain's Corpse#gp4");
- hideonnpc instance_npcname("King's Corpse#gp4");
- hideonnpc instance_npcname("Lurid Royal Guard#gp4");
- hideonnpc instance_npcname("Thanatos Magic Trace#gp4");
- hideonnpc instance_npcname("Visiting Prince#gp4");
- sleep 1000;
+ hideonnpc(instance_npcname("Soldier's Corpse#gp4_"+.@i));
+ hideonnpc(instance_npcname("Captain's Corpse#gp4"));
+ hideonnpc(instance_npcname("King's Corpse#gp4"));
+ hideonnpc(instance_npcname("Lurid Royal Guard#gp4"));
+ hideonnpc(instance_npcname("Thanatos Magic Trace#gp4"));
+ hideonnpc(instance_npcname("Visiting Prince#gp4"));
+ sleep(1000);
monster(instance_mapname("1@spa"), 197, 218, _("Torturous Redeemer"), TORTUROUS_REDEEMER, 1, instance_npcname("#gp4control")+"::OnBossDead");
end;
OnBossDead:
monster(instance_mapname("1@spa"), 197, 180, _("Sweet Slaughter"), SWEET_SLAUGHTER, 1, instance_npcname("#gp4control")+"::OnMobDead");
end;
OnMobDead:
- mapannounce instance_mapname("1@spa"), "The passage on the 5th floor of the palace is open.", bc_map, C_YELLOW;
- enablenpc instance_npcname("#gp4warp");
- donpcevent instance_npcname("#gp5control")+"::OnStart";
- disablenpc instance_npcname("#gp4control");
+ mapannounce(instance_mapname("1@spa"), _("The passage on the 5th floor of the palace is open."), bc_map, C_YELLOW);
+ enablenpc(instance_npcname("#gp4warp"));
+ donpcevent(instance_npcname("#gp5control")+"::OnStart");
+ disablenpc(instance_npcname("#gp4control"));
end;
OnInstanceInit:
- disablenpc instance_npcname("#gp4warp");
+ disablenpc(instance_npcname("#gp4warp"));
for(.@i = 1; .@i <= 4; ++.@i)
- disablenpc instance_npcname("Soldier's Corpse#gp4_"+.@i);
- disablenpc instance_npcname("Captain's Corpse#gp4");
- disablenpc instance_npcname("King's Corpse#gp4");
- disablenpc instance_npcname("Lurid Royal Guard#gp4");
- disablenpc instance_npcname("Thanatos Magic Trace#gp4");
- disablenpc instance_npcname("Visiting Prince#gp4");
+ disablenpc(instance_npcname("Soldier's Corpse#gp4_"+.@i));
+ disablenpc(instance_npcname("Captain's Corpse#gp4"));
+ disablenpc(instance_npcname("King's Corpse#gp4"));
+ disablenpc(instance_npcname("Lurid Royal Guard#gp4"));
+ disablenpc(instance_npcname("Thanatos Magic Trace#gp4"));
+ disablenpc(instance_npcname("Visiting Prince#gp4"));
'gp4 = 0;
end;
}
@@ -500,35 +499,35 @@ OnInstanceInit:
mes("[Princess Tiara]");
mes("You kept your promise.");
npctalk(_("You kept your promise."), instance_npcname("Tiara Princess#gp5"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("princess!");
npctalk(_("princess"), instance_npcname("Lurid Royal Guard#gp5"));
- next;
+ next();
cutin("npc-tiara", 3);
mes("[Princess Tiara]");
mes("Thank you..now I can rest at beside you...");
npctalk(_("Thank you..now I can rest at beside you..."), instance_npcname("Tiara Princess#gp5"));
- next;
+ next();
mes("[Lurid Royal Guard]");
mes("No..NO!!!!!!");
npctalk(_("No..NO!!!!!!"), instance_npcname("Lurid Royal Guard#gp5"));
- next;
+ next();
mes("[The Voice of Princess Tiara]");
mes("I want to be with you forever in peace...forever...");
npctalk(_("I want to be with you forever in peace...forever..."), instance_npcname("Tiara Princess#gp5"));
- next;
+ next();
cutin("b-tiara", 3);
mes("[Lurid Royal Guard]");
mes("no.....Ahh ahh ahh!!!~!");
npctalk(_("no.....Ahh ahh ahh!!!~!"), instance_npcname("Lurid Royal Guard#gp5"));
- next;
+ next();
mes("[The Voice of Princess Tiara]");
mes("I love you...");
npctalk(_("I love you..."), instance_npcname("Tiara Princess#gp5"));
close2();
cutin("", 255);
- donpcevent instance_npcname("#gp5control")+"::OnStart2";
+ donpcevent(instance_npcname("#gp5control")+"::OnStart2");
end;
}
@@ -537,63 +536,63 @@ OnInstanceInit:
mes("[Lurid Royal Guard]");
mes("Are you satisfied..? Thanatos Magic Trace?");
npctalk(_("Are you satisfied..? Thanatos Magic Trace?"), instance_npcname("Sakray#gp5"));
- next;
+ next();
mes("[Thanatos Magic Trace]");
mes("I need more blood..Sakray, offer me his blood.");
npctalk(_("I need more blood..Sakray, offer me his blood."), instance_npcname("Thanatos Magic Trace#gp5"));
- next;
+ next();
mes("[Sakray]");
mes("Okay, that is good. A traveler.\r"
"Did you see?");
npctalk(_("Okay, that is good. A traveler. Did you see?"), instance_npcname("Sakray#gp5"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("Sakray, What do you want sympathy? Or is it a trap?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Sakray, What do you want sympathy? Or is it a trap?"));
- next;
+ next();
mes("[Sakray]");
mes("Non...I did not need to make an effort to catch a novice.");
npctalk(_("Non...I did not need to make an effort to catch a novice."), instance_npcname("Sakray#gp5"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("If so... then why...?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("If so... then why...?"));
- next;
+ next();
cutin("cry-b", 3);
mes("[Sakray]");
mes("I wanted to get rid of a piece of humanity inside of me through you.");
npctalk(_("I wanted to get rid of a piece of humanity inside of me through you."), instance_npcname("Sakray#gp5"));
- next;
+ next();
mes("[Sakray]");
mes("I am quite satisfied with the result.");
- next;
+ next();
mes("[Thanatos Magic Trace]");
mes("Sakray, offer the blood to me now!");
npctalk(_("Sakray, offer the blood to me now!"), instance_npcname("Thanatos Magic Trace#gp5"));
- next;
+ next();
mes("[Sakray]");
mes("If you were me, what would you do?");
- next;
+ next();
mes("[Sakray]");
mes("Can you set yourself free from this curse?");
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("...");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("..."));
- next;
+ next();
mes("[Sakray]");
mes("Heh heh... I will keep watching you until the day you grow up enough.");
- next;
+ next();
mes("[Sakray]");
mes("I am willing to hunt you later for Thanatos.");
- next;
+ next();
cutin("", 255);
mes("[Sakray]");
mes("Farewell then.");
close2();
- donpcevent instance_npcname("#gp5control")+"::OnEnd";
- hideonnpc instance_npcname("Sakray#gp5");
- hideonnpc instance_npcname("Thanatos Magic Trace#gp5");
+ donpcevent(instance_npcname("#gp5control")+"::OnEnd");
+ hideonnpc(instance_npcname("Sakray#gp5"));
+ hideonnpc(instance_npcname("Thanatos Magic Trace#gp5"));
end;
}
@@ -601,25 +600,25 @@ OnInstanceInit:
end;
OnStart:
stopnpctimer instance_npcname("#gp3control");
- disablenpc instance_npcname("#gp3control");
- killmonster instance_mapname("1@spa"), "All";
- disablenpc instance_npcname("#gp3warp");
- enablenpc instance_npcname("Lurid Royal Guard#gp5");
- enablenpc instance_npcname("Tiara Princess#gp5");
+ disablenpc(instance_npcname("#gp3control"));
+ killmonster(instance_mapname("1@spa"), "All");
+ disablenpc(instance_npcname("#gp3warp"));
+ enablenpc(instance_npcname("Lurid Royal Guard#gp5"));
+ enablenpc(instance_npcname("Tiara Princess#gp5"));
end;
OnStart2:
- hideonnpc instance_npcname("Lurid Royal Guard#gp5");
- hideonnpc instance_npcname("Tiara Princess#gp5");
- sleep 2000;
+ hideonnpc(instance_npcname("Lurid Royal Guard#gp5"));
+ hideonnpc(instance_npcname("Tiara Princess#gp5"));
+ sleep(2000);
OnSummon:
- initnpctimer;
+ initnpctimer();
.@map$ = instance_mapname("1@spa");
- 'talkid[0] = areamonster(.@map$, 61, 63, 24, 24, _("Forgotten Name"), FORGOTTEN_NAME, rand(1,2), instance_npcname("#gp5control")+"::OnMyMobDead");
+ 'talkid[0] = areamonster(.@map$, 61, 63, 24, 24, _("Forgotten Name"), FORGOTTEN_NAME, rand(1, 2), instance_npcname("#gp5control")+"::OnMyMobDead");
'talkid[1] = areamonster(.@map$, 61, 63, 24, 24, _("Colorless Vow"), COLORLESS_VOW, 2, instance_npcname("#gp5control")+"::OnMyMobDead");
- 'talkid[2] = areamonster(.@map$, 61, 63, 24, 24, _("Sweet Slaughter"), SWEET_SLAUGHTER, rand(1,2), instance_npcname("#gp5control")+"::OnMyMobDead");
+ 'talkid[2] = areamonster(.@map$, 61, 63, 24, 24, _("Sweet Slaughter"), SWEET_SLAUGHTER, rand(1, 2), instance_npcname("#gp5control")+"::OnMyMobDead");
end;
OnTimer2000:
- stopnpctimer;
+ stopnpctimer();
unittalk('talkid[0], _("What is this..??"));
unittalk('talkid[1], _("Wake up! look at us... We are monsters?"));
unittalk('talkid[2], _("Sakray killed the princess!"));
@@ -629,51 +628,51 @@ OnMyMobDead:
end;
++'gp5;
if ('gp5 > 2)
- donpcevent instance_npcname("#gp5control")+"::OnStory";
+ donpcevent(instance_npcname("#gp5control")+"::OnStory");
else
- donpcevent instance_npcname("#gp5control")+"::OnSummon";
+ donpcevent(instance_npcname("#gp5control")+"::OnSummon");
end;
OnBossDead:
- enablenpc instance_npcname("Sakray#gp5");
- enablenpc instance_npcname("Thanatos Magic Trace#gp5");
+ enablenpc(instance_npcname("Sakray#gp5"));
+ enablenpc(instance_npcname("Thanatos Magic Trace#gp5"));
end;
OnStory:
- stopnpctimer;
+ stopnpctimer();
'BossID = monster(instance_mapname("1@spa"), 44, 47, _("Torturous Redeemer"), E_TORTUROUS_REDEEMER, 1, instance_npcname("#gp5control")+"::OnBossDead");
unittalk('BossID, _("Thanatos Magic Trace! I will destroy you if I can't have you... Oh no! How could this be?"));
- sleep 3000;
- unitkill 'BossID;
+ sleep(3000);
+ unitkill('BossID);
end;
OnEnd:
- hideoffnpc instance_npcname("Voice of Princess Tiara");
- hideoffnpc instance_npcname("Voice of Sakray");
- hideoffnpc instance_npcname("Thanatos Magic Trace");
+ hideoffnpc(instance_npcname("Voice of Princess Tiara"));
+ hideoffnpc(instance_npcname("Voice of Sakray"));
+ hideoffnpc(instance_npcname("Thanatos Magic Trace"));
npctalk(_("What can I do for you?"), instance_npcname("Voice of Princess Tiara"));
- sleep 3000;
+ sleep(3000);
npctalk(_("I will always stand by you. Please reset beside me."), instance_npcname("Voice of Sakray"));
- sleep 3000;
+ sleep(3000);
npctalk(_("Your soul is mine until you find the blood that satisfies me.."), instance_npcname("Thanatos Magic Trace"));
- sleep 3000;
+ sleep(3000);
npctalk(_("Reset in the shadow with me."), instance_npcname("Voice of Sakray"));
- sleep 3000;
+ sleep(3000);
npctalk(_("In the dark forever..."), instance_npcname("Voice of Sakray"));
- sleep 3000;
+ sleep(3000);
mapannounce(instance_mapname("1@spa"), _("It is time to leave the Ghost Palace."), bc_map, C_YELLOW);
- enablenpc instance_npcname("King#gpend");
- enablenpc instance_npcname("#gp3warp");
- hideonnpc instance_npcname("Voice of Princess Tiara");
- hideonnpc instance_npcname("Voice of Sakray");
- hideonnpc instance_npcname("Thanatos Magic Trace");
+ enablenpc(instance_npcname("King#gpend"));
+ enablenpc(instance_npcname("#gp3warp"));
+ hideonnpc(instance_npcname("Voice of Princess Tiara"));
+ hideonnpc(instance_npcname("Voice of Sakray"));
+ hideonnpc(instance_npcname("Thanatos Magic Trace"));
end;
OnInstanceInit:
- disablenpc instance_npcname("Lurid Royal Guard#gp5");
- disablenpc instance_npcname("Tiara Princess#gp5");
- disablenpc instance_npcname("Thanatos Magic Trace#gp5");
- disablenpc instance_npcname("Sakray#gp5");
- disablenpc instance_npcname("King#gpend");
- hideonnpc instance_npcname("Voice of Princess Tiara");
- hideonnpc instance_npcname("Voice of Sakray");
- hideonnpc instance_npcname("Thanatos Magic Trace");
+ disablenpc(instance_npcname("Lurid Royal Guard#gp5"));
+ disablenpc(instance_npcname("Tiara Princess#gp5"));
+ disablenpc(instance_npcname("Thanatos Magic Trace#gp5"));
+ disablenpc(instance_npcname("Sakray#gp5"));
+ disablenpc(instance_npcname("King#gpend"));
+ hideonnpc(instance_npcname("Voice of Princess Tiara"));
+ hideonnpc(instance_npcname("Voice of Sakray"));
+ hideonnpc(instance_npcname("Thanatos Magic Trace"));
'gp5 = 0;
end;
}
@@ -682,34 +681,34 @@ OnInstanceInit:
mes("[King]");
mes("Hey there, are you alive?\r"
"I did not expect to meet someone alive");
- next;
+ next();
mes("[King]");
mes("Do you possibly have ^009900Gray Piece^000000?\r"
"Can you give it to me?\r"
"The old memory of faithful royal guard,\r"
"the memory of everyone he loved becomes broken pieces and are contained inside of them.");
- next;
+ next();
mes("[King]");
mes("Will you give ^009900Gray Piece^000000 to me?\r"
"The guilt is eating my soul.\r"
"My soul is stuck in ghost palace.");
- next;
+ next();
mes("[King]");
mes("I am collecting Sakray's abandoned memories from these shards.");
- next;
+ next();
mes("[King]");
mes("If you give any Gray Shards to me, I can make equipment for you.");
- next;
+ next();
mes("[King]");
mes("The cursed knight...\r"
"Please help me save the soul of Sakray.");
- next;
+ next();
setarray(.@items_list,
- Thanos_Sword, Thanos_Great_Sword, Thanos_Spear, Thanos_Long_Spear, Thanos_Staff, Thanos_Rod, Thanos_Bow,
- Thanos_Dagger, Thanos_Katar, Thanos_Knuckle, Thanos_Hammer, Thanos_Axe, Thanos_Violin, Thanos_Whip, Shield_Of_Gray,
- Armor_Of_Gray, Gray_Robe, Cloak_Of_Gray, Boots_Of_Gray, Gray_Helmet);
+ Thanos_Sword, Thanos_Great_Sword, Thanos_Spear, Thanos_Long_Spear, Thanos_Staff, Thanos_Rod, Thanos_Bow,
+ Thanos_Dagger, Thanos_Katar, Thanos_Knuckle, Thanos_Hammer, Thanos_Axe, Thanos_Violin, Thanos_Whip, Shield_Of_Gray,
+ Armor_Of_Gray, Gray_Robe, Cloak_Of_Gray, Boots_Of_Gray, Gray_Helmet);
- setarray .@cost, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 100, 100, 100, 100, 100, 100;
+ setarray(.@cost, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 100, 100, 100, 100, 100, 100);
.@menulist$ = "";
for (.@i = 0; .@i < getarraysize(.@items_list); ++.@i)
.@menulist$ += getitemname(.@items_list[.@i])+":";
@@ -721,19 +720,19 @@ OnInstanceInit:
"I believe collecting Gray Shards is the only method to save him.");
close();
}
- next;
+ next();
mes("[King]");
mesf("to make a ^FF0000%s^000000 \r"
"I need %d ^009900Gray Shard^000000", getitemname(.@items_list[.@choice]), .@cost[.@choice]);
- switch (select("Cancel", "hand over "+.@cost[.@choice]+" Gray Shard.")) {
+ switch (select("Cancel", sprintf(_$("hand over %d Gray Shard."), .@cost[.@choice]))) {
case 1:
- next;
+ next();
mes("[King]");
mes("Someday, Sakray will get out of curse for sure. I believe");
- next;
+ next();
break;
case 2:
- next;
+ next();
if (countitem(Gray_Shard) < .@cost[.@choice]) {
mes("[King]");
mes("You don't have enough Gray Shards.");
@@ -743,20 +742,20 @@ OnInstanceInit:
mes("[King]");
mesf("I will make a ^FF0000%s^000000 \r"
"with %d ^009900Gray Shard^000000", getitemname(.@items_list[.@choice]), .@cost[.@choice]);
- next;
+ next();
mes("[King]");
mes("You see a light through the folded hands of the king and it gradually takes on a shape.");
- next;
+ next();
mes("[King]");
mesf("All right, it is done.\r"
"Take this ^FF0000%s.^000000\r"
"Use it to confront Sakray and Thanatos.", getitemname(.@items_list[.@choice]));
- next;
+ next();
mes("[King]");
mes("The power requires a sacrifice.\r"
"Please be careful...");
delitem(Gray_Shard, .@cost[.@choice]);
- getitem .@items_list[.@choice], 1;
+ getitem(.@items_list[.@choice], 1);
close();
}
}
@@ -766,27 +765,33 @@ OnInstanceInit:
1@spa,198,201,1 script Lurid Royal Guard#gp1 4_M_SAKRAYROYAL,{
end;
}
+
1@spa,197,217,0 warp #gp1warp 1,1,1@spa,114,120
// 2nd floor npc's
1@spa,135,125,3 script Tiara Princess#gp2 4_F_MAYSEL,{
end;
}
+
1@spa,117,137,0 warp #gp2warp 1,1,1@spa,60,43
// 3rd floor npc's
1@spa,30,58,5 script Lurid Royal Guard#gp3 4_M_SAKRAY_TIED,{
end;
}
+
1@spa,28,52,0 script Captain of the Guard#gp3 4_M_KY_KNT,{
end;
}
+
1@spa,30,52,0 script Soldier#gp3_1 4_M_KY_SOLD,{
end;
}
+
1@spa,34,53,1 script Soldier#gp3_2 4_M_CRU_SOLD,{
end;
}
+
1@spa,25,53,0 script Soldier#gp3_3 4_M_CRU_SOLD,{
end;
}
@@ -795,43 +800,54 @@ OnInstanceInit:
1@spa,201,198,1 script Soldier's Corpse#gp4_1 4_M_DIEMAN,{
end;
}
+
1@spa,191,207,0 script Soldier's Corpse#gp4_2 4_M_DIEMAN,{
end;
}
+
1@spa,206,209,0 script Soldier's Corpse#gp4_3 4_M_DIEMAN,{
end;
}
+
1@spa,189,193,0 script Soldier's Corpse#gp4_4 4_M_DIEMAN,{
end;
}
+
1@spa,211,194,4 script Captain's Corpse#gp4 4_M_LIEMAN,{
end;
}
+
1@spa,194,214,5 script King's Corpse#gp4 4_M_TRISTAN,{
end;
}
+
1@spa,197,218,5 script Visiting Prince#gp4 4_M_KNIGHT_SILVER,{
end;
}
+
1@spa,197,218,0 script Thanatos Magic Trace#gp4 HIDDEN_WARP_NPC,{
end;
}
+
1@spa,178,186,0 warp #gp4warp 1,1,1@spa,30,57
// 5th floor npc's
1@spa,60,43,3 script Tiara Princess#gp5 4_F_MAYSEL,{
end;
}
+
1@spa,40,44,0 script Thanatos Magic Trace#gp5 HIDDEN_WARP_NPC,{
end;
}
+
1@spa,40,46,0 script Voice of Princess Tiara CLEAR_NPC,{
end;
}
+
1@spa,42,43,0 script Voice of Sakray CLEAR_NPC,{
end;
}
+
1@spa,40,41,0 script Thanatos Magic Trace CLEAR_NPC,{
end;
}
-
diff --git a/npc/re/instances/octopus_cave.txt b/npc/re/instances/octopus_cave.txt
index b134742c9..ffcf0a9fe 100644
--- a/npc/re/instances/octopus_cave.txt
+++ b/npc/re/instances/octopus_cave.txt
@@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
-//= Copyright (C) 2013-2016 Hercules Dev Team
+//= Copyright (C) 2013-2018 Hercules Dev Team
//= Copyright (C) Euphy
//= Copyright (C) Muad_Dib
//=
@@ -37,89 +37,87 @@
mal_dun01,151,235,5 script Starfish 4_ASTER,{
.@party_id = getcharid(CHAR_ID_PARTY);
- .@md_name$ = "Octopus Cave";
+ .@md_name$ = _("Octopus Cave");
if (!.@party_id) {
mes("[Starfish]");
mes("You alone is powerless, hehe! Better get someone to help you out. Make a party, and come back later.");
- close;
+ close();
}
if (getcharid(CHAR_ID_CHAR) != getpartyleader(.@party_id, 2)) {
mes("[Starfish]");
mes("Where is your leader, hehe. I don't talk to some random people. Bring your boss to me.");
- close;
+ close();
}
mes("[Starfish]");
mes("I am guarding here, hehe! It is just roughly blocked for now. But someday this cave must be sealed forever, hehe!");
- next;
- while(1) {
+ next();
+ while (true) {
switch (select("Ask what's going on.", "Ask to open the gate.", "Go to other location.")) {
case 1:
mes("[Starfish]");
mes("Lately, our Starfish lady is suffering with some issues, ooh ooh. Something bad happen in this peaceful place, hehe!");
- next;
+ next();
mes("[Starfish]");
mes("Weird looking limbs came out from the hole there, tried to kidnap our lady Starfish. Ooh Ooh.");
- next;
+ next();
mes("[Starfish]");
mes("It seems those limbs belong to that ugly octopus. That monster should be taken care of,\r"
"but it's hard for ourselves only to make it happen, hehe.");
- next;
+ next();
mes("[Starfish]");
mes("I want to find someone special, and ask to punish this ugly octopus.\r"
"I hope this octopus won't ever harass our lady, hehe.");
- next;
+ next();
mes("[Starfish]");
mes("Go catch that octopus and stick it to this pick. If you bring back the pick,\r"
"I will open this gate for a while. You should challenge if you are interested, hehe.");
- next;
+ next();
break;
case 2:
.@playtime = questprogress(4197, PLAYTIME);
if (.@playtime == 1) {
mes("[Starfish]");
mes("Octopus is not around now, hehe. Please come back later.");
- close;
+ close();
}
- if (.@playtime == 2) erasequest 4197;
+ if (.@playtime == 2)
+ erasequest(4197);
if (countitem(Octopus_Hunt_Stick)) {
.@instance = instance_create(.@md_name$, .@party_id);
- if (.@instance < 0) {
- mes("[Starfish]");
- mesf("Party name is... %s.", getpartyname(.@party_id));
- mesf("Party leader is... %s.", strcharinfo(PC_NAME));
- mesf("^0000FF%s^000000, I cannot open now, hehe.", .@md_name$);
- mes("Now is not the time, please wait.");
- close;
- }
- if (instance_attachmap("1@cash", .@instance) == "") {
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- instance_destroy(.@instance);
- close;
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@cash", .@instance) == "") {
+ mes("[Starfish]");
+ mesf("Party name is... %s.", getpartyname(.@party_id));
+ mesf("Party leader is... %s.", strcharinfo(PC_NAME));
+ mesf("^0000FF%s^000000, I cannot open now, hehe.", .@md_name$);
+ mes("Now is not the time, please wait.");
+ instance_destroy(.@instance);
+ close();
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- instance_set_timeout(3600, 300, .@instance);
- instance_init(.@instance);
-
mes("[Starfish]");
mesf("I will open the gate for a while to ^0000FF%s^000000.", .@md_name$);
mes("Please catch that pervert octopus, and come back with it sticked to the pick, hehe.");
- close;
+ close();
}
mes("[Starfish]");
mes("Prepare a pick first, so you can thread that octopus with that pick.\r"
"Then, I will let you in for a while, hehe.");
- close;
+ close();
case 3:
mes("[Starfish]");
mes("This is not a good location, check someplace else.");
- close;
+ close();
}
}
}
mal_dun01,153,237,5 script Weird Entrance CLEAR_NPC,{
mes("There is a strange entrance blocked roughly with some boards.");
- next;
+ next();
switch (select("Go in.", "Stop.")) {
case 1:
if (countitem(Octopus_Hunt_Stick)) {
@@ -127,25 +125,26 @@ mal_dun01,153,237,5 script Weird Entrance CLEAR_NPC,{
if (questprogress(4197, PLAYTIME) == 1) {
mes("[Starfish]");
mes("Ah, now is not the time... Would you come back later? Hehe.");
- close;
+ close();
}
mes("[Starfish]");
mes("Shhh... Weird aura is coming from that entrance. Big trouble is waiting, if you go in now.");
- close;
+ close();
}
mapannounce("mal_dun01", sprintf(_$("%s party's %s member started to hunt the Octopus!"), getpartyname(getcharid(CHAR_ID_PARTY)), strcharinfo(PC_NAME)), bc_map, C_SPRINGGREEN);
- if (!questprogress(4197)) setquest 4197;
- warp "1@cash", 199, 99;
+ if (!questprogress(4197))
+ setquest(4197);
+ warp("1@cash", 199, 99);
end;
}
mes("[Starfish]");
mes("You should definitely prepare hunting stick if you want to punish the Octopus. Or I will not let you in! Hehe.");
- close;
+ close();
case 2:
mes("[Starfish]");
mes("Yes Yes, you better quit.");
- close;
+ close();
}
}
@@ -153,25 +152,25 @@ mal_dun01,153,237,5 script Weird Entrance CLEAR_NPC,{
1@cash,199,99,0 script oct_enter HIDDEN_WARP_NPC,4,4,{
end;
OnTouch:
- donpcevent instance_npcname("oct_enter_broad")+"::OnEnable";
- specialeffect EF_BASH;
- disablenpc instance_npcname("oct_enter");
+ donpcevent(instance_npcname("oct_enter_broad")+"::OnEnable");
+ specialeffect(EF_BASH);
+ disablenpc(instance_npcname("oct_enter"));
end;
}
1@cash,1,1,0 script oct_enter_broad FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("oct_enter_broad")+"::OnDisable";
+ donpcevent(instance_npcname("oct_enter_broad")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("oct_enter_broad");
- donpcevent instance_npcname("oct_foot_4")+"::OnEnable";
- donpcevent instance_npcname("oct_mob_con")+"::OnEnable";
- initnpctimer;
+ enablenpc(instance_npcname("oct_enter_broad"));
+ donpcevent(instance_npcname("oct_foot_4")+"::OnEnable");
+ donpcevent(instance_npcname("oct_mob_con")+"::OnEnable");
+ initnpctimer();
end;
OnDisable:
- disablenpc instance_npcname("oct_enter_broad");
+ disablenpc(instance_npcname("oct_enter_broad"));
end;
OnTimer1000:
mapannounce(instance_mapname("1@cash"), _("Pervert Octopus : How dare you to come inside of my place!"), bc_map, C_YELLOW);
@@ -181,22 +180,22 @@ OnTimer4000:
end;
OnTimer7000:
mapannounce(instance_mapname("1@cash"), _("Pervert Octopus : My juniors~ There is your toy! Play with it~ kakaka"), bc_map, C_YELLOW);
- stopnpctimer;
- donpcevent instance_npcname("oct_enter_broad")+"::OnDisable";
+ stopnpctimer();
+ donpcevent(instance_npcname("oct_enter_broad")+"::OnDisable");
end;
}
1@cash,3,3,0 script oct_foot_4 FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("oct_foot_4")+"::OnDisable";
+ donpcevent(instance_npcname("oct_foot_4")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("oct_foot_4");
- donpcevent instance_npcname("oct_foot1")+"::OnEnable";
- donpcevent instance_npcname("oct_foot2")+"::OnEnable";
- donpcevent instance_npcname("oct_foot3")+"::OnEnable";
- donpcevent instance_npcname("oct_foot4")+"::OnEnable";
+ enablenpc(instance_npcname("oct_foot_4"));
+ donpcevent(instance_npcname("oct_foot1")+"::OnEnable");
+ donpcevent(instance_npcname("oct_foot2")+"::OnEnable");
+ donpcevent(instance_npcname("oct_foot3")+"::OnEnable");
+ donpcevent(instance_npcname("oct_foot4")+"::OnEnable");
.@map$ = instance_mapname("1@cash");
monster(.@map$, 20, 114, _("Octopus Leg#1"), MD_OCTOPUS_LEG, 1, instance_npcname("oct_foot_4")+"::OnMyMobDead");
monster(.@map$, 88, 190, _("Octopus Leg#2"), MD_OCTOPUS_LEG, 1, instance_npcname("oct_foot_4")+"::OnMyMobDead");
@@ -204,15 +203,15 @@ OnEnable:
monster(.@map$, 372, 131, _("Octopus Leg#4"), MD_OCTOPUS_LEG, 1, instance_npcname("oct_foot_4")+"::OnMyMobDead");
end;
OnDisable:
- disablenpc instance_npcname("oct_foot_4");
+ disablenpc(instance_npcname("oct_foot_4"));
end;
OnMyMobDead:
.@map$ = instance_mapname("1@cash");
- if (mobcount(.@map$,instance_npcname("oct_foot_4")+"::OnMyMobDead") < 1) {
- donpcevent instance_npcname("oct_boss_con")+"::OnEnable";
+ if (mobcount(.@map$, instance_npcname("oct_foot_4")+"::OnMyMobDead") < 1) {
+ donpcevent(instance_npcname("oct_boss_con")+"::OnEnable");
mapannounce(.@map$, _("Hey you!! I'll personally take care of you all! Let's bring it on!"), bc_map, C_SPRINGGREEN);
- enablenpc instance_npcname("oct_boss_warp");
- instance_warpall .@map$, 199, 99;
+ enablenpc(instance_npcname("oct_boss_warp"));
+ instance_warpall(.@map$, 199, 99);
end;
}
mapannounce(.@map$, _("Arrgg!! That hurts!!! I need another strategy..."), bc_map, C_SPRINGGREEN);
@@ -222,12 +221,12 @@ OnMyMobDead:
1@cash,20,114,0 script oct_foot1 HIDDEN_WARP_NPC,6,6,{
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
+ donpcevent(instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
.@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
- .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME), 8));
.@map$ = instance_mapname("1@cash");
switch (.@i) {
case 1:
@@ -249,7 +248,7 @@ OnEnable:
areamonster(.@map$, 123, 93, 127, 97, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
areamonster(.@map$, 113, 90, 115, 92, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
areamonster(.@map$, 103, 89, 105, 91, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
- areamonster(.@map$, 89, 90, 91,92, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
+ areamonster(.@map$, 89, 90, 91, 92, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
areamonster(.@map$, 74, 104, 76, 106, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
areamonster(.@map$, 74, 120, 76, 122, _("Octopus's Henchman"), MD_OCTOPUS, 2, .@label$);
areamonster(.@map$, 83, 131, 87, 135, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
@@ -285,56 +284,57 @@ OnEnable:
}
end;
OnDisable:
- killmonster instance_mapname("1@cash"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead"; // Not in official script.
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ killmonster(instance_mapname("1@cash"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead"); // Not in official script.
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
- if (getd("."+strnpcinfo(NPC_NAME)+instance_id())) end;
- setd "."+strnpcinfo(NPC_NAME)+instance_id(),1;
- hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
+ if (getd("."+strnpcinfo(NPC_NAME)+instance_id()))
+ end;
+ setd("."+strnpcinfo(NPC_NAME)+instance_id(), 1);
+ hideonnpc(instance_npcname(strnpcinfo(NPC_NAME)));
mapannounce(instance_mapname("1@cash"), _("Come out all my babies and help me out!"), bc_map, C_YELLOW);
- initnpctimer;
+ initnpctimer();
end;
OnTimer5000:
.@map$ = instance_mapname("1@cash");
mapannounce(.@map$, _("Let's give them a lesson!"), bc_map, C_YELLOW);
.@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
- .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME), 8));
switch (.@i) {
case 1:
- areamonster(.@map$, 18, 112, 22,116, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
- areamonster(.@map$, 18, 112, 22,116, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 18, 112, 22, 116, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 18, 112, 22, 116, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
break;
case 2:
- areamonster(.@map$, 86, 188, 90,192, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
- areamonster(.@map$, 96, 98, 100,102, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 86, 188, 90, 192, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 96, 98, 100, 102, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
break;
case 3:
- areamonster(.@map$, 305, 213, 309,217, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
- areamonster(.@map$, 305, 213, 309,217, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 305, 213, 309, 217, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 305, 213, 309, 217, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
break;
case 4:
- areamonster(.@map$, 370, 129, 374,133, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
- areamonster(.@map$, 370, 129, 374,133, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 370, 129, 374, 133, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
+ areamonster(.@map$, 370, 129, 374, 133, _("Octopus's Henchman"), MD_OCTOPUS, 3, .@label$);
break;
}
end;
OnTimer30000:
- setd "."+strnpcinfo(NPC_NAME)+instance_id(),0;
- stopnpctimer;
- .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
- donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
+ setd("."+strnpcinfo(NPC_NAME)+instance_id(), 0);
+ stopnpctimer();
+ .@i = atoi(charat(strnpcinfo(NPC_NAME), 8));
+ donpcevent(instance_npcname("oct_foot_exit"+.@i)+"::OnEnable");
+ donpcevent(instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable");
end;
OnMyMobDead:
.@map$ = instance_mapname("1@cash");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
mapannounce(.@map$, _("You hurt my babies!!? You'll have to pay for this!!!"), bc_map, C_SPRINGGREEN);
- setd "."+strnpcinfo(NPC_NAME)+instance_id(),0;
- stopnpctimer;
- .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
- donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
+ setd("."+strnpcinfo(NPC_NAME)+instance_id(), 0);
+ stopnpctimer();
+ .@i = atoi(charat(strnpcinfo(NPC_NAME), 8));
+ donpcevent(instance_npcname("oct_foot_exit"+.@i)+"::OnEnable");
+ donpcevent(instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable");
end;
}
end;
@@ -346,13 +346,13 @@ OnMyMobDead:
1@cash,16,117,0 script oct_foot_exit1 WARPNPC,2,2,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ enablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
- warp instance_mapname("1@cash"), 198, 99;
+ warp(instance_mapname("1@cash"), 198, 99);
end;
}
1@cash,77,193,0 duplicate(oct_foot_exit1) oct_foot_exit2 WARPNPC,2,2
@@ -362,11 +362,11 @@ OnTouch:
1@cash,15,15,0 script oct_mob_con FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("oct_mob_con")+"::OnDisable";
+ donpcevent(instance_npcname("oct_mob_con")+"::OnDisable");
end;
OnEnable:
.@map$ = instance_mapname("1@cash");
- enablenpc instance_npcname("oct_mob_con");
+ enablenpc(instance_npcname("oct_mob_con"));
monster(.@map$, 32, 94, _("Hydra"), HYDRA, 1);
monster(.@map$, 41, 101, _("Hydra"), HYDRA, 1);
monster(.@map$, 35, 78, _("Hydra"), HYDRA, 1);
@@ -410,21 +410,21 @@ OnEnable:
areamonster(.@map$, 292, 97, 312, 117, _("Stapo"), STAPO, 1);
areamonster(.@map$, 355, 64, 375, 84, _("Stapo"), STAPO, 1);
areamonster(.@map$, 317, 17, 337, 37, _("Stapo"), STAPO, 1);
- donpcevent instance_npcname("oct_backattack1")+"::OnEnable";
- donpcevent instance_npcname("oct_backattack2")+"::OnEnable";
- donpcevent instance_npcname("oct_backattack3")+"::OnEnable";
- donpcevent instance_npcname("oct_backattack4")+"::OnEnable";
- donpcevent instance_npcname("oct_mob_con")+"::OnDisable";
+ donpcevent(instance_npcname("oct_backattack1")+"::OnEnable");
+ donpcevent(instance_npcname("oct_backattack2")+"::OnEnable");
+ donpcevent(instance_npcname("oct_backattack3")+"::OnEnable");
+ donpcevent(instance_npcname("oct_backattack4")+"::OnEnable");
+ donpcevent(instance_npcname("oct_mob_con")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("oct_mob_con");
+ disablenpc(instance_npcname("oct_mob_con"));
end;
}
1@cash,45,53,0 script oct_backattack1 HIDDEN_WARP_NPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname("oct_backattack1");
+ disablenpc(instance_npcname("oct_backattack1"));
end;
OnTouch:
.@map$ = instance_mapname("1@cash");
@@ -436,27 +436,28 @@ OnTouch:
monster(.@map$, 49, 50, _("Hydra"), HYDRA, 1);
monster(.@map$, 41, 53, _("Octopus's Henchman"), MD_OCTOPUS, 1);
mapannounce(.@map$, _("Don't let them break through, stop them!!!"), bc_map, C_SPRINGGREEN);
- specialeffect EF_BASH;
- disablenpc instance_npcname("oct_backattack1");
+ specialeffect(EF_BASH);
+ disablenpc(instance_npcname("oct_backattack1"));
end;
OnEnable:
- enablenpc instance_npcname("oct_backattack1");
+ enablenpc(instance_npcname("oct_backattack1"));
end;
}
1@cash,78,99,0 script oct_backattack2 HIDDEN_WARP_NPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname("oct_backattack2");
+ disablenpc(instance_npcname("oct_backattack2"));
end;
OnTouch:
- if (getd("."+instance_id())) end;
- setd "."+instance_id(),1;
- initnpctimer;
+ if (getd("."+instance_id()))
+ end;
+ setd("."+instance_id(), 1);
+ initnpctimer();
.@map$ = instance_mapname("1@cash");
monster(.@map$, 71, 105, _("Octopus's Henchman"), MD_OCTOPUS, 1);
mapannounce(.@map$, _("Headquarters are empty, GO!!!"), bc_map, C_SPRINGGREEN);
- hideonnpc instance_npcname("oct_backattack2");
+ hideonnpc(instance_npcname("oct_backattack2"));
end;
OnTimer2000:
.@map$ = instance_mapname("1@cash");
@@ -477,21 +478,22 @@ OnTimer8000:
.@map$ = instance_mapname("1@cash");
monster(.@map$, 71, 105, _("Octopus's Henchman"), MD_OCTOPUS, 1);
mapannounce(.@map$, _("There is no time to lose, hurry up!!!"), bc_map, C_SPRINGGREEN);
- stopnpctimer;
+ stopnpctimer();
end;
OnEnable:
- enablenpc instance_npcname("oct_backattack2");
+ enablenpc(instance_npcname("oct_backattack2"));
end;
}
1@cash,299,144,0 script oct_backattack3 HIDDEN_WARP_NPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname("oct_backattack3");
+ disablenpc(instance_npcname("oct_backattack3"));
end;
OnTouch:
- if (getd("."+instance_id())) end;
- setd "."+instance_id(),1;
+ if (getd("."+instance_id()))
+ end;
+ setd("."+instance_id(), 1);
.@map$ = instance_mapname("1@cash");
monster(.@map$, 293, 153, _("Octopus's Henchman"), MD_OCTOPUS, 1);
monster(.@map$, 294, 152, _("Octopus's Henchman"), MD_OCTOPUS, 1);
@@ -499,26 +501,27 @@ OnTouch:
monster(.@map$, 293, 151, _("Octopus's Henchman"), MD_OCTOPUS, 1);
monster(.@map$, 293, 152, _("Octopus's Henchman ?"), MD_MARSE, 1);
mapannounce(.@map$, _("Kakaka! Suprised??!!"), bc_map, C_SPRINGGREEN);
- initnpctimer;
- hideonnpc instance_npcname("oct_backattack3");
+ initnpctimer();
+ hideonnpc(instance_npcname("oct_backattack3"));
end;
OnTimer5000:
mapannounce(instance_mapname("1@cash"), _("... Looks like we have a spy among us."), bc_map, C_SPRINGGREEN);
- stopnpctimer;
+ stopnpctimer();
end;
OnEnable:
- enablenpc instance_npcname("oct_backattack3");
+ enablenpc(instance_npcname("oct_backattack3"));
end;
}
1@cash,336,36,0 script oct_backattack4 HIDDEN_WARP_NPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname("oct_backattack4");
+ disablenpc(instance_npcname("oct_backattack4"));
end;
OnTouch:
- if (getd("."+instance_id())) end;
- setd "."+instance_id(),1;
+ if (getd("."+instance_id()))
+ end;
+ setd("."+instance_id(), 1);
.@map$ = instance_mapname("1@cash");
monster(.@map$, 332, 37, _("Octopus's Henchman"), MD_OCTOPUS, 1);
monster(.@map$, 332, 36, _("Octopus's Henchman"), MD_OCTOPUS, 1);
@@ -534,34 +537,34 @@ OnTouch:
monster(.@map$, 259, 40, _("Mercenary Squid"), MD_MARSE, 1);
monster(.@map$, 261, 40, _("Mercenary Squid"), MD_MARSE, 1);
mapannounce(.@map$, _("What a successful pincer tactic! The enemy is strong! Let's not lose yourselves! Anyway, where are all the mercenaries??"), bc_map, C_SPRINGGREEN);
- initnpctimer;
- hideonnpc instance_npcname("oct_backattack4");
+ initnpctimer();
+ hideonnpc(instance_npcname("oct_backattack4"));
end;
OnTimer5000:
mapannounce(instance_mapname("1@cash"), _("Mercenary Squid : eh...eh... wrong direction. No enemies are shown in this direction."), bc_map, C_SPRINGGREEN);
end;
OnTimer7000:
mapannounce(instance_mapname("1@cash"), _("Pervert Octopus : Fools! Can't you read the map??!! Useless!!"), bc_map, C_SPRINGGREEN);
- stopnpctimer;
+ stopnpctimer();
end;
OnEnable:
- enablenpc instance_npcname("oct_backattack4");
+ enablenpc(instance_npcname("oct_backattack4"));
end;
}
1@cash,2,2,0 script oct_boss_con FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("oct_boss_con")+"::OnDisable";
+ donpcevent(instance_npcname("oct_boss_con")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("oct_boss_con");
+ disablenpc(instance_npcname("oct_boss_con"));
end;
OnEnable:
- enablenpc instance_npcname("oct_boss_con");
- donpcevent instance_npcname("oct_boss_foot")+"::OnEnable";
+ enablenpc(instance_npcname("oct_boss_con"));
+ donpcevent(instance_npcname("oct_boss_foot")+"::OnEnable");
monster(instance_mapname("1@cash"), 199, 188, _("Disgusting Octopus"), MD_GIANT_OCTOPUS, 1, instance_npcname("oct_boss_con")+"::OnMyMobDead");
- initnpctimer;
+ initnpctimer();
end;
OnTimer7000:
callsub OnAnnounce,
@@ -604,21 +607,21 @@ OnTimer49000:
"errrrrrrrrrrrrrrrrrrrrrrrr... Cough! Cough!",
"Disgusting Octopus : Violence cannot be justified in any case.",
"This is my place!!!";
- stopnpctimer;
- initnpctimer;
+ stopnpctimer();
+ initnpctimer();
end;
OnAnnounce:
mapannounce(instance_mapname("1@cash"), sprintf(_$("Disgusting Octopus : %s"), getarg(rand(3))), bc_map, C_YELLOW);
return;
OnMyMobDead:
.@map$ = instance_mapname("1@cash");
- if (mobcount(.@map$,instance_npcname("oct_boss_con")+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$, instance_npcname("oct_boss_con")+"::OnMyMobDead") < 1) {
mapannounce(.@map$, _("Disgusting Octopus : That's it for the today! Next time, I will play with you badly!"), bc_map, C_YELLOW);
- enablenpc instance_npcname("oct_exit_1");
- enablenpc instance_npcname("oct_exit_2");
- donpcevent instance_npcname("oct_boss_foot")+"::OnDisable";
- stopnpctimer;
- donpcevent instance_npcname("oct_boss_con")+"::OnDisable";
+ enablenpc(instance_npcname("oct_exit_1"));
+ enablenpc(instance_npcname("oct_exit_2"));
+ donpcevent(instance_npcname("oct_boss_foot")+"::OnDisable");
+ stopnpctimer();
+ donpcevent(instance_npcname("oct_boss_con")+"::OnDisable");
end;
}
end;
@@ -627,16 +630,16 @@ OnMyMobDead:
1@cash,4,4,0 script oct_boss_foot FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("oct_boss_foot")+"::OnDisable";
+ donpcevent(instance_npcname("oct_boss_foot")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("oct_boss_foot");
- initnpctimer;
+ enablenpc(instance_npcname("oct_boss_foot"));
+ initnpctimer();
end;
OnCall:
.@map$ = instance_mapname("1@cash");
- if (mobcount(.@map$,instance_npcname("oct_boss_foot")+"::OnMyMobDead") < 100) {
- switch(rand(2)) {
+ if (mobcount(.@map$, instance_npcname("oct_boss_foot")+"::OnMyMobDead") < 100) {
+ switch (rand(2)) {
case 0:
mapannounce(.@map$, _("Disgusting Octopus : Do you know how many legs octopus have? It doesn't matter, I have unlimited legs!!"), bc_map, C_YELLOW);
areamonster(.@map$, 192, 181, 206, 195, _("Octopus Leg"), MD_OCTOPUS_LEG, 1, instance_npcname("oct_boss_foot")+"::OnMyMobDead");
@@ -647,16 +650,16 @@ OnCall:
break;
}
}
- initnpctimer;
+ initnpctimer();
end;
OnTimer10000:
- stopnpctimer;
- donpcevent instance_npcname("oct_boss_foot")+"::OnCall";
+ stopnpctimer();
+ donpcevent(instance_npcname("oct_boss_foot")+"::OnCall");
end;
OnDisable:
- stopnpctimer;
- killmonster instance_mapname("1@cash"), instance_npcname("oct_boss_foot")+"::OnMyMobDead"; // Not in official script.
- disablenpc instance_npcname("oct_boss_foot");
+ stopnpctimer();
+ killmonster(instance_mapname("1@cash"), instance_npcname("oct_boss_foot")+"::OnMyMobDead"); // Not in official script.
+ disablenpc(instance_npcname("oct_boss_foot"));
end;
OnMyMobDead:
end;
@@ -665,24 +668,24 @@ OnMyMobDead:
1@cash,198,116,0 script oct_boss_warp WARPNPC,2,2,{
end;
OnInstanceInit:
- disablenpc instance_npcname("oct_boss_warp");
+ disablenpc(instance_npcname("oct_boss_warp"));
end;
OnTouch:
- warp instance_mapname("1@cash"), 210, 172;
+ warp(instance_mapname("1@cash"), 210, 172);
end;
}
1@cash,190,208,0 script oct_exit_1 WARPNPC,2,2,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ disablenpc(instance_npcname(strnpcinfo(NPC_NAME)));
end;
OnTouch:
mes("Do you want to go out from the octopus dungeon?");
- next;
+ next();
if (select("No!", "Yes!") == 2)
- warp "mal_dun01", 153, 233;
- close;
+ warp("mal_dun01", 153, 233);
+ close();
}
1@cash,198,82,0 duplicate(oct_exit_1) oct_exit_2 WARPNPC,2,2
// This is never enabled in the official script.
diff --git a/npc/re/instances/saras_memory.txt b/npc/re/instances/saras_memory.txt
index 38b598d5b..25c0e619b 100644
--- a/npc/re/instances/saras_memory.txt
+++ b/npc/re/instances/saras_memory.txt
@@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
-//= Copyright (C) 2013-2016 Hercules Dev Team
+//= Copyright (C) 2013-2018 Hercules Dev Team
//= Copyright (C) Ridley
//= Copyright (C) Ziu
//=
@@ -41,113 +41,113 @@
dali,130,107,5 script Leon the Adventurer#Sara 4_M_DST_GRAND,{ // instance CD check only at the Dimensional Device
mes("[Leon the Adventurer]");
if (BaseLevel < 99) {
- mes("You know... this place doesn't seem to be safe for you. Please returnto me once you have achieved LV. 99");
- close;
+ mes("You know... this place doesn't seem to be safe for you. Please return to me once you have achieved LV. 99");
+ close();
}
if (!questprogress(15003)) {
if (!sarainstance) { // doing the instance for the 1st time
mes("Wow! I thought I was the only one who knew about this place.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Excuse my rudeness! I am Pon de Leon, the famous adventurer!");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("My friend calls me Leon the Lion! For my tough appearance and attitude. Plus I have quite a bite!");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("You know, this is such a strange location...");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("As you explore it you start to see cracks in space and time. Each one covered by a dimensional device.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("For example, I think I have caught glimpses of Payon through the dimensional device closest to us.\r"
"But it doesn't seem right. Almost like it is a little bit older then it should be.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("I want to explore it, but with my old age and my knees I don't seem to be quite up to the task.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("So, I would like to ask something of you.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Please venture through the dimensional device and report to me what you find within.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Though, I should warn you. It might be unstable. Make sure you enter the first chance you get.");
- close2;
- setquest 15003;
+ close2();
+ setquest(15003);
end;
} else {
mes("You wish to relive the past again?");
- next;
- if (select("Yes","No") == 2)
- close;
+ next();
+ if (select("Yes", "No") == 2)
+ close();
mes("[Leon the Adventurer]");
mes("Please venture through the dimensional device and report to me what you find within.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Though, I should warn you. It might be unstable. Make sure you enter the first chance you get.");
- setquest 15003;
- close;
+ setquest(15003);
+ close();
}
}
if (questprogress(15003) == 1) {
mes("I am not sure you have fully explored the crack in space and time yet. Perhaps you should look a bit further into it.");
- next;
+ next();
if (!sarainstance)
- close;
+ close();
switch (select("Okay", "Give up")) {
case 1:
mes("[Leon the Adventurer]");
mes("I am glad to hear that! Maybe someday you can be as brave as old Leon the Lion!");
- close;
+ close();
case 2:
mes("[Leon the Adventurer]");
mes("Well.. I can't force you. Buf if you ever find your courage pelase talk to me again.");
- erasequest 15003;
- close;
+ erasequest(15003);
+ close();
}
}
if (questprogress(15003) == 2) {
if (!sarainstance) { // 1st time reward and text
mes("What did you see in there?!");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Hrumpf, Sara Irene?! She's one of the 12 Valkyries. I didn't know her story was that tragic....");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("It seems that you caused a huge misunderstanding between her and her father.");
- next;
+ next();
mes("[Leon the Adventurer]");
- mes("I would not blame yourself for what occured. Or all the blood that was spilled. It seems that the\r"
+ mes("I would not blame yourself for what occured. Or all the blood that was spilled. It seems that the\r"
"events that day were fated to happen no matter who was there.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("Please don't tell anyone about your time traveling adventure. We can't have anyone thinking you more\r"
"important then old Leon. Plus they wouldn't believe such a story anyways.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("I think that in about 20 hours after you last entered the rift will stable enough for you to transverse it again.");
sarainstance = 1;
- getexp 770000, 1000000; // reward first time
+ getexp(770000, 1000000); // reward first time
} else { // 2nd time text
mes("What did you see in there?! Was there anything new?");
- next;
+ next();
select("Nothing has changed from the last time.");
mes("[Leon the Adventurer]");
mes("I am sorry to hear that... If...");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("If you want to try again. I think that in about 20 hours after you last entered the rift will be stable enough\r"
"for you to transverse it again.");
- next;
+ next();
mes("[Leon the Adventurer]");
mes("You should rest up. Travelling Through time would make even Leon tired!");
- getexp 550000, 550000; // reward 2nd and following
+ getexp(550000, 550000); // reward 2nd and following
}
- erasequest 15003;
- close;
+ erasequest(15003);
+ close();
}
}
@@ -155,29 +155,29 @@ dali,138,118,0 script Dimensional Device#dimen PORTAL,{
if (!questprogress(15003)) {
mes("[Leon the Adventurer]");
mes("Before you go playing around with that. Why don't you come over here and talk to me?");
- close;
+ close();
}
.@sara_time = questprogress(15002, PLAYTIME);
if (.@sara_time == 1) {
mes("[Leon the Adventurer]");
mes("I think that in about 20 hours after you last entered the rift will stable enough for you to\r"
"transverse it again.");
- close;
+ close();
} else if (.@sara_time == 2) {
- erasequest 15002;
+ erasequest(15002);
end;
} else if (!.@sara_time) {
.@party_id = getcharid(CHAR_ID_PARTY);
.@p_name$ = getpartyname(.@party_id);
- .@md_name$ = "Sara's Memory";
+ .@md_name$ = _("Sara's Memory");
if (!instance_check_party(.@party_id)) {
mes("[Leon the Adventurer]");
mes("Before you enter you need to organize a party! Don't know how? Type /organize PARTYNAMEHERE. You\r"
"can use quotes to put spaces in a party name.");
- close;
+ close();
}
if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2))
- .@menu1$ = "Boot up the dimensional device";
+ .@menu1$ = _("Boot up the dimensional device");
else
.@menu1$ = "";
switch (select(.@menu1$, "Use the dimensional device", "Cancel")) {
@@ -185,34 +185,32 @@ dali,138,118,0 script Dimensional Device#dimen PORTAL,{
if (getcharid(CHAR_ID_CHAR) != getpartyleader(.@party_id, 2))
end;
.@instance = instance_create(.@md_name$, .@party_id);
- if (.@instance < 0) {
- mesf("Party Name: %s", .@p_name$);
- mesf("Party Leader: %s", strcharinfo(PC_NAME));
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- close;
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@sara", .@instance) == "") {
+ mesf("Party Name: %s", .@p_name$);
+ mesf("Party Leader: %s", strcharinfo(PC_NAME));
+ mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
+ instance_destroy(.@instance);
+ close();
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- if (instance_attachmap("1@sara", .@instance) == "") {
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- instance_destroy(.@instance);
- close;
- }
- instance_set_timeout(3600, 300, .@instance);
- instance_init(.@instance);
mes("^FF0000The dimensional boots up cleanly. Use the device to enter the crack in space and time.^000000");
- close;
+ close();
case 2:
if (has_instance("1@sara") == "") {
mesf("The memorial dungeon ^0000FF%s^000000 does not exist.\r"
"The party leader did not generate the dungeon yet.", .@md_name$);
- close;
+ close();
}
mapannounce("dali", sprintf(_$("%s, member of the party %s entered the instance %s."), strcharinfo(PC_NAME), .@p_name$, .@md_name$), bc_map, C_SPRINGGREEN);
- setquest 15002;
- warp "1@sara", 250, 155;
+ setquest(15002);
+ warp("1@sara", 250, 155);
end;
break;
case 3:
- close;
+ close();
}
}
}
@@ -223,469 +221,468 @@ dali,138,118,0 script Dimensional Device#dimen PORTAL,{
mesf("[%s]", strcharinfo(PC_NAME));
mes("Where am I?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Where am I?"));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[A girl]");
mes("Hello! This is the village of Payon. You don't seem to be from around here...");
npctalk(_("A girl : Hello! This is the village of Payon. You don't seem to be from around here..."));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("Are you from here? You don't seem to quite match the locals either.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Are you from here? You don't seem to quite match to locals either."));
- next;
+ next();
mes("[A girl]");
mes("Yes! I was born here! My name is Sara. Sara Irene!");
npctalk(_("A girl : Yes! I was born here! My name is Sara. Sara Irene!"));
- next;
+ next();
mes("[Sara Irene]");
mes("My father is doyen of this village! I just take after my mother.");
npctalk(_("My father is doyen of this village! I just take after my mother."), instance_npcname("Sara Irene#saratalk"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("Oh! I am sorry! Uh... Why are you standing out here all alone?");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Oh! I am sorry! Uh... Why are you standing out here all alone?"));
- next;
+ next();
mes("[Sara Irene]");
mes("I am waiting for my father. He said that he will be here soon.");
npctalk(_("I am waiting for my father. He said that he will be here soon."), instance_npcname("Sara Irene#saratalk"));
- next;
+ next();
mes("^FF0000An older man exits the house. Sara's face brightens at the sight of him.^000000");
- donpcevent instance_npcname("Doyen Irene#sarains")+"::OnEnable";
- next;
+ donpcevent(instance_npcname("Doyen Irene#sarains")+"::OnEnable");
+ next();
mes("[Sara Irene]");
mes("Hi daddy!");
npctalk(_("Hi daddy!"), instance_npcname("Sara Irene#saratalk"));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Sweetheart you look so happy.");
npctalk(_("Sweetheart you look so happy."), instance_npcname("Doyen Irene#sarains"));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("You said you would come back soon! I waited for you and you lied!");
npctalk(_("You said you would come back soon! I waited for you and you lied!"), instance_npcname("Sara Irene#saratalk"));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Sweetheart, I am sorry I made you wait so long. The meeting with the village elders took longer than expected.");
npctalk(_("Sweetheart, I am sorry I made you wait so long. The meeting with the village elders took longer than expected."), instance_npcname("Doyen Irene#sarains"));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("I hate those old fogeys.");
npctalk(_("I hate those old fogeys."), instance_npcname("Sara Irene#saratalk"));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Don't say that sweetheart... Who is this with you?");
npctalk(_("Don't say that sweetheart... Who is this with you?"), instance_npcname("Doyen Irene#sarains"));
- next;
+ next();
mes("^FF0000Doyen Irene stares at you with fire in this eyes.^000000");
dispbottom(_("Doyen Irene stares at you with fire in this eyes."));
- next;
+ next();
mes("^FF0000Sara starts humming and singing softly to herself. She picks some wild flowers near by and presents\r"
"them to the Doyen.^000000");
dispbottom(_("Sara starts humming and singing softly to herself. She picks some wild flowers near by and presents them to the Doyen."));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("Here you go daddy!");
npctalk(_("Here you go daddy!"), instance_npcname("Sara Irene#saratalk"));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Oh Sara, should I have them?");
npctalk(_("Oh Sara, should I have them?"), instance_npcname("Doyen Irene#sarains"));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("Of course silly daddy!");
npctalk(_("Of course silly daddy!"), instance_npcname("Sara Irene#saratalk"));
- next;
+ next();
mes("^FF0000After being given the flowers the Doyen's mood seems to greatly improve.^000000");
dispbottom(_("After being given the flowers the Doyen's mood seems to greatly improve."));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Alright my princess, where should we go now?");
npctalk(_("Alright my princess, where should we go now?"), instance_npcname("Doyen Irene#sarains"));
- next;
- cutin "sara_9sara1.bmp", 2;
+ next();
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("Oh daddy! Let's go to the top of that hill over there!");
npctalk(_("Oh daddy! Let's go to the top of that hill over there!"), instance_npcname("Sara Irene#saratalk"));
- next;
- cutin "sara_elder_irine1.bmp", 2;
+ next();
+ cutin("sara_elder_irine1.bmp", 2);
mes("[Doyen Irene]");
mes("Hah! Hold onto me tight!");
npctalk(_("Hah! Hold onto me tight!"), instance_npcname("Doyen Irene#sarains"));
- next;
- cutin "sara_elder_irine1.bmp", 255;
+ next();
+ cutin("sara_elder_irine1.bmp", 255);
mes("^FF0000As they wander off you hear strange voices from around the corner...^000000");
- donpcevent instance_npcname("Doyen Irene#sarains")+"::OnDisable";
- donpcevent instance_npcname("A girl#sarains")+"::OnDisable";
- dispbottom(_("As they wander off you hear strange voices from around the corner...")),"";
- disablenpc instance_npcname("Sara Irene#saratalk");
- next;
+ donpcevent(instance_npcname("Doyen Irene#sarains")+"::OnDisable");
+ donpcevent(instance_npcname("A girl#sarains")+"::OnDisable");
+ dispbottom(_("As they wander off you hear strange voices from around the corner..."), "");
+ disablenpc(instance_npcname("Sara Irene#saratalk"));
+ next();
mes("[Strange Old Man A]");
mes("I can feel Sara's power growing. We cannot just stand by and let her achieve her full potential!");
npctalk(_("I can feel Sara's power growing. We cannot just stand by and let her achieve her full potential!"), instance_npcname("Strange Old Man A#stalk"));
- next;
+ next();
mes("[Strange Old Man B]");
mes("She was born under a bad sign and her mother isn't even one of us!");
npctalk(_("She was born under a bad sign and her mother isn't even one of us!"), instance_npcname("Strange Old Man B#stalk"));
- next;
+ next();
mes("[Strange Old Man B]");
mes("Someday she will cause blood to flow in our streets.");
npctalk(_("Someday she will cause blood to flow in our streets."), instance_npcname("Strange Old Man B#stalk"));
- next;
+ next();
mes("[Strange Old Man A]");
mes("We have to do something before the Holy creatures select her. I asked HIM to take care of it.");
npctalk(_("We have to do something before the Holy creatures select her. I asked HIM to take care of it."), instance_npcname("Strange Old Man A#stalk"));
- next;
+ next();
mes("[Strange Old Man B]");
mes("We will see... I look forward to hearing the bad news that has befallen her...");
npctalk(_("We will see... I look forward to hearing the bad news that has befallen her..."), instance_npcname("Strange Old Man B#stalk"));
- next;
+ next();
mes("^FF0000The old man wander off it seems Sara might be in danger. We have to do something!^000000");
dispbottom(_("The old man wander off it seems Sara might be in danger. We have to do something!"));
- close2;
- donpcevent instance_npcname("Strange Old Man A#stalk")+"::OnDisable";
- donpcevent instance_npcname("Strange Old Man B#stalk")+"::OnDisable";
- donpcevent instance_npcname("Sara Irene#sarains1")+"::OnEnable";
- donpcevent instance_npcname("#sarawarp1")+"::OnEnable";
- viewpoint 1, 240, 145, 1, C_GREEN;
- specialeffect EF_BASH;
+ close2();
+ donpcevent(instance_npcname("Strange Old Man A#stalk")+"::OnDisable");
+ donpcevent(instance_npcname("Strange Old Man B#stalk")+"::OnDisable");
+ donpcevent(instance_npcname("Sara Irene#sarains1")+"::OnEnable");
+ donpcevent(instance_npcname("#sarawarp1")+"::OnEnable");
+ viewpoint(1, 240, 145, 1, C_GREEN);
+ specialeffect(EF_BASH);
end;
OnInstanceInit:
- donpcevent instance_npcname("A girl#sarains")+"::OnEnable";
+ donpcevent(instance_npcname("A girl#sarains")+"::OnEnable");
end;
OnEnable:
- hideoffnpc instance_npcname("A girl#sarains");
+ hideoffnpc(instance_npcname("A girl#sarains"));
end;
OnDisable:
- hideonnpc instance_npcname("A girl#sarains");
+ hideonnpc(instance_npcname("A girl#sarains"));
end;
}
1@sara,268,158,3 script Doyen Irene#sarains 4_M_CHIEF_IRIN,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Doyen Irene#sarains")+"::OnDisable";
+ donpcevent(instance_npcname("Doyen Irene#sarains")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Doyen Irene#sarains");
+ hideoffnpc(instance_npcname("Doyen Irene#sarains"));
end;
OnDisable:
- hideonnpc instance_npcname("Doyen Irene#sarains");
+ hideonnpc(instance_npcname("Doyen Irene#sarains"));
end;
}
1@sara,260,156,0 script Sara Irene#saratalk HIDDEN_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#saratalk")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#saratalk")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Sara Irene#saratalk");
+ hideoffnpc(instance_npcname("Sara Irene#saratalk"));
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#saratalk");
+ hideonnpc(instance_npcname("Sara Irene#saratalk"));
end;
}
-
1@sara,260,156,0 script Strange Old Man A#stalk FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Strange Old Man A#stalk")+"::OnDisable";
+ donpcevent(instance_npcname("Strange Old Man A#stalk")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Strange Old Man A#stalk");
+ hideoffnpc(instance_npcname("Strange Old Man A#stalk"));
end;
OnDisable:
- hideonnpc instance_npcname("Strange Old Man A#stalk");
+ hideonnpc(instance_npcname("Strange Old Man A#stalk"));
end;
}
1@sara,260,156,0 script Strange Old Man B#stalk FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Strange Old Man B#stalk")+"::OnDisable";
+ donpcevent(instance_npcname("Strange Old Man B#stalk")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Strange Old Man B#stalk");
+ hideoffnpc(instance_npcname("Strange Old Man B#stalk"));
end;
OnDisable:
- hideonnpc instance_npcname("Strange Old Man B#stalk");
+ hideonnpc(instance_npcname("Strange Old Man B#stalk"));
end;
}
1@sara,240,145,0 script #sarawarp1 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp1")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp1")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp1");
+ disablenpc(instance_npcname("#sarawarp1"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp1");
+ enablenpc(instance_npcname("#sarawarp1"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 94, 320;
+ warp(.@map$, 94, 320);
end;
}
1@sara,209,250,0 script #sarawarp2 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp2")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp2")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp2");
+ disablenpc(instance_npcname("#sarawarp2"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp2");
+ enablenpc(instance_npcname("#sarawarp2"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 230, 316;
+ warp(.@map$, 230, 316);
end;
}
1@sara,226,190,0 script #sarawarp3 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp3")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp3")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp3");
+ disablenpc(instance_npcname("#sarawarp3"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp3");
+ enablenpc(instance_npcname("#sarawarp3"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 263, 94;
+ warp(.@map$, 263, 94);
end;
}
1@sara,166,67,0 script #sarawarp4 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp4")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp4")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp4");
+ disablenpc(instance_npcname("#sarawarp4"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp4");
+ enablenpc(instance_npcname("#sarawarp4"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 164, 81;
+ warp(.@map$, 164, 81);
end;
}
1@sara,155,180,0 script #sarawarp5 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp5")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp5")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp5");
+ disablenpc(instance_npcname("#sarawarp5"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp5");
+ enablenpc(instance_npcname("#sarawarp5"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 155, 196;
+ warp(.@map$, 155, 196);
end;
}
1@sara,88,188,0 script #sarawarp6 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp6")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp6")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp6");
+ disablenpc(instance_npcname("#sarawarp6"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp6");
+ enablenpc(instance_npcname("#sarawarp6"));
end;
OnTouch:
.@map$ = instance_mapname("1@sara");
- warp .@map$, 89, 175;
- if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY),2))
- viewpoint 1, 39, 142, 1, C_GREEN;
+ warp(.@map$, 89, 175);
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY), 2))
+ viewpoint(1, 39, 142, 1, C_GREEN);
end;
}
1@sara,19,143,0 script #sarawarp7 WARPNPC,1,2,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#sarawarp7")+"::OnDisable";
+ donpcevent(instance_npcname("#sarawarp7")+"::OnDisable");
end;
OnDisable:
- disablenpc instance_npcname("#sarawarp7");
+ disablenpc(instance_npcname("#sarawarp7"));
end;
OnEnable:
- enablenpc instance_npcname("#sarawarp7");
+ enablenpc(instance_npcname("#sarawarp7"));
end;
OnTouch:
- completequest 15003;
- warp "dali", 134, 111;
+ completequest(15003);
+ warp("dali", 134, 111);
end;
}
1@sara,107,325,5 script Sara Irene#sarains1 4_F_SARAH_BABY,{
if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2))
end;
- cutin "sara_9sara1.bmp", 2;
+ cutin("sara_9sara1.bmp", 2);
mes("[Sara Irene]");
mes("Oh! Hello again! I remember you, what's up?");
npctalk(_("Oh! Hello again! I remember you, what's up?"));
- next;
+ next();
mes("[Sara Irene]");
mes("I am here to give flowers to my mommy!");
npctalk(_("I am here to give flowers to my mommy!"));
- next;
+ next();
mes("^FF0000Sara leaps forward to open the door, flowers at the ready.^000000");
dispbottom(_("Sara leaps forward to open the door, flowers at the ready."));
- next;
+ next();
mes("[Sara Irene]");
mes("Mom! Dad! Look what I found!");
npctalk(_("Mom! Dad! Look what I found!"));
- next;
- cutin "sara_9sara1.bmp", 255;
- cutin "sara_momdie.bmp", 4;
+ next();
+ cutin("sara_9sara1.bmp", 255);
+ cutin("sara_momdie.bmp", 4);
mes("^FF0000The door opens to reveal a woman laying dead on the floor and the\r"
"Doyen standing over the woman with a bloody sword.^000000");
dispbottom(_("The door opens to reveal a woman laying dead on the floor and the Doyen standing over the woman with a bloody sword."));
- next;
+ next();
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
+ next();
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
+ next();
mes("[Sara Irene]");
mes("...");
npctalk("...");
mapannounce(instance_mapname("1@sara"), _("[Sara's Mother] : Sara...Ru-..away..."), bc_map, C_YELLOW);
- next;
+ next();
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
+ next();
mes("^FF0000A gem rolls from the womans hand and comes to a rest in front of\r"
"Sara. Unconsciously Sara reaches down and picks up the gem.^000000");
dispbottom(_("A gem rolls from the womans hand and comes to a rest in front of Sara. Unconsciously Sara reaches down and picks up the gem."));
- next;
+ next();
mes("^FF0000The Doyen turns around and notices Sara.^000000");
dispbottom(_("The Doyen turns around and notices Sara."));
- next;
- cutin "sara_momdie.bmp", 255;
- cutin "sara_elder_irine4.bmp", 2;
+ next();
+ cutin("sara_momdie.bmp", 255);
+ cutin("sara_elder_irine4.bmp", 2);
mes("[Doyen Irene]");
mes("Ahh Sara! I was just looking for you...");
npctalk(_("Ahh Sara! I was just looking for you..."), instance_npcname("Doyen Irene#sarains1"));
- next;
- cutin "sara_9sara2.bmp", 2;
+ next();
+ cutin("sara_9sara2.bmp", 2);
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
+ next();
select("Escape with Sara.");
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
- cutin "sara_elder_irine3.bmp", 2;
+ next();
+ cutin("sara_elder_irine3.bmp", 2);
mes("[Doyen Irene]");
mes("Guards! GUARDS! There is a murderer here! Catch him!");
npctalk(_("Guards! GUARDS! There is a murderer here! Catch him!"), instance_npcname("Doyen Irene#sarains1"));
- next;
+ next();
mes("^FF0000The sound of many pairs of boots can be heard running outside!^000000");
dispbottom(_("The sound of many pairs of boots can be heard running outside!"));
- next;
- cutin "sara_9sara3.bmp", 2;
+ next();
+ cutin("sara_9sara3.bmp", 2);
mes("[Sara Irene]");
mes("Mommy no!!!!!!!!!!!!!!!");
npctalk(_("Mommy no!!!!!!!!!!!!!!!"));
- next;
- cutin "sara_9sara3.bmp", 255;
+ next();
+ cutin("sara_9sara3.bmp", 255);
mes("^FF0000Sara runs aways and the sound of the guards is getting closer...^000000");
dispbottom(_("Sara runs aways and the sound of the guards is getting closer..."));
- close2;
- donpcevent instance_npcname("Sara Irene#sarains1")+"::OnDisable";
- donpcevent instance_npcname("Sara Irene#sarains4")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains5")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains6")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains7")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains8")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains9")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains10")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains11")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains12")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains13")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains14")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains15")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains16")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains17")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains18")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains19")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains20")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains21")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains22")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains23")+"::OnEnable";
- donpcevent instance_npcname("#controlsara")+"::OnEnable";
+ close2();
+ donpcevent(instance_npcname("Sara Irene#sarains1")+"::OnDisable");
+ donpcevent(instance_npcname("Sara Irene#sarains4")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains5")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains6")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains7")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains8")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains9")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains10")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains11")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains12")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains13")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains14")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains15")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains16")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains17")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains18")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains19")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains20")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains21")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains22")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains23")+"::OnEnable");
+ donpcevent(instance_npcname("#controlsara")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains1")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains1")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Sara Irene#sarains1");
+ hideoffnpc(instance_npcname("Sara Irene#sarains1"));
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains1");
+ hideonnpc(instance_npcname("Sara Irene#sarains1"));
end;
}
1@sara,107,325,0 script Doyen Irene#sarains1 FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Doyen Irene#sarains1")+"::OnDisable";
+ donpcevent(instance_npcname("Doyen Irene#sarains1")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Doyen Irene#sarains1");
+ hideoffnpc(instance_npcname("Doyen Irene#sarains1"));
end;
OnDisable:
- hideonnpc instance_npcname("Doyen Irene#sarains1");
+ hideonnpc(instance_npcname("Doyen Irene#sarains1"));
end;
}
1@sara,107,327,0 script #controlsara CLEAR_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara");
- hideonnpc instance_npcname("#controlsara");
- initnpctimer;
+ enablenpc(instance_npcname("#controlsara"));
+ hideonnpc(instance_npcname("#controlsara"));
+ initnpctimer();
end;
OnDisable:
- disablenpc instance_npcname("#controlsara");
+ disablenpc(instance_npcname("#controlsara"));
end;
OnTimer2000:
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> The guards must be defeated to gain access to the next area."), bc_map, C_YELLOW);
@@ -694,12 +691,12 @@ OnTimer4000:
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> The guards have formed groups of their own to fight you!"), bc_map, C_YELLOW);
end;
OnTimer5000:
- donpcevent instance_npcname("#controlsara")+"::OnRespawn";
- stopnpctimer;
+ donpcevent(instance_npcname("#controlsara")+"::OnRespawn");
+ stopnpctimer();
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
-
+
monster(.@map$, .@x, .@y, _("Maggot"), MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 107, 325, _("Payon Town Guard"), PAYONSOLDIER, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 115, 325, _("Payon Town Guard"), PAYONSOLDIER, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
@@ -773,11 +770,11 @@ OnMyMobDead:
.@a_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@a_mob_num;
if (.@mob_dead_num > 57) {
- viewpoint 1, 209, 250, 1, C_GREEN;
+ viewpoint(1, 209, 250, 1, C_GREEN);
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Sara ran away again! You think she went in the 2 O'clock direction!"), bc_map, C_YELLOW);
- donpcevent instance_npcname("#controlsara")+"::OnDisable";
- donpcevent instance_npcname("#controlsara1")+"::OnEnable";
- donpcevent instance_npcname("#sarawarp2")+"::OnEnable";
+ donpcevent(instance_npcname("#controlsara")+"::OnDisable");
+ donpcevent(instance_npcname("#controlsara1")+"::OnEnable");
+ donpcevent(instance_npcname("#sarawarp2")+"::OnEnable");
}
end;
}
@@ -785,15 +782,15 @@ OnMyMobDead:
1@sara,230,316,0 script #controlsara1 CLEAR_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara1")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara1")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara1");
- hideonnpc instance_npcname("#controlsara1");
- donpcevent instance_npcname("#controlsara1")+"::OnRespawn";
+ enablenpc(instance_npcname("#controlsara1"));
+ hideonnpc(instance_npcname("#controlsara1"));
+ donpcevent(instance_npcname("#controlsara1")+"::OnRespawn");
end;
OnDisable:
- disablenpc instance_npcname("#controlsara1");
+ disablenpc(instance_npcname("#controlsara1"));
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
@@ -825,11 +822,11 @@ OnMyMobDead:
.@b_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@b_mob_num;
if (.@mob_dead_num > 15) {
- viewpoint 1, 226, 190, 1, C_GREEN;
+ viewpoint(1, 226, 190, 1, C_GREEN);
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Sara ran away yet again! You think she went in the 5 O'clock direction!"), bc_map, C_YELLOW);
- donpcevent instance_npcname("#controlsara1")+"::OnDisable";
- donpcevent instance_npcname("#controlsara2")+"::OnEnable";
- donpcevent instance_npcname("#sarawarp3")+"::OnEnable";
+ donpcevent(instance_npcname("#controlsara1")+"::OnDisable");
+ donpcevent(instance_npcname("#controlsara2")+"::OnEnable");
+ donpcevent(instance_npcname("#sarawarp3")+"::OnEnable");
}
end;
}
@@ -837,15 +834,15 @@ OnMyMobDead:
1@sara,263,94,0 script #controlsara2 CLEAR_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara2")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara2")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara2");
- hideonnpc instance_npcname("#controlsara2");
- donpcevent instance_npcname("#controlsara2")+"::OnRespawn";
+ enablenpc(instance_npcname("#controlsara2"));
+ hideonnpc(instance_npcname("#controlsara2"));
+ donpcevent(instance_npcname("#controlsara2")+"::OnRespawn");
end;
OnDisable:
- disablenpc instance_npcname("#controlsara2");
+ disablenpc(instance_npcname("#controlsara2"));
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
@@ -909,11 +906,11 @@ OnMyMobDead:
.@c_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@c_mob_num;
if (.@mob_dead_num > 44) {
- viewpoint 1, 166, 67, 1, C_GREEN;
+ viewpoint(1, 166, 67, 1, C_GREEN);
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Sara ran away yet again! *sigh* You think she went in the 6 O'clock direction!"), bc_map, C_YELLOW);
- donpcevent instance_npcname("#controlsara2")+"::OnDisable";
- donpcevent instance_npcname("#controlsara3")+"::OnEnable";
- donpcevent instance_npcname("#sarawarp4")+"::OnEnable";
+ donpcevent(instance_npcname("#controlsara2")+"::OnDisable");
+ donpcevent(instance_npcname("#controlsara3")+"::OnEnable");
+ donpcevent(instance_npcname("#sarawarp4")+"::OnEnable");
}
end;
}
@@ -921,15 +918,15 @@ OnMyMobDead:
1@sara,164,81,0 script #controlsara3 CLEAR_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara3")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara3")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara3");
- hideonnpc instance_npcname("#controlsara3");
- donpcevent instance_npcname("#controlsara3")+"::OnRespawn";
+ enablenpc(instance_npcname("#controlsara3"));
+ hideonnpc(instance_npcname("#controlsara3"));
+ donpcevent(instance_npcname("#controlsara3")+"::OnRespawn");
end;
OnDisable:
- disablenpc instance_npcname("#controlsara3");
+ disablenpc(instance_npcname("#controlsara3"));
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
@@ -975,7 +972,7 @@ OnRespawn:
monster(.@map$, 155, 180, _("Payon Town Guard"), PAYONSOLDIER2, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 157, 180, _("Payon Town Guard"), PAYONSOLDIER2, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 159, 180, _("Payon Town Guard"), PAYONSOLDIER2, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
-
+
monster(.@map$, 173, 139, _("Payon Town Guard"), PAYONSOLDIER, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 170, 139, _("Payon Town Guard"), PAYONSOLDIER, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
monster(.@map$, 167, 139, _("Payon Town Guard"), PAYONSOLDIER, 1, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
@@ -992,15 +989,15 @@ OnMyMobDead:
.@d_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@d_mob_num;
if (.@mob_dead_num > 42) {
- viewpoint 1, 155, 180, 1, C_GREEN;
+ viewpoint(1, 155, 180, 1, C_GREEN);
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Sara ran away yet again! You think she went in the 12 O'clock direction!"), bc_map, C_YELLOW);
- for (.@i=4; .@i<=23; .@i++) {
- donpcevent instance_npcname("Sara Irene#sarains" + .@i)+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains" + .@i)+"::OnDisable";
+ for (.@i = 4; .@i <= 23; .@i++) {
+ donpcevent(instance_npcname("Sara Irene#sarains" + .@i)+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains" + .@i)+"::OnDisable");
}
- donpcevent instance_npcname("#controlsara3")+"::OnDisable";
- donpcevent instance_npcname("#sarawarp5")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains2")+"::OnEnable";
+ donpcevent(instance_npcname("#controlsara3")+"::OnDisable");
+ donpcevent(instance_npcname("#sarawarp5")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains2")+"::OnEnable");
}
end;
}
@@ -1008,84 +1005,84 @@ OnMyMobDead:
1@sara,152,233,5 script Sara Irene#sarains2 4_F_SARAH_BABY,{
if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2))
end;
- cutin "sara_9sara2.bmp", 2;
+ cutin("sara_9sara2.bmp", 2);
mes("[Sara Irene]");
mes("Mommy!");
npctalk(_("Mommy!"));
- next;
- cutin "sara_elder_irine4.bmp", 2;
+ next();
+ cutin("sara_elder_irine4.bmp", 2);
mes("[Doyen Irene]");
mes("Sara...");
npctalk(_("Sara..."), instance_npcname("Doyen Irene#sarains2"));
- next;
- cutin "sara_9sara2.bmp", 2;
+ next();
+ cutin("sara_9sara2.bmp", 2);
mes("[Sara Irene]");
mes("No!");
npctalk(_("No!"));
- next;
- cutin "sara_elder_irine4.bmp", 2;
+ next();
+ cutin("sara_elder_irine4.bmp", 2);
mes("[Doyen Irene]");
mes("I have been looking for you Sara. Please come with daddy it is very dangerous here!");
npctalk(_("I have been looking for you Sara. Please come with daddy it is very dangerous here!"), instance_npcname("Doyen Irene#sarains2"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("I won't let you take Sara!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("I won't let you take Sara!"));
- next;
- cutin "sara_elder_irine3.bmp", 2;
+ next();
+ cutin("sara_elder_irine3.bmp", 2);
mes("[Doyen Irene]");
mes("The murderer is here! Guards! We will finish him once and for all!");
npctalk(_("The murderer is here! Guards! We will finish him once and for all!"), instance_npcname("Doyen Irene#sarains2"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("Sara... run! Save yourself!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Sara... run! Save yourself!"));
- next;
- cutin "sara_9sara2.bmp", 2;
+ next();
+ cutin("sara_9sara2.bmp", 2);
mes("[Sara Irene]");
mes("...okay.");
npctalk(_("...okay."));
- close2;
- cutin "sara_9sara2.bmp", 255;
- donpcevent instance_npcname("Sara Irene#sarains2")+"::OnDisable";
- donpcevent instance_npcname("#controlsara4")+"::OnEnable";
+ close2();
+ cutin("sara_9sara2.bmp", 255);
+ donpcevent(instance_npcname("Sara Irene#sarains2")+"::OnDisable");
+ donpcevent(instance_npcname("#controlsara4")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains2")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains2")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Sara Irene#sarains2");
+ hideoffnpc(instance_npcname("Sara Irene#sarains2"));
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains2");
+ hideonnpc(instance_npcname("Sara Irene#sarains2"));
end;
}
1@sara,152,233,5,0 script Doyen Irene#sarains2 FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("Doyen Irene#sarains2")+"::OnDisable";
+ donpcevent(instance_npcname("Doyen Irene#sarains2")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Doyen Irene#sarains2");
+ hideoffnpc(instance_npcname("Doyen Irene#sarains2"));
end;
OnDisable:
- hideonnpc instance_npcname("Doyen Irene#sarains2");
+ hideonnpc(instance_npcname("Doyen Irene#sarains2"));
end;
}
1@sara,152,233,0 script #controlsara4 FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara4")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara4")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara4");
- donpcevent instance_npcname("#controlsara4")+"::OnRespawn";
+ enablenpc(instance_npcname("#controlsara4"));
+ donpcevent(instance_npcname("#controlsara4")+"::OnRespawn");
end;
OnDisable:
- disablenpc instance_npcname("#controlsara4");
+ disablenpc(instance_npcname("#controlsara4"));
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
@@ -1112,9 +1109,9 @@ OnMyMobDead:
.@f_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@f_mob_num;
if (.@mob_dead_num > 7) {
- mapannounce(instance_mapname("1@sara"),_("<SYSTEM> Doyen Irene draws his blade!"), bc_map, C_YELLOW);
- donpcevent instance_npcname("#controlsara4")+"::OnDisable";
- donpcevent instance_npcname("#controlsara5")+"::OnEnable";
+ mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Doyen Irene draws his blade!"), bc_map, C_YELLOW);
+ donpcevent(instance_npcname("#controlsara4")+"::OnDisable");
+ donpcevent(instance_npcname("#controlsara5")+"::OnEnable");
}
end;
}
@@ -1122,14 +1119,14 @@ OnMyMobDead:
1@sara,155,226,0 script #controlsara5 FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("#controlsara5")+"::OnDisable";
+ donpcevent(instance_npcname("#controlsara5")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("#controlsara5");
- donpcevent instance_npcname("#controlsara5")+"::OnRespawn";
+ enablenpc(instance_npcname("#controlsara5"));
+ donpcevent(instance_npcname("#controlsara5")+"::OnRespawn");
end;
OnDisable:
- disablenpc instance_npcname("#controlsara5");
+ disablenpc(instance_npcname("#controlsara5"));
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
@@ -1143,8 +1140,8 @@ OnMyMobDead:
.@mob_dead_num = .@callnum - .@g_mob_num;
if (.@mob_dead_num > 0) {
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Doyen Irene has fallen."), bc_map, C_YELLOW);
- donpcevent instance_npcname("#controlsara5")+"::OnDisable";
- donpcevent instance_npcname("Doyen Irene#sarains3")+"::OnEnable";
+ donpcevent(instance_npcname("#controlsara5")+"::OnDisable");
+ donpcevent(instance_npcname("Doyen Irene#sarains3")+"::OnEnable");
}
end;
}
@@ -1152,82 +1149,82 @@ OnMyMobDead:
1@sara,156,236,3 script Doyen Irene#sarains3 4_M_CHIEF_IRIN,{
if (getcharid(CHAR_ID_CHAR) != getpartyleader(getcharid(CHAR_ID_PARTY), 2))
end;
- cutin "sara_elder_irine4.bmp", 2;
+ cutin("sara_elder_irine4.bmp", 2);
mes("[Doyen Irene]");
mes("You... were too strong for me.");
npctalk(_("You... were too strong for me."));
- next;
+ next();
mes("[Doyen Irene]");
mes("Why.. *hack* are you trying to kill my wife and daughter?");
npctalk(_("Why.. *hack* are you trying to kill my wife and daughter?"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("What are you talking about? We saw you standing over Sara's mother with your sword COVERED in blood!");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("What are you talking about? We saw you standing over Sara's mother with your sword COVERED in blood!"));
- next;
+ next();
mes("[Doyen Irene]");
mes("You.. think I killed Sara's mother?");
npctalk(_("You.. think I killed Sara's mother?"));
- next;
+ next();
mes("[Doyen Irene]");
mes("She *cough* had already been killed by an assassin. I slew him that *hack* is why my blade was covered in blood...");
npctalk(_("She *cough* had already been killed by an assassin. I slew him that *hack* is why my blade was covered in blood..."));
- next;
- cutin "sara_elder_irine4.bmp", 255;
- cutin "sara_momdie.bmp", 4;
+ next();
+ cutin("sara_elder_irine4.bmp", 255);
+ cutin("sara_momdie.bmp", 4);
mes("^FF0000Thinking back you seem to recall another body laying in the left\r"
"corner of the room. Maybe that was the assassin the Doyen is talking about.^000000");
dispbottom(_("Thinking back you seem to recall another body laying in the left corner of the room. Maybe that was the assassin the Doyen is talking about."));
- next;
- cutin "sara_momdie.bmp", 255;
- cutin "sara_elder_irine4.bmp", 2;
+ next();
+ cutin("sara_momdie.bmp", 255);
+ cutin("sara_elder_irine4.bmp", 2);
mes("[Doyen Irene]");
mes("If.. you are not the assassin sent to kill my wife and daughter, who are you?");
npctalk(_("If.. you are not the assassin sent to kill my wife and daughter, who are you?"));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("I am just an adventurer who was passing through. I heard some men plotting their deaths and needed to intervene.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("I am just an adventurer who was passing through. I heard some men plotting their deaths and needed to intervene."));
- next;
+ next();
mes("[Doyen Irene]");
mes("If.. you are telling the truth...\r"
"forgive me. I though you were one of them.");
npctalk(_("If.. you are telling the truth... forgive me. I though you were one of them."));
- next;
+ next();
mes("[Doyen Irene]");
mes("Strange men... I bet they were some of the village elders. Ugh...");
npctalk(_("Strange men... I bet they were some of the village elders. Ugh..."));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("There might be more assassins so we have to find Sara as fast as we can.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("There might be more assassins so we have to find Sara as fast as we can."));
- next;
+ next();
mesf("[%s]", strcharinfo(PC_NAME));
mes("Sara believes that you killed her mother. We need to tell her the truth.");
unittalk(getcharid(CHAR_ID_ACCOUNT), _("Sara believes that you killed her mother. We need to tell her the truth."));
- next;
+ next();
mes("[Doyen Irene]");
mes("We must do our best to find her. Let's split up and search for her.\r"
"Please help me find my daughter and explain everything to her.");
npctalk(_("We must do our best to find her. Let's split up and search for her. Please help me find my daughter and explain everything to her."));
- close2;
- cutin "sara_elder_irine4.bmp", 255;
- viewpoint 1, 88, 188, 1, C_GREEN;
+ close2();
+ cutin("sara_elder_irine4.bmp", 255);
+ viewpoint(1, 88, 188, 1, C_GREEN);
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> We must find Sara. You seem remember her running in the 8 O'clock direction."), bc_map, C_YELLOW);
- donpcevent instance_npcname("Doyen Irene#sarains3")+"::OnDisable";
- donpcevent instance_npcname("#sarawarp6")+"::OnEnable";
- donpcevent instance_npcname("????-#saratalk")+"::OnEnable";
- donpcevent instance_npcname("Sara Irene#sarains3")+"::OnEnable";
+ donpcevent(instance_npcname("Doyen Irene#sarains3")+"::OnDisable");
+ donpcevent(instance_npcname("#sarawarp6")+"::OnEnable");
+ donpcevent(instance_npcname("????-#saratalk")+"::OnEnable");
+ donpcevent(instance_npcname("Sara Irene#sarains3")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Doyen Irene#sarains3")+"::OnDisable";
+ donpcevent(instance_npcname("Doyen Irene#sarains3")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Doyen Irene#sarains3");
+ hideoffnpc(instance_npcname("Doyen Irene#sarains3"));
end;
OnDisable:
- hideonnpc instance_npcname("Doyen Irene#sarains3");
+ hideonnpc(instance_npcname("Doyen Irene#sarains3"));
end;
}
@@ -1236,69 +1233,69 @@ OnDisable:
end;
mes("^FF0000As you are about to call out to Sara a sudden blow knocks you down from behind.^000000");
dispbottom(_("As you are about to call out to Sara a sudden blow knocks you down from behind."));
- next;
- cutin "sara_beholder.bmp", 2;
+ next();
+ cutin("sara_beholder.bmp", 2);
mes("[?????]");
mes("The time travellers cannot interfere any longer. You cannot stop us from meeting Sara.");
npctalk(_("The time travellers cannot interfere any longer. You cannot stop us from meeting Sara."), instance_npcname("????-#saratalk"));
- next;
+ next();
mes("[?????]");
mes("You should go back to the time where you belong.");
npctalk(_("You should go back to the time where you belong."), instance_npcname("????-#saratalk"));
- next;
+ next();
mes("^FF0000As you fall to the ground two dark figures approach Sara.^000000");
dispbottom(_("As you fall to the ground two dark figures approach Sara."));
- next;
+ next();
mes("[?????]");
mes("A girl full of betrayal, despair, and hate. We will guide you to your ultimate fate.");
npctalk(_("A girl full of betrayal, despair, and hate. We will guide you to your ultimate fate."), instance_npcname("????-#saratalk"));
- next;
- cutin "sara_9sara2.bmp", 2;
+ next();
+ cutin("sara_9sara2.bmp", 2);
mes("[Sara Irene]");
mes("...");
npctalk("...");
- next;
- cutin "sara_beholder.bmp", 2;
+ next();
+ cutin("sara_beholder.bmp", 2);
mes("[?????]");
mes("Sara Irene, he will make your dreams come true.");
npctalk(_("Sara Irene, he will make your dreams come true."), instance_npcname("????-#saratalk"));
- next;
- cutin "sara_beholder.bmp", 255;
+ next();
+ cutin("sara_beholder.bmp", 255);
mes("^FF0000One of the cloaked strangers covers Sara with their cloak and all three figures disappear.^000000");
dispbottom(_("One of the cloaked strangers covers Sara with their cloak and all three figures disappear."));
- donpcevent instance_npcname("Sara Irene#sarains3")+"::OnDisable";
- next;
+ donpcevent(instance_npcname("Sara Irene#sarains3")+"::OnDisable");
+ next();
mes("^FF0000At the same time as Sara disappearing this place begin to become unstable, just like what Leon said before.^000000");
dispbottom(_("At the same time as Sara disappearing this place begin to become unstable, just like what Leon said before."));
- next;
+ next();
mes("^FF0000We need to get out from this place quickly to the left. And when we at the outside let's talk to him.^000000");
dispbottom(_("We need to get out from this place quickly to the left. And when we at the outside let's talk to him."));
- close2;
- donpcevent instance_npcname("????-#saratalk")+"::OnDisable";
- donpcevent instance_npcname("#sarawarp7")+"::OnEnable";
+ close2();
+ donpcevent(instance_npcname("????-#saratalk")+"::OnDisable");
+ donpcevent(instance_npcname("#sarawarp7")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains3")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains3")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("Sara Irene#sarains3");
+ hideoffnpc(instance_npcname("Sara Irene#sarains3"));
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains3");
+ hideonnpc(instance_npcname("Sara Irene#sarains3"));
end;
}
1@sara,152,233,0 script ????-#saratalk FAKE_NPC,{
end;
OnInstanceInit:
- donpcevent instance_npcname("????-#saratalk")+"::OnDisable";
+ donpcevent(instance_npcname("????-#saratalk")+"::OnDisable");
end;
OnEnable:
- hideoffnpc instance_npcname("????-#saratalk");
+ hideoffnpc(instance_npcname("????-#saratalk"));
end;
OnDisable:
- hideonnpc instance_npcname("????-#saratalk");
+ hideonnpc(instance_npcname("????-#saratalk"));
end;
}
@@ -1306,23 +1303,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Why daddy?"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains4")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains4")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains4")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains4")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains4")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains4")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains4");
- hideoffnpc instance_npcname("Sara Irene#sarains4");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains4"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains4"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains4");
- disablenpc instance_npcname("Sara Irene#sarains4");
+ hideonnpc(instance_npcname("Sara Irene#sarains4"));
+ disablenpc(instance_npcname("Sara Irene#sarains4"));
end;
}
@@ -1330,23 +1327,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Not mommy!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains5")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains5")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains5")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains5")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains5")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains5")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains5");
- hideoffnpc instance_npcname("Sara Irene#sarains5");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains5"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains5"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains5");
- disablenpc instance_npcname("Sara Irene#sarains5");
+ hideonnpc(instance_npcname("Sara Irene#sarains5"));
+ disablenpc(instance_npcname("Sara Irene#sarains5"));
end;
}
@@ -1354,23 +1351,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Why did he do it?!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains6")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains6")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains6")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains6")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains6")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains6")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains6");
- hideoffnpc instance_npcname("Sara Irene#sarains6");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains6"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains6"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains6");
- disablenpc instance_npcname("Sara Irene#sarains6");
+ hideonnpc(instance_npcname("Sara Irene#sarains6"));
+ disablenpc(instance_npcname("Sara Irene#sarains6"));
end;
}
@@ -1378,23 +1375,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Why.. why?!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains7")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains7")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains7")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains7")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains7")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains7")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains7");
- hideoffnpc instance_npcname("Sara Irene#sarains7");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains7"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains7"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains7");
- disablenpc instance_npcname("Sara Irene#sarains7");
+ hideonnpc(instance_npcname("Sara Irene#sarains7"));
+ disablenpc(instance_npcname("Sara Irene#sarains7"));
end;
}
@@ -1402,23 +1399,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Noooo..."));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains8")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains8")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains8")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains8")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains8")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains8")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains8");
- hideoffnpc instance_npcname("Sara Irene#sarains8");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains8"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains8"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains8");
- disablenpc instance_npcname("Sara Irene#sarains8");
+ hideonnpc(instance_npcname("Sara Irene#sarains8"));
+ disablenpc(instance_npcname("Sara Irene#sarains8"));
end;
}
@@ -1426,23 +1423,23 @@ OnDisable:
end;
OnTouch:
npctalk("...");
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains9")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains9")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains9")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains9")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains9")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains9")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains9");
- hideoffnpc instance_npcname("Sara Irene#sarains9");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains9"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains9"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains9");
- disablenpc instance_npcname("Sara Irene#sarains9");
+ hideonnpc(instance_npcname("Sara Irene#sarains9"));
+ disablenpc(instance_npcname("Sara Irene#sarains9"));
end;
}
@@ -1450,23 +1447,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Why does it hurt so much?"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains10")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains10")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains10")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains10")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains10")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains10")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains10");
- hideoffnpc instance_npcname("Sara Irene#sarains10");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains10"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains10"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains10");
- disablenpc instance_npcname("Sara Irene#sarains10");
+ hideonnpc(instance_npcname("Sara Irene#sarains10"));
+ disablenpc(instance_npcname("Sara Irene#sarains10"));
end;
}
@@ -1474,23 +1471,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("........"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains11")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains11")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains11")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains11")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains11")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains11")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains11");
- hideoffnpc instance_npcname("Sara Irene#sarains11");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains11"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains11"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains11");
- disablenpc instance_npcname("Sara Irene#sarains11");
+ hideonnpc(instance_npcname("Sara Irene#sarains11"));
+ disablenpc(instance_npcname("Sara Irene#sarains11"));
end;
}
@@ -1498,23 +1495,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("...Mommy"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains12")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains12")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains12")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains12")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains12")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains12")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains12");
- hideoffnpc instance_npcname("Sara Irene#sarains12");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains12"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains12"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains12");
- disablenpc instance_npcname("Sara Irene#sarains12");
+ hideonnpc(instance_npcname("Sara Irene#sarains12"));
+ disablenpc(instance_npcname("Sara Irene#sarains12"));
end;
}
@@ -1522,23 +1519,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("What happened to you daddy?"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains13")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains13")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains13")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains13")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains13")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains13")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains13");
- hideoffnpc instance_npcname("Sara Irene#sarains13");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains13"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains13"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains13");
- disablenpc instance_npcname("Sara Irene#sarains13");
+ hideonnpc(instance_npcname("Sara Irene#sarains13"));
+ disablenpc(instance_npcname("Sara Irene#sarains13"));
end;
}
@@ -1546,23 +1543,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("All that blood..."));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains14")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains14")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains14")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains14")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains14")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains14")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains14");
- hideoffnpc instance_npcname("Sara Irene#sarains14");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains14"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains14"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains14");
- disablenpc instance_npcname("Sara Irene#sarains14");
+ hideonnpc(instance_npcname("Sara Irene#sarains14"));
+ disablenpc(instance_npcname("Sara Irene#sarains14"));
end;
}
@@ -1570,23 +1567,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Who are you?!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains15")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains15")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains15")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains15")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains15")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains15")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains15");
- hideoffnpc instance_npcname("Sara Irene#sarains15");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains15"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains15"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains15");
- disablenpc instance_npcname("Sara Irene#sarains15");
+ hideonnpc(instance_npcname("Sara Irene#sarains15"));
+ disablenpc(instance_npcname("Sara Irene#sarains15"));
end;
}
@@ -1594,23 +1591,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("I want my mommy!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains16")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains16")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains16")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains16")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains16")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains16")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains16");
- hideoffnpc instance_npcname("Sara Irene#sarains16");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains16"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains16"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains16");
- disablenpc instance_npcname("Sara Irene#sarains16");
+ hideonnpc(instance_npcname("Sara Irene#sarains16"));
+ disablenpc(instance_npcname("Sara Irene#sarains16"));
end;
}
@@ -1618,23 +1615,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("........"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains17")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains17")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains17")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains17")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains17")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains17")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains17");
- hideoffnpc instance_npcname("Sara Irene#sarains17");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains17"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains17"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains17");
- disablenpc instance_npcname("Sara Irene#sarains17");
+ hideonnpc(instance_npcname("Sara Irene#sarains17"));
+ disablenpc(instance_npcname("Sara Irene#sarains17"));
end;
}
@@ -1642,23 +1639,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Nooooo..."));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains18")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains18")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains18")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains18")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains18")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains18")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains18");
- hideoffnpc instance_npcname("Sara Irene#sarains18");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains18"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains18"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains18");
- disablenpc instance_npcname("Sara Irene#sarains18");
+ hideonnpc(instance_npcname("Sara Irene#sarains18"));
+ disablenpc(instance_npcname("Sara Irene#sarains18"));
end;
}
@@ -1666,23 +1663,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Mommy!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains19")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains19")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains19")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains19")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains19")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains19")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains19");
- hideoffnpc instance_npcname("Sara Irene#sarains19");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains19"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains19"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains19");
- disablenpc instance_npcname("Sara Irene#sarains19");
+ hideonnpc(instance_npcname("Sara Irene#sarains19"));
+ disablenpc(instance_npcname("Sara Irene#sarains19"));
end;
}
@@ -1690,23 +1687,23 @@ OnDisable:
end;
OnTouch:
npctalk("........");
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains20")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains20")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains20")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains20")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains20")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains20")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains20");
- hideoffnpc instance_npcname("Sara Irene#sarains20");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains20"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains20"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains20");
- disablenpc instance_npcname("Sara Irene#sarains20");
+ hideonnpc(instance_npcname("Sara Irene#sarains20"));
+ disablenpc(instance_npcname("Sara Irene#sarains20"));
end;
}
@@ -1714,23 +1711,23 @@ OnDisable:
end;
OnTouch:
npctalk(_("Daddy!"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains21")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains21")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains21")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains21")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains21")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains21")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains21");
- hideoffnpc instance_npcname("Sara Irene#sarains21");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains21"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains21"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains21");
- disablenpc instance_npcname("Sara Irene#sarains21");
+ hideonnpc(instance_npcname("Sara Irene#sarains21"));
+ disablenpc(instance_npcname("Sara Irene#sarains21"));
end;
}
@@ -1738,23 +1735,23 @@ OnDisable:
end;
OnTouch:
npctalk("........");
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains22")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains22")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains22")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains22")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains22")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains22")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains22");
- hideoffnpc instance_npcname("Sara Irene#sarains22");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains22"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains22"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains22");
- disablenpc instance_npcname("Sara Irene#sarains22");
+ hideonnpc(instance_npcname("Sara Irene#sarains22"));
+ disablenpc(instance_npcname("Sara Irene#sarains22"));
end;
}
@@ -1762,22 +1759,22 @@ OnDisable:
end;
OnTouch:
npctalk(_("Why?"));
- initnpctimer;
- donpcevent instance_npcname("Sara Irene#sarains23")+"::OnDisable";
+ initnpctimer();
+ donpcevent(instance_npcname("Sara Irene#sarains23")+"::OnDisable");
end;
OnTimer60000:
- donpcevent instance_npcname("Sara Irene#sarains23")+"::OnEnable";
+ donpcevent(instance_npcname("Sara Irene#sarains23")+"::OnEnable");
end;
OnInstanceInit:
- donpcevent instance_npcname("Sara Irene#sarains23")+"::OnDisable";
+ donpcevent(instance_npcname("Sara Irene#sarains23")+"::OnDisable");
end;
OnEnable:
- enablenpc instance_npcname("Sara Irene#sarains23");
- hideoffnpc instance_npcname("Sara Irene#sarains23");
- stopnpctimer;
+ enablenpc(instance_npcname("Sara Irene#sarains23"));
+ hideoffnpc(instance_npcname("Sara Irene#sarains23"));
+ stopnpctimer();
end;
OnDisable:
- hideonnpc instance_npcname("Sara Irene#sarains23");
- disablenpc instance_npcname("Sara Irene#sarains23");
+ hideonnpc(instance_npcname("Sara Irene#sarains23"));
+ disablenpc(instance_npcname("Sara Irene#sarains23"));
end;
}