summaryrefslogtreecommitdiff
path: root/npc/instances
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2016-08-29 17:40:13 +0100
committerhemagx <ibrahem.h.basyone@gmail.com>2016-09-02 04:56:00 +0200
commit0f1d0507eb95cf07ce7eb66d89ad9853938612e6 (patch)
tree57780b1ecc7c5ae125be1c89406f8db1e00a581b /npc/instances
parent0f1d03f505fdc03533122db8ba19fa55f64f11b7 (diff)
downloadhercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.gz
hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.bz2
hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.xz
hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.zip
change *strcharinfo to use constants
Diffstat (limited to 'npc/instances')
-rw-r--r--npc/instances/EndlessTower.txt10
-rw-r--r--npc/instances/NydhoggsNest.txt4
-rw-r--r--npc/instances/OrcsMemory.txt10
-rw-r--r--npc/instances/SealedShrine.txt8
4 files changed, 16 insertions, 16 deletions
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt
index 52c558a2a..8fc6f973e 100644
--- a/npc/instances/EndlessTower.txt
+++ b/npc/instances/EndlessTower.txt
@@ -54,7 +54,7 @@ alberta,214,77,6 script Captain Janssen 4_M_SEAMAN,{
mes "Sigh... I don't know if I can ever go back to sailing the sea...";
close;
}
- .@name$ = strcharinfo(0);
+ .@name$ = strcharinfo(PC_NAME);
if (in_102tower == 1) {
mes "^0000ffLooking incredibly excited, the old man ran into the marine shop hurriedly ordering goods. You don't have anything better to do, so you decide to ask him why he is in such a rush.^000000";
next;
@@ -229,7 +229,7 @@ e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{
.@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;
}
@@ -312,7 +312,7 @@ L_Enter:
mes "The party leader did not generate the dungeon yet.";
close;
} else {
- mapannounce "e_tower", strcharinfo(0)+" of the party, " +getarg(3)+", is entering the dungeon, Endless Tower.",bc_map,"0x00ff99",FW_NORMAL,12;
+ mapannounce "e_tower", strcharinfo(PC_NAME)+" of the party, " +getarg(3)+", is entering the dungeon, Endless Tower.",bc_map,"0x00ff99",FW_NORMAL,12;
if (getarg(1)) {
etower_timer = gettimetick(2);
setquest 60200;
@@ -329,7 +329,7 @@ L_Enter:
e_tower,30,30,2 script Huge Vortex CLEAR_NPC,2,2,{
end;
OnTouch:
- mapannounce "e_tower","[ " + strcharinfo(0) + " ], seems to be engulfed by a huge vortex",bc_map,"0x00ff99",FW_NORMAL,12;
+ mapannounce "e_tower","[ " + strcharinfo(PC_NAME) + " ], seems to be engulfed by a huge vortex",bc_map,"0x00ff99",FW_NORMAL,12;
warp "alberta",223,36;
end;
}
@@ -1209,7 +1209,7 @@ function script F_Tower_Warp {
close;
}
delitem Dark_Ashes,.@i;
- mapannounce instance_mapname("1@tower"), strcharinfo(0)+". You will be warped to the "+.@level$[.@i]+" Level.",bc_map,"0x00ff99";
+ mapannounce instance_mapname("1@tower"), strcharinfo(PC_NAME)+". You will be warped to the "+.@level$[.@i]+" Level.",bc_map,"0x00ff99";
warp instance_mapname(.@map$[.@i]),52,354;
close;
diff --git a/npc/instances/NydhoggsNest.txt b/npc/instances/NydhoggsNest.txt
index 9e49bd9e9..c8f6c8567 100644
--- a/npc/instances/NydhoggsNest.txt
+++ b/npc/instances/NydhoggsNest.txt
@@ -224,7 +224,7 @@ L_Enter:
mes "You did not request for entrance. Please let your leader request entrance.";
close;
} else {
- mapannounce "nyd_dun02", getpartyname(getcharid(1))+"'s party member "+strcharinfo(0)+" has entered Nidhoggur's Nest.",bc_map,"0x00ff99";
+ mapannounce "nyd_dun02", getpartyname(getcharid(1))+"'s party member "+strcharinfo(PC_NAME)+" has entered Nidhoggur's Nest.",bc_map,"0x00ff99";
if (!questprogress(3135)) setquest 3135;
if (!questprogress(3136)) setquest 3136;
warp "1@nyd",32,37;
@@ -427,7 +427,7 @@ mid_camp,271,299,3 script Historian Magnifier#edq 4_M_SAGE_C,3,3,{
prt_in,171,94,3 script Assistant Naomi#edq 4_F_HUWOMAN,3,3,{
mes "[Assistant Naomi]";
- .@name$ = strcharinfo(0);
+ .@name$ = strcharinfo(PC_NAME);
if (ins_nyd == 3) {
mes "The doctor never ever tries to come back, and there're too many things to do... How can I do it all...";
next;
diff --git a/npc/instances/OrcsMemory.txt b/npc/instances/OrcsMemory.txt
index 9965fafd8..4455124eb 100644
--- a/npc/instances/OrcsMemory.txt
+++ b/npc/instances/OrcsMemory.txt
@@ -70,7 +70,7 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 2_MONEMUS,{
.@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;
}
@@ -108,7 +108,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;
@@ -876,9 +876,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 +886,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.";
diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt
index cbb8d20b5..fd33f16a0 100644
--- a/npc/instances/SealedShrine.txt
+++ b/npc/instances/SealedShrine.txt
@@ -120,7 +120,7 @@ monk_test,309,146,3 script Friar Patrick#edq 4_M_OLDFRIAR,{
if (getpartyleader(.@party_id,2) == getcharid(0) && instance_check_party(.@party_id,2,75)) {
mes "[Friar Patrick]";
mes "Party name is "+getpartyname(.@party_id)+"...";
- mes "Name of the leader is "+strcharinfo(0)+"...";
+ mes "Name of the leader is "+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.";
@@ -238,7 +238,7 @@ monk_test,306,151,3 script Grave of Baphomet#edq HIDDEN_NPC,{
mes "It's cold to the touch. It doesn't respond.";
close;
} else {
- mapannounce "monk_test","[" + strcharinfo(0) + "] member of the [" + getpartyname(.@party_id) + "] party has entered the Sealed Shrine.",bc_map,"0x00ff99";
+ 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;
end;
@@ -843,7 +843,7 @@ OnInstanceInit:
'ins_baphomet = 2;
mes "A small object is shining under a leaning grave.";
next;
- mes "[" + strcharinfo(0) + "]";
+ mes "[" + strcharinfo(PC_NAME) + "]";
mes "I think this is the pendant...";
close;
}
@@ -1134,7 +1134,7 @@ OnInstanceInit:
next;
specialeffect EF_METEORSTORM;
specialeffect EF_METEORSTORM;
- mes "[" + strcharinfo(0) + "]";
+ mes "[" + strcharinfo(PC_NAME) + "]";
mes "Watch out! Something... Something is coming.";
'ins_baphomet = 6;
donpcevent instance_npcname("ins_2f_hero_broad")+"::OnEnable";