summaryrefslogtreecommitdiff
path: root/npc/instances/OrcsMemory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/instances/OrcsMemory.txt')
-rw-r--r--npc/instances/OrcsMemory.txt39
1 files changed, 18 insertions, 21 deletions
diff --git a/npc/instances/OrcsMemory.txt b/npc/instances/OrcsMemory.txt
index cbf7d1a56..28cc9bbd5 100644
--- a/npc/instances/OrcsMemory.txt
+++ b/npc/instances/OrcsMemory.txt
@@ -33,13 +33,10 @@
//= 1.7
//=========================================================================
-1@orcs mapflag src4instance
-2@orcs mapflag src4instance
-
//== Entrance ==============================================
gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{
- .@party_id = getcharid(1);
+ .@party_id = getcharid(CHAR_ID_PARTY);
.@p_name$ = getpartyname(.@party_id);
.@md_name$ = "Orc's Memory";
@@ -58,19 +55,19 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{
if (.@orctime == 1) {
mes "You can enter the Dungeon if it has been generated.";
next;
- if(select("Enter the Dungeon "+.@md_name$+":Cancel") == 2)
+ if(select("Enter the Dungeon "+.@md_name$, "Cancel") == 2)
close;
// Fall through to access the dungeon
} else { // !.@orctime
- if (getcharid(0) == getpartyleader(.@party_id,2)) {
+ 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")) {
+ switch(select("Reserve the "+.@md_name$, "Enter the Dungeon", "Cancel")) {
case 1:
.@instance = instance_create(.@md_name$,.@party_id);
if (.@instance < 0) {
mes "Party Name: "+.@p_name$;
- mes "Party Leader: "+strcharinfo(0);
+ mes "Party Leader: "+strcharinfo(PC_NAME);
mes "^0000ff"+.@md_name$+" ^000000 - Reservation Failed.";
close;
}
@@ -92,7 +89,7 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{
case 3:
close;
}
- } else if (select(.@md_name$ + " Enter the Memorial Dungeon:Cancel") == 2)
+ } else if (select(.@md_name$ + " Enter the Memorial Dungeon", "Cancel") == 2)
end;
// Else access the dungeon
}
@@ -108,7 +105,7 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{
close;
}
- mapannounce "gef_fild10", strcharinfo(0) + " of the party, " + .@p_name$ + " is entering the "+.@md_name$+".",bc_map,"0x00ff99";
+ 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;
end;
@@ -124,7 +121,7 @@ gef_fild10,238,202,6 script Mad Scientist#orc 4_LGTSCIENCE,{
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!")) {
+ 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.";
@@ -152,7 +149,7 @@ gef_fild10,238,202,6 script Mad Scientist#orc 4_LGTSCIENCE,{
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.")) {
+ 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!";
@@ -684,24 +681,24 @@ OnTimer23910:
}
2@orcs,26,164,0 script Torch#1-1 CLEAR_NPC,{
- if(getpartyleader(getcharid(1),2) != getcharid(0)) end;
+ if(getpartyleader(getcharid(CHAR_ID_PARTY),2) != getcharid(CHAR_ID_CHAR)) end;
progressbar "ffff00",5;
- setarray .@id[0], atoi(charat(strnpcinfo(2),0)), atoi(charat(strnpcinfo(2),2));
+ 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";
else
donpcevent instance_npcname("Torch#"+.@id[0]+"-"+(.@id[1]+1))+"::OnEnable";
initnpctimer;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnInstanceInit:
- if (strnpcinfo(0) != "Torch#2-1" && strnpcinfo(0) != "Torch#3-1")
- disablenpc instance_npcname(strnpcinfo(0));
+ if (strnpcinfo(NPC_NAME) != "Torch#2-1" && strnpcinfo(NPC_NAME) != "Torch#3-1")
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTimer100:
@@ -876,9 +873,9 @@ OnTouch:
if (yong_odun < 2) {
mes "[Kruger]";
mes "*Coughing*";
- mes ""+strcharinfo(0)+", it's you...";
+ mes ""+strcharinfo(PC_NAME)+", it's you...";
next;
- mes "["+strcharinfo(0)+"] ";
+ mes "["+strcharinfo(PC_NAME)+"] ";
mes "Don't move! You are wounded!";
next;
mes "[Kruger]";
@@ -886,7 +883,7 @@ OnTouch:
mes "....";
mes "The Shaman? What about the Shaman?";
next;
- mes "["+strcharinfo(0)+"] ";
+ 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.";