diff options
Diffstat (limited to 'npc/re')
-rw-r--r-- | npc/re/instances/BakonawaLake.txt | 652 | ||||
-rw-r--r-- | npc/re/instances/OldGlastHeim.txt | 1447 | ||||
-rw-r--r-- | npc/re/instances/ghost_palace.txt | 407 | ||||
-rw-r--r-- | npc/re/instances/octopus_cave.txt | 290 | ||||
-rw-r--r-- | npc/re/instances/saras_memory.txt | 1029 | ||||
-rw-r--r-- | npc/re/merchants/coin_exchange.txt | 2 | ||||
-rw-r--r-- | npc/re/merchants/enchan_mal.txt | 42 | ||||
-rw-r--r-- | npc/re/quests/eden/eden_tutorial.txt | 6 | ||||
-rw-r--r-- | npc/re/quests/quests_dewata.txt | 2 |
9 files changed, 2003 insertions, 1874 deletions
diff --git a/npc/re/instances/BakonawaLake.txt b/npc/re/instances/BakonawaLake.txt index 2868cc589..65622171b 100644 --- a/npc/re/instances/BakonawaLake.txt +++ b/npc/re/instances/BakonawaLake.txt @@ -34,223 +34,234 @@ //========================================================================= 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); + .@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; + mes("[Taho]"); + mes("Oh, the rope got dropped. I have to make a new one."); + close(); } - if (instance_attachmap("1@ma_b",.@instance) == "") { - mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!"; + if (instance_attachmap("1@ma_b", .@instance) == "") { + mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$); instance_destroy(.@instance); - close; + close(); } - instance_set_timeout 7200,300,.@instance; + 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 +270,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 +398,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/OldGlastHeim.txt b/npc/re/instances/OldGlastHeim.txt index a1d6884f9..c317e7495 100644 --- a/npc/re/instances/OldGlastHeim.txt +++ b/npc/re/instances/OldGlastHeim.txt @@ -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")) { @@ -114,49 +114,48 @@ glast_01,204,273,6 script Hugin#ghinstance 4_M_SAGE_C,{ mesf("Party Name: %s", .@p_name$); mesf("Party Leader: %s", strcharinfo(PC_NAME)); mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$); - close; + 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; + close(); } 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."); - specialeffect(EF_BLIND,AREA, AREA, playerattached()); - 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."); specialeffect(EF_FREEZE, AREA, playerattached()); - close2; + 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."); - specialeffect(EF_PHARMACY_FAIL, AREA, playerattached()); delitem Coagulated_Spell, .@cost; delequip .@part; - close; + specialeffect(EF_PHARMACY_FAIL, AREA, playerattached()); + delitem(Coagulated_Spell, .@cost); + delequip(.@part); + close(); } specialeffect(EF_REPAIRWEAPON, AREA, playerattached()); - delitem Coagulated_Spell, .@cost; - delequip .@part; + 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."); specialeffect(EF_PHARMACY_FAIL, AREA, playerattached()); - delitem Coagulated_Spell, .@cost; - delequip .@part; - close; + 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."); specialeffect(EF_PHARMACY_FAIL, AREA, playerattached()); - delitem Coagulated_Spell, .@cost; - delequip .@part; - close; + delitem(Coagulated_Spell, .@cost); + delequip(.@part); + close(); } specialeffect(EF_REPAIRWEAPON, AREA, playerattached()); - delitem Coagulated_Spell, .@cost; - delequip .@part; + 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,43 +2658,43 @@ 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); @@ -2652,34 +2702,33 @@ glast_01,210,270,0 script Hugin's Craftsman 4_F_JOB_BLACKSMITH,{ mes("[Hugin's Craftsman]"); mes("Arrggg, we failed. Better luck next time."); specialeffect(EF_PHARMACY_FAIL, AREA, playerattached()); - delitem .@item, .@cost; - delequip .@part; - close; + 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; + delitem(.@item, .@cost); specialeffect(EF_PHARMACY_OK, AREA, playerattached()); - delequip .@part; + 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/ghost_palace.txt b/npc/re/instances/ghost_palace.txt index 6e77db2f8..e4ca12f99 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,25 +72,25 @@ 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"; + .@md_name$ = _("Ghost Palace"); if (.@instance < 0) { mesf("Party Name: %s", .@p_name$); mesf("Party Leader: %s", strcharinfo(PC_NAME)); @@ -100,7 +100,8 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{ if (instance_attachmap("1@spa", .@instance) != "") { instance_set_timeout(3600, 300, .@instance); instance_init(.@instance); - if (!questprogress(1260)) setquest 1260; + if (!questprogress(1260)) + setquest(1260); mes("[Unpleasent Royal Guard]"); mes("Thank You..\r" "I will open the secret passage to ^0000FFGhost Palace.^000000\r" @@ -117,23 +118,23 @@ 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 +142,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 +156,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 +167,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 +205,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 +223,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 +279,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 +291,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 +334,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 +358,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 +392,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 +415,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 +444,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 +502,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 +539,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 +603,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 +631,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 +684,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 +723,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 +745,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 +768,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 +803,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..e4d8d4357 100644 --- a/npc/re/instances/octopus_cave.txt +++ b/npc/re/instances/octopus_cave.txt @@ -37,51 +37,52 @@ 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) { @@ -90,12 +91,12 @@ mal_dun01,151,235,5 script Starfish 4_ASTER,{ 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; + close(); } if (instance_attachmap("1@cash", .@instance) == "") { mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$); instance_destroy(.@instance); - close; + close(); } instance_set_timeout(3600, 300, .@instance); instance_init(.@instance); @@ -103,23 +104,23 @@ mal_dun01,151,235,5 script Starfish 4_ASTER,{ 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 +128,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 +155,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 +183,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 +206,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 +224,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 +251,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 +287,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 +349,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 +365,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 +413,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 +439,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 +481,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 +504,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 +540,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 +610,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 +633,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 +653,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 +671,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..c9a47534b 100644 --- a/npc/re/instances/saras_memory.txt +++ b/npc/re/instances/saras_memory.txt @@ -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")) { @@ -189,30 +189,30 @@ dali,138,118,0 script Dimensional Device#dimen PORTAL,{ mesf("Party Name: %s", .@p_name$); mesf("Party Leader: %s", strcharinfo(PC_NAME)); mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$); - close; + close(); } if (instance_attachmap("1@sara", .@instance) == "") { mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$); instance_destroy(.@instance); - close; + 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 +223,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 +693,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 +772,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 +784,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 +824,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 +836,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 +908,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 +920,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 +974,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 +991,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 +1007,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 +1111,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 +1121,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 +1142,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 +1151,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 +1235,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 +1305,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 +1329,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 +1353,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 +1377,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 +1401,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 +1425,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 +1449,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 +1473,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 +1497,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 +1521,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 +1545,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 +1569,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 +1593,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 +1617,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 +1641,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 +1665,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 +1689,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 +1713,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 +1737,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 +1761,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; } diff --git a/npc/re/merchants/coin_exchange.txt b/npc/re/merchants/coin_exchange.txt index be9f1dbee..f35c722f7 100644 --- a/npc/re/merchants/coin_exchange.txt +++ b/npc/re/merchants/coin_exchange.txt @@ -569,7 +569,7 @@ function script F_mal_coin { mes "I'm sorry, you need more "+.@str$+"."; close; } - if (MaxWeight - Weight < getiteminfo(getarg(3),6)) { + if (MaxWeight - Weight < getiteminfo(getarg(3), ITEMINFO_WEIGHT)) { mes getarg(1); mes "Sorry, you've purchased too many."; mes "You need to make more space in your inventory. Please come back later."; diff --git a/npc/re/merchants/enchan_mal.txt b/npc/re/merchants/enchan_mal.txt index bea4c6e03..e921a7336 100644 --- a/npc/re/merchants/enchan_mal.txt +++ b/npc/re/merchants/enchan_mal.txt @@ -84,11 +84,11 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ close; } @mal_equip_id = getequipid(EQI_HAND_R); - .@equip_type = getiteminfo(@mal_equip_id,11); + .@equip_type = getiteminfo(@mal_equip_id, ITEMINFO_SUBTYPE); //callsub L_Socket,<cost multiplier>,<4-x enchants possible>; switch(.@equip_type) { // Check weapon type first to speed up the checks. - case 1: // Daggers + case W_DAGGER: // Daggers switch(@mal_equip_id) { case 1224: callsub L_Socket,1,2; //Sword_Breaker case 1225: callsub L_Socket,1,2; //Mail_Breaker @@ -114,7 +114,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 13062: callsub L_Socket,4,2; //Ancient_Dagger } break; - case 16: // Katars + case W_KATAR: // Katars switch(@mal_equip_id) { case 1271: callsub L_Socket,1,2; //Blood_Tears case 1263: callsub L_Socket,1,2; //Unholy_Touch @@ -128,13 +128,13 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1266: callsub L_Socket,4,2; //Infiltrator_ } break; - case 6: // 1-H Axes + case W_1HAXE: // 1-H Axes switch(@mal_equip_id) { case 1305: callsub L_Socket,1,2; //Cleaver case 1311: callsub L_Socket,1,2; //Vecer_Axe } break; - case 7: // 2-H Axes + case W_2HAXE: // 2-H Axes switch(@mal_equip_id) { case 1364: callsub L_Socket,1,2; //Great_Axe case 1365: callsub L_Socket,1,2; //Sabbath @@ -151,7 +151,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1371: callsub L_Socket,4,2; //Doom_Slayer_ } break; - case 2: // 1-H Swords + case W_1HSWORD: // 1-H Swords switch(@mal_equip_id) { case 1131: callsub L_Socket,1,2; //Ice_Falchon case 1133: callsub L_Socket,1,2; //Fire_Brand @@ -170,7 +170,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1132: callsub L_Socket,4,2; //Edge } break; - case 3: // 2-H Swords + case W_2HSWORD: // 2-H Swords switch(@mal_equip_id) { case 1164: callsub L_Socket,1,2; //Muramasa case 1166: callsub L_Socket,1,2; //Dragon_Slayer @@ -194,7 +194,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1186: callsub L_Socket,4,2; //Death_Guidance } break; - case 4: // 1-H Spears + case W_1HSPEAR: // 1-H Spears switch(@mal_equip_id) { case 1420: callsub L_Socket,1,2; //Long_Horn case 1413: callsub L_Socket,1,2; //Gungnir @@ -207,7 +207,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1422: callsub L_Socket,4,2; //Hunting_Spear } break; - case 5: // 2-H Spears + case W_2HSPEAR: // 2-H Spears switch(@mal_equip_id) { case 1466: callsub L_Socket,1,2; //Crescent_Scythe case 1467: callsub L_Socket,1,2; //Bill_Guisarme @@ -224,7 +224,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1484: callsub L_Socket,2,2; //Cardo } break; - case 10: // Staves + case W_STAFF: // Staves switch(@mal_equip_id) { case 1616: callsub L_Socket,1,2; //Staff_Of_Wing case 1629: callsub L_Socket,1,2; //Walking_Stick @@ -236,7 +236,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1473: callsub L_Socket,1,2; //Wizardy_Staff } break; - case 23: // New 2-H Staves + case W_2HSTAFF: // New 2-H Staves switch(@mal_equip_id) { case 2004: callsub L_Socket,1,2; //Kronos case 2005: callsub L_Socket,1,2; //Dea_Staff @@ -244,7 +244,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 2000: callsub L_Socket,4,2; //Destruction_Rod } break; - case 8: // Maces + case W_MACE: // Maces switch(@mal_equip_id) { case 1524: callsub L_Socket,1,2; //Golden_Mace case 1525: callsub L_Socket,1,2; //Long_Mace @@ -261,7 +261,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1540: callsub L_Socket,4,2; //Grand_Cross_ } break; - case 15: // Books + case W_BOOK: // Books switch(@mal_equip_id) { case 1557: callsub L_Socket,1,2; //Book_Of_The_Apocalypse case 1558: callsub L_Socket,1,2; //Girls_Diary @@ -271,7 +271,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1565: callsub L_Socket,4,2; //Death_Note } break; - case 12: // Knuckles + case W_KNUCKLE: // Knuckles switch(@mal_equip_id) { case 1813: callsub L_Socket,1,2; //Kaiser_Knuckle case 1814: callsub L_Socket,1,2; //Berserk @@ -280,7 +280,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1830: callsub L_Socket,2,2; //Sura_Rampage } break; - case 11: // Bows + case W_BOW: // Bows switch(@mal_equip_id) { case 1719: callsub L_Socket,1,2; //Bow_Of_Roguemaster case 1722: callsub L_Socket,1,2; //Balistar @@ -295,7 +295,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1720: callsub L_Socket,2,2; //Bow_Of_Rudra } break; - case 13: // Musical Instruments + case W_MUSICAL: // Musical Instruments switch(@mal_equip_id) { case 1913: callsub L_Socket,1,2; //Electronic_Guitar case 1918: callsub L_Socket,1,2; //Oriental_Lute @@ -305,7 +305,7 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1930: callsub L_Socket,2,2; //Green_Whistle } break; - case 14: // Whips + case W_WHIP: // Whips switch(@mal_equip_id) { case 1962: callsub L_Socket,1,2; //Lariat case 1963: callsub L_Socket,1,2; //Rapture_Rose @@ -321,6 +321,14 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ case 1985: callsub L_Socket,4,2; //Rosebine } break; + case W_2HMACE: + case W_REVOLVER: + case W_RIFLE: + case W_GATLING: + case W_SHOTGUN: + case W_GRENADE: + case W_HUUMA: + break; } mes "[Mayomayo]"; if (@mal_enchant_select == 1) diff --git a/npc/re/quests/eden/eden_tutorial.txt b/npc/re/quests/eden/eden_tutorial.txt index 45d7c6f1e..902db7945 100644 --- a/npc/re/quests/eden/eden_tutorial.txt +++ b/npc/re/quests/eden/eden_tutorial.txt @@ -290,7 +290,7 @@ moc_para01,34,178,3 script Tutorial Instructor 4_M_KHMAN,{ close; } else if (questprogress(9168) == 1) { if (checkweight(Yggdrasilberry,1) == 0) { - if (MaxWeight - Weight < getiteminfo(607,6)) { + if (MaxWeight - Weight < getiteminfo(Yggdrasilberry, ITEMINFO_WEIGHT)) { mes "[Tutorial Instructor]"; mes "You seemed to be sluggish with a lot of items"; mes "in your inventory making you heavy..."; @@ -492,7 +492,7 @@ moc_para01,34,178,3 script Tutorial Instructor 4_M_KHMAN,{ } } if (checkweight(Yggdrasilberry,6) == 0) { - if (MaxWeight - Weight < getiteminfo(607,6)) { + if (MaxWeight - Weight < getiteminfo(Yggdrasilberry, ITEMINFO_WEIGHT)) { mes "[Tutorial Instructor]"; mes "Your inventory seems to be really full"; mes "with various stuff... Do you think"; @@ -591,7 +591,7 @@ moc_para01,34,178,3 script Tutorial Instructor 4_M_KHMAN,{ moc_para01,32,179,4 script Tutorial Goal 4_F_KHELLY,{ if (checkweight(Seed_Of_Yggdrasil,7) == 0) { - if (MaxWeight - Weight < getiteminfo(608,7)) { + if (MaxWeight - Weight < getiteminfo(Seed_Of_Yggdrasil, ITEMINFO_WEIGHT)) { mes "[Tutorial Goal]"; mes "You seem to be overweight with items. Go put some stuff away then come back."; close; diff --git a/npc/re/quests/quests_dewata.txt b/npc/re/quests/quests_dewata.txt index ef1352e1e..1b57e4397 100644 --- a/npc/re/quests/quests_dewata.txt +++ b/npc/re/quests/quests_dewata.txt @@ -191,7 +191,7 @@ dew_in01,22,48,3 script Sage Kasyapa#dew 4_M_DEWZATIMAN,{ mes "Please, it would honor us if you would take it."; next; if (checkweight(Cendrawasih_SF,1) == 0) { - if (Weight + getiteminfo(6406,6) > MaxWeight) { + if (Weight + getiteminfo(Cendrawasih_SF, ITEMINFO_WEIGHT) > MaxWeight) { mes "[Sage Kasyapa]"; mes "You are carrying too much weight over the limit."; mes "I cannot get you your reward unless you reduce the amount of weighty items you are carrying."; |