diff options
Diffstat (limited to 'npc/instances')
-rw-r--r-- | npc/instances/OrcsMemory.txt | 726 | ||||
-rw-r--r-- | npc/instances/SealedShrine.txt | 1879 |
2 files changed, 1280 insertions, 1325 deletions
diff --git a/npc/instances/OrcsMemory.txt b/npc/instances/OrcsMemory.txt index 28cc9bbd5..1aaf2fd42 100644 --- a/npc/instances/OrcsMemory.txt +++ b/npc/instances/OrcsMemory.txt @@ -38,132 +38,136 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{ .@party_id = getcharid(CHAR_ID_PARTY); .@p_name$ = getpartyname(.@party_id); - .@md_name$ = "Orc's Memory"; + .@md_name$ = _("Orc's Memory"); - if (!instance_check_party(.@party_id,2,30,80)) { - mes "Only users between Levels ^ff000030 ~ 80^000000 can enter this Dungeon."; - close; + if (!instance_check_party(.@party_id, 2, 30, 80)) { + mes("Only users between Levels ^ff000030 ~ 80^000000 can enter this Dungeon."); + close(); } - .@orctime = questprogress(12059,PLAYTIME); + .@orctime = questprogress(12059, PLAYTIME); if (.@orctime == 2) { - mes "^0000ffAll records and after-effects related to the Orc's Memory Dungeon are deleted. You can now regenerate or re-enter the dungeon.^000000"; - erasequest 12059; - close; + mes("^0000ffAll records and after-effects related to the Orc's Memory Dungeon are deleted. You can now regenerate or re-enter the dungeon.^000000"); + erasequest(12059); + close(); } if (.@orctime == 1) { - mes "You can enter the Dungeon if it has been generated."; - next; - if(select("Enter the Dungeon "+.@md_name$, "Cancel") == 2) - close; + mes("You can enter the Dungeon if it has been generated."); + next(); + .@str$ = sprintf(_$("Enter the Dungeon %s"), .@md_name$); + if (select(.@str$, "Cancel") == 2) + close(); // Fall through to access the dungeon } else { // !.@orctime - if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) { - mes "Party status confirmed. Would you like to book entrance to the "+.@md_name$+"?"; - next; - switch(select("Reserve the "+.@md_name$, "Enter the Dungeon", "Cancel")) { + if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id, 2)) { + mesf("Party status confirmed. Would you like to book entrance to the %s?", .@md_name$); + next(); + .@str$ = sprintf(_$("Reserve the %s"), .@md_name$); + switch (select(.@str$, "Enter the Dungeon", "Cancel")) { case 1: - .@instance = instance_create(.@md_name$,.@party_id); + .@instance = instance_create(.@md_name$, .@party_id); if (.@instance < 0) { - mes "Party Name: "+.@p_name$; - mes "Party Leader: "+strcharinfo(PC_NAME); - mes "^0000ff"+.@md_name$+" ^000000 - Reservation Failed."; - close; + mesf("Party Name: %s", .@p_name$); + mesf("Party Leader: %s", strcharinfo(PC_NAME)); + mesf("^0000ff%s ^000000 - Reservation Failed.", .@md_name$); + close(); } - mes "^0000ff"+.@md_name$+"^000000- Attempting to book an entrance"; + mesf("^0000ff%s^000000- Attempting to book an entrance", .@md_name$); for (.@i = 1; .@i <= 2; ++.@i) { - if( instance_attachmap(.@i + "@orcs", .@instance) == "" ) + if (instance_attachmap(.@i + "@orcs", .@instance) == "") break; } - if( .@i < 2 ) { + if (.@i < 2) { instance_destroy(.@instance); - close; + close(); } - instance_set_timeout 7200,300,.@instance; + instance_set_timeout(7200, 300, .@instance); instance_init(.@instance); - mes "After making a reservation, you have to select 'Enter the Dungeon' from the menu if you wish to enter the "+.@md_name$+"."; - close; + mesf("After making a reservation, you have to select 'Enter the Dungeon' from the menu if you wish to enter the %s.", .@md_name$); + close(); case 2: break; // Fall through to access the dungeon (after the else) case 3: - close; + close(); } - } else if (select(.@md_name$ + " Enter the Memorial Dungeon", "Cancel") == 2) + } else if (select(sprintf(_$("%s Enter the Memorial Dungeon"), .@md_name$), "Cancel") == 2) { end; + } // Else access the dungeon } // Dungeon access if (has_instance("1@orcs") == "") { - mes "Memorial Dungeon "+.@md_name$+" does not exist."; - mes "The party leader has not reserved entrance to the dungeon yet."; - next; - mes "Once the reservation is complete, the dungeon will be generated."; - mes "If your dungeon has been destroyed you must wait 7 days before re-entering."; - close; + mesf("Memorial Dungeon %s does not exist.", .@md_name$); + mes("The party leader has not reserved entrance to the dungeon yet."); + next(); + mes("Once the reservation is complete, the dungeon will be generated."); + mes("If your dungeon has been destroyed you must wait 7 days before re-entering."); + close(); } - mapannounce "gef_fild10", strcharinfo(PC_NAME) + " of the party, " + .@p_name$ + " is entering the "+.@md_name$+".",bc_map,"0x00ff99"; - if (!questprogress(12059)) setquest 12059; - warp "1@orcs",179,15; + mapannounce("gef_fild10", sprintf(_$("%s of the party, %s is entering the %s."), strcharinfo(PC_NAME), .@p_name$, .@md_name$), bc_map, C_SPRINGGREEN); + if (!questprogress(12059)) + setquest(12059); + warp("1@orcs", 179, 15); end; } gef_fild10,238,202,6 script Mad Scientist#orc 4_LGTSCIENCE,{ if (BaseLevel < 50) { - mes "The Mad Scientist doesn't seem to notice you and keeps mumbling to himself..."; - close; + mes("The Mad Scientist doesn't seem to notice you and keeps mumbling to himself..."); + close(); } if (mad == 0) { - mes "[Mad Scientist]"; - mes "Haha, no Orcs are coming near me!"; - mes "The power of the Dimensional Gorge is undefeatable!!"; - next; - switch(select("Orcs don't attack you?", "You wish!")) { + mes("[Mad Scientist]"); + mes("Haha, no Orcs are coming near me!"); + mes("The power of the Dimensional Gorge is undefeatable!!"); + next(); + switch (select("Orcs don't attack you?", "You wish!")) { case 1: - mes "[Mad Scientist]"; - mes "Yeah, yeah.. I know it's hard to belive. I don't blame ya."; - mes "I used to study the Dimensional Gorge discovered near Morroc."; - mes "According to my research, the minerals found there have enormous power inside them!"; - next; + mes("[Mad Scientist]"); + mes("Yeah, yeah.. I know it's hard to belive. I don't blame ya."); + mes("I used to study the Dimensional Gorge discovered near Morroc."); + mes("According to my research, the minerals found there have enormous power inside them!"); + next(); break; case 2: - mes "[Mad Scientist]"; - mes "You are a pretty distrustful person, huh?"; - next; + mes("[Mad Scientist]"); + mes("You are a pretty distrustful person, huh?"); + next(); break; } select("Oh? Like what, travel to alternate space?"); - mes "[Mad Scientist]"; - mes "Very smart! I have actually just done that! See that statue over there? It's not your normal Monolith!"; - next; - mes "[Mad Scientist]"; - mes "I have created it with a combination of our technology and the unlimited energy I discovered from the Gorge! Want to try it?"; - next; + mes("[Mad Scientist]"); + mes("Very smart! I have actually just done that! See that statue over there? It's not your normal Monolith!"); + next(); + mes("[Mad Scientist]"); + mes("I have created it with a combination of our technology and the unlimited energy I discovered from the Gorge! Want to try it?"); + next(); select("...Um, that doesn't sound legal?"); - mes "[Mad Scientist]"; - mes "Hey, since when did something so interesting have to be legal!? How about it! You can talk to the Orcs! C'mon!"; - next; - mes "[Mad Scientist]"; - mes "Chances are they'll just give you lots of instructions once they see you, so just wing it! They're always saying the same thing, to the point where I memorized them!"; - next; - switch(select("Alright... What do I do?", "Umm, maybe not.")) { + mes("[Mad Scientist]"); + mes("Hey, since when did something so interesting have to be legal!? How about it! You can talk to the Orcs! C'mon!"); + next(); + mes("[Mad Scientist]"); + mes("Chances are they'll just give you lots of instructions once they see you, so just wing it! They're always saying the same thing, to the point where I memorized them!"); + next(); + switch (select("Alright... What do I do?", "Umm, maybe not.")) { case 1: - mes "[Mad Scientist]"; - mes "Very good! Just sit in the hands of this statue! And try to act natural when you're in there!"; + mes("[Mad Scientist]"); + mes("Very good! Just sit in the hands of this statue! And try to act natural when you're in there!"); mad = 1; - close; + close(); case 2: - mes "[Mad Scientist]"; - mes "Oh fine, be that way!"; - close; + mes("[Mad Scientist]"); + mes("Oh fine, be that way!"); + close(); } } else if (mad == 1) { - mes "[Mad Scientist]"; - mes "Hmm? Put your hand on that Monemus Statue if you want to experience traveling through dimensions!"; - close; + mes("[Mad Scientist]"); + mes("Hmm? Put your hand on that Monemus Statue if you want to experience traveling through dimensions!"); + close(); } else { mad = 1; end; @@ -175,60 +179,53 @@ gef_fild10,238,202,6 script Mad Scientist#orc 4_LGTSCIENCE,{ end; OnInstanceInit: - disablenpc instance_npcname("#Resurrect Monsters1"); + disablenpc(instance_npcname("#Resurrect Monsters1")); end; OnDisable: - stopnpctimer; - killmonster instance_mapname("1@orcs"),instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; + stopnpctimer(); + killmonster(instance_mapname("1@orcs"), instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); end; OnEnable: - enablenpc instance_npcname("#Resurrect Monsters1"); - monster instance_mapname("1@orcs"),0,0,"Orc Warrior",1023,30,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; + enablenpc(instance_npcname("#Resurrect Monsters1")); + monster(instance_mapname("1@orcs"), 0, 0, _("Orc Warrior"), ORK_WARRIOR, 30, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("1@orcs"); - .@mob_dead_num = 30 - mobcount(.@map$,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + .@mob_dead_num = 30 - mobcount(.@map$, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); if (.@mob_dead_num > 0) { - .@mob_ran = rand(1,30); + .@mob_ran = rand(1, 30); if (.@mob_ran > 29) { - monster .@map$,0,0,"Orc Warrior",1023,.@mob_dead_num,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; - } - else if ((.@mob_ran > 28) && (.@mob_ran < 30)) { - monster .@map$,0,0,"High Orc",1213,.@mob_dead_num,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; - if (rand(1,10) == 9) { - mapannounce .@map$, "High Orc: We need more defenses! Get more people here!",bc_map,"0xff4444"; - } - } - else if ((.@mob_ran > 26) && (.@mob_ran < 29)) { - areamonster .@map$,41,91,51,81,"High Orc",1213,.@mob_dead_num,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; - if (rand(1,10) == 9) { - mapannounce .@map$, "Where are the High Orcs!? Get them to stop the enemies!",bc_map,"0xff4444"; - } - } - else { - areamonster .@map$,17,187,27,177,"High Orc",1213,.@mob_dead_num,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; - if (rand(1,5) == 3) { - mapannounce .@map$, "Caution: The army's starting to concentrate at Zone No. 4.",bc_map,"0x77ff77"; - } - if (rand(1,100) == 50) { - initnpctimer; - } + monster(.@map$, 0, 0, _("Orc Warrior"), ORK_WARRIOR, .@mob_dead_num, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + } else if (.@mob_ran > 28 && .@mob_ran < 30) { + monster(.@map$, 0, 0, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + if (rand(1, 10) == 9) + mapannounce(.@map$, _("High Orc: We need more defenses! Get more people here!"), bc_map, "0xff4444"); + } else if (.@mob_ran > 26 && .@mob_ran < 29) { + areamonster(.@map$, 41, 91, 51, 81, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + if (rand(1, 10) == 9) + mapannounce(.@map$, _("Where are the High Orcs!? Get them to stop the enemies!"), bc_map, "0xff4444"); + } else { + areamonster(.@map$, 17, 187, 27, 177, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + if (rand(1, 5) == 3) + mapannounce(.@map$, _("Caution: The army's starting to concentrate at Zone No. 4."), bc_map, "0x77ff77"); + if (rand(1, 100) == 50) + initnpctimer(); } } end; OnTimer10: - mapannounce instance_mapname("1@orcs"), "Shouts of the Chief Orc of Safeguards: Looks like this will take longer than expected. Summon the Stalactic Golems!",bc_map,"0xff4444"; + mapannounce(instance_mapname("1@orcs"), _("Shouts of the Chief Orc of Safeguards: Looks like this will take longer than expected. Summon the Stalactic Golems!"), bc_map, "0xff4444"); end; OnTimer4010: .@map$ = instance_mapname("1@orcs"); - mapannounce .@map$, "Stalactic Golems are digging out of the deep underground.",bc_map,"0x77ff77"; - areamonster .@map$,17,187,27,177,"Stalactic Golem",1278,20,instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"; - stopnpctimer; + mapannounce(.@map$, _("Stalactic Golems are digging out of the deep underground."), bc_map, "0x77ff77"); + areamonster(.@map$, 17, 187, 27, 177, _("Stalactic Golem"), STALACTIC_GOLEM, 20, instance_npcname("#Resurrect Monsters1")+"::OnMyMobDead"); + stopnpctimer(); end; } @@ -236,30 +233,27 @@ OnTimer4010: end; OnInstanceInit: - disablenpc instance_npcname("#Resurrect Monsters2"); + disablenpc(instance_npcname("#Resurrect Monsters2")); end; OnDisable: - killmonster instance_mapname("1@orcs"),instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"; + killmonster(instance_mapname("1@orcs"), instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); end; OnEnable: - enablenpc instance_npcname("#Resurrect Monsters2"); - monster instance_mapname("1@orcs"),0,0,"Trained Wolf",1106,15,instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"; + enablenpc(instance_npcname("#Resurrect Monsters2")); + monster(instance_mapname("1@orcs"), 0, 0, _("Trained Wolf"), DESERT_WOLF, 15, instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("1@orcs"); - .@mob_dead_num = 15 - mobcount(.@map$,instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); - if (rand(1,30) > 15) { - if (.@mob_dead_num > 0) { - monster .@map$,0,0,"Trained Wolf",1106,.@mob_dead_num,instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"; - } - } - else { - if (.@mob_dead_num > 0) { - areamonster .@map$,17,187,27,177,"Trained Wolf",1106,.@mob_dead_num,instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"; - } + .@mob_dead_num = 15 - mobcount(.@map$, instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); + if (rand(1, 30) > 15) { + if (.@mob_dead_num > 0) + monster(.@map$, 0, 0, _("Trained Wolf"), DESERT_WOLF, .@mob_dead_num, instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); + } else { + if (.@mob_dead_num > 0) + areamonster(.@map$, 17, 187, 27, 177, _("Trained Wolf"), DESERT_WOLF, .@mob_dead_num, instance_npcname("#Resurrect Monsters2")+"::OnMyMobDead"); } end; } @@ -268,39 +262,34 @@ OnMyMobDead: end; OnInstanceInit: - disablenpc instance_npcname("#Resurrect Monsters3"); + disablenpc(instance_npcname("#Resurrect Monsters3")); end; OnDisable: - killmonster instance_mapname("1@orcs"),instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"; + killmonster(instance_mapname("1@orcs"), instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); end; OnEnable: - enablenpc instance_npcname("#Resurrect Monsters3"); - monster instance_mapname("1@orcs"),0,0,"Orc Archer",1189,15,instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"; + enablenpc(instance_npcname("#Resurrect Monsters3")); + monster(instance_mapname("1@orcs"), 0, 0, _("Orc Archer"), ORC_ARCHER, 15, instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("1@orcs"); - .@mob_dead_num = 15 - mobcount(.@map$,instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); - .@mob_ran = rand(1,30); + .@mob_dead_num = 15 - mobcount(.@map$, instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); + .@mob_ran = rand(1, 30); if (.@mob_ran > 29) { + if (.@mob_dead_num > 0) + monster(.@map$, 0, 0, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); + } else if (.@mob_ran > 26 && .@mob_ran < 30) { if (.@mob_dead_num > 0) { - monster .@map$,0,0,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"; - } - } - else if ((.@mob_ran > 26) && (.@mob_ran < 30)) { - if (.@mob_dead_num > 0) { - areamonster .@map$,43,155,47,159,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"; - if (rand(1,3) == 3) { - mapannounce .@map$, "High Orc: Attack them from behind! Cut off their support!",bc_map,"0xff4444"; - } - } - } - else { - if (.@mob_dead_num > 0) { - areamonster .@map$,17,187,27,177,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"; + areamonster(.@map$, 43, 155, 47, 159, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); + if (rand(1, 3) == 3) + mapannounce(.@map$, _("High Orc: Attack them from behind! Cut off their support!"), bc_map, "0xff4444"); } + } else { + if (.@mob_dead_num > 0) + areamonster(.@map$, 17, 187, 27, 177, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#Resurrect Monsters3")+"::OnMyMobDead"); } end; } @@ -309,25 +298,24 @@ OnMyMobDead: end; OnInstanceInit: - enablenpc instance_npcname("#Resurrect Monsters4"); - areamonster instance_mapname("1@orcs"),98,35,178,115,"Anopheles",1627,10,instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"; + enablenpc(instance_npcname("#Resurrect Monsters4")); + areamonster(instance_mapname("1@orcs"), 98, 35, 178, 115, _("Anopheles"), ANOPHELES, 10, instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("1@orcs"); - .@mob_dead_num = 10 - mobcount(.@map$,instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"); - if (.@mob_dead_num > 0) { - monster .@map$,0,0,"Anopheles",1627,.@mob_dead_num,instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"; - } + .@mob_dead_num = 10 - mobcount(.@map$, instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"); + if (.@mob_dead_num > 0) + monster(.@map$, 0, 0, _("Anopheles"), ANOPHELES, .@mob_dead_num, instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"); end; OnDisable: - killmonster instance_mapname("1@orcs"),instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"; + killmonster(instance_mapname("1@orcs"), instance_npcname("#Resurrect Monsters4")+"::OnMyMobDead"); end; } 1@orcs,180,29,4 script Kruger#1-1 4_ORCWARRIOR,{ - donpcevent instance_npcname("Kruger#1-2")+"::OnEnable"; + donpcevent(instance_npcname("Kruger#1-2")+"::OnEnable"); end; } @@ -335,164 +323,164 @@ OnDisable: end; OnInstanceInit: - disablenpc instance_npcname("Kruger#1-2"); + disablenpc(instance_npcname("Kruger#1-2")); end; OnEnable: - disablenpc instance_npcname("Kruger#1-1"); - enablenpc instance_npcname("Kruger#1-2"); - initnpctimer; + disablenpc(instance_npcname("Kruger#1-1")); + enablenpc(instance_npcname("Kruger#1-2")); + initnpctimer(); end; OnTimer10: - mapannounce instance_mapname("1@orcs"), "Kruger: Damn... What took you so long!! I don't have all day!!",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: Damn... What took you so long!! I don't have all day!!"), bc_map, C_YELLOW); end; OnTimer5710: - mapannounce instance_mapname("1@orcs"), "Kruger: My plan was to let our comrades open the gate, but it's all ruined since I got busted by the Orc Shaman.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: My plan was to let our comrades open the gate, but it's all ruined since I got busted by the Orc Shaman."), bc_map, C_YELLOW); end; OnTimer14610: - mapannounce instance_mapname("1@orcs"), "Shouts of the Chief Orc of Safeguards: I smell a rat.. Send some patrols to the entrance!!",bc_map,"0xff4444"; + mapannounce(instance_mapname("1@orcs"), _("Shouts of the Chief Orc of Safeguards: I smell a rat.. Send some patrols to the entrance!!"), bc_map, "0xff4444"); end; OnTimer20210: - mapannounce instance_mapname("1@orcs"), "Kruger: Darn it.. They'll be here any minute. Ok. Listen to me now.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: Darn it.. They'll be here any minute. Ok. Listen to me now."), bc_map, C_YELLOW); end; OnTimer24910: - mapannounce instance_mapname("1@orcs"), "Kruger: The Orc Shaman has sealed the 1st basement by dividing it into 4 zones. Each zone has one Enchanted Orc who has the power to unseal the next zone.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: The Orc Shaman has sealed the 1st basement by dividing it into 4 zones. Each zone has one Enchanted Orc who has the power to unseal the next zone."), bc_map, C_YELLOW); end; OnTimer34310: - mapannounce instance_mapname("1@orcs"), "Kruger: Find those Enchanted Orcs and get rid of them to move to the next zone.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: Find those Enchanted Orcs and get rid of them to move to the next zone."), bc_map, C_YELLOW); end; OnTimer39710: - mapannounce instance_mapname("1@orcs"), "Kruger: Try to avoid encountering Orcs other then the Enchanted ones. Everytime you kill a normal Orc, High Orcs will gather at the last path to the 2nd floor.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: Try to avoid encountering Orcs other then the Enchanted ones. Everytime you kill a normal Orc, High Orcs will gather at the last path to the 2nd floor."), bc_map, C_YELLOW); end; OnTimer49210: - mapannounce instance_mapname("1@orcs"), "Kruger: In the worst case, the path to the 2nd floor could be completely blocked. For your own sake, you should be as sneaky as possible.",bc_map,"0xffff00"; + mapannounce(instance_mapname("1@orcs"), _("Kruger: In the worst case, the path to the 2nd floor could be completely blocked. For your own sake, you should be as sneaky as possible."), bc_map, C_YELLOW); end; OnTimer56310: - mapannounce instance_mapname("1@orcs"), "Mission: Sneak in and get rid of the 'Enchanted Orcs'. Avoiding battles with other Orcs is the best way of getting into the 2nd floor.",bc_map,"0x44ffff"; - donpcevent instance_npcname("#Resurrect Monsters1")+"::OnEnable"; - donpcevent instance_npcname("#Resurrect Monsters2")+"::OnEnable"; - donpcevent instance_npcname("#Resurrect Monsters3")+"::OnEnable"; - disablenpc instance_npcname("Kruger#1-2"); + mapannounce(instance_mapname("1@orcs"), _("Mission: Sneak in and get rid of the 'Enchanted Orcs'. Avoiding battles with other Orcs is the best way of getting into the 2nd floor."), bc_map, "0x44ffff"); + donpcevent(instance_npcname("#Resurrect Monsters1")+"::OnEnable"); + donpcevent(instance_npcname("#Resurrect Monsters2")+"::OnEnable"); + donpcevent(instance_npcname("#Resurrect Monsters3")+"::OnEnable"); + disablenpc(instance_npcname("Kruger#1-2")); end; OnTimer60000: - areamonster instance_mapname("1@orcs"),137,83,143,89,"Enchanted Orc",1023,1,instance_npcname("B1 Area Mobs")+"::OnMyMobDead"; - stopnpctimer; + areamonster(instance_mapname("1@orcs"), 137, 83, 143, 89, _("Enchanted Orc"), ORK_WARRIOR, 1, instance_npcname("B1 Area Mobs")+"::OnMyMobDead"); + stopnpctimer(); end; } 1@orcs,168,125,0 script B1 Area 1 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("B1 Area 1"); + disablenpc(instance_npcname("B1 Area 1")); end; OnEnable: - enablenpc instance_npcname("B1 Area 1"); - areamonster instance_mapname("1@orcs"),103,105,109,111,"Enchanted Orc",1023,1,instance_npcname("B1 Area Mobs")+"::OnMyMobDead1"; + enablenpc(instance_npcname("B1 Area 1")); + areamonster(instance_mapname("1@orcs"), 103, 105, 109, 111, _("Enchanted Orc"), ORK_WARRIOR, 1, instance_npcname("B1 Area Mobs")+"::OnMyMobDead1"); end; OnTouch: - warp instance_mapname("1@orcs"),168,130; + warp(instance_mapname("1@orcs"), 168, 130); end; OnContinue: - donpcevent instance_npcname("B1 Area 2")+"::OnEnable"; - initnpctimer; + donpcevent(instance_npcname("B1 Area 2")+"::OnEnable"); + initnpctimer(); end; OnTimer10300: - mapannounce instance_mapname("1@orcs"), "Kruger's Whisper: The Orcs here used to be my companions. They just lost their will ever since the Orc Shaman started to control them with her magic.",bc_map,"0xff4499"; + mapannounce(instance_mapname("1@orcs"), _("Kruger's Whisper: The Orcs here used to be my companions. They just lost their will ever since the Orc Shaman started to control them with her magic."), bc_map, "0xff4499"); end; OnTimer18700: - mapannounce instance_mapname("1@orcs"), "Kruger's Whisper: There's nothing we can do but to defeat the Orc Shaman if we want to save the remaining tribes.",bc_map,"0xff4499"; - stopnpctimer; + mapannounce(instance_mapname("1@orcs"), _("Kruger's Whisper: There's nothing we can do but to defeat the Orc Shaman if we want to save the remaining tribes."), bc_map, "0xff4499"); + stopnpctimer(); end; } 1@orcs,89,94,0 script B1 Area 2 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("B1 Area 2"); + disablenpc(instance_npcname("B1 Area 2")); end; OnEnable: - enablenpc instance_npcname("B1 Area 2"); - areamonster instance_mapname("1@orcs"),32,40,38,46,"Enchanted Orc",1023,1,instance_npcname("B1 Area Mobs")+"::OnMyMobDead2"; + enablenpc(instance_npcname("B1 Area 2")); + areamonster(instance_mapname("1@orcs"), 32, 40, 38, 46, _("Enchanted Orc"), ORK_WARRIOR, 1, instance_npcname("B1 Area Mobs")+"::OnMyMobDead2"); end; OnTouch: - warp instance_mapname("1@orcs"),85,85; + warp(instance_mapname("1@orcs"), 85, 85); end; OnContinue: - donpcevent instance_npcname("B1 Area 3")+"::OnEnable"; - initnpctimer; + donpcevent(instance_npcname("B1 Area 3")+"::OnEnable"); + initnpctimer(); end; OnTimer30300: - mapannounce instance_mapname("1@orcs"), "Kruger's Whisper: I saw the bodies of our tribe. It seems that the Orc Shaman used those Orcs for her rituals.",bc_map,"0xff4499"; + mapannounce(instance_mapname("1@orcs"), _("Kruger's Whisper: I saw the bodies of our tribe. It seems that the Orc Shaman used those Orcs for her rituals."), bc_map, "0xff4499"); end; OnTimer37600: - mapannounce instance_mapname("1@orcs"), "Kruger's Whisper: ... It all has to do with me. I am responsible for this evil.",bc_map,"0xff4499"; - stopnpctimer; + mapannounce(instance_mapname("1@orcs"), _("Kruger's Whisper: ... It all has to do with me. I am responsible for this evil."), bc_map, "0xff4499"); + stopnpctimer(); end; } 1@orcs,38,105,0 script B1 Area 3 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("B1 Area 3"); + disablenpc(instance_npcname("B1 Area 3")); end; OnEnable: - enablenpc instance_npcname("B1 Area 3"); - areamonster instance_mapname("1@orcs"),19,177,25,183,"Enchanted Orc",1023,1,instance_npcname("B1 Area Mobs")+"::OnMyMobDead3"; + enablenpc(instance_npcname("B1 Area 3")); + areamonster(instance_mapname("1@orcs"), 19, 177, 25, 183, _("Enchanted Orc"), ORK_WARRIOR, 1, instance_npcname("B1 Area Mobs")+"::OnMyMobDead3"); end; OnTouch: - warp instance_mapname("1@orcs"),38,110; + warp(instance_mapname("1@orcs"), 38, 110); end; OnContinue: - donpcevent instance_npcname("B1 Area 4")+"::OnEnable"; - initnpctimer; + donpcevent(instance_npcname("B1 Area 4")+"::OnEnable"); + initnpctimer(); end; OnTimer30300: - mapannounce instance_mapname("1@orcs"), "Please, hang in there!",bc_map,"0xff4499"; + mapannounce(instance_mapname("1@orcs"), _("Please, hang in there!"), bc_map, "0xff4499"); end; OnTimer32700: - mapannounce instance_mapname("1@orcs"), "We'll get some rest when we get to the 2nd basement after passing through here.",bc_map,"0xff4499"; - stopnpctimer; + mapannounce(instance_mapname("1@orcs"), _("We'll get some rest when we get to the 2nd basement after passing through here."), bc_map, "0xff4499"); + stopnpctimer(); end; } 1@orcs,21,189,0 script B1 Area 4 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("B1 Area 4"); + disablenpc(instance_npcname("B1 Area 4")); end; OnEnable: - enablenpc instance_npcname("B1 Area 4"); - donpcevent instance_npcname("#Resurrect Monsters1")+"::OnDisable"; - donpcevent instance_npcname("#Resurrect Monsters2")+"::OnDisable"; - donpcevent instance_npcname("#Resurrect Monsters3")+"::OnDisable"; - donpcevent instance_npcname("#Resurrect Monsters4")+"::OnDisable"; + enablenpc(instance_npcname("B1 Area 4")); + donpcevent(instance_npcname("#Resurrect Monsters1")+"::OnDisable"); + donpcevent(instance_npcname("#Resurrect Monsters2")+"::OnDisable"); + donpcevent(instance_npcname("#Resurrect Monsters3")+"::OnDisable"); + donpcevent(instance_npcname("#Resurrect Monsters4")+"::OnDisable"); end; OnTouch: - warp instance_mapname("2@orcs"),32,171; + warp(instance_mapname("2@orcs"), 32, 171); end; } @@ -500,19 +488,19 @@ OnTouch: end; OnMyMobDead: - donpcevent instance_npcname("B1 Area 1")+"::OnEnable"; + donpcevent(instance_npcname("B1 Area 1")+"::OnEnable"); end; OnMyMobDead1: - donpcevent instance_npcname("B1 Area 1")+"::OnContinue"; + donpcevent(instance_npcname("B1 Area 1")+"::OnContinue"); end; OnMyMobDead2: - donpcevent instance_npcname("B1 Area 2")+"::OnContinue"; + donpcevent(instance_npcname("B1 Area 2")+"::OnContinue"); end; OnMyMobDead3: - donpcevent instance_npcname("B1 Area 3")+"::OnContinue"; + donpcevent(instance_npcname("B1 Area 3")+"::OnContinue"); end; } @@ -521,57 +509,51 @@ OnMyMobDead3: end; OnInstanceInit: - disablenpc instance_npcname("#2Resurrect Monsters1"); + disablenpc(instance_npcname("#2Resurrect Monsters1")); end; OnEnable: - enablenpc instance_npcname("#2Resurrect Monsters1"); - monster instance_mapname("2@orcs"),0,0,"Vengeful Orc",1152,30,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; + enablenpc(instance_npcname("#2Resurrect Monsters1")); + monster(instance_mapname("2@orcs"), 0, 0, _("Vengeful Orc"), ORC_SKELETON, 30, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); end; OnDisable: - stopnpctimer; - killmonster instance_mapname("2@orcs"),instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; + stopnpctimer(); + killmonster(instance_mapname("2@orcs"), instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("2@orcs"); - .@mob_dead_num = 30 - mobcount(.@map$,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + .@mob_dead_num = 30 - mobcount(.@map$, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); if (.@mob_dead_num > 0) { - .@mob_ran = rand(1,30); + .@mob_ran = rand(1, 30); if (.@mob_ran > 29) { - monster .@map$,0,0,"Vengeful Orc",1152,.@mob_dead_num,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; - } - else if ((.@mob_ran > 28) && (.@mob_ran < 30)) { - monster .@map$,0,0,"High Orc",1213,.@mob_dead_num,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; - } - else if ((.@mob_ran > 26) && (.@mob_ran < 29)) { - areamonster .@map$,157,112,167,122,"High Orc",1213,.@mob_dead_num,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; - if (rand(1,10) == 9) { - mapannounce .@map$, "Warning: High Orcs are gathering near area 3.",bc_map,"0xff4444"; - } - } - else { - areamonster .@map$,173,13,183,23,"High Orc",1213,.@mob_dead_num,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; - if (rand(1,5) == 3) { - mapannounce .@map$, "Caution: The Forces have started to concentrate at the Shaman's Altar.",bc_map,"0x77ff77"; - } - if (rand(1,70) == 50) { - initnpctimer; - } + monster(.@map$, 0, 0, _("Vengeful Orc"), ORC_SKELETON, .@mob_dead_num, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + } else if (.@mob_ran > 28 && .@mob_ran < 30) { + monster(.@map$, 0, 0, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + } else if (.@mob_ran > 26 && .@mob_ran < 29) { + areamonster(.@map$, 157, 112, 167, 122, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + if (rand(1, 10) == 9) + mapannounce(.@map$, _("Warning: High Orcs are gathering near area 3."), bc_map, "0xff4444"); + } else { + areamonster(.@map$, 173, 13, 183, 23, _("High Orc"), HIGH_ORC, .@mob_dead_num, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + if (rand(1, 5) == 3) + mapannounce(.@map$, _("Caution: The Forces have started to concentrate at the Shaman's Altar."), bc_map, "0x77ff77"); + if (rand(1, 70) == 50) + initnpctimer(); } } end; OnTimer10: - mapannounce instance_mapname("2@orcs"), "Voice from somewhere: Foolish... Do you really think the altar would fall like that?",bc_map,"0xff4444"; + mapannounce(instance_mapname("2@orcs"), _("Voice from somewhere: Foolish... Do you really think the altar would fall like that?"), bc_map, "0xff4444"); end; OnTimer4010: .@map$ = instance_mapname("2@orcs"); - mapannounce .@map$, "[ Wraiths were summoned by an unknown power ]",bc_map,"0x77ff77"; - areamonster .@map$,167,25,177,35,"Wraith",1475,30,instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"; - stopnpctimer; + mapannounce(.@map$, _("[ Wraiths were summoned by an unknown power ]"), bc_map, "0x77ff77"); + areamonster(.@map$, 167, 25, 177, 35, _("Wraith"), G_WRAITH, 30, instance_npcname("#2Resurrect Monsters1")+"::OnMyMobDead"); + stopnpctimer(); end; } @@ -579,40 +561,36 @@ OnTimer4010: end; OnInstanceInit: - disablenpc instance_npcname("#2Resurrect Monsters3"); + disablenpc(instance_npcname("#2Resurrect Monsters3")); end; OnEnable: - enablenpc instance_npcname("#2Resurrect Monsters3"); - monster instance_mapname("2@orcs"),0,0,"Orc Zombie",1153,15,instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"; + enablenpc(instance_npcname("#2Resurrect Monsters3")); + monster(instance_mapname("2@orcs"), 0, 0, _("Orc Zombie"), ORC_ZOMBIE, 15, instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("2@orcs"); - .@mob_dead_num = 15 - mobcount(.@map$,instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); - .@mob_ran = rand(1,30); + .@mob_dead_num = 15 - mobcount(.@map$, instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); + .@mob_ran = rand(1, 30); if (.@mob_ran > 29) { if (.@mob_dead_num > 0) { - monster .@map$,0,0,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"; + monster(.@map$, 0, 0, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); } - } - else if ((.@mob_ran > 6) && (.@mob_ran < 30)) { - if (.@mob_dead_num > 0) { - areamonster .@map$,168,10,184,26,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"; - if (rand(1,15) == 3) { - mapannounce .@map$, "Warning: Orc Archer teams are gathering near the altar.",bc_map,"0xff4444"; - } - } - } - else { + } else if (.@mob_ran > 6 && .@mob_ran < 30) { if (.@mob_dead_num > 0) { - areamonster .@map$,168,21,184,21,"Orc Archer",1189,.@mob_dead_num,instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"; + areamonster(.@map$, 168, 10, 184, 26, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); + if (rand(1, 15) == 3) + mapannounce(.@map$, _("Warning: Orc Archer teams are gathering near the altar."), bc_map, "0xff4444"); } + } else { + if (.@mob_dead_num > 0) + areamonster(.@map$, 168, 21, 184, 21, _("Orc Archer"), ORC_ARCHER, .@mob_dead_num, instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); } end; OnDisable: - killmonster instance_mapname("2@orcs"),instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"; + killmonster(instance_mapname("2@orcs"), instance_npcname("#2Resurrect Monsters3")+"::OnMyMobDead"); end; } @@ -620,21 +598,20 @@ OnDisable: end; OnInstanceInit: - enablenpc instance_npcname("#2Resurrect Monsters4"); - monster instance_mapname("2@orcs"),0,0,"Anopheles",1627,10,instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"; + enablenpc(instance_npcname("#2Resurrect Monsters4")); + monster(instance_mapname("2@orcs"), 0, 0, _("Anopheles"), ANOPHELES, 10, instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("2@orcs"); - .@mob_dead_num = 10 - mobcount(.@map$,instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"); - if (.@mob_dead_num > 0) { - monster .@map$,0,0,"Anopheles",1627,1,instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"; - } + .@mob_dead_num = 10 - mobcount(.@map$, instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"); + if (.@mob_dead_num > 0) + monster(.@map$, 0, 0, _("Anopheles"), ANOPHELES, 1, instance_npcname("#2Resurrect Monsters4")+"::OnMyMobDead"); end; } 2@orcs,35,169,4 script Kruger#2-1 4_ORCWARRIOR,{ - donpcevent instance_npcname("Kruger#2-2")+"::OnEnable"; + donpcevent(instance_npcname("Kruger#2-2")+"::OnEnable"); end; } @@ -642,72 +619,73 @@ OnMyMobDead: end; OnInstanceInit: - disablenpc instance_npcname("Kruger#2-2"); + disablenpc(instance_npcname("Kruger#2-2")); end; OnEnable: - disablenpc instance_npcname("Kruger#2-1"); - enablenpc instance_npcname("Kruger#2-2"); - initnpctimer; + disablenpc(instance_npcname("Kruger#2-1")); + enablenpc(instance_npcname("Kruger#2-2")); + initnpctimer(); end; OnTimer10: - mapannounce instance_mapname("2@orcs"), "Kruger's Whisper: I'll tell you how to get to the Shaman's altar.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Kruger's Whisper: I'll tell you how to get to the Shaman's altar."), bc_map, C_YELLOW); end; OnTimer3510: - mapannounce instance_mapname("2@orcs"), "Kruger's Whisper: Do you see the braziers that light the path? Unseal the next zone by strengthening their flames.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Kruger's Whisper: Do you see the braziers that light the path? Unseal the next zone by strengthening their flames."), bc_map, C_YELLOW); end; OnTimer10710: - mapannounce instance_mapname("2@orcs"), "Kruger's Whisper: Of course those monsters won't let you touch the braziers that easily.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Kruger's Whisper: Of course those monsters won't let you touch the braziers that easily."), bc_map, C_YELLOW); end; OnTimer16310: - mapannounce instance_mapname("2@orcs"), "Kruger's Whisper: But still, try keep the battles not too noticable so the Shaman won't guard the altar with her army squad.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Kruger's Whisper: But still, try keep the battles not too noticable so the Shaman won't guard the altar with her army squad."), bc_map, C_YELLOW); end; OnTimer21910: - mapannounce instance_mapname("2@orcs"), "Kruger's Whisper: Only the Party Leader can strengthen the flames, so protect your leader.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Kruger's Whisper: Only the Party Leader can strengthen the flames, so protect your leader."), bc_map, C_YELLOW); end; OnTimer23910: - mapannounce instance_mapname("2@orcs"), "Mission: Unseal the zone by lighting the braziers. They can only be lit in a certain order, so be careful.",bc_map,"0x4444ff"; - donpcevent instance_npcname("#2Resurrect Monsters1")+"::OnEnable"; - donpcevent instance_npcname("#2Resurrect Monsters3")+"::OnEnable"; - donpcevent instance_npcname("Torch#1-1")+"::OnEnable"; - disablenpc instance_npcname("Kruger#2-2"); + mapannounce(instance_mapname("2@orcs"), _("Mission: Unseal the zone by lighting the braziers. They can only be lit in a certain order, so be careful."), bc_map, "0x4444ff"); + donpcevent(instance_npcname("#2Resurrect Monsters1")+"::OnEnable"); + donpcevent(instance_npcname("#2Resurrect Monsters3")+"::OnEnable"); + donpcevent(instance_npcname("Torch#1-1")+"::OnEnable"); + disablenpc(instance_npcname("Kruger#2-2")); end; } 2@orcs,26,164,0 script Torch#1-1 CLEAR_NPC,{ - if(getpartyleader(getcharid(CHAR_ID_PARTY),2) != getcharid(CHAR_ID_CHAR)) end; - progressbar "ffff00",5; - setarray .@id[0], atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),0)), atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),2)); + if (getpartyleader(getcharid(CHAR_ID_PARTY), 2) != getcharid(CHAR_ID_CHAR)) + end; + progressbar(sprintf("0x%x", C_YELLOW), 5); + setarray(.@id[0], atoi(charat(strnpcinfo(NPC_NAME_HIDDEN), 0)), atoi(charat(strnpcinfo(NPC_NAME_HIDDEN), 2))); if (.@id[1] == 4) - donpcevent instance_npcname("#Warp2-"+.@id[0])+"::OnEnable"; + donpcevent(instance_npcname("#Warp2-"+.@id[0])+"::OnEnable"); else - donpcevent instance_npcname("Torch#"+.@id[0]+"-"+(.@id[1]+1))+"::OnEnable"; - initnpctimer; - disablenpc instance_npcname(strnpcinfo(NPC_NAME)); + donpcevent(instance_npcname("Torch#"+.@id[0]+"-"+(.@id[1]+1))+"::OnEnable"); + initnpctimer(); + disablenpc(instance_npcname(strnpcinfo(NPC_NAME))); end; OnInstanceInit: if (strnpcinfo(NPC_NAME) != "Torch#2-1" && strnpcinfo(NPC_NAME) != "Torch#3-1") - 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; OnTimer100: - specialeffect EF_FIREPILLAR; + specialeffect(EF_FIREPILLAR); end; OnTimer2000: - specialeffect EF_FIREPILLARBOMB; - stopnpctimer; + specialeffect(EF_FIREPILLARBOMB); + stopnpctimer(); end; } 2@orcs,55,155,0 duplicate(Torch#1-1) Torch#1-2 CLEAR_NPC @@ -716,27 +694,27 @@ OnTimer2000: 2@orcs,48,100,0 script #Warp2-1 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("#Warp2-1"); + disablenpc(instance_npcname("#Warp2-1")); end; OnEnable: .@map$ = instance_mapname("2@orcs"); - monster .@map$,109,156,"Safeguard Chief",1981,1,instance_npcname("#Mobs Control")+"::OnMyMobDead1"; - mapannounce .@map$, "The Chief Orc of Safeguards: Oh!! Looks like I have company. Defeat me if you can!!",bc_map,"0xff8888"; + monster(.@map$, 109, 156, _("Safeguard Chief"), I_HIGH_ORC, 1, instance_npcname("#Mobs Control")+"::OnMyMobDead1"); + mapannounce(.@map$, _("The Chief Orc of Safeguards: Oh!! Looks like I have company. Defeat me if you can!!"), bc_map, "0xff8888"); end; OnContinue: - enablenpc instance_npcname("#Warp2-1"); - initnpctimer; + enablenpc(instance_npcname("#Warp2-1")); + initnpctimer(); end; OnTimer10000: - areamonster instance_mapname("2@orcs"),28,158,40,170,"Safeguard Chief",1981,1,instance_npcname("#Mobs Control")+"::OnMyMobDead1"; - stopnpctimer; + areamonster(instance_mapname("2@orcs"), 28, 158, 40, 170, _("Safeguard Chief"), I_HIGH_ORC, 1, instance_npcname("#Mobs Control")+"::OnMyMobDead1"); + stopnpctimer(); end; OnTouch: - warp instance_mapname("2@orcs"),47,93; + warp(instance_mapname("2@orcs"), 47, 93); end; } @@ -747,27 +725,27 @@ OnTouch: 2@orcs,101,55,0 script #Warp2-2 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("#Warp2-2"); + disablenpc(instance_npcname("#Warp2-2")); end; OnEnable: .@map$ = instance_mapname("2@orcs"); - monster .@map$,67,64,"Orc Sniper",1982,1,instance_npcname("#Mobs Control")+"::OnMyMobDead2"; - mapannounce .@map$, "Orc Sniper: Hah! Pretty impressive that you made it this far, but your foolish little trip ends here...",bc_map,"0xff8888"; + monster(.@map$, 67, 64, _("Orc Sniper"), I_ORC_ARCHER, 1, instance_npcname("#Mobs Control")+"::OnMyMobDead2"); + mapannounce(.@map$, _("Orc Sniper: Hah! Pretty impressive that you made it this far, but your foolish little trip ends here..."), bc_map, "0xff8888"); end; OnContinue: - enablenpc instance_npcname("#Warp2-2"); - initnpctimer; + enablenpc(instance_npcname("#Warp2-2")); + initnpctimer(); end; OnTimer10000: - areamonster instance_mapname("2@orcs"),40,91,52,103,"Orc Sniper",1982,1,instance_npcname("#Mobs Control")+"::OnMyMobDead2"; - stopnpctimer; + areamonster(instance_mapname("2@orcs"), 40, 91, 52, 103, _("Orc Sniper"), I_ORC_ARCHER, 1, instance_npcname("#Mobs Control")+"::OnMyMobDead2"); + stopnpctimer(); end; OnTouch: - warp instance_mapname("2@orcs"),107,55; + warp(instance_mapname("2@orcs"), 107, 55); end; } @@ -778,41 +756,41 @@ OnTouch: 2@orcs,167,104,0 script #Warp2-3 WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("#Warp2-3"); + disablenpc(instance_npcname("#Warp2-3")); end; OnEnable: .@map$ = instance_mapname("2@orcs"); - monster .@map$,152,147,"Depraved Orc Spirit",1983,1,instance_npcname("#Mobs Control")+"::OnMyMobDead3"; - mapannounce .@map$, "Depraved Orc Spirit: I smell flesh! Hungry! Wanna try some human meat!!",bc_map,"0xff8888"; + monster(.@map$, 152, 147, _("Depraved Orc Spirit"), I_ORC_SKELETON, 1, instance_npcname("#Mobs Control")+"::OnMyMobDead3"); + mapannounce(.@map$, _("Depraved Orc Spirit: I smell flesh! Hungry! Wanna try some human meat!!"), bc_map, "0xff8888"); end; OnContinue: - areamonster instance_mapname("2@orcs"),117,61,129,73,"Depraved Orc Spirit",1983,1; - donpcevent instance_npcname("#Boss Control")+"::OnEnable"; - enablenpc instance_npcname("#Warp2-3"); - initnpctimer; + areamonster(instance_mapname("2@orcs"), 117, 61, 129, 73, _("Depraved Orc Spirit"), I_ORC_SKELETON, 1); + donpcevent(instance_npcname("#Boss Control")+"::OnEnable"); + enablenpc(instance_npcname("#Warp2-3")); + initnpctimer(); end; OnTimer10: - mapannounce instance_mapname("2@orcs"), "Shaman Cargalache: Hahaha!! So, you finally made it here. The assassin you sent was just terrible. That stupid Orc is getting cold under my feet.",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Shaman Cargalache: Hahaha!! So, you finally made it here. The assassin you sent was just terrible. That stupid Orc is getting cold under my feet."), bc_map, C_YELLOW); end; OnTimer6810: - mapannounce instance_mapname("2@orcs"), "Shaman Cargalache: My loyal slave, go get those intruders!",bc_map,"0xffff00"; + mapannounce(instance_mapname("2@orcs"), _("Shaman Cargalache: My loyal slave, go get those intruders!"), bc_map, C_YELLOW); end; OnTimer10310: - mapannounce instance_mapname("2@orcs"), "Depraved Orc Hero: Whatever you say, my lord.",bc_map,"0xff7777"; + mapannounce(instance_mapname("2@orcs"), _("Depraved Orc Hero: Whatever you say, my lord."), bc_map, "0xff7777"); end; OnTimer13110: - mapannounce instance_mapname("2@orcs"), "Caution: You have been discovered by Shaman Cargalache. Kruger's plan to assassinate the Shaman has failed. You must defeat Cargalache and find traces of Kruger.",bc_map,"0x8888ff"; - stopnpctimer; + mapannounce(instance_mapname("2@orcs"), _("Caution: You have been discovered by Shaman Cargalache. Kruger's plan to assassinate the Shaman has failed. You must defeat Cargalache and find traces of Kruger."), bc_map, "0x8888ff"); + stopnpctimer(); end; OnTouch: - warp instance_mapname("2@orcs"),167,95; + warp(instance_mapname("2@orcs"), 167, 95); end; } @@ -820,93 +798,87 @@ OnTouch: end; OnInstanceInit: - disablenpc instance_npcname("#Boss Control"); + disablenpc(instance_npcname("#Boss Control")); end; OnEnable: .@map$ = instance_mapname("2@orcs"); - monster .@map$,185,8,"Shaman Cargalache",1984,1,instance_npcname("#Boss Control")+"::OnMyMobDead"; - monster .@map$,179,15,"Depraved Orc Hero",1087,1; - enablenpc instance_npcname("#Boss Control"); + monster(.@map$, 185, 8, _("Shaman Cargalache"), I_ORC_LADY, 1, instance_npcname("#Boss Control")+"::OnMyMobDead"); + monster(.@map$, 179, 15, _("Depraved Orc Hero"), ORK_HERO, 1); + enablenpc(instance_npcname("#Boss Control")); end; OnMyMobDead: - donpcevent instance_npcname("Kruger#")+"::OnEnable"; + donpcevent(instance_npcname("Kruger#")+"::OnEnable"); .@map$ = instance_mapname("2@orcs"); - .@mob_ran = rand(1,5); - if (.@mob_ran == 1) { - mapannounce .@map$, "Shaman Cargalache: How... How could this be... How could someone like you...!!",bc_map,"0xffff00"; - } - else if (.@mob_ran == 2) { - mapannounce .@map$, "Shaman Cargalache: How is it that I've been overpowered by mere humans!",bc_map,"0xffff00"; - } - else if (.@mob_ran == 3) { - mapannounce .@map$, "Shaman Cargalache: This... This can't be the end...",bc_map,"0xffff00"; - } - else if (.@mob_ran == 4) { - mapannounce .@map$, "Shaman Cargalache: I... Can't die... Yet...!",bc_map,"0xffff00"; - } - else { - mapannounce .@map$, "Shaman Cargalache: Defeated by these fools... It can't be happening...!",bc_map,"0xffff00"; - } - donpcevent instance_npcname("#2Resurrect Monsters1")+"::OnDisable"; - donpcevent instance_npcname("#2Resurrect Monsters3")+"::OnDisable"; - donpcevent instance_npcname("#Warp Outside Orc Dun")+"::OnEnable"; + .@mob_ran = rand(1, 5); + if (.@mob_ran == 1) + mapannounce(.@map$, _("Shaman Cargalache: How... How could this be... How could someone like you...!!"), bc_map, C_YELLOW); + else if (.@mob_ran == 2) + mapannounce(.@map$, _("Shaman Cargalache: How is it that I've been overpowered by mere humans!"), bc_map, C_YELLOW); + else if (.@mob_ran == 3) + mapannounce(.@map$, _("Shaman Cargalache: This... This can't be the end..."), bc_map, C_YELLOW); + else if (.@mob_ran == 4) + mapannounce(.@map$, _("Shaman Cargalache: I... Can't die... Yet...!"), bc_map, C_YELLOW); + else + mapannounce(.@map$, _("Shaman Cargalache: Defeated by these fools... It can't be happening...!"), bc_map, C_YELLOW); + donpcevent(instance_npcname("#2Resurrect Monsters1")+"::OnDisable"); + donpcevent(instance_npcname("#2Resurrect Monsters3")+"::OnDisable"); + donpcevent(instance_npcname("#Warp Outside Orc Dun")+"::OnEnable"); end; } 2@orcs,182,8,0 script #Warp Outside Orc Dun WARPNPC,3,3,{ OnInstanceInit: - disablenpc instance_npcname("#Warp Outside Orc Dun"); + disablenpc(instance_npcname("#Warp Outside Orc Dun")); end; OnEnable: - enablenpc instance_npcname("#Warp Outside Orc Dun"); + enablenpc(instance_npcname("#Warp Outside Orc Dun")); end; OnTouch: - warp "gef_fild10",240,197; + warp("gef_fild10", 240, 197); end; } 2@orcs,172,13,0 script Kruger# 4_ORCWARRIOR2,{ if (yong_odun < 2) { - mes "[Kruger]"; - mes "*Coughing*"; - mes ""+strcharinfo(PC_NAME)+", it's you..."; - next; - mes "["+strcharinfo(PC_NAME)+"] "; - mes "Don't move! You are wounded!"; - next; - mes "[Kruger]"; - mes "It's... all right.. I'm dying..."; - mes "...."; - mes "The Shaman? What about the Shaman?"; - next; - mes "["+strcharinfo(PC_NAME)+"] "; - mes "The Shaman's dead now. Who was that Shaman really?"; - next; - mes "Kruger seemed to be relieved as he hears of the death of the Shaman, but you notice the bitter expression on his face."; - next; - mes "[Kruger]"; - mes "I.. I just couldn't kill my own daughter..."; - mes "Thank you, I'm sure she's finally free from the nightmare that used to choke her soul."; - next; - mes "Kruger was about to say something more, but he breathed his last breath before he could..."; + mes("[Kruger]"); + mes("*Coughing*"); + mesf("%s, it's you...", strcharinfo(PC_NAME)); + next(); + mesf("[%s]", strcharinfo(PC_NAME)); + mes("Don't move! You are wounded!"); + next(); + mes("[Kruger]"); + mes("It's... all right.. I'm dying..."); + mes("...."); + mes("The Shaman? What about the Shaman?"); + next(); + mesf("[%s]", strcharinfo(PC_NAME)); + mes("The Shaman's dead now. Who was that Shaman really?"); + next(); + mes("Kruger seemed to be relieved as he hears of the death of the Shaman, but you notice the bitter expression on his face."); + next(); + mes("[Kruger]"); + mes("I.. I just couldn't kill my own daughter..."); + mes("Thank you, I'm sure she's finally free from the nightmare that used to choke her soul."); + next(); + mes("Kruger was about to say something more, but he breathed his last breath before he could..."); yong_odun = 2; - close; - } - else { - mes "You can see the dead body of Kruger, peacefully lying on the ground."; - close; + close(); + } else { + mes("You can see the dead body of Kruger, peacefully lying on the ground."); + close(); } OnInstanceInit: - disablenpc instance_npcname("Kruger#"); + disablenpc(instance_npcname("Kruger#")); end; OnEnable: - enablenpc instance_npcname("Kruger#"); + enablenpc(instance_npcname("Kruger#")); end; } @@ -914,14 +886,14 @@ OnEnable: end; OnMyMobDead1: - donpcevent instance_npcname("#Warp2-1")+"::OnContinue"; + donpcevent(instance_npcname("#Warp2-1")+"::OnContinue"); end; OnMyMobDead2: - donpcevent instance_npcname("#Warp2-2")+"::OnContinue"; + donpcevent(instance_npcname("#Warp2-2")+"::OnContinue"); end; OnMyMobDead3: - donpcevent instance_npcname("#Warp2-3")+"::OnContinue"; + donpcevent(instance_npcname("#Warp2-3")+"::OnContinue"); end; } diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index 1b1022dcf..3bc3d951a 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -37,65 +37,64 @@ //== Sealed Catacomb Entrance ============================== monk_test,309,146,3 script Friar Patrick#edq 4_M_OLDFRIAR,{ - cutin "ins_cata_pri_n",2; - mes "[Friar Patrick]"; - mes "The peace of this world cannot last forever... The hands of Evil are reaching into the world again..."; - next; - mes "[Friar Patrick]"; - mes "What brought you to this place?"; - next; + cutin("ins_cata_pri_n", 2); + mes("[Friar Patrick]"); + mes("The peace of this world cannot last forever... The hands of Evil are reaching into the world again..."); + next(); + mes("[Friar Patrick]"); + mes("What brought you to this place?"); + next(); if (countitem(Bapho_Doll) > 0) { .@doll = 1; .@selection = select("What is this place?", "I want to enter.", "About the Cursed Baphomet Doll.", "Cancel."); - } - else { + } else { .@selection = select("What is this place?", "I want to enter.", "Cancel."); } - switch(.@selection) { + switch (.@selection) { case 1: - mes "[Friar Patrick]"; - mes "Huh... Don't you know? This is St. Capitolina Monastery where the Brothers who wish to become monks train and pray."; - next; - mes "[Friar Patrick]"; - mes "And this place is... What can I say... Yes. It's the grave of the Devil. Grave..."; - next; - mes "[Friar Patrick]"; - mes "The very place where the great Devil who once demolished this world is sleeping."; - next; - switch(select("Tell me more.", "Stop talking.")) { + mes("[Friar Patrick]"); + mes("Huh... Don't you know? This is St. Capitolina Monastery where the Brothers who wish to become monks train and pray."); + next(); + mes("[Friar Patrick]"); + mes("And this place is... What can I say... Yes. It's the grave of the Devil. Grave..."); + next(); + mes("[Friar Patrick]"); + mes("The very place where the great Devil who once demolished this world is sleeping."); + next(); + switch (select("Tell me more.", "Stop talking.")) { case 1: - cutin "ins_cata_pri_n",2; - mes "[Friar Patrick]"; - mes "Baphomet... is the name of the Devil... I think you have heard of his name."; - next; - mes "[Friar Patrick]"; - mes "Numerous brave men and brothers have trained in this monastery..."; - next; - mes "[Friar Patrick]"; - mes "Under this gravestone in front of you... Baphomet is sealed."; - next; - mes "[Friar Patrick]"; - mes "But... As we speak Satan Morocc is marshalling his powerful magic in order to affect all life on this continent."; - next; - mes "[Friar Patrick]"; - mes "Baphomet also... has awakened and is preparing for his revival, into this world, by weakening the power of the seal through the power of Satan Morocc..."; - next; - mes "[Friar Patrick]"; - mes "Now... I'm looking for someone brave enough to reseal Baphomet in its shrine... as we once did many years ago..."; - next; - mes "[Friar Patrick]"; - mes "Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."; - next; - mes "[Friar Patrick]"; - mes "Train more and use your skills to protect the world from evil's looming presence..."; + cutin("ins_cata_pri_n", 2); + mes("[Friar Patrick]"); + mes("Baphomet... is the name of the Devil... I think you have heard of his name."); + next(); + mes("[Friar Patrick]"); + mes("Numerous brave men and brothers have trained in this monastery..."); + next(); + mes("[Friar Patrick]"); + mes("Under this gravestone in front of you... Baphomet is sealed."); + next(); + mes("[Friar Patrick]"); + mes("But... As we speak Satan Morocc is marshalling his powerful magic in order to affect all life on this continent."); + next(); + mes("[Friar Patrick]"); + mes("Baphomet also... has awakened and is preparing for his revival, into this world, by weakening the power of the seal through the power of Satan Morocc..."); + next(); + mes("[Friar Patrick]"); + mes("Now... I'm looking for someone brave enough to reseal Baphomet in its shrine... as we once did many years ago..."); + next(); + mes("[Friar Patrick]"); + mes("Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."); + next(); + mes("[Friar Patrick]"); + mes("Train more and use your skills to protect the world from evil's looming presence..."); break; case 2: - cutin "ins_cata_pri_n",2; - mes "[Friar Patrick]"; - mes "Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."; - next; - mes "[Friar Patrick]"; - mes "Train more and use your skills to protect the world from evil's looming presence..."; + cutin("ins_cata_pri_n", 2); + mes("[Friar Patrick]"); + mes("Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."); + next(); + mes("[Friar Patrick]"); + mes("Train more and use your skills to protect the world from evil's looming presence..."); break; } break; @@ -104,332 +103,327 @@ monk_test,309,146,3 script Friar Patrick#edq 4_M_OLDFRIAR,{ .@party_id = getcharid(CHAR_ID_PARTY); - mes "[Friar Patrick]"; - mes "Do you mean you'll go to the shrine and reseal Baphomet?"; - next; + mes("[Friar Patrick]"); + mes("Do you mean you'll go to the shrine and reseal Baphomet?"); + next(); // 12 hour cooldown - .@ins_bapho_check = questprogress(3040,PLAYTIME); + .@ins_bapho_check = questprogress(3040, PLAYTIME); // Two hour play limit - //.@ins_bapho_check2 = questprogress(3045,PLAYTIME); + //.@ins_bapho_check2 = questprogress(3045, PLAYTIME); if (!.@ins_bapho_check) { - if (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR) && instance_check_party(.@party_id,2,75)) { - mes "[Friar Patrick]"; - mes "Party name is "+getpartyname(.@party_id)+"..."; - mes "Name of the leader is "+strcharinfo(PC_NAME)+"..."; - .@instance = instance_create("Sealed Catacomb",.@party_id); + if (getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR) && instance_check_party(.@party_id, 2, 75)) { + mes("[Friar Patrick]"); + mesf("Party name is %s...", getpartyname(.@party_id)); + mesf("Name of the leader is %s...", strcharinfo(PC_NAME)); + .@instance = instance_create(_("Sealed Catacomb"), .@party_id); if (.@instance < 0) { - mes "Umm... But it seems that there is a problem here... I'll check quickly. Please wait."; - } - else { + mes("Umm... But it seems that there is a problem here... I'll check quickly. Please wait."); + } else { for (.@i = 1; .@i <= 2; .@i++) { - if( instance_attachmap(.@i + "@cata", .@instance) == "" ) { - mes "Failed to attach "+.@i+"@cata as a map!"; + if (instance_attachmap(.@i + "@cata", .@instance) == "") { + mesf("Failed to attach %d@cata as a map!", .@i); instance_destroy(.@instance); - close; + close(); } } - instance_set_timeout 7200,300,.@instance; + instance_set_timeout(7200, 300, .@instance); instance_init(.@instance); - mes "Okay... I'll adjust the shrine's seal so that you and your group can enter."; - next; - mes "[Friar Patrick]"; - mes "You will see a sign when the seal has broken. Please wait until the sign appears..."; - next; - mes "[Friar Patrick]"; - mes "When you see the sign, put your hands on the gravestone... Then you can move inside."; - next; - mes "[Friar Patrick]"; - mes "One thing that you should remember is... Anyone who enters this shrine will be cursed by Baphomet and cannot enter or leave while they are cursed."; - next; - mes "[Friar Patrick]"; - mes "And one more thing... In this cursed area, some skills, which are protected by outer physical power are prohibited by the effect of the seal."; - next; - mes "[Friar Patrick]"; - mes "For example, the skills like ^0000FFSafety Wall and Assumptio^000000... So you'd better prepare before entering the shrine."; + mes("Okay... I'll adjust the shrine's seal so that you and your group can enter."); + next(); + mes("[Friar Patrick]"); + mes("You will see a sign when the seal has broken. Please wait until the sign appears..."); + next(); + mes("[Friar Patrick]"); + mes("When you see the sign, put your hands on the gravestone... Then you can move inside."); + next(); + mes("[Friar Patrick]"); + mes("One thing that you should remember is... Anyone who enters this shrine will be cursed by Baphomet and cannot enter or leave while they are cursed."); + next(); + mes("[Friar Patrick]"); + mes("And one more thing... In this cursed area, some skills, which are protected by outer physical power are prohibited by the effect of the seal."); + next(); + mes("[Friar Patrick]"); + mes("For example, the skills like ^0000FFSafety Wall and Assumptio^000000... So you'd better prepare before entering the shrine."); } + } else { + mes("[Friar Patrick]"); + mes("Umm... I recognize your courage, but... I can't permit anyone to enter this place. I can only permit the leader of a party to enter first."); + next(); + mes("[Friar Patrick]"); + mes("Once the party leader is permitted, the rest of the party can enter. This is a rule of this monastery, so please understand."); } - else { - mes "[Friar Patrick]"; - mes "Umm... I recognize your courage, but... I can't permit anyone to enter this place. I can only permit the leader of a party to enter first."; - next; - mes "[Friar Patrick]"; - mes "Once the party leader is permitted, the rest of the party can enter. This is a rule of this monastery, so please understand."; - } + } else if (.@ins_bapho_check == 1) { + mes("[Friar Patrick]"); + mes("It seems you have entered this shrine recently... You cannot reenter because Baphomet's Curse still remains. Baphomet's Curse disappears only after a certain amount of time has passed."); + } else if (.@ins_bapho_check == 2) { + mes("[Friar Patrick]"); + mes("Umm... It seems that Baphomet's Curse has weakened. I can remove it now."); + next(); + mes("[Friar Patrick]"); + mes("Haaaaaaap... Hocus Pocus Wingardium Abracadabra!!!!!"); + next(); + erasequest(3040); + if (questprogress(3041)) + erasequest(3041); + if (questprogress(3045)) + erasequest(3045); + mes("[Friar Patrick]"); + mes("Huu... It's over. Now that I've released Baphomet's Curse, you can enter again."); } - else if (.@ins_bapho_check == 1) { - mes "[Friar Patrick]"; - mes "It seems you have entered this shrine recently... You cannot reenter because Baphomet's Curse still remains. Baphomet's Curse disappears only after a certain amount of time has passed."; - } - else if (.@ins_bapho_check == 2) { - mes "[Friar Patrick]"; - mes "Umm... It seems that Baphomet's Curse has weakened. I can remove it now."; - next; - mes "[Friar Patrick]"; - mes "Haaaaaaap... Hocus Pocus Wingardium Abracadabra!!!!!"; - next; - erasequest 3040; - if (questprogress(3041)) erasequest 3041; - if (questprogress(3045)) erasequest 3045; - mes "[Friar Patrick]"; - mes "Huu... It's over. Now that I've released Baphomet's Curse, you can enter again."; - } - } - else { - mes "[Friar Patrick]"; - mes "Umm... You should train more to enter this dangerous place... You should reach at least Lv 75 to enter here."; - next; - mes "[Friar Patrick]"; - mes "Please train more and come again."; + } else { + mes("[Friar Patrick]"); + mes("Umm... You should train more to enter this dangerous place... You should reach at least Lv 75 to enter here."); + next(); + mes("[Friar Patrick]"); + mes("Please train more and come again."); } break; case 3: if (.@doll == 1) { - mes "[Friar Patrick]"; - mes "That is... the villainous doll that you are holding... Let me see it."; - next; - mes "[Friar Patrick]"; - mes "... ... ..."; - next; - mes "[Friar Patrick]"; - mes "That's correct... I can feel Baphomet's evil inside... So, what will you do with the doll?"; - next; - mes "[Friar Patrick]"; - mes "It is just a dangerous and useless thing if you do nothing with it... I'll introduce someone who can help you... Do you want to see him?"; - next; - mes "[Friar Patrick]"; - mes "Go to see ^0000FFRust Blackhand^000000 who is near the main building of the monastery... He will make this doll helpful to you."; - setquest 3042; + mes("[Friar Patrick]"); + mes("That is... the villainous doll that you are holding... Let me see it."); + next(); + mes("[Friar Patrick]"); + mes("... ... ..."); + next(); + mes("[Friar Patrick]"); + mes("That's correct... I can feel Baphomet's evil inside... So, what will you do with the doll?"); + next(); + mes("[Friar Patrick]"); + mes("It is just a dangerous and useless thing if you do nothing with it... I'll introduce someone who can help you... Do you want to see him?"); + next(); + mes("[Friar Patrick]"); + mes("Go to see ^0000FFRust Blackhand^000000 who is near the main building of the monastery... He will make this doll helpful to you."); + setquest(3042); break; } case 4: - mes "[Friar Patrick]"; - mes "Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."; - next; - mes "[Friar Patrick]"; - mes "Train more and use your skills to protect the world from evil's looming presence..."; + mes("[Friar Patrick]"); + mes("Anyone who fights for good will know, deep inside, that evil is threatening to conquer this world..."); + next(); + mes("[Friar Patrick]"); + mes("Train more and use your skills to protect the world from evil's looming presence..."); break; } - close2; - cutin "",255; + close2(); + cutin("", 255); end; } monk_test,306,151,3 script Grave of Baphomet#edq HIDDEN_NPC,{ - if (countitem(Token_Of_Apostle)) delitem Token_Of_Apostle,countitem(Token_Of_Apostle); - mes "This gravestone has a carving of a wicked devil with large horns. It arouses an ominous feeling."; - next; - if(select("Touch the stone.", "Step back.") == 2) - close; + if (countitem(Token_Of_Apostle)) + delitem(Token_Of_Apostle, countitem(Token_Of_Apostle)); + mes("This gravestone has a carving of a wicked devil with large horns. It arouses an ominous feeling."); + next(); + if (select("Touch the stone.", "Step back.") == 2) + close(); // 12 hour cooldown - .@ins_bapho_check = questprogress(3040,PLAYTIME); + .@ins_bapho_check = questprogress(3040, PLAYTIME); // Two hour play limit - //.@ins_bapho_check2 = questprogress(3045,PLAYTIME); + //.@ins_bapho_check2 = questprogress(3045, PLAYTIME); if (!.@ins_bapho_check) { if (has_instance("1@cata") == "") { - mes "It's cold to the touch. It doesn't respond."; - close; + mes("It's cold to the touch. It doesn't respond."); + close(); } else { - mapannounce "monk_test","[" + strcharinfo(PC_NAME) + "] member of the [" + getpartyname(.@party_id) + "] party has entered the Sealed Shrine.",bc_map,"0x00ff99"; - setquest 3040; - warp "1@cata",100,224; + mapannounce("monk_test", sprintf(_$("[%s] member of the [%s] party has entered the Sealed Shrine."), strcharinfo(PC_NAME), getpartyname(.@party_id)), bc_map, C_SPRINGGREEN); + setquest(3040); + warp("1@cata", 100, 224); end; } } else if (.@ins_bapho_check == 1) { - mes "[Friar Patrick]"; - mes "It seems you have entered this shrine recently... You cannot reenter because the curse of Baphomet still remains."; - mes "The curse of Baphomet disappears after a certain amount of time after you entered."; - close; + mes("[Friar Patrick]"); + mes("It seems you have entered this shrine recently... You cannot reenter because the curse of Baphomet still remains."); + mes("The curse of Baphomet disappears after a certain amount of time after you entered."); + close(); } else if (.@ins_bapho_check == 2) { - mes "[Friar Patrick]"; - mes "Umm... It seems the curse of Baphomet weakened. I'll clear the bad curse."; - next; - mes "[Friar Patrick]"; - mes "Haaaaaaap... Wingardium Leviosa Expecto Patronum !!!!!"; + mes("[Friar Patrick]"); + mes("Umm... It seems the curse of Baphomet weakened. I'll clear the bad curse."); + next(); + mes("[Friar Patrick]"); + mes("Haaaaaaap... Wingardium Leviosa Expecto Patronum !!!!!"); specialeffect(EF_HOLYHIT, AREA, playerattached()); - erasequest 3040; - if (questprogress(3041)) erasequest 3041; - if (questprogress(3045)) erasequest 3045; - next; - mes "[Friar Patrick]"; - mes "Huu... It's over. Now I released all of the curses on you. You can enter again."; - close; + erasequest(3040); + if (questprogress(3041)) + erasequest(3041); + if (questprogress(3045)) + erasequest(3045); + next(); + mes("[Friar Patrick]"); + mes("Huu... It's over. Now I released all of the curses on you. You can enter again."); + close(); } } prt_monk,261,91,3 script Rust Blackhand#edq 4_M_DWARF,{ .@new_maje = questprogress(3043); - mes "[Rust Blackhand]"; - mes "Who are you? What do you want me for?"; - next; - mes "[Rust Blackhand]"; - mes "You're not a monk, then what do you want?"; - next; + mes("[Rust Blackhand]"); + mes("Who are you? What do you want me for?"); + next(); + mes("[Rust Blackhand]"); + mes("You're not a monk, then what do you want?"); + next(); if (.@new_maje == 1) { - mes "[Rust Blackhand]"; - mes "Did you bring all of the ingredients?"; - next; - if (countitem(Bapho_Doll) && countitem(Magestic_Goat) && (countitem(Dark_Crystal) > 29) && (countitem(Dark_Debris) > 49) && (Zeny >= 990000)) { - mes "[Rust Blackhand]"; - mes "kkk... You prepared the ingredients well. Why don't you leave it there and wait?"; - next; - mes "[Rust Blackhand]"; - mes "Hmm... It's been such a long time since I last saw these wicked horns... kkk... Let me start..."; - next; - mes "..."; - next; - mes "... ..."; - next; - mes "... ... ..."; - next; - delitem Bapho_Doll,1; - delitem Magestic_Goat,1; - delitem Dark_Crystal,30; - delitem Dark_Debris,50; + mes("[Rust Blackhand]"); + mes("Did you bring all of the ingredients?"); + next(); + if (countitem(Bapho_Doll) && countitem(Magestic_Goat) && countitem(Dark_Crystal) > 29 && countitem(Dark_Debris) > 49 && Zeny >= 990000) { + mes("[Rust Blackhand]"); + mes("kkk... You prepared the ingredients well. Why don't you leave it there and wait?"); + next(); + mes("[Rust Blackhand]"); + mes("Hmm... It's been such a long time since I last saw these wicked horns... kkk... Let me start..."); + next(); + mes("..."); + next(); + mes("... ..."); + next(); + mes("... ... ..."); + next(); + delitem(Bapho_Doll, 1); + delitem(Magestic_Goat, 1); + delitem(Dark_Crystal, 30); + delitem(Dark_Debris, 50); Zeny -= 990000; - completequest 3043; - getitem L_Magestic_Goat,1; - mes "[Rust Blackhand]"; - mes "It's done. You may be excited, of course. I understand..."; - next; - mes "[Rust Blackhand]"; - mes "I don't accept complaints or A/S requests, so use it with care. I must go..."; - close; - } - else { - mes "[Rust Blackhand]"; - mes "Huu... You don't understand what I said. You cannot make anything with these ingredients."; - next; - mes "[Rust Blackhand]"; - mes "I'll tell you the ingredients one more time, so please gather them correctly."; - next; - mes "[Rust Blackhand]"; - mes "^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."; - close; + completequest(3043); + getitem(L_Magestic_Goat, 1); + mes("[Rust Blackhand]"); + mes("It's done. You may be excited, of course. I understand..."); + next(); + mes("[Rust Blackhand]"); + mes("I don't accept complaints or A/S requests, so use it with care. I must go..."); + close(); + } else { + mes("[Rust Blackhand]"); + mes("Huu... You don't understand what I said. You cannot make anything with these ingredients."); + next(); + mes("[Rust Blackhand]"); + mes("I'll tell you the ingredients one more time, so please gather them correctly."); + next(); + mes("[Rust Blackhand]"); + mes("^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."); + close(); } - } - else if (!.@new_maje && countitem(Bapho_Doll) > 0) { - switch(select("About the Cursed Baphomet Doll", "Stop talking.")) { + } else if (!.@new_maje && countitem(Bapho_Doll) > 0) { + switch (select("About the Cursed Baphomet Doll", "Stop talking.")) { case 1: - mes "[Rust Blackhand]"; - mes "What?... Hmmm... Did you get the doll? You're pretty good, unlike your appearance..."; - next; - mes "[Rust Blackhand]"; - mes "Let me see... Needless to say, Patric must have sent you here to deal with the doll, right?"; - next; - mes "[Rust Blackhand]"; - mes "Cool... I'll help you make the evil doll useful. What? What can I do?"; - next; - mes "[Rust Blackhand]"; - mes "I can make the strong and large horns of the wicked devil Baphomet for you. A helm that has his immense power."; - next; - mes "[Rust Blackhand]"; - mes "It is called the ^4d4dffGigantic Magestic Goat^000000. You'll realize that the Magestic Goat you're familiar with is nothing in comparison."; - next; - mes "[Rust Blackhand]"; - mes "The Cursed Baphomet Doll is the most important ingredient... I'll make you if you want. What would you like to do?"; - next; - switch(select("I want to make one!", "I don't need one.")) { + mes("[Rust Blackhand]"); + mes("What?... Hmmm... Did you get the doll? You're pretty good, unlike your appearance..."); + next(); + mes("[Rust Blackhand]"); + mes("Let me see... Needless to say, Patric must have sent you here to deal with the doll, right?"); + next(); + mes("[Rust Blackhand]"); + mes("Cool... I'll help you make the evil doll useful. What? What can I do?"); + next(); + mes("[Rust Blackhand]"); + mes("I can make the strong and large horns of the wicked devil Baphomet for you. A helm that has his immense power."); + next(); + mes("[Rust Blackhand]"); + mes("It is called the ^4d4dffGigantic Magestic Goat^000000. You'll realize that the Magestic Goat you're familiar with is nothing in comparison."); + next(); + mes("[Rust Blackhand]"); + mes("The Cursed Baphomet Doll is the most important ingredient... I'll make you if you want. What would you like to do?"); + next(); + switch (select("I want to make one!", "I don't need one.")) { case 1: - mes "[Rust Blackhand]"; - mes "kkk... Yes, wise men take their chances when the opportunity comes. I'll tell you the ingredients. Don't forget, and bring them all."; - next; - mes "[Rust Blackhand]"; - mes "^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."; - next; - mes "[Rust Blackhand]"; - mes "You can get the Magestic Goat from the weak Baphomet in the Labyrinth Forest. Crystal of Darkness and Fragment of Darkness are from the Incarnation of Morocc."; - next; - mes "[Rust Blackhand]"; - mes "I'm sure that you can get the ingredients because you sealed the real Baphomet. Can't you? kkk..."; - next; - mes "[Rust Blackhand]"; - mes "You'll never know how great this hat is until you get one. If you understood, go and get the ingredients."; + mes("[Rust Blackhand]"); + mes("kkk... Yes, wise men take their chances when the opportunity comes. I'll tell you the ingredients. Don't forget, and bring them all."); + next(); + mes("[Rust Blackhand]"); + mes("^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."); + next(); + mes("[Rust Blackhand]"); + mes("You can get the Magestic Goat from the weak Baphomet in the Labyrinth Forest. Crystal of Darkness and Fragment of Darkness are from the Incarnation of Morocc."); + next(); + mes("[Rust Blackhand]"); + mes("I'm sure that you can get the ingredients because you sealed the real Baphomet. Can't you? kkk..."); + next(); + mes("[Rust Blackhand]"); + mes("You'll never know how great this hat is until you get one. If you understood, go and get the ingredients."); if (questprogress(3042)) - erasequest 3042; - setquest 3043; - close; + erasequest(3042); + setquest(3043); + close(); case 2: - mes "[Rust Blackhand]"; - mes "Huh... Do you? Do whatever you want... Do you really want to let this opportunity go to waste?"; - next; - mes "[Rust Blackhand]"; - mes "Tut, tut... I don't care if the wicked doll threatens your life all the time!"; - close; + mes("[Rust Blackhand]"); + mes("Huh... Do you? Do whatever you want... Do you really want to let this opportunity go to waste?"); + next(); + mes("[Rust Blackhand]"); + mes("Tut, tut... I don't care if the wicked doll threatens your life all the time!"); + close(); } case 2: - mes "[Rust Blackhand]"; - mes "What a dull boy he is... huh..."; - close; + mes("[Rust Blackhand]"); + mes("What a dull boy he is... huh..."); + close(); } - } - else if (!.@new_maje && !countitem(Bapho_Doll)) { - mes "[Rust Blackhand]"; - mes "If you don't have business with me, go away! As you see, I make equipment for the Brothers at the monastery, not for adventurers like you. Do you understand?"; - close; - } - else if (.@new_maje == 2 && countitem(Bapho_Doll)) { - switch(select("About the Cursed Baphomet Doll", "Stop talking.")) { + } else if (!.@new_maje && !countitem(Bapho_Doll)) { + mes("[Rust Blackhand]"); + mes("If you don't have business with me, go away! As you see, I make equipment for the Brothers at the monastery, not for adventurers like you. Do you understand?"); + close(); + } else if (.@new_maje == 2 && countitem(Bapho_Doll)) { + switch (select("About the Cursed Baphomet Doll", "Stop talking.")) { case 1: - mes "[Rust Blackhand]"; - mes "What?... You again? What do you want this time?"; - next; - mes "[Rust Blackhand]"; - mes "What? You got another doll from the wicked devil? Umm... You're much better than I thought..."; - next; - mes "[Rust Blackhand]"; - mes "Alright... I'll help you again."; - next; - mes "[Rust Blackhand]"; - mes "If you want to make the doll into a ^4d4dffGigantic Magestic Goat^000000 again, I can make you another."; - next; - mes "[Rust Blackhand]"; - mes "I'll tell you the ingredients again. So, do you want to make?"; - next; - switch(select("I want.", "No, I don't want.")) { + mes("[Rust Blackhand]"); + mes("What?... You again? What do you want this time?"); + next(); + mes("[Rust Blackhand]"); + mes("What? You got another doll from the wicked devil? Umm... You're much better than I thought..."); + next(); + mes("[Rust Blackhand]"); + mes("Alright... I'll help you again."); + next(); + mes("[Rust Blackhand]"); + mes("If you want to make the doll into a ^4d4dffGigantic Magestic Goat^000000 again, I can make you another."); + next(); + mes("[Rust Blackhand]"); + mes("I'll tell you the ingredients again. So, do you want to make?"); + next(); + switch (select("I want.", "No, I don't want.")) { case 1: - mes "[Rust Blackhand]"; - mes "kkk... Yes, wise men take their chances when the opportunity comes. I'll tell you the ingredients. Don't forget, and bring them all."; - next; - mes "[Rust Blackhand]"; - mes "^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."; - next; - mes "[Rust Blackhand]"; - mes "You can get the Magestic Goat from the weak Baphomet in the Labyrinth Forest. Crystal of Darkness and Fragment of Darkness are from the Incarnation of Morocc."; - next; - mes "[Rust Blackhand]"; - mes "I'm sure that you can get the ingredients because you sealed the real Baphomet. Can't you? kkk..."; - next; - mes "[Rust Blackhand]"; - mes "You'll never know how great this hat is until you get one. If you understood, go and get the ingredients."; + mes("[Rust Blackhand]"); + mes("kkk... Yes, wise men take their chances when the opportunity comes. I'll tell you the ingredients. Don't forget, and bring them all."); + next(); + mes("[Rust Blackhand]"); + mes("^0000FFCursed Baphomet Doll, Magestic Goat, 30 Crystal of Darkness, 50 Fragment of Darkness^000000, and the most important, production cost is ^0000FF990000^000000 Zeny."); + next(); + mes("[Rust Blackhand]"); + mes("You can get the Magestic Goat from the weak Baphomet in the Labyrinth Forest. Crystal of Darkness and Fragment of Darkness are from the Incarnation of Morocc."); + next(); + mes("[Rust Blackhand]"); + mes("I'm sure that you can get the ingredients because you sealed the real Baphomet. Can't you? kkk..."); + next(); + mes("[Rust Blackhand]"); + mes("You'll never know how great this hat is until you get one. If you understood, go and get the ingredients."); if (questprogress(3042)) - erasequest 3042; - erasequest 3043; - setquest 3043; - close; + erasequest(3042); + erasequest(3043); + setquest(3043); + close(); case 2: - mes "[Rust Blackhand]"; - mes "Huh... Do you? Do whatever you want... Do you really want to let this opportunity go to waste?"; - next; - mes "[Rust Blackhand]"; - mes "Tut, tut... I don't care if the wicked doll threatens your life all the time!"; - close; + mes("[Rust Blackhand]"); + mes("Huh... Do you? Do whatever you want... Do you really want to let this opportunity go to waste?"); + next(); + mes("[Rust Blackhand]"); + mes("Tut, tut... I don't care if the wicked doll threatens your life all the time!"); + close(); } case 2: - mes "[Rust Blackhand]"; - mes "What a dull boy he is... huh..."; - close; + mes("[Rust Blackhand]"); + mes("What a dull boy he is... huh..."); + close(); } - } - else if (.@new_maje == 2 && !countitem(Bapho_Doll)) { - mes "[Rust Blackhand]"; - mes "Why are you hanging around here? If you don't want a ^4d4dffGigantic Magestic Goat^000000, go away."; - close; + } else if (.@new_maje == 2 && !countitem(Bapho_Doll)) { + mes("[Rust Blackhand]"); + mes("Why are you hanging around here? If you don't want a ^4d4dffGigantic Magestic Goat^000000, go away."); + close(); } } @@ -437,18 +431,17 @@ prt_monk,261,91,3 script Rust Blackhand#edq 4_M_DWARF,{ 1@cata,1,2,0 script ins_baphomet_lotto FAKE_NPC,{ OnInstanceInit: // Pick one "true" Gravestone and 12 "false" Gravestones. - .@true = rand(1,13); - for (.@i = 1; .@i <= 13; ++.@i) { - disablenpc instance_npcname("Gravestone#1F_"+.@i+((.@i == .@true)?"T":"F")); - } - disablenpc instance_npcname("ins_baphomet_lotto"); + .@true = rand(1, 13); + for (.@i = 1; .@i <= 13; ++.@i) + disablenpc(instance_npcname("Gravestone#1F_"+.@i+((.@i == .@true)?"T":"F"))); + disablenpc(instance_npcname("ins_baphomet_lotto")); end; } 1@cata,3,2,0 script ins_baphomet_lotto2 FAKE_NPC,{ OnEnable: for (.@i = 1; .@i <= 12; ++.@i) - enablenpc instance_npcname("Bobbing Torch#"+.@i); + enablenpc(instance_npcname("Bobbing Torch#"+.@i)); end; } @@ -456,33 +449,32 @@ OnEnable: OnEnable: .@label$ = instance_npcname("ins_baphomet_lotto3")+"::OnMyMobDead"; .@map$ = instance_mapname("1@cata"); - monster .@map$,0,0,"Apostle of Baphomet",1869,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1291,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1869,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1291,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1869,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1291,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1869,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1132,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1117,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1132,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1117,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1132,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1291,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1117,1,.@label$; - monster .@map$,0,0,"Apostle of Baphomet",1869,1,.@label$; + monster(.@map$, 0, 0, _("Apostle of Baphomet"), FLAME_SKULL, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), WRAITH_DEAD, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), FLAME_SKULL, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), WRAITH_DEAD, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), FLAME_SKULL, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), WRAITH_DEAD, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), FLAME_SKULL, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), KHALITZBURG, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), EVIL_DRUID, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), KHALITZBURG, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), EVIL_DRUID, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), KHALITZBURG, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), WRAITH_DEAD, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), EVIL_DRUID, 1, .@label$); + monster(.@map$, 0, 0, _("Apostle of Baphomet"), FLAME_SKULL, 1, .@label$); end; OnDisable: - killmonster instance_mapname("1@cata"),instance_npcname("ins_baphomet_lotto3")+"::OnMyMobDead"; + killmonster(instance_mapname("1@cata"), instance_npcname("ins_baphomet_lotto3")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("1@cata"); - if (mobcount(.@map$,instance_npcname("ins_baphomet_lotto3")+"::OnMyMobDead") < 1) { - mapannounce .@map$, "All apostles of Baphomet are dead!",bc_map,"0x00ff99"; - } - getitem Token_Of_Apostle,1; + if (mobcount(.@map$, instance_npcname("ins_baphomet_lotto3")+"::OnMyMobDead") < 1) + mapannounce(.@map$, _("All apostles of Baphomet are dead!"), bc_map, C_SPRINGGREEN); + getitem(Token_Of_Apostle, 1); end; } @@ -490,102 +482,98 @@ OnMyMobDead: 1@cata,141,221,0 script Gravestone# CLEAR_NPC,3,3,{ .@party_id = getcharid(CHAR_ID_PARTY); if ('ins_baphomet == 0) { - mes "The gravestone is trembling..."; - next; - mes "When touching the gravestone, I hear a voice."; - next; + mes("The gravestone is trembling..."); + next(); + mes("When touching the gravestone, I hear a voice."); + next(); specialeffect(EF_CONE, AREA, playerattached()); - mes "[Voice of the Gravestone]"; - mes "I have waited and waited for a brave adventurer like you who will come back here again..."; - next; - while(1) { - switch(select("Who are you?", "Waited for me?", "Cancel.")) { + mes("[Voice of the Gravestone]"); + mes("I have waited and waited for a brave adventurer like you who will come back here again..."); + next(); + while (true) { + switch (select("Who are you?", "Waited for me?", "Cancel.")) { case 1: - mes "[Voice of the Gravestone]"; - mes "I was one of the warriors to stop Baphomet like you. Now, I'm dead and only my soul remains..."; - next; - mes "[Voice of the Gravestone]"; - mes "As you know... We don't have much time. You can't stop Baphomet by yourselves. The power of the devil has strengthened over the years."; - next; - mes "[Voice of the Gravestone]"; - mes "In the past, my companions and I sealed Baphomet at the altar located on the 2nd basement and blocked the entrance."; - next; - mes "[Voice of the Gravestone]"; - mes "I moved my soul's essence to my pendant, so that I could remain in this world. That's when I became this grave's guardian."; - next; + mes("[Voice of the Gravestone]"); + mes("I was one of the warriors to stop Baphomet like you. Now, I'm dead and only my soul remains..."); + next(); + mes("[Voice of the Gravestone]"); + mes("As you know... We don't have much time. You can't stop Baphomet by yourselves. The power of the devil has strengthened over the years."); + next(); + mes("[Voice of the Gravestone]"); + mes("In the past, my companions and I sealed Baphomet at the altar located on the 2nd basement and blocked the entrance."); + next(); + mes("[Voice of the Gravestone]"); + mes("I moved my soul's essence to my pendant, so that I could remain in this world. That's when I became this grave's guardian."); + next(); break; case 2: - mes "[Voice of the Gravestone]"; - mes "Baphomet's power is about to break the seal that we made. If you don't reactivate them... Baphomet's revival will only be a matter of time."; - next; - mes "[Voice of the Gravestone]"; - mes "To open the entrance, you must substantialize my soul. I'll open the entrance and reactivate the weakened seals after I am substantilized."; - next; - mes "[Voice of the Gravestone]"; - mes "To substantialize my soul, you should find my pendant. You can find my body near a grave here."; - next; - mes "[Voice of the Gravestone]"; - mes "If your ^0000FFparty leader^000000 brings me the pendant, my soul can be substantialized. So, hurry up."; + mes("[Voice of the Gravestone]"); + mes("Baphomet's power is about to break the seal that we made. If you don't reactivate them... Baphomet's revival will only be a matter of time."); + next(); + mes("[Voice of the Gravestone]"); + mes("To open the entrance, you must substantialize my soul. I'll open the entrance and reactivate the weakened seals after I am substantilized."); + next(); + mes("[Voice of the Gravestone]"); + mes("To substantialize my soul, you should find my pendant. You can find my body near a grave here."); + next(); + mes("[Voice of the Gravestone]"); + mes("If your ^0000FFparty leader^000000 brings me the pendant, my soul can be substantialized. So, hurry up."); 'ins_baphomet = 1; - close; + close(); case 3: - mes "I can feel the voice becoming faint."; - close; + mes("I can feel the voice becoming faint."); + close(); } } - } - else if ('ins_baphomet == 1) { - mes "[Voice of the Gravestone]"; - mes "To open the entrance, you must substantialize my soul. I'll open the entrance and reactivate the weakened seals after I am substantilized."; - next; - mes "[Voice of the Gravestone]"; - mes "To substantialize my soul, you should find my pendant. You can find my body near a grave here."; - next; - mes "[Voice of the Gravestone]"; - mes "If your ^0000FFparty leader^000000 brings me the pendant, my soul can be substantialized. So, hurry up."; - close; - } - else if (('ins_baphomet == 2) && (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR))) { - mes "[Voice of the Gravestone]"; - mes "Did you find the pendant?"; - next; + } else if ('ins_baphomet == 1) { + mes("[Voice of the Gravestone]"); + mes("To open the entrance, you must substantialize my soul. I'll open the entrance and reactivate the weakened seals after I am substantilized."); + next(); + mes("[Voice of the Gravestone]"); + mes("To substantialize my soul, you should find my pendant. You can find my body near a grave here."); + next(); + mes("[Voice of the Gravestone]"); + mes("If your ^0000FFparty leader^000000 brings me the pendant, my soul can be substantialized. So, hurry up."); + close(); + } else if ('ins_baphomet == 2 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + mes("[Voice of the Gravestone]"); + mes("Did you find the pendant?"); + next(); if (countitem(Soul_Pendant) > 0) { - specialeffect EF_MAPPILLAR; - mes "[Voice of the Gravestone]"; - mes "Yes... This is... My pendant..."; - next; - delitem Soul_Pendant,1; - enablenpc instance_npcname("Ancient Hero's Soul#1F"); - disablenpc instance_npcname("Gravestone#"); - mes "[Voice of the Gravestone]"; - mes "Now I can substantialize my soul. I'll wait for you in front of the altar of fire located at the center of this grave. Let's meet there."; - next; - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : I'll wait for you in front of the altar of fire located at the center",bc_map,"0xFFFF00"; - mes "I can feel the voice becoming faint."; - close; - } - else { - mes "[Voice of the Gravestone]"; - mes "Are you still there? Bring back my pendant as soon as possible."; - next; - mes "[Voice of the Gravestone]"; - mes "You can find my body near a grave here. Go and get my pendant there."; - close; + specialeffect(EF_MAPPILLAR); + mes("[Voice of the Gravestone]"); + mes("Yes... This is... My pendant..."); + next(); + delitem(Soul_Pendant, 1); + enablenpc(instance_npcname("Ancient Hero's Soul#1F")); + disablenpc(instance_npcname("Gravestone#")); + mes("[Voice of the Gravestone]"); + mes("Now I can substantialize my soul. I'll wait for you in front of the altar of fire located at the center of this grave. Let's meet there."); + next(); + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : I'll wait for you in front of the altar of fire located at the center"), bc_map, C_YELLOW); + mes("I can feel the voice becoming faint."); + close(); + } else { + mes("[Voice of the Gravestone]"); + mes("Are you still there? Bring back my pendant as soon as possible."); + next(); + mes("[Voice of the Gravestone]"); + mes("You can find my body near a grave here. Go and get my pendant there."); + close(); } - } - else { - mes "[Voice of the Gravestone]"; - mes "I want to talk to ^0000FFa representative among your party^000000. Everyone else, wait here."; - close; + } else { + mes("[Voice of the Gravestone]"); + mes("I want to talk to ^0000FFa representative among your party^000000. Everyone else, wait here."); + close(); } end; OnTouch: if ('ins_baphomet == 0) { - mes "'Krrrr... Krrrr...'"; - next; - mes "I can feel something odd at the grave. It's like someone is calling out silently..."; - close; + mes("'Krrrr... Krrrr...'"); + next(); + mes("I can feel something odd at the grave. It's like someone is calling out silently..."); + close(); } end; @@ -596,220 +584,210 @@ OnInstanceInit: // Temporary fix for @reloadscript. 1@cata,176,119,4 script Ancient Hero's Soul#1F 4_M_CHAMPSOUL,{ .@party_id = getcharid(CHAR_ID_PARTY); - cutin "ins_cata_champ_n",2; + cutin("ins_cata_champ_n", 2); if ('ins_baphomet == 2) { - mes "[Ancient Hero's Soul]"; - mes "With your help, my soul can be substantialized. I want to talk more, but we do not have enough time..."; - next; - mes "[Ancient Hero's Soul]"; - mes "I must be substantialized within the next hour. To reach the Main Altar underground, you must help me perform the ceremony for opening each seal."; - next; - mes "[Ancient Hero's Soul]"; - mes "Now I'll tell you what should you do. First, collect ^0000FFEssence of Fire^000000 from the torches on the graves..."; - next; - mes "[Ancient Hero's Soul]"; - mes "Second, all members who will enter the underground must carry a symbol, called the Token of Apostle."; - next; - while(1) { - cutin "ins_cata_champ_n",2; - switch(select("What is Essence of Fire?", "What is a Token of Apostle?", "What should I do?", "I am ready.")) { + mes("[Ancient Hero's Soul]"); + mes("With your help, my soul can be substantialized. I want to talk more, but we do not have enough time..."); + next(); + mes("[Ancient Hero's Soul]"); + mes("I must be substantialized within the next hour. To reach the Main Altar underground, you must help me perform the ceremony for opening each seal."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Now I'll tell you what should you do. First, collect ^0000FFEssence of Fire^000000 from the torches on the graves..."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Second, all members who will enter the underground must carry a symbol, called the Token of Apostle."); + next(); + while (true) { + cutin("ins_cata_champ_n", 2); + switch (select("What is Essence of Fire?", "What is a Token of Apostle?", "What should I do?", "I am ready.")) { case 1: ++.@ins_baphomet_1f_1; - mes "[Ancient Hero's Soul]"; - mes "You can see the torches here and there. These torches are the essence of Thor, the god of Thunder. They are inherited from our predecessors to stop the darkness of Baphomet..."; - next; - mes "[Ancient Hero's Soul]"; - mes "To open the sealed underground gate, I must be purified by the ^0000FFEssence of Fire^000000 which has the power of Thor. Collect ^0000FF10 Essence of Fire^000000 from the torches."; - next; - mes "[Ancient Hero's Soul]"; - mes "One thing you must remember is... ^0000FFEssence of Fire^000000 can only be collected by the Inheritor of Faith."; - next; - mes "[Ancient Hero's Soul]"; - mes "I'll give the token of the Inheritor of Faith to the party leader. Only the party leader can collect the ^0000FFEssence of Fire^000000."; - next; + mes("[Ancient Hero's Soul]"); + mes("You can see the torches here and there. These torches are the essence of Thor, the god of Thunder. They are inherited from our predecessors to stop the darkness of Baphomet..."); + next(); + mes("[Ancient Hero's Soul]"); + mes("To open the sealed underground gate, I must be purified by the ^0000FFEssence of Fire^000000 which has the power of Thor. Collect ^0000FF10 Essence of Fire^000000 from the torches."); + next(); + mes("[Ancient Hero's Soul]"); + mes("One thing you must remember is... ^0000FFEssence of Fire^000000 can only be collected by the Inheritor of Faith."); + next(); + mes("[Ancient Hero's Soul]"); + mes("I'll give the token of the Inheritor of Faith to the party leader. Only the party leader can collect the ^0000FFEssence of Fire^000000."); + next(); break; case 2: ++.@ins_baphomet_1f_2; - mes "[Ancient Hero's Soul]"; - mes "At that time, it was impossible to get rid of Devil Baphomet by ourselves. After numerous heroes sacrificed their lives, we could barely seal him under this Abbey."; - next; - mes "[Ancient Hero's Soul]"; - mes "However, Baphomet never gave up. He continuously strengthened his power. And his power has brought new life to this shrine."; - next; - mes "[Ancient Hero's Soul]"; - mes "Some of these monsters have magical powers. Baphomet calls them his 'Apostles'."; - next; - mes "[Ancient Hero's Soul]"; - mes "The apostles are cloning themselves to fill the shrine with their evil energy. They are the monsters here in this catacomb."; - next; - mes "[Ancient Hero's Soul]"; - mes "Kill the Apostles. They can only be distinguished from their clones because they will possess a ^0000FFToken of Apostle^000000..."; - next; - mes "[Ancient Hero's Soul]"; - mes "If each party member possesses a ^0000FFToken of Apostle^000000, Baphomet will not be able to perceive your entrance to the Main Altar underground."; - next; - mes "[Ancient Hero's Soul]"; - mes "If Baphomet perceives you when you pass through the sealed gate, he may release his tremendous magical power. Then, this abbey will be demolished."; - next; - mes "[Ancient Hero's Soul]"; - mes "Kill the apostles and get the ^0000FFToken of Apostle^000000."; - next; + mes("[Ancient Hero's Soul]"); + mes("At that time, it was impossible to get rid of Devil Baphomet by ourselves. After numerous heroes sacrificed their lives, we could barely seal him under this Abbey."); + next(); + mes("[Ancient Hero's Soul]"); + mes("However, Baphomet never gave up. He continuously strengthened his power. And his power has brought new life to this shrine."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Some of these monsters have magical powers. Baphomet calls them his 'Apostles'."); + next(); + mes("[Ancient Hero's Soul]"); + mes("The apostles are cloning themselves to fill the shrine with their evil energy. They are the monsters here in this catacomb."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Kill the Apostles. They can only be distinguished from their clones because they will possess a ^0000FFToken of Apostle^000000..."); + next(); + mes("[Ancient Hero's Soul]"); + mes("If each party member possesses a ^0000FFToken of Apostle^000000, Baphomet will not be able to perceive your entrance to the Main Altar underground."); + next(); + mes("[Ancient Hero's Soul]"); + mes("If Baphomet perceives you when you pass through the sealed gate, he may release his tremendous magical power. Then, this abbey will be demolished."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Kill the apostles and get the ^0000FFToken of Apostle^000000."); + next(); break; case 3: ++.@ins_baphomet_1f_3; - if (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR)) { - mes "[Ancient Hero's Soul]"; - mes "You look like the leader of this party. You need to go and get ^0000FF10 Essence of Fire^000000 from the torches."; - next; - mes "[Ancient Hero's Soul]"; - mes "Now I'll carve you the symbol which shows you're a inheritor of faith. Be aware that no one in your party but you can collect the Essence of Fire."; - next; + if (getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + mes("[Ancient Hero's Soul]"); + mes("You look like the leader of this party. You need to go and get ^0000FF10 Essence of Fire^000000 from the torches."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Now I'll carve you the symbol which shows you're a inheritor of faith. Be aware that no one in your party but you can collect the Essence of Fire."); + next(); specialeffect(EF_HOLYHIT, AREA, playerattached()); - mes "[Ancient Hero's Soul]"; - mes "You should also carry a ^0000FFToken of Apostle^000000, so find one for yourself too."; - next; - mes "[Ancient Hero's Soul]"; - mes "When all of you are ready to go, let me know. I'll open the sealed gate when you're ready."; - next; - } - else { - mes "[Ancient Hero's Soul]"; - mes "Make sure that your party leader has listened to my explanation of what you and your companions must do."; - next; - mes "[Ancient Hero's Soul]"; - mes "Kill the Apostles of Baphomet and find their ^0000FFToken of Apostle^000000."; - next; - mes "[Ancient Hero's Soul]"; - mes "It might be better to kill all of them because there is no way to differentiate them from their clones."; - next; - mes "[Ancient Hero's Soul]"; - mes "Are you ready?"; - mes "Make sure that you have listened to all that I have to say before saying that you are ready."; - next; + mes("[Ancient Hero's Soul]"); + mes("You should also carry a ^0000FFToken of Apostle^000000, so find one for yourself too."); + next(); + mes("[Ancient Hero's Soul]"); + mes("When all of you are ready to go, let me know. I'll open the sealed gate when you're ready."); + next(); + } else { + mes("[Ancient Hero's Soul]"); + mes("Make sure that your party leader has listened to my explanation of what you and your companions must do."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Kill the Apostles of Baphomet and find their ^0000FFToken of Apostle^000000."); + next(); + mes("[Ancient Hero's Soul]"); + mes("It might be better to kill all of them because there is no way to differentiate them from their clones."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Are you ready?"); + mes("Make sure that you have listened to all that I have to say before saying that you are ready."); + next(); } break; case 4: - if ((.@ins_baphomet_1f_1 > 0) && (.@ins_baphomet_1f_2 > 0) && (.@ins_baphomet_1f_3 > 0)) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "Are you ready to go? Then I'll open this sealed gate now."; - next; + if (.@ins_baphomet_1f_1 > 0 && .@ins_baphomet_1f_2 > 0 && .@ins_baphomet_1f_3 > 0) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("Are you ready to go? Then I'll open this sealed gate now."); + next(); .@exitloop = 1; - } - else { - cutin "ins_cata_champ_a",2; - mes "[Ancient Hero's Soul]"; - mes "It may be difficult but I wish you luck braving the perils of this catacomb."; - next; - mes "[Ancient Hero's Soul]"; - mes "Remember, you need to collect ^0000FF10 Essence of Fire^000000 from the torches and the ^0000FFToken of Apostle^000000 from the Apostles of Baphomet."; - next; + } else { + cutin("ins_cata_champ_a", 2); + mes("[Ancient Hero's Soul]"); + mes("It may be difficult but I wish you luck braving the perils of this catacomb."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Remember, you need to collect ^0000FF10 Essence of Fire^000000 from the torches and the ^0000FFToken of Apostle^000000 from the Apostles of Baphomet."); + next(); } break; } - if (.@exitloop) break; + if (.@exitloop) + break; } - if (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR)) { - mes "[Ancient Hero's Soul]"; - mes "To remind you again, I must be substantialized within the next hour. So everyone, finish your work within that time!"; + if (getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + mes("[Ancient Hero's Soul]"); + mes("To remind you again, I must be substantialized within the next hour. So everyone, finish your work within that time!"); 'ins_baphomet = 3; - donpcevent instance_npcname("ins_baphomet_1f_timer")+"::OnEnable"; - donpcevent instance_npcname("ins_baphomet_lotto2")+"::OnEnable"; - donpcevent instance_npcname("ins_baphomet_lotto3")+"::OnEnable"; - } - else { - mes "[Ancient Hero's Soul]"; - mes "To remind you again, I can be substantialized for the next hour. So everyone, finish your work within that time."; + donpcevent(instance_npcname("ins_baphomet_1f_timer")+"::OnEnable"); + donpcevent(instance_npcname("ins_baphomet_lotto2")+"::OnEnable"); + donpcevent(instance_npcname("ins_baphomet_lotto3")+"::OnEnable"); + } else { + mes("[Ancient Hero's Soul]"); + mes("To remind you again, I can be substantialized for the next hour. So everyone, finish your work within that time."); //'ins_baphomet = 3; } - close2; - cutin "",255; + close2(); + cutin("", 255); end; - } - else if (('ins_baphomet == 3) && (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR))) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "Did you get 10 ^0000FFEssence of Fire^000000 and ^0000FFToken of Apostle^000000?"; - next; - if ((countitem(Essence_Of_Fire) > 9) && (countitem(Token_Of_Apostle) > 0)) { - delitem Essence_Of_Fire,countitem(Essence_Of_Fire); + } else if ('ins_baphomet == 3 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("Did you get 10 ^0000FFEssence of Fire^000000 and ^0000FFToken of Apostle^000000?"); + next(); + if (countitem(Essence_Of_Fire) > 9 && countitem(Token_Of_Apostle) > 0) { + delitem(Essence_Of_Fire, countitem(Essence_Of_Fire)); 'ins_baphomet = 4; - mes "[Ancient Hero's Soul]"; - mes "Okay. You've done your work. Now check your companions and tell me when everyone has finished their work."; - } - else { - mes "[Ancient Hero's Soul]"; - mes "Not ready yet? You should prepare 10 ^0000FFEssence of Fire^000000 and ^0000FFToken of Apostle^000000."; + mes("[Ancient Hero's Soul]"); + mes("Okay. You've done your work. Now check your companions and tell me when everyone has finished their work."); + } else { + mes("[Ancient Hero's Soul]"); + mes("Not ready yet? You should prepare 10 ^0000FFEssence of Fire^000000 and ^0000FFToken of Apostle^000000."); } - close2; - cutin "",255; + close2(); + cutin("", 255); end; - } - else if ('ins_baphomet == 3) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "Do you have a ^0000FFToken of Apostle^000000?"; - next; + } else if ('ins_baphomet == 3) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("Do you have a ^0000FFToken of Apostle^000000?"); + next(); if (countitem(Token_Of_Apostle) > 0) { 'ins_baphomet = 4; - mes "[Ancient Hero's Soul]"; - mes "Okay. You've done your work. Tell your representative to check your companions and come to me when everyone has finished their work."; - } - else { - mes "[Ancient Hero's Soul]"; - mes "Not ready yet? You should prepare ^0000FFToken of Apostle^000000."; + mes("[Ancient Hero's Soul]"); + mes("Okay. You've done your work. Tell your representative to check your companions and come to me when everyone has finished their work."); + } else { + mes("[Ancient Hero's Soul]"); + mes("Not ready yet? You should prepare ^0000FFToken of Apostle^000000."); } - close2; - cutin "",255; + close2(); + cutin("", 255); end; - } - else if (('ins_baphomet == 4) && (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR))) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "Are you ready? I opened the sealed gate. To pass the gate, you should carry a ^0000FFToken of Apostle^000000."; - next; + } else if ('ins_baphomet == 4 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("Are you ready? I opened the sealed gate. To pass the gate, you should carry a ^0000FFToken of Apostle^000000."); + next(); 'ins_baphomet = 5; - specialeffect EF_TELEPORTATION; - enablenpc instance_npcname("ins_bapho_to_2f"); - mes "[Ancient Hero's Soul]"; - mes "Now you can go to the main altar. It is located in the bottom right corner of this floor."; - next; - mes "[Ancient Hero's Soul]"; - mes "Your real battle will begin... I'll follow you soon and find a way to help you."; - next; - mes "[Ancient Hero's Soul]"; - mes "Go ahead, warriors."; - cutin "",255; - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : Now you can go to the Main Altar's gate. It is located in the Southeast",bc_map,"0xFFFF00"; - close; - } - else if ('ins_baphomet == 4) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "Are you ready? I opened the sealed gate. To pass the gate, you should carry a ^0000FFToken of Apostle^000000."; - next; - mes "[Ancient Hero's Soul]"; - mes "I'll complete opening the sealed gate when your representative tells me that you're ready."; - cutin "",255; - close; - } - else if ('ins_baphomet == 5) { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "What are you doing? The entrance of the main altar is opened now, go and fight! The entrance is near the bottom right side of this floor."; - cutin "",255; - close; - } - else { - cutin "ins_cata_champ_n",2; - mes "[Ancient Hero's Soul]"; - mes "I have nothing to say to you..."; - cutin "",255; - close; + specialeffect(EF_TELEPORTATION); + enablenpc(instance_npcname("ins_bapho_to_2f")); + mes("[Ancient Hero's Soul]"); + mes("Now you can go to the main altar. It is located in the bottom right corner of this floor."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Your real battle will begin... I'll follow you soon and find a way to help you."); + next(); + mes("[Ancient Hero's Soul]"); + mes("Go ahead, warriors."); + cutin("", 255); + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : Now you can go to the Main Altar's gate. It is located in the Southeast"), bc_map, C_YELLOW); + close(); + } else if ('ins_baphomet == 4) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("Are you ready? I opened the sealed gate. To pass the gate, you should carry a ^0000FFToken of Apostle^000000."); + next(); + mes("[Ancient Hero's Soul]"); + mes("I'll complete opening the sealed gate when your representative tells me that you're ready."); + cutin("", 255); + close(); + } else if ('ins_baphomet == 5) { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("What are you doing? The entrance of the main altar is opened now, go and fight! The entrance is near the bottom right side of this floor."); + cutin("", 255); + close(); + } else { + cutin("ins_cata_champ_n", 2); + mes("[Ancient Hero's Soul]"); + mes("I have nothing to say to you..."); + cutin("", 255); + close(); } OnInstanceInit: - disablenpc instance_npcname("Ancient Hero's Soul#1F"); + disablenpc(instance_npcname("Ancient Hero's Soul#1F")); end; } @@ -817,38 +795,37 @@ OnInstanceInit: 1@cata,281,12,0 script ins_bapho_to_2f WARPNPC,1,1,{ OnTouch: if (countitem(Token_Of_Apostle) > 0) { - delitem Token_Of_Apostle,countitem(Token_Of_Apostle); + delitem(Token_Of_Apostle, countitem(Token_Of_Apostle)); 'ins_baphomet = 5; - warp instance_mapname("2@cata"),80,144; + warp(instance_mapname("2@cata"), 80, 144); end; - } - else { - mes "[Ancient Hero's Soul]"; - mes "Where is your Token of Apostle? I said you should carry the Token of Apostle to pass this gate."; - close; + } else { + mes("[Ancient Hero's Soul]"); + mes("Where is your Token of Apostle? I said you should carry the Token of Apostle to pass this gate."); + close(); } OnInstanceInit: - disablenpc instance_npcname("ins_bapho_to_2f"); + disablenpc(instance_npcname("ins_bapho_to_2f")); end; } //== Gravestones =========================================== - script Gravestone#SS1 FAKE_NPC,{ if ('ins_baphomet == 1) { - getitem Soul_Pendant,1; + getitem(Soul_Pendant, 1); 'ins_baphomet = 2; - mes "A small object is shining under a leaning grave."; - next; - mes "[" + strcharinfo(PC_NAME) + "]"; - mes "I think this is the pendant..."; - close; - } - else { - mes "I can only feel gloom from this Gravestone."; - close; + mes("A small object is shining under a leaning grave."); + next(); + mesf("[%s]", strcharinfo(PC_NAME)); + mes("I think this is the pendant..."); + close(); + } else { + mes("I can only feel gloom from this Gravestone."); + close(); } } + 1@cata,86,214,0 duplicate(Gravestone#SS1) Gravestone#1F_1T CLEAR_NPC 1@cata,200,209,0 duplicate(Gravestone#SS1) Gravestone#1F_2T CLEAR_NPC 1@cata,230,195,0 duplicate(Gravestone#SS1) Gravestone#1F_3T CLEAR_NPC @@ -864,9 +841,10 @@ OnInstanceInit: 1@cata,267,30,0 duplicate(Gravestone#SS1) Gravestone#1F_13T CLEAR_NPC - script Gravestone#SS2 FAKE_NPC,{ - mes "I can only feel gloom from this Gravestone."; - close; + mes("I can only feel gloom from this Gravestone."); + close(); } + 1@cata,86,214,0 duplicate(Gravestone#SS2) Gravestone#1F_1F CLEAR_NPC 1@cata,200,209,0 duplicate(Gravestone#SS2) Gravestone#1F_2F CLEAR_NPC 1@cata,230,195,0 duplicate(Gravestone#SS2) Gravestone#1F_3F CLEAR_NPC @@ -884,41 +862,39 @@ OnInstanceInit: //== Bobbing Torches ======================================= - script Bobbing Torch#SS FAKE_NPC,{ .@party_id = getcharid(CHAR_ID_PARTY); - if (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR)) { - if (('ins_baphomet == 3) && (countitem(Essence_Of_Fire) < 11)) { - mes "A huge torch appearing as if it can burn everything is bobbing up and down in front of me."; - next; - mes "The grand appearance and heat of the fire makes me step back... But I pluck up my courage and reach out to pick up the torch."; - next; + if (getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + if ('ins_baphomet == 3 && countitem(Essence_Of_Fire) < 11) { + mes("A huge torch appearing as if it can burn everything is bobbing up and down in front of me."); + next(); + mes("The grand appearance and heat of the fire makes me step back... But I pluck up my courage and reach out to pick up the torch."); + next(); specialeffect(EF_HOLYHIT, AREA, playerattached()); - getitem Essence_Of_Fire,1; - mes "The symbol of inheritor shines. Then a small crystal falls into my hand from the torch."; - disablenpc instance_npcname(strnpcinfo(NPC_NAME)); - close; - } - else if (('ins_baphomet == 3) && (countitem(Essence_Of_Fire) > 10)) { - mes "You have 10 Essence of Fire already, so you don't need to collect any more."; - close; - } - else { - mes "You don't need to collect Essence of Fire anymore."; - close; + getitem(Essence_Of_Fire, 1); + mes("The symbol of inheritor shines. Then a small crystal falls into my hand from the torch."); + disablenpc(instance_npcname(strnpcinfo(NPC_NAME))); + close(); + } else if ('ins_baphomet == 3 && countitem(Essence_Of_Fire) > 10) { + mes("You have 10 Essence of Fire already, so you don't need to collect any more."); + close(); + } else { + mes("You don't need to collect Essence of Fire anymore."); + close(); } - } - else { - mes "A huge torch appearing as if it can burn everything is bobbing up and down in front of me.."; - next; - mes "[Unknown Voice]"; - mes "You are not a inheritor of faith. Do not desecrate the Essence of Fire with your disrespectful hands."; + } else { + mes("A huge torch appearing as if it can burn everything is bobbing up and down in front of me.."); + next(); + mes("[Unknown Voice]"); + mes("You are not a inheritor of faith. Do not desecrate the Essence of Fire with your disrespectful hands."); specialeffect(EF_FIRESPLASHHIT, AREA, playerattached()); - percentheal -50,0; - close; + percentheal(-50, 0); + close(); } OnInstanceInit: - disablenpc instance_npcname(strnpcinfo(NPC_NAME)); + disablenpc(instance_npcname(strnpcinfo(NPC_NAME))); end; } + 1@cata,267,210,0 duplicate(Bobbing Torch#SS) Bobbing Torch#1 CLEAR_NPC 1@cata,85,182,0 duplicate(Bobbing Torch#SS) Bobbing Torch#2 CLEAR_NPC 1@cata,267,154,0 duplicate(Bobbing Torch#SS) Bobbing Torch#3 CLEAR_NPC @@ -934,186 +910,193 @@ OnInstanceInit: 1@cata,1,1,0 script ins_baphomet_1f_timer FAKE_NPC,{ OnInstanceInit: - disablenpc instance_npcname("ins_baphomet_1f_timer"); + disablenpc(instance_npcname("ins_baphomet_1f_timer")); end; OnEnable: - enablenpc instance_npcname("ins_baphomet_1f_timer"); - initnpctimer; + enablenpc(instance_npcname("ins_baphomet_1f_timer")); + initnpctimer(); end; OnDisable: - disablenpc instance_npcname("ins_baphomet_1f_timer"); - stopnpctimer; + disablenpc(instance_npcname("ins_baphomet_1f_timer")); + stopnpctimer(); end; OnTimer1800000: - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : We don't have enough time! Hurry up!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : We don't have enough time! Hurry up!"), bc_map, C_YELLOW); end; OnTimer2400000: - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : My body is disappearing... Hurry up!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : My body is disappearing... Hurry up!"), bc_map, C_YELLOW); end; OnTimer3000000: - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : Everything is over... There is no other way but to wait for the next chance...",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : Everything is over... There is no other way but to wait for the next chance..."), bc_map, C_YELLOW); end; OnTimer3050000: - mapannounce instance_mapname("1@cata"), "Ancient Hero's Soul : We failed... However... We still have a chance. I hope you will train yourselves until the time comes.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("1@cata"), _("Ancient Hero's Soul : We failed... However... We still have a chance. I hope you will train yourselves until the time comes."), bc_map, C_YELLOW); end; OnTimer3100000: - mapannounce instance_mapname("1@cata"), "You've failed to open the seal of main altar.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("1@cata"), _("You've failed to open the seal of main altar."), bc_map, C_YELLOW); end; OnTimer3500000: - instance_warpall "monk_test",310,150; - stopnpctimer; + instance_warpall("monk_test", 310, 150); + stopnpctimer(); end; } 2@cata,80,144,0 script ins_2f_enter FAKE_NPC,3,3,{ OnTouch: - donpcevent instance_npcname("ins_2f_enter_broad")+"::OnEnable"; - disablenpc instance_npcname("ins_2f_enter"); + donpcevent(instance_npcname("ins_2f_enter_broad")+"::OnEnable"); + disablenpc(instance_npcname("ins_2f_enter")); end; } 2@cata,1,1,0 script ins_2f_enter_broad FAKE_NPC,{ OnInstanceInit: OnDisable: - disablenpc instance_npcname("ins_2f_enter_broad"); + disablenpc(instance_npcname("ins_2f_enter_broad")); end; OnEnable: - enablenpc instance_npcname("ins_2f_enter_broad"); - initnpctimer; + enablenpc(instance_npcname("ins_2f_enter_broad")); + initnpctimer(); end; OnTimer10000: - mapannounce instance_mapname("2@cata"), "Baphomet : Humans... interfering again...",bc_map,"0xdb7093"; + mapannounce(instance_mapname("2@cata"), _("Baphomet : Humans... interfering again..."), bc_map, "0xdb7093"); end; OnTimer13000: - mapannounce instance_mapname("2@cata"), "Apostle of Baphomet : Humans! Humans have invaded our sanctum!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Apostle of Baphomet : Humans! Humans have invaded our sanctum!"), bc_map, C_YELLOW); end; OnTimer16000: - mapannounce instance_mapname("2@cata"), "Apostle of Baphomet : Kill the humans! Do not stop the revival of our Master!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Apostle of Baphomet : Kill the humans! Do not stop the revival of our Master!"), bc_map, C_YELLOW); end; OnTimer18000: - mapannounce instance_mapname("2@cata"), "Apostle of Baphomet : Hurry up and release the seals of the altars! Our Master's return is upon us!",bc_map,"0xFFFF00"; - stopnpctimer; - disablenpc instance_npcname("ins_2f_enter_broad"); + mapannounce(instance_mapname("2@cata"), _("Apostle of Baphomet : Hurry up and release the seals of the altars! Our Master's return is upon us!"), bc_map, C_YELLOW); + stopnpctimer(); + disablenpc(instance_npcname("ins_2f_enter_broad")); end; } 2@cata,50,67,0 script slave_left FAKE_NPC,5,5,{ OnTouch: .@map$ = instance_mapname("2@cata"); - mapannounce .@map$, "Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!",bc_map,"0xFFFF00"; - monster .@map$,55,67,"Apostle of Baphomet",1869,1; - monster .@map$,51,67,"Apostle of Baphomet",1291,1; - monster .@map$,58,67,"Apostle of Baphomet",1292,1; - monster .@map$,53,67,"Apostle of Baphomet",1291,1; - monster .@map$,54,67,"Apostle of Baphomet",1869,1; - monster .@map$,55,67,"Apostle of Baphomet",1291,1; - monster .@map$,56,67,"Apostle of Baphomet",1117,1; - monster .@map$,58,66,"Apostle of Baphomet",1869,1; - monster .@map$,56,66,"Apostle of Baphomet",1117,1; - monster .@map$,60,66,"Apostle of Baphomet",1132,1; - monster .@map$,59,66,"Apostle of Baphomet",1117,1; - monster .@map$,54,66,"Apostle of Baphomet",1132,1; - monster .@map$,55,66,"Apostle of Baphomet",1292,1; - monster .@map$,56,66,"Apostle of Baphomet",1132,1; - monster .@map$,50,65,"Apostle of Baphomet",1867,1; - monster .@map$,61,65,"Apostle of Baphomet",1292,1; - disablenpc instance_npcname("slave_left"); + mapannounce(.@map$, _("Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!"), bc_map, C_YELLOW); + monster(.@map$, 55, 67, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 51, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 58, 67, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 53, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 54, 67, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 55, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 56, 67, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 58, 66, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 56, 66, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 60, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 59, 66, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 54, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 55, 66, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 56, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 50, 65, _("Apostle of Baphomet"), BANSHEE, 1); + monster(.@map$, 61, 65, _("Apostle of Baphomet"), MINI_DEMON, 1); + disablenpc(instance_npcname("slave_left")); end; } 2@cata,109,67,0 script slave_right FAKE_NPC,5,5,{ OnTouch: .@map$ = instance_mapname("2@cata"); - mapannounce .@map$, "Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!",bc_map,"0xFFFF00"; - monster .@map$,105,67,"Apostle of Baphomet",1869,1; - monster .@map$,104,67,"Apostle of Baphomet",1291,1; - monster .@map$,107,67,"Apostle of Baphomet",1869,1; - monster .@map$,106,67,"Apostle of Baphomet",1291,1; - monster .@map$,102,67,"Apostle of Baphomet",1869,1; - monster .@map$,103,67,"Apostle of Baphomet",1291,1; - monster .@map$,103,67,"Apostle of Baphomet",1117,1; - monster .@map$,109,66,"Apostle of Baphomet",1117,1; - monster .@map$,108,66,"Apostle of Baphomet",1132,1; - monster .@map$,101,66,"Apostle of Baphomet",1117,1; - monster .@map$,106,66,"Apostle of Baphomet",1292,1; - monster .@map$,102,66,"Apostle of Baphomet",1132,1; - monster .@map$,104,66,"Apostle of Baphomet",1292,1; - monster .@map$,103,66,"Apostle of Baphomet",1132,1; - monster .@map$,109,65,"Apostle of Baphomet",1867,1; - monster .@map$,108,65,"Apostle of Baphomet",1292,1; - disablenpc instance_npcname("slave_right"); + mapannounce(.@map$, _("Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!"), bc_map, C_YELLOW); + monster(.@map$, 105, 67, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 104, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 107, 67, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 106, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 102, 67, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 103, 67, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 103, 67, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 109, 66, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 108, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 101, 66, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 106, 66, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 102, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 104, 66, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 103, 66, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 109, 65, _("Apostle of Baphomet"), BANSHEE, 1); + monster(.@map$, 108, 65, _("Apostle of Baphomet"), MINI_DEMON, 1); + disablenpc(instance_npcname("slave_right")); end; } 2@cata,79,39,0 script slave_down FAKE_NPC,5,5,{ OnTouch: .@map$ = instance_mapname("2@cata"); - mapannounce .@map$, "Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!",bc_map,"0xFFFF00"; - monster .@map$,78,41,"Apostle of Baphomet",1869,1; - monster .@map$,79,42,"Apostle of Baphomet",1291,1; - monster .@map$,78,46,"Apostle of Baphomet",1869,1; - monster .@map$,81,41,"Apostle of Baphomet",1291,1; - monster .@map$,81,42,"Apostle of Baphomet",1869,1; - monster .@map$,79,43,"Apostle of Baphomet",1291,1; - monster .@map$,77,40,"Apostle of Baphomet",1117,1; - monster .@map$,79,41,"Apostle of Baphomet",1132,1; - monster .@map$,79,42,"Apostle of Baphomet",1117,1; - monster .@map$,79,43,"Apostle of Baphomet",1132,1; - monster .@map$,79,48,"Apostle of Baphomet",1117,1; - monster .@map$,78,49,"Apostle of Baphomet",1132,1; - monster .@map$,78,41,"Apostle of Baphomet",1292,1; - monster .@map$,74,42,"Apostle of Baphomet",1292,1; - monster .@map$,72,48,"Apostle of Baphomet",1867,1; - monster .@map$,72,38,"Apostle of Baphomet",1292,1; - disablenpc instance_npcname("slave_down"); + mapannounce(.@map$, _("Apostle of Baphomet : Kill the humans! Don't let them interrupt the revival of our Master!"), bc_map, C_YELLOW); + monster(.@map$, 78, 41, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 79, 42, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 78, 46, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 81, 41, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 81, 42, _("Apostle of Baphomet"), FLAME_SKULL, 1); + monster(.@map$, 79, 43, _("Apostle of Baphomet"), WRAITH_DEAD, 1); + monster(.@map$, 77, 40, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 79, 41, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 79, 42, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 79, 43, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 79, 48, _("Apostle of Baphomet"), EVIL_DRUID, 1); + monster(.@map$, 78, 49, _("Apostle of Baphomet"), KHALITZBURG, 1); + monster(.@map$, 78, 41, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 74, 42, _("Apostle of Baphomet"), MINI_DEMON, 1); + monster(.@map$, 72, 48, _("Apostle of Baphomet"), BANSHEE, 1); + monster(.@map$, 72, 38, _("Apostle of Baphomet"), MINI_DEMON, 1); + disablenpc(instance_npcname("slave_down")); end; } //== Magical Seals ========================================= - script Magical Seal#SS FAKE_NPC,{ - .@seal_check = questprogress(3041,PLAYTIME); + .@seal_check = questprogress(3041, PLAYTIME); if (.@seal_check == 1) { specialeffect(EF_SILENCEATTACK, AREA, playerattached()); - percentheal -50,0; - sc_start Eff_Stone,30000,0; - mes "Your SP has not recovered yet. You lost your SP on the altar, but it seems the power of the seal has returned."; - close; + percentheal(-50, 0); + sc_start(Eff_Stone, 30000, 0); + mes("Your SP has not recovered yet. You lost your SP on the altar, but it seems the power of the seal has returned."); + close(); } - if (.@seal_check == 2) erasequest 3041; - specialeffect EF_LEXDIVINA; - disablenpc instance_npcname(strnpcinfo(NPC_NAME)); + if (.@seal_check == 2) + erasequest(3041); + specialeffect(EF_LEXDIVINA); + disablenpc(instance_npcname(strnpcinfo(NPC_NAME))); .@map$ = instance_mapname("2@cata"); - if (strnpcinfo(NPC_NAME_HIDDEN) == "0") areamobuseskill .@map$,79,81,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0; - else if (strnpcinfo(NPC_NAME_HIDDEN) == "2") areamobuseskill .@map$,123,109,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0; - else if (strnpcinfo(NPC_NAME_HIDDEN) == "4") areamobuseskill .@map$,123,22,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0; - else if (strnpcinfo(NPC_NAME_HIDDEN) == "8") areamobuseskill .@map$,35,21,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0; - else if (strnpcinfo(NPC_NAME_HIDDEN) == "10") areamobuseskill .@map$,35,109,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0; - percentheal -50,0; - sc_start Eff_Stone,20000,0; - setquest 3041; - mapannounce .@map$, "The seal activated by putting magical power into the altar.",bc_map,"0x87ceeb"; - mes "I can feel the power of the altar came back by adding magical power."; - next; - mes "But you can't use your magic for 3 minutes because you used your SP on the altar."; - close; + if (strnpcinfo(NPC_NAME_HIDDEN) == "0") + areamobuseskill(.@map$, 79, 81, 10, BAPHOMET_I, "NPC_INVINCIBLEOFF", 1, 0, 0, e_hlp, 0); + else if (strnpcinfo(NPC_NAME_HIDDEN) == "2") + areamobuseskill(.@map$, 123, 109, 10, BAPHOMET_I, "NPC_INVINCIBLEOFF", 1, 0, 0, e_hlp, 0); + else if (strnpcinfo(NPC_NAME_HIDDEN) == "4") + areamobuseskill(.@map$, 123, 22, 10, BAPHOMET_I, "NPC_INVINCIBLEOFF", 1, 0, 0, e_hlp, 0); + else if (strnpcinfo(NPC_NAME_HIDDEN) == "8") + areamobuseskill(.@map$, 35, 21, 10, BAPHOMET_I, "NPC_INVINCIBLEOFF", 1, 0, 0, e_hlp, 0); + else if (strnpcinfo(NPC_NAME_HIDDEN) == "10") + areamobuseskill(.@map$, 35, 109, 10, BAPHOMET_I, "NPC_INVINCIBLEOFF", 1, 0, 0, e_hlp, 0); + percentheal(-50, 0); + sc_start(Eff_Stone, 20000, 0); + setquest(3041); + mapannounce(.@map$, _("The seal activated by putting magical power into the altar."), bc_map, "0x87ceeb"); + mes("I can feel the power of the altar came back by adding magical power."); + next(); + mes("But you can't use your magic for 3 minutes because you used your SP on the altar."); + close(); OnInstanceInit: - disablenpc instance_npcname(strnpcinfo(NPC_NAME)); + disablenpc(instance_npcname(strnpcinfo(NPC_NAME))); end; } + 2@cata,79,81,0 duplicate(Magical Seal#SS) Magical Seal#0 CLEAR_NPC 2@cata,123,109,0 duplicate(Magical Seal#SS) Magical Seal#2 CLEAR_NPC 2@cata,123,22,0 duplicate(Magical Seal#SS) Magical Seal#4 CLEAR_NPC @@ -1122,137 +1105,137 @@ OnInstanceInit: 2@cata,79,65,0 script The Main Altar#ss CLEAR_NPC,{ .@party_id = getcharid(CHAR_ID_PARTY); - if (('ins_baphomet == 5) && (getpartyleader(.@party_id,2) == getcharid(CHAR_ID_CHAR))) { - mes "An evil power, too terrible to describe, lies under the great altar radiating a violet color."; - next; - mes "Complicated Magical Rune letters blink rapidly, attempting to suppress the dreadful power within."; - next; - mes "The bottom of the Main Altar trembles furiously."; - next; - specialeffect EF_METEORSTORM; - specialeffect EF_METEORSTORM; - mes "[" + strcharinfo(PC_NAME) + "]"; - mes "Watch out! Something... Something is coming."; + if ('ins_baphomet == 5 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + mes("An evil power, too terrible to describe, lies under the great altar radiating a violet color."); + next(); + mes("Complicated Magical Rune letters blink rapidly, attempting to suppress the dreadful power within."); + next(); + mes("The bottom of the Main Altar trembles furiously."); + next(); + specialeffect(EF_METEORSTORM); + specialeffect(EF_METEORSTORM); + mesf("[%s]", strcharinfo(PC_NAME)); + mes("Watch out! Something... Something is coming."); 'ins_baphomet = 6; - donpcevent instance_npcname("ins_2f_hero_broad")+"::OnEnable"; - disablenpc instance_npcname("The Main Altar#ss"); - close; - } - else { - mes "An evil power, too terrible to describe, lies under the great altar radiating a violet color."; - next; - mes "Complicated Magical Rune letters blink rapidly, attempting to suppress the dreadful power within."; - close; + donpcevent(instance_npcname("ins_2f_hero_broad")+"::OnEnable"); + disablenpc(instance_npcname("The Main Altar#ss")); + close(); + } else { + mes("An evil power, too terrible to describe, lies under the great altar radiating a violet color."); + next(); + mes("Complicated Magical Rune letters blink rapidly, attempting to suppress the dreadful power within."); + close(); } end; } 2@cata,80,63,4 script Ancient Hero's Soul#2F 4_M_CHAMPSOUL,{ - cutin "ins_cata_champ_s",2; - if (questprogress(3041)) erasequest 3041; - mes "[Ancient Hero's Soul]"; - mes "Good job, my descendants... You've finished the long-cherished task that me and my bretheren could not complete."; - next; - mes "[Ancient Hero's Soul]"; - mes "I really appreciate your help."; - mes "Our souls can finally rest in peace..."; - next; - mes "[Ancient Hero's Soul]"; - mes "The struggle for peace on this world will never end. But... my role here is finally over because there are brave heroes like you."; - next; - switch(select("Let me leave the shrine.", "Stop talking.")) { + cutin("ins_cata_champ_s", 2); + if (questprogress(3041)) + erasequest(3041); + mes("[Ancient Hero's Soul]"); + mes("Good job, my descendants... You've finished the long-cherished task that me and my bretheren could not complete."); + next(); + mes("[Ancient Hero's Soul]"); + mes("I really appreciate your help."); + mes("Our souls can finally rest in peace..."); + next(); + mes("[Ancient Hero's Soul]"); + mes("The struggle for peace on this world will never end. But... my role here is finally over because there are brave heroes like you."); + next(); + switch (select("Let me leave the shrine.", "Stop talking.")) { case 1: - mes "[Ancient Hero's Soul]"; - mes "Okay. I'll let you and your group leave here safely."; - next; - mes "[Ancient Hero's Soul]"; - mes "If you leave, please say hello to Patrick for me."; - cutin "",255; + mes("[Ancient Hero's Soul]"); + mes("Okay. I'll let you and your group leave here safely."); + next(); + mes("[Ancient Hero's Soul]"); + mes("If you leave, please say hello to Patrick for me."); + cutin("", 255); 'ins_baphomet = 0; - warp "monk_test",310,150; - close; + warp("monk_test", 310, 150); + close(); case 2: - mes "[Ancient Hero's Soul]"; - mes "Do you still have something to do here? If you're done I'll let you leave safely..."; - cutin "",255; - close; + mes("[Ancient Hero's Soul]"); + mes("Do you still have something to do here? If you're done I'll let you leave safely..."); + cutin("", 255); + close(); } OnInstanceInit: - disablenpc instance_npcname("Ancient Hero's Soul#2F"); + disablenpc(instance_npcname("Ancient Hero's Soul#2F")); end; } 2@cata,1,2,0 script ins_2f_hero_broad FAKE_NPC,{ OnEnable: - enablenpc instance_npcname("ins_2f_hero_broad"); - initnpctimer; + enablenpc(instance_npcname("ins_2f_hero_broad")); + initnpctimer(); end; OnDisable: - disablenpc instance_npcname("ins_2f_hero_broad"); + disablenpc(instance_npcname("ins_2f_hero_broad")); end; OnTimer3000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : My God! The seal of the Main Altar is weakening!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : My God! The seal of the Main Altar is weakening!"), bc_map, C_YELLOW); end; OnTimer6000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : My descendants... Listen carefully to what I'm going to say.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : My descendants... Listen carefully to what I'm going to say."), bc_map, C_YELLOW); end; OnTimer9000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The altars that control the Main Altar's power are located in the Northeast, Southeast, Southwest and Northwest corners of this room.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The altars that control the Main Altar's power are located in the Northeast, Southeast, Southwest and Northwest corners of this room."), bc_map, C_YELLOW); end; OnTimer12000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : Find these altars and activate their seals before Baphomet revives.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : Find these altars and activate their seals before Baphomet revives."), bc_map, C_YELLOW); end; OnTimer15000: - mapannounce instance_mapname("2@cata"), "Baphomet : It's too late, weaklings... Now, you'll feel the despair of death!",bc_map,"0xdb7093"; + mapannounce(instance_mapname("2@cata"), _("Baphomet : It's too late, weaklings... Now, you'll feel the despair of death!"), bc_map, "0xdb7093"); end; OnTimer17000: - mapannounce instance_mapname("2@cata"), "Baphomet : No one can harm me here. You will be my first sacrifice.",bc_map,"0xdb7093"; - donpcevent instance_npcname("control_baphomet")+"::OnEnable"; - donpcevent instance_npcname("ins_2f_hero_broad2")+"::OnEnable"; - stopnpctimer; - disablenpc instance_npcname("ins_2f_hero_broad"); + mapannounce(instance_mapname("2@cata"), _("Baphomet : No one can harm me here. You will be my first sacrifice."), bc_map, "0xdb7093"); + donpcevent(instance_npcname("control_baphomet")+"::OnEnable"); + donpcevent(instance_npcname("ins_2f_hero_broad2")+"::OnEnable"); + stopnpctimer(); + disablenpc(instance_npcname("ins_2f_hero_broad")); end; } 2@cata,3,3,0 script control_baphomet FAKE_NPC,{ OnInstanceInit: OnDisable: - disablenpc instance_npcname("control_baphomet"); + disablenpc(instance_npcname("control_baphomet")); end; OnEnable: - enablenpc instance_npcname("control_baphomet"); - donpcevent instance_npcname("2f_callmon_pattern_c")+"::OnEnable"; - monster instance_mapname("2@cata"),79,64,"Baphomet#",1929,1,instance_npcname("control_baphomet")+"::OnMyMobDead"; + enablenpc(instance_npcname("control_baphomet")); + donpcevent(instance_npcname("2f_callmon_pattern_c")+"::OnEnable"); + monster(instance_mapname("2@cata"), 79, 64, "Baphomet#", BAPHOMET_I, 1, instance_npcname("control_baphomet")+"::OnMyMobDead"); end; OnMyMobDead: .@map$ = instance_mapname("2@cata"); - if (mobcount(.@map$,instance_npcname("control_baphomet")+"::OnMyMobDead") < 1) { + if (mobcount(.@map$, instance_npcname("control_baphomet")+"::OnMyMobDead") < 1) { 'ins_baphomet = 7; - erasequest 3041; - mapannounce .@map$, "Baphomet : No! Nonono! How dare these weaklings defeat me!... No!!...",bc_map,"0xdb7093"; - enablenpc instance_npcname("Ancient Hero's Soul#2F"); - disablenpc instance_npcname("slave_down"); - disablenpc instance_npcname("slave_left"); - disablenpc instance_npcname("slave_right"); - donpcevent instance_npcname("ins_2f_hero_broad")+"::OnDisable"; - donpcevent instance_npcname("ins_2f_hero_broad2")+"::OnDisable"; - donpcevent instance_npcname("ins_2f_hero_pattern_c")+"::OnDisable"; - donpcevent instance_npcname("2f_callmon_pattern_c")+"::OnDisable"; - donpcevent instance_npcname("2f_callmon_pattern")+"::OnDisable"; - donpcevent instance_npcname("ins_2f_hero_pattern")+"::OnDisable"; - donpcevent instance_npcname("ins_2f_enter_broad")+"::OnDisable"; - donpcevent instance_npcname("control_baphomet")+"::OnDisable"; - disablenpc instance_npcname("control_baphomet"); + erasequest(3041); + mapannounce(.@map$, _("Baphomet : No! Nonono! How dare these weaklings defeat me!... No!!..."), bc_map, "0xdb7093"); + enablenpc(instance_npcname("Ancient Hero's Soul#2F")); + disablenpc(instance_npcname("slave_down")); + disablenpc(instance_npcname("slave_left")); + disablenpc(instance_npcname("slave_right")); + donpcevent(instance_npcname("ins_2f_hero_broad")+"::OnDisable"); + donpcevent(instance_npcname("ins_2f_hero_broad2")+"::OnDisable"); + donpcevent(instance_npcname("ins_2f_hero_pattern_c")+"::OnDisable"); + donpcevent(instance_npcname("2f_callmon_pattern_c")+"::OnDisable"); + donpcevent(instance_npcname("2f_callmon_pattern")+"::OnDisable"); + donpcevent(instance_npcname("ins_2f_hero_pattern")+"::OnDisable"); + donpcevent(instance_npcname("ins_2f_enter_broad")+"::OnDisable"); + donpcevent(instance_npcname("control_baphomet")+"::OnDisable"); + disablenpc(instance_npcname("control_baphomet")); } end; } @@ -1260,232 +1243,232 @@ OnMyMobDead: 2@cata,2,2,0 script ins_2f_hero_broad2 FAKE_NPC,{ OnInstanceInit: OnDisable: - disablenpc instance_npcname("ins_2f_hero_broad2"); + disablenpc(instance_npcname("ins_2f_hero_broad2")); end; OnEnable: - enablenpc instance_npcname("ins_2f_hero_broad2"); - initnpctimer; + enablenpc(instance_npcname("ins_2f_hero_broad2")); + initnpctimer(); end; OnTimer8000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : Don't be discouraged, Baphomet can still be defeated!",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : Don't be discouraged, Baphomet can still be defeated!"), bc_map, C_YELLOW); end; OnTimer11000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : Go to the altars and activate their seals.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : Go to the altars and activate their seals."), bc_map, C_YELLOW); end; OnTimer13000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : Once the seals recover their power, Baphomet will be vulnerable.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : Once the seals recover their power, Baphomet will be vulnerable."), bc_map, C_YELLOW); end; OnTimer16000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : You should lure Baphomet to the unsealed Altars. Otherwise, your efforts will be futile.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : You should lure Baphomet to the unsealed Altars. Otherwise, your efforts will be futile."), bc_map, C_YELLOW); end; OnTimer19000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : We have only 1 hour to stop Baphomet. If time runs out, the power of the seals will be useless.",bc_map,"0xFFFF00"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : We have only 1 hour to stop Baphomet. If time runs out, the power of the seals will be useless."), bc_map, C_YELLOW); end; OnTimer22000: - mapannounce instance_mapname("2@cata"), "Baphomet : It's useless. Make more seals. I'll crush them all. None of you will survive!",bc_map,"0xdb7093"; + mapannounce(instance_mapname("2@cata"), _("Baphomet : It's useless. Make more seals. I'll crush them all. None of you will survive!"), bc_map, "0xdb7093"); end; OnTimer26000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The magical power of the central seal is running out. Go to the central seal and put the magical power.",bc_map,"0xFFFF00"; - enablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); - donpcevent instance_npcname("ins_2f_hero_pattern_c")+"::OnEnable"; - stopnpctimer; - disablenpc instance_npcname("ins_2f_hero_broad2"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The magical power of the central seal is running out. Go to the central seal and put the magical power."), bc_map, C_YELLOW); + enablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); + donpcevent(instance_npcname("ins_2f_hero_pattern_c")+"::OnEnable"); + stopnpctimer(); + disablenpc(instance_npcname("ins_2f_hero_broad2")); end; } 2@cata,4,1,0 script 2f_callmon_pattern_c FAKE_NPC,{ OnInstanceInit: - disablenpc instance_npcname("2f_callmon_pattern_c"); + disablenpc(instance_npcname("2f_callmon_pattern_c")); end; OnEnable: - enablenpc instance_npcname("2f_callmon_pattern_c"); - initnpctimer; - donpcevent instance_npcname("2f_callmon_pattern_c")+"::OnGo"; + enablenpc(instance_npcname("2f_callmon_pattern_c")); + initnpctimer(); + donpcevent(instance_npcname("2f_callmon_pattern_c")+"::OnGo"); end; OnDisable: - stopnpctimer; - disablenpc instance_npcname("2f_callmon_pattern_c"); + stopnpctimer(); + disablenpc(instance_npcname("2f_callmon_pattern_c")); end; OnGo: - donpcevent instance_npcname("2f_callmon_pattern")+"::OnEnable"; + donpcevent(instance_npcname("2f_callmon_pattern")+"::OnEnable"); end; OnTimer3600000: - donpcevent instance_npcname("2f_callmon_pattern_c")+"::OnDisable"; + donpcevent(instance_npcname("2f_callmon_pattern_c")+"::OnDisable"); end; } 2@cata,4,2,0 script 2f_callmon_pattern FAKE_NPC,{ OnInstanceInit: - disablenpc instance_npcname("2f_callmon_pattern"); + disablenpc(instance_npcname("2f_callmon_pattern")); end; OnEnable: - enablenpc instance_npcname("2f_callmon_pattern"); - stopnpctimer; - initnpctimer; + enablenpc(instance_npcname("2f_callmon_pattern")); + stopnpctimer(); + initnpctimer(); end; OnDisable: - disablenpc instance_npcname("2f_callmon_pattern"); - stopnpctimer; + disablenpc(instance_npcname("2f_callmon_pattern")); + stopnpctimer(); end; OnTimer300000: - enablenpc instance_npcname("slave_down"); - enablenpc instance_npcname("slave_left"); - enablenpc instance_npcname("slave_right"); - donpcevent instance_npcname("2f_callmon_pattern_c")+"::OnGo"; + enablenpc(instance_npcname("slave_down")); + enablenpc(instance_npcname("slave_left")); + enablenpc(instance_npcname("slave_right")); + donpcevent(instance_npcname("2f_callmon_pattern_c")+"::OnGo"); end; } 2@cata,3,1,0 script ins_2f_hero_pattern_c FAKE_NPC,{ OnInstanceInit: - disablenpc instance_npcname("ins_2f_hero_pattern_c"); + disablenpc(instance_npcname("ins_2f_hero_pattern_c")); end; OnEnable: - enablenpc instance_npcname("ins_2f_hero_pattern_c"); - initnpctimer; - donpcevent instance_npcname("ins_2f_hero_pattern_c")+"::OnGo"; + enablenpc(instance_npcname("ins_2f_hero_pattern_c")); + initnpctimer(); + donpcevent(instance_npcname("ins_2f_hero_pattern_c")+"::OnGo"); end; OnGo: - donpcevent instance_npcname("ins_2f_hero_pattern")+"::OnEnable"; + donpcevent(instance_npcname("ins_2f_hero_pattern")+"::OnEnable"); end; OnDisable: - stopnpctimer; - disablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); - donpcevent instance_npcname("ins_2f_hero_pattern")+"::OnDisable"; - disablenpc instance_npcname("ins_2f_hero_pattern_c"); + stopnpctimer(); + disablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); + donpcevent(instance_npcname("ins_2f_hero_pattern")+"::OnDisable"); + disablenpc(instance_npcname("ins_2f_hero_pattern_c")); end; OnTimer3600000: - mapannounce instance_mapname("2@cata"), "Baphomet : krrrr... Now you can't stop me with the seals. All you can do is wait for death!",bc_map,"0xdb7093"; + mapannounce(instance_mapname("2@cata"), _("Baphomet : krrrr... Now you can't stop me with the seals. All you can do is wait for death!"), bc_map, "0xdb7093"); end; OnTimer3605000: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : We can't stop Baphomet with the magical power of the seals anymore. Now everything depends on God...",bc_map,"0xFFFF00"; - donpcevent instance_npcname("ins_2f_hero_pattern_c")+"::OnDisable"; + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : We can't stop Baphomet with the magical power of the seals anymore. Now everything depends on God..."), bc_map, C_YELLOW); + donpcevent(instance_npcname("ins_2f_hero_pattern_c")+"::OnDisable"); end; } 2@cata,3,2,0 script ins_2f_hero_pattern FAKE_NPC,{ OnInstanceInit: - disablenpc instance_npcname("ins_2f_hero_pattern"); + disablenpc(instance_npcname("ins_2f_hero_pattern")); end; OnEnable: - enablenpc instance_npcname("ins_2f_hero_pattern"); - initnpctimer; + enablenpc(instance_npcname("ins_2f_hero_pattern")); + initnpctimer(); end; OnDisable: - disablenpc instance_npcname("ins_2f_hero_pattern"); - stopnpctimer; + disablenpc(instance_npcname("ins_2f_hero_pattern")); + stopnpctimer(); end; OnTimer70000: - switch(rand(1,5)) { + switch (rand(1, 5)) { case 1: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The seal of the Main Altar is running out. Strengthen the Main Altar's seal!",bc_map,"0xFFFF00"; - enablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The seal of the Main Altar is running out. Strengthen the Main Altar's seal!"), bc_map, C_YELLOW); + enablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); break; case 2: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The magical power of the seal at 2 o'clock is running out. Go to 2 o'clock and put the magical power in the seal.",bc_map,"0xFFFF00"; - disablenpc instance_npcname("Magical Seal#0"); - enablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The magical power of the seal at 2 o'clock is running out. Go to 2 o'clock and put the magical power in the seal."), bc_map, C_YELLOW); + disablenpc(instance_npcname("Magical Seal#0")); + enablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); break; case 3: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The magical power of the seal at 4 o'clock is running out. Go to 4 o'clock and put the magical power in the seal.",bc_map,"0xFFFF00"; - disablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - enablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The magical power of the seal at 4 o'clock is running out. Go to 4 o'clock and put the magical power in the seal."), bc_map, C_YELLOW); + disablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + enablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); break; case 4: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The magical power of the seal at 8 o'clock is running out. Go to 8 o'clock and put the magical power in the seal.",bc_map,"0xFFFF00"; - disablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - enablenpc instance_npcname("Magical Seal#8"); - disablenpc instance_npcname("Magical Seal#10"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The magical power of the seal at 8 o'clock is running out. Go to 8 o'clock and put the magical power in the seal."), bc_map, C_YELLOW); + disablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + enablenpc(instance_npcname("Magical Seal#8")); + disablenpc(instance_npcname("Magical Seal#10")); break; case 5: - mapannounce instance_mapname("2@cata"), "Ancient Hero's Soul : The magical power of the seal at 10 o'clock is running out. Go to 10 o'clock and put the magical power in the seal.",bc_map,"0xFFFF00"; - disablenpc instance_npcname("Magical Seal#0"); - disablenpc instance_npcname("Magical Seal#2"); - disablenpc instance_npcname("Magical Seal#4"); - disablenpc instance_npcname("Magical Seal#8"); - enablenpc instance_npcname("Magical Seal#10"); + mapannounce(instance_mapname("2@cata"), _("Ancient Hero's Soul : The magical power of the seal at 10 o'clock is running out. Go to 10 o'clock and put the magical power in the seal."), bc_map, C_YELLOW); + disablenpc(instance_npcname("Magical Seal#0")); + disablenpc(instance_npcname("Magical Seal#2")); + disablenpc(instance_npcname("Magical Seal#4")); + disablenpc(instance_npcname("Magical Seal#8")); + enablenpc(instance_npcname("Magical Seal#10")); } - stopnpctimer; - donpcevent instance_npcname("ins_2f_hero_pattern_c")+"::OnGo"; + stopnpctimer(); + donpcevent(instance_npcname("ins_2f_hero_pattern_c")+"::OnGo"); end; } 1@cata,1,1,0 script ins_1f_spawn_mobs FAKE_NPC,{ OnInstanceInit: .@map$ = instance_mapname("1@cata"); - monster .@map$,0,0,"Zombie Master",1298,10; - monster .@map$,0,0,"Wraith Dead",1291,10; - //monster .@map$,0,0,"Ancient Mimic",1699,10; - monster .@map$,0,0,"Flame Skull",1869,10; - monster .@map$,0,0,"Skeleton General",1290,10; - monster .@map$,0,0,"Zombie Master",1298,10; - monster .@map$,0,0,"Skeleton General",1290,10; - monster .@map$,0,0,"Flame Skull",1869,10; - monster .@map$,0,0,"Wraith Dead",1291,10; - monster .@map$,0,0,"Wraith Dead",1291,10; - monster .@map$,0,0,"Khalitzburg",1132,10; - monster .@map$,0,0,"Khalitzburg",1132,10; - monster .@map$,0,0,"Flame Skull",1869,10; - monster .@map$,0,0,"Flame Skull",1869,10; - monster .@map$,0,0,"Ancient Mimic",1699,10; - monster .@map$,0,0,"Zombie Master",1298,10; - monster .@map$,0,0,"Ancient Mimic",1699,10; - monster .@map$,0,0,"Zombie Master",1298,10; - monster .@map$,0,0,"Wraith Dead",1291,10; - monster .@map$,0,0,"Skeleton General",1290,10; - monster .@map$,0,0,"Skeleton General",1290,10; - monster .@map$,0,0,"Wind Ghost",1263,10; - monster .@map$,0,0,"Wind Ghost",1263,10; - monster .@map$,0,0,"Wind Ghost",1263,10; - monster .@map$,0,0,"Lude",1509,10; - monster .@map$,0,0,"Lude",1509,10; - monster .@map$,0,0,"Evil Druid",1117,10; - monster .@map$,0,0,"Evil Druid",1117,10; - monster .@map$,0,0,"Evil Druid",1117,10; - monster .@map$,0,0,"Banshee",1867,10; - monster .@map$,0,0,"Dark Illusion",1302,1; - disablenpc instance_npcname("ins_1f_spawn_mobs"); + monster(.@map$, 0, 0, _("Zombie Master"), ZOMBIE_MASTER, 10); + monster(.@map$, 0, 0, _("Wraith Dead"), WRAITH_DEAD, 10); + //monster(.@map$, 0, 0, _("Ancient Mimic"), ANCIENT_MIMIC, 10); + monster(.@map$, 0, 0, _("Flame Skull"), FLAME_SKULL, 10); + monster(.@map$, 0, 0, _("Skeleton General"), SKELETON_GENERAL, 10); + monster(.@map$, 0, 0, _("Zombie Master"), ZOMBIE_MASTER, 10); + monster(.@map$, 0, 0, _("Skeleton General"), SKELETON_GENERAL, 10); + monster(.@map$, 0, 0, _("Flame Skull"), FLAME_SKULL, 10); + monster(.@map$, 0, 0, _("Wraith Dead"), WRAITH_DEAD, 10); + monster(.@map$, 0, 0, _("Wraith Dead"), WRAITH_DEAD, 10); + monster(.@map$, 0, 0, _("Khalitzburg"), KHALITZBURG, 10); + monster(.@map$, 0, 0, _("Khalitzburg"), KHALITZBURG, 10); + monster(.@map$, 0, 0, _("Flame Skull"), FLAME_SKULL, 10); + monster(.@map$, 0, 0, _("Flame Skull"), FLAME_SKULL, 10); + monster(.@map$, 0, 0, _("Ancient Mimic"), ANCIENT_MIMIC, 10); + monster(.@map$, 0, 0, _("Zombie Master"), ZOMBIE_MASTER, 10); + monster(.@map$, 0, 0, _("Ancient Mimic"), ANCIENT_MIMIC, 10); + monster(.@map$, 0, 0, _("Zombie Master"), ZOMBIE_MASTER, 10); + monster(.@map$, 0, 0, _("Wraith Dead"), WRAITH_DEAD, 10); + monster(.@map$, 0, 0, _("Skeleton General"), SKELETON_GENERAL, 10); + monster(.@map$, 0, 0, _("Skeleton General"), SKELETON_GENERAL, 10); + monster(.@map$, 0, 0, _("Wind Ghost"), WIND_GHOST, 10); + monster(.@map$, 0, 0, _("Wind Ghost"), WIND_GHOST, 10); + monster(.@map$, 0, 0, _("Wind Ghost"), WIND_GHOST, 10); + monster(.@map$, 0, 0, _("Lude"), LUDE, 10); + monster(.@map$, 0, 0, _("Lude"), LUDE, 10); + monster(.@map$, 0, 0, _("Evil Druid"), EVIL_DRUID, 10); + monster(.@map$, 0, 0, _("Evil Druid"), EVIL_DRUID, 10); + monster(.@map$, 0, 0, _("Evil Druid"), EVIL_DRUID, 10); + monster(.@map$, 0, 0, _("Banshee"), BANSHEE, 10); + monster(.@map$, 0, 0, _("Dark Illusion"), DARK_ILLUSION, 1); + disablenpc(instance_npcname("ins_1f_spawn_mobs")); end; } |