summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2016-08-28 17:03:57 +0100
committerhemagx <ibrahem.h.basyone@gmail.com>2016-08-29 01:03:42 +0200
commit86977d79269408a371384e61111c3a9cf6e87b0c (patch)
tree4f2a9b1f9a3ee6436a0b857d05caa2be7e99a877 /npc
parent16f998c8a79153ed9f6721c36e129b6080fa59d2 (diff)
downloadhercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.gz
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.bz2
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.xz
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.zip
*strnpcinfo now uses constants
- NPC_NAME for the whole npc name including hidden part - NPC_NAME_VISIBLE for the visible part of the npc name - NPC_NAME_HIDDEN for the hidden part of the npc name - NPC_NAME_UNIQUE for the npc unique name - NPC_MAP for npc map
Diffstat (limited to 'npc')
-rw-r--r--npc/airports/airships.txt8
-rw-r--r--npc/cities/comodo.txt2
-rw-r--r--npc/cities/louyang.txt2
-rw-r--r--npc/custom/etc/mvp_arena.txt4
-rw-r--r--npc/custom/events/mushroom_event.txt4
-rw-r--r--npc/custom/quests/quest_shop.txt2
-rw-r--r--npc/events/halloween_2006.txt12
-rw-r--r--npc/events/halloween_2009.txt12
-rw-r--r--npc/instances/EndlessTower.txt24
-rw-r--r--npc/instances/NydhoggsNest.txt72
-rw-r--r--npc/instances/OrcsMemory.txt10
-rw-r--r--npc/instances/SealedShrine.txt18
-rw-r--r--npc/jobs/2-1/assassin.txt2
-rw-r--r--npc/kafras/functions_kafras.txt28
-rw-r--r--npc/kafras/kafras.txt2
-rw-r--r--npc/merchants/coin_exchange.txt6
-rw-r--r--npc/other/gm_npcs.txt2
-rw-r--r--npc/other/mercenary_rent.txt2
-rw-r--r--npc/other/monster_race.txt50
-rw-r--r--npc/other/pvp.txt14
-rw-r--r--npc/other/turbo_track.txt374
-rw-r--r--npc/pre-re/jobs/novice/novice.txt4
-rw-r--r--npc/quests/guildrelay.txt16
-rw-r--r--npc/quests/kiel_hyre_quest.txt2
-rw-r--r--npc/quests/okolnir.txt36
-rw-r--r--npc/quests/partyrelay.txt2
-rw-r--r--npc/quests/quests_13_1.txt10
-rw-r--r--npc/quests/quests_13_2.txt88
-rw-r--r--npc/quests/quests_morocc.txt4
-rw-r--r--npc/quests/quests_moscovia.txt34
-rw-r--r--npc/quests/seals/god_weapon_creation.txt2
-rw-r--r--npc/quests/skills/rogue_skills.txt2
-rw-r--r--npc/quests/thana_quest.txt26
-rw-r--r--npc/re/cities/malangdo.txt4
-rw-r--r--npc/re/cities/malaya.txt34
-rw-r--r--npc/re/guides/guides_ayothaya.txt2
-rw-r--r--npc/re/guides/guides_izlude.txt2
-rw-r--r--npc/re/instances/BangungotHospital.txt22
-rw-r--r--npc/re/instances/BuwayaCave.txt2
-rw-r--r--npc/re/instances/EclageInterior.txt8
-rw-r--r--npc/re/instances/HazyForest.txt6
-rw-r--r--npc/re/instances/MalangdoCulvert.txt78
-rw-r--r--npc/re/instances/OctopusCave.txt42
-rw-r--r--npc/re/instances/OldGlastHeim.txt26
-rw-r--r--npc/re/instances/WolfchevLaboratory.txt86
-rw-r--r--npc/re/instances/saras_memory.txt404
-rw-r--r--npc/re/jobs/2e/kagerou_oboro.txt20
-rw-r--r--npc/re/jobs/3-1/archbishop.txt2
-rw-r--r--npc/re/jobs/3-1/guillotine_cross.txt28
-rw-r--r--npc/re/jobs/3-1/ranger.txt18
-rw-r--r--npc/re/jobs/3-1/rune_knight.txt4
-rw-r--r--npc/re/jobs/3-1/warlock.txt34
-rw-r--r--npc/re/jobs/3-2/genetic.txt4
-rw-r--r--npc/re/jobs/3-2/minstrel.txt8
-rw-r--r--npc/re/jobs/3-2/royal_guard.txt4
-rw-r--r--npc/re/jobs/3-2/sorcerer.txt8
-rw-r--r--npc/re/jobs/3-2/sura.txt2
-rw-r--r--npc/re/jobs/3-2/wanderer.txt6
-rw-r--r--npc/re/jobs/novice/academy.txt178
-rw-r--r--npc/re/jobs/novice/novice.txt38
-rw-r--r--npc/re/merchants/card_separation.txt2
-rw-r--r--npc/re/mobs/dungeons/lhz_dun.txt12
-rw-r--r--npc/re/mobs/fields/niflheim.txt192
-rw-r--r--npc/re/quests/eden/121-130.txt4
-rw-r--r--npc/re/quests/eden/eden_common.txt2
-rw-r--r--npc/re/quests/quests_brasilis.txt14
-rw-r--r--npc/re/quests/quests_dewata.txt12
-rw-r--r--npc/re/quests/quests_dicastes.txt36
-rw-r--r--npc/re/quests/quests_eclage.txt22
-rw-r--r--npc/re/quests/quests_malangdo.txt48
-rw-r--r--npc/re/quests/quests_malaya.txt50
-rw-r--r--npc/re/quests/quests_mora.txt58
-rw-r--r--npc/re/warps/cities/dicastes.txt2
-rw-r--r--npc/re/warps/cities/izlude.txt2
-rw-r--r--npc/re/warps/fields/bif_fild.txt2
-rw-r--r--npc/re/woe-fe/invest_main.txt60
-rw-r--r--npc/woe-fe/agit_main.txt710
-rw-r--r--npc/woe-fe/trs_rp.txt10
-rw-r--r--npc/woe-se/agit_main_se.txt530
79 files changed, 1857 insertions, 1857 deletions
diff --git a/npc/airports/airships.txt b/npc/airports/airships.txt
index 8d840a456..677ab9da2 100644
--- a/npc/airports/airships.txt
+++ b/npc/airports/airships.txt
@@ -39,11 +39,11 @@ airplane,243,73,0 script #AirshipWarp-1 WARPNPC,1,1,{
OnInit:
OnHide:
specialeffect EF_BASH;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnUnhide:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
specialeffect EF_SUMMONSLAVE;
end;
@@ -680,11 +680,11 @@ OnTouch:
OnInit:
OnHide:
specialeffect EF_BASH;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnUnhide:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
specialeffect EF_SUMMONSLAVE;
end;
}
diff --git a/npc/cities/comodo.txt b/npc/cities/comodo.txt
index 8ac60a171..d60278abd 100644
--- a/npc/cities/comodo.txt
+++ b/npc/cities/comodo.txt
@@ -355,7 +355,7 @@ cmd_fild07,52,280,4 script Hallosu#cmd 4W_SAILOR,{
}
cmd_fild07,299,83,4 script Zain#cmd 4W_SAILOR,{
- .@n$ = "["+strnpcinfo(1)+"]";
+ .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes .@n$;
mes "Would you like to";
mes "board a ship on the";
diff --git a/npc/cities/louyang.txt b/npc/cities/louyang.txt
index dca5f0376..b4cfcb8ea 100644
--- a/npc/cities/louyang.txt
+++ b/npc/cities/louyang.txt
@@ -338,7 +338,7 @@ louyang,84,254,0 script Exit#lou HIDDEN_NPC,{
if (rand(1,100) == 34) {
percentheal -99,0;
warp "louyang",86,269;
- mapannounce "louyang",""+strnpcinfo(0)+" : Oh God, I'm faaaaaaaaaaaalling~~!!!!",bc_map;
+ mapannounce "louyang",""+strnpcinfo(NPC_NAME)+" : Oh God, I'm faaaaaaaaaaaalling~~!!!!",bc_map;
}
else {
warp "lou_in01",10,18;
diff --git a/npc/custom/etc/mvp_arena.txt b/npc/custom/etc/mvp_arena.txt
index b8e1af564..d4205456e 100644
--- a/npc/custom/etc/mvp_arena.txt
+++ b/npc/custom/etc/mvp_arena.txt
@@ -49,7 +49,7 @@ quiz_00,49,31,4 script MVP Arena Guide 4_M_TWTEAMAN,{
// Keepers
function script Keeper {
- mes "[ ^0065DF"+strnpcinfo(1)+"^000000 ]";
+ mes "[ ^0065DF"+strnpcinfo(NPC_NAME_VISIBLE)+"^000000 ]";
mes "Which arena would you";
mes "like to enter?";
set .@menu$,"";
@@ -57,7 +57,7 @@ function script Keeper {
set .@menu$, .@menu$+"Arena "+.@i+" ["+getmapusers("pvp_n_"+.@i+"-"+getarg(0))+"/20]:";
set .@i, select(.@menu$);
if (getmapusers("pvp_n_"+.@i+"-"+getarg(0))>19) {
- mes "[ ^0065DF"+strnpcinfo(1)+"^000000 ]";
+ mes "[ ^0065DF"+strnpcinfo(NPC_NAME_VISIBLE)+"^000000 ]";
mes "Sorry, this arena is full!";
close;
}
diff --git a/npc/custom/events/mushroom_event.txt b/npc/custom/events/mushroom_event.txt
index ef25a9294..6a8cbc59d 100644
--- a/npc/custom/events/mushroom_event.txt
+++ b/npc/custom/events/mushroom_event.txt
@@ -24,7 +24,7 @@ prontera,142,228,6 script Find the Mushroom BLACK_MUSHROOM,{
mes "Start the event?";
next;
if(select("- No", "- Yes") == 1) close;
- donpcevent strnpcinfo(0)+"::OnMinute10";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnMinute10";
mes "[ Find The Mushroom ]";
mes "Event started!";
close;
@@ -42,7 +42,7 @@ OnMinute10: // Start time (every hour)
set .Spawn,rand(1,10); // How many Mushrooms should spawn?
set .Map$,.maps$[rand(getarraysize(.maps$))];
killmonster .Map$,"All";
- monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(0)+"::OnMobKilled";
+ monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(NPC_NAME)+"::OnMobKilled";
announce "Find the Mushroom : Total of "+.Spawn+" Mushrooms have been spawned in "+.Map$+"!",0;
sleep 2500;
announce "Find the Mushroom : Every Mushroom you kill will give you "+getitemname(.Prize)+"!",0;
diff --git a/npc/custom/quests/quest_shop.txt b/npc/custom/quests/quest_shop.txt
index dd7fad138..2db3b069a 100644
--- a/npc/custom/quests/quest_shop.txt
+++ b/npc/custom/quests/quest_shop.txt
@@ -124,7 +124,7 @@ OnBuyItem:
setarray @qe[1], getiteminfo(.@q[0],5), getiteminfo(.@q[0],11);
if (@qe[2] > 0 && ((@qe[1] & 1) || (@qe[1] & 256) || (@qe[1] & 512) || (@qe[1] & 1024) || (@qe[1] & 2048) || (@qe[1] & 4096) || (@qe[1] & 4) || (@qe[1] & 8192)))
set .@preview,1;
- addtimer 1000, strnpcinfo(0)+"::OnEnd";
+ addtimer 1000, strnpcinfo(NPC_NAME)+"::OnEnd";
while(1) {
switch(select(" ~ Purchase ^0055FF"+ getitemname(.@q[0]) +"^000000", ((.@preview && !@qe[7])?" ~ Preview...": ""), " ~ ^777777Cancel^000000")) {
case 1:
diff --git a/npc/events/halloween_2006.txt b/npc/events/halloween_2006.txt
index 8b34ab824..8c7b4dcbf 100644
--- a/npc/events/halloween_2006.txt
+++ b/npc/events/halloween_2006.txt
@@ -672,10 +672,10 @@ nif_fild01,167,113,3 script Masta's chicken#06_hw01 4_NFCOCK,{
specialeffect EF_TELEPORTATION;
mes "The magic spell has been casted.";
halloween = 103;
- disablenpc "Masta's chicken#"+strnpcinfo(1);
+ disablenpc "Masta's chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
close2;
sleep 180000;
- enablenpc "Masta's chicken#"+strnpcinfo(1);
+ enablenpc "Masta's chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
end;
}
else {
@@ -695,13 +695,13 @@ nif_fild01,167,113,3 script Masta's chicken#06_hw01 4_NFCOCK,{
if( @egg_temp == 3) {
mes "As soon as you got close to the chicken and touched it, it disappeared completely.";
mes "You got an 'egg' in the place where the chicken disappeared.";
- disablenpc "Chicken#"+strnpcinfo(1);
+ disablenpc "Chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
getitem Egg,1;
close;
}
else {
mes "As soon as you got close to the chicken and touched it, it disappeared completely.";
- disablenpc "Chicken#"+strnpcinfo(1);
+ disablenpc "Chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
close;
}
}
@@ -711,13 +711,13 @@ nif_fild01,167,113,3 script Masta's chicken#06_hw01 4_NFCOCK,{
if( @egg_temp == 3) {
mes "As soon as you got close to the chicken and touched it, it disappeared completely.";
mes "You got an 'egg' in the place where the chicken disappeared.";
- disablenpc "Chicken#"+strnpcinfo(1);
+ disablenpc "Chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
getitem Egg,1;
close;
}
else {
mes "As soon as you got close to the chicken and touched it, it disappeared completely.";
- disablenpc "Chicken#"+strnpcinfo(1);
+ disablenpc "Chicken#"+strnpcinfo(NPC_NAME_VISIBLE);
close;
}
diff --git a/npc/events/halloween_2009.txt b/npc/events/halloween_2009.txt
index b1c00048e..ac2b0d39d 100644
--- a/npc/events/halloween_2009.txt
+++ b/npc/events/halloween_2009.txt
@@ -116,7 +116,7 @@ prontera,152,192,5 script Pumpkin Hat Researcher 4_M_05,{
//== Buffs - Trick or Treaters =============================
- script Trick or Treater::09Treats 4_M_KID1,2,2,{
OnTouch:
- hideoffnpc strnpcinfo(3);
+ hideoffnpc strnpcinfo(NPC_NAME_UNIQUE);
initnpctimer;
mes "[Trick or Treater]";
mes "Hooray! hooray! Hooray!";
@@ -215,17 +215,17 @@ OnInit:
end;
OnEnableTreat:
- enablenpc strnpcinfo(3);
- hideonnpc strnpcinfo(3);
+ enablenpc strnpcinfo(NPC_NAME_UNIQUE);
+ hideonnpc strnpcinfo(NPC_NAME_UNIQUE);
end;
OnTimer15000:
- hideonnpc strnpcinfo(3);
- disablenpc strnpcinfo(3);
+ hideonnpc strnpcinfo(NPC_NAME_UNIQUE);
+ disablenpc strnpcinfo(NPC_NAME_UNIQUE);
end;
OnTimer300000:
- donpcevent strnpcinfo(3)+"::OnEnableTreat";
+ donpcevent strnpcinfo(NPC_NAME_UNIQUE)+"::OnEnableTreat";
stopnpctimer;
end;
}
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt
index 3082cfdce..52c558a2a 100644
--- a/npc/instances/EndlessTower.txt
+++ b/npc/instances/EndlessTower.txt
@@ -1254,27 +1254,27 @@ OnTimer5000:
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
callfunc "F_Tower_Monster",
- atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1,
- strnpcinfo(4),
- instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1,
+ strnpcinfo(NPC_MAP),
+ instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
end;
OnTouch_:
callfunc "F_Tower_Warp",
- atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1,
- strnpcinfo(4);
+ atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1,
+ strnpcinfo(NPC_MAP);
end;
OnMyMobDead:
- .@map$ = strnpcinfo(4);
- .@level = atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1;
- .@mob_dead_num = mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@map$ = strnpcinfo(NPC_MAP);
+ .@level = atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1;
+ .@mob_dead_num = mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor .@level
@@ -1283,8 +1283,8 @@ OnMyMobDead:
end;
OnTimer5000:
- .@level = atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1;
- mapannounce strnpcinfo(4), "All Monsters on the "+callsub(L_Display,.@level)+" Level have been defeated.",bc_map,"0xffff00";
+ .@level = atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1;
+ mapannounce strnpcinfo(NPC_MAP), "All Monsters on the "+callsub(L_Display,.@level)+" Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname(.@level+"FGate102tower")+"::OnEnable";
stopnpctimer;
end;
diff --git a/npc/instances/NydhoggsNest.txt b/npc/instances/NydhoggsNest.txt
index c702d31d7..9e49bd9e9 100644
--- a/npc/instances/NydhoggsNest.txt
+++ b/npc/instances/NydhoggsNest.txt
@@ -2013,78 +2013,78 @@ OnEnable:
2@nyd,115,278,0 script nyd_2f_red FAKE_NPC,5,5,{
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- donpcevent instance_npcname(strnpcinfo(0)+"_warp1")+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0)+"_warp2")+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0)+"_warp3")+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0)+"_c")+"::OnEnable";
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp1")+"::OnEnable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp2")+"::OnEnable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp3")+"::OnEnable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_c")+"::OnEnable";
initnpctimer;
end;
OnDisable:
- donpcevent instance_npcname(strnpcinfo(0)+"_warp1")+"::OnDisable";
- donpcevent instance_npcname(strnpcinfo(0)+"_warp2")+"::OnDisable";
- donpcevent instance_npcname(strnpcinfo(0)+"_warp3")+"::OnDisable";
- disablenpc instance_npcname(strnpcinfo(0));
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp1")+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp2")+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME)+"_warp3")+"::OnDisable";
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
- if (compare(strnpcinfo(0),"red")) {
+ if (compare(strnpcinfo(NPC_NAME),"red")) {
percentheal -50,0;
percentheal -30,0;
sc_start SC_BLOODING,60000,0;
- } else if (compare(strnpcinfo(0),"white")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"white")) {
percentheal -50,0;
sc_start SC_FREEZE,20000,0;
- } else if (compare(strnpcinfo(0),"yellow")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"yellow")) {
percentheal 0,-50;
sc_start SC_SLEEP,20000,0;
sc_start SC_CONFUSION,60000,0;
- } else if (compare(strnpcinfo(0),"green")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"green")) {
percentheal -50,-50;
sc_start SC_POISON,60000,0;
}
end;
OnTimer10000:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
stopnpctimer;
end;
}
2@nyd,6,6,0 script nyd_2f_red_c FAKE_NPC,{
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
initnpctimer;
.@map$ = instance_mapname("2@nyd");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- if (compare(strnpcinfo(0),"red")) {
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ if (compare(strnpcinfo(NPC_NAME),"red")) {
monster .@map$,120,285,"Nidhoggur's Guardian#1",2020,1,.@label$;
monster .@map$,119,286,"Nidhoggur's Guardian#2",2020,1,.@label$;
monster .@map$,120,270,"Nidhoggur's Guardian#3",2020,1,.@label$;
monster .@map$,119,269,"Nidhoggur's Guardian#4",2021,1,.@label$;
monster .@map$,118,270,"Nidhoggur's Guardian#5",2021,1,.@label$;
- } else if (compare(strnpcinfo(0),"white")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"white")) {
monster .@map$,120,380,"Nidhoggur's Guardian#1",2020,1,.@label$;
monster .@map$,119,381,"Nidhoggur's Guardian#2",2020,1,.@label$;
monster .@map$,120,367,"Nidhoggur's Guardian#3",2020,1,.@label$;
monster .@map$,119,366,"Nidhoggur's Guardian#4",2021,1,.@label$;
monster .@map$,118,365,"Nidhoggur's Guardian#5",2021,1,.@label$;
- } else if (compare(strnpcinfo(0),"yellow")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"yellow")) {
monster .@map$,282,284,"Nidhoggur's Guardian#1",2020,1,.@label$;
monster .@map$,283,283,"Nidhoggur's Guardian#2",2020,1,.@label$;
monster .@map$,280,275,"Nidhoggur's Guardian#3",2020,1,.@label$;
monster .@map$,281,276,"Nidhoggur's Guardian#4",2021,1,.@label$;
monster .@map$,281,277,"Nidhoggur's Guardian#5",2021,1,.@label$;
- } else if (compare(strnpcinfo(0),"green")) {
+ } else if (compare(strnpcinfo(NPC_NAME),"green")) {
monster .@map$,282,378,"Nidhoggur's Guardian#1",2020,1,.@label$;
monster .@map$,283,377,"Nidhoggur's Guardian#2",2020,1,.@label$;
monster .@map$,280,368,"Nidhoggur's Guardian#3",2020,1,.@label$;
@@ -2095,30 +2095,30 @@ OnEnable:
OnMyMobDead:
.@map$ = instance_mapname("2@nyd");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
mapannounce .@map$, "Nidhoggur's Shadow : You're not bad... but I will be your opponent this time.",bc_map,"0x00ff99";
donpcevent instance_npcname("nyd_2f_boss_enter_logic")+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
end;
}
end;
/*
OnReset: // Label not called.
- killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
end;
*/
OnDisable:
stopnpctimer;
- killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; //custom
- donpcevent instance_npcname(substr(strnpcinfo(0),0,getstrlen(strnpcinfo(0))-3))+"::OnDisable";
- disablenpc instance_npcname(strnpcinfo(0));
+ killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead"; //custom
+ donpcevent instance_npcname(substr(strnpcinfo(NPC_NAME),0,getstrlen(strnpcinfo(NPC_NAME))-3))+"::OnDisable";
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTimer180000:
- killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ killmonster instance_mapname("2@nyd"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
stopnpctimer;
donpcevent instance_npcname("nyd_2f_boss_enter_call")+"::OnWarpColor";
end;
@@ -2127,21 +2127,21 @@ OnTimer180000:
2@nyd,130,298,0 script nyd_2f_red_warp1 FAKE_NPC,6,6,{
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
- if (compare(strnpcinfo(0),"red"))
+ if (compare(strnpcinfo(NPC_NAME),"red"))
warp instance_mapname("2@nyd"),115,278;
- else if (compare(strnpcinfo(0),"white"))
+ else if (compare(strnpcinfo(NPC_NAME),"white"))
warp instance_mapname("2@nyd"),115,373;
- else if (compare(strnpcinfo(0),"yellow"))
+ else if (compare(strnpcinfo(NPC_NAME),"yellow"))
warp instance_mapname("2@nyd"),284,278;
- else if (compare(strnpcinfo(0),"green"))
+ else if (compare(strnpcinfo(NPC_NAME),"green"))
warp instance_mapname("2@nyd"),284,374;
end;
}
diff --git a/npc/instances/OrcsMemory.txt b/npc/instances/OrcsMemory.txt
index e65c18efe..9965fafd8 100644
--- a/npc/instances/OrcsMemory.txt
+++ b/npc/instances/OrcsMemory.txt
@@ -686,22 +686,22 @@ OnTimer23910:
2@orcs,26,164,0 script Torch#1-1 CLEAR_NPC,{
if(getpartyleader(getcharid(1),2) != getcharid(0)) 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:
diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt
index 5784d52a7..cbb8d20b5 100644
--- a/npc/instances/SealedShrine.txt
+++ b/npc/instances/SealedShrine.txt
@@ -896,7 +896,7 @@ OnInstanceInit:
specialeffect2 EF_HOLYHIT;
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(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
close;
}
else if (('ins_baphomet == 3) && (countitem(Essence_Of_Fire) > 10)) {
@@ -919,7 +919,7 @@ OnInstanceInit:
}
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
1@cata,267,210,0 duplicate(Bobbing Torch#SS) Bobbing Torch#1 CLEAR_NPC
@@ -1097,13 +1097,13 @@ OnTouch:
}
if (.@seal_check == 2) erasequest 3041;
specialeffect EF_LEXDIVINA;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
.@map$ = instance_mapname("2@cata");
- if (strnpcinfo(2) == "0") areamobuseskill .@map$,79,81,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0;
- else if (strnpcinfo(2) == "2") areamobuseskill .@map$,123,109,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0;
- else if (strnpcinfo(2) == "4") areamobuseskill .@map$,123,22,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0;
- else if (strnpcinfo(2) == "8") areamobuseskill .@map$,35,21,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0;
- else if (strnpcinfo(2) == "10") areamobuseskill .@map$,35,109,10,1929,"NPC_INVINCIBLEOFF",1,0,0,e_hlp,0;
+ 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;
@@ -1114,7 +1114,7 @@ OnTouch:
close;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
2@cata,79,81,0 duplicate(Magical Seal#SS) Magical Seal#0 CLEAR_NPC
diff --git a/npc/jobs/2-1/assassin.txt b/npc/jobs/2-1/assassin.txt
index 10bbb6534..4ab4bd68b 100644
--- a/npc/jobs/2-1/assassin.txt
+++ b/npc/jobs/2-1/assassin.txt
@@ -2239,7 +2239,7 @@ OnTouch:
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
in_moc_16,156,87,1 duplicate(#moc_assin_dup) [Huey] 1_M_JOBTESTER
diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt
index 3155c5df8..24592a96d 100644
--- a/npc/kafras/functions_kafras.txt
+++ b/npc/kafras/functions_kafras.txt
@@ -609,56 +609,56 @@ function script F_KafSet {
deletearray @wrpP$;
deletearray @viewpX;
deletearray @viewpY;
- if (strnpcinfo(4) == "prontera") {
+ if (strnpcinfo(NPC_MAP) == "prontera") {
setarray @wrpD$, "Izlude", "Geffen", "Payon", "Morroc", "Orc Dungeon", "Alberta";
setarray @wrpP, 600, 1200, 1200, 1200, 1200, 1800;
setarray @viewpX, 151, 29, 282, 152;
setarray @viewpY, 29, 207, 200, 326;
- } else if (strnpcinfo(4) == "alberta") {
+ } else if (strnpcinfo(NPC_MAP) == "alberta") {
setarray @wrpP, 1200, 1800, 1800;
setarray @wrpD$, "Payon", "Morroc", "Prontera";
setarray @viewpX, 28, 113, 0, 0;
setarray @viewpY, 229, 60, 0, 0;
- } else if (strnpcinfo(4) == "aldebaran") {
+ } else if (strnpcinfo(NPC_MAP) == "aldebaran") {
setarray @wrpP, 1200, 1200, 1800, 1700;
setarray @wrpD$, "Geffen", "Juno" , "Izlude", "Mjolnir Dead Pit";
- } else if (strnpcinfo(4) == "comodo" ) {
+ } else if (strnpcinfo(NPC_MAP) == "comodo" ) {
setarray @wrpD$, "Morroc", "Comodo Pharos Beacon", "Umbala";
setarray @wrpP, 1800, 1200, 1800;
- } else if (strnpcinfo(4) == "cmd_fild07") {
+ } else if (strnpcinfo(NPC_MAP) == "cmd_fild07") {
setarray @wrpD$, "Comodo", "Morroc";
setarray @wrpP, 1200, 1200;
- } else if (strnpcinfo(4) == "geffen") {
+ } else if (strnpcinfo(NPC_MAP) == "geffen") {
setarray @wrpD$, "Prontera", "Al De Baran", "Orc Dungeon", "Mjolnir Dead Pit";
setarray @wrpP, 1200, 1200, 1200, 1700;
setarray @viewpX, 120, 203;
setarray @viewpY, 62, 123;
- } else if (strnpcinfo(4) == "izlude") {
+ } else if (strnpcinfo(NPC_MAP) == "izlude") {
setarray @wrpD$, "Geffen", "Payon", "Morroc", "Al De Baran";
setarray @wrpP, 1200, 1200, 1200, 1800;
- } else if (strnpcinfo(4) == "morocc") {
+ } else if (strnpcinfo(NPC_MAP) == "morocc") {
setarray @wrpD$, "Prontera", "Payon", "Alberta", "Comodo", "Comodo Pharos Beacon";
setarray @wrpP, 1200, 1200, 1800, 1800, 1200;
setarray @viewpX, 156, 163, 28, 292;
setarray @viewpY, 97, 260, 167, 211;
- } else if (strnpcinfo(4) == "umbala") {
+ } else if (strnpcinfo(NPC_MAP) == "umbala") {
setarray @wrpD$, "Comodo";
setarray @wrpP, 1800;
- } else if (strnpcinfo(4) == "payon") {
+ } else if (strnpcinfo(NPC_MAP) == "payon") {
setarray @wrpD$, "Prontera", "Alberta", "Morroc";
setarray @wrpP, 1200, 1200, 1200;
- } else if (strnpcinfo(4) == "yuno") {
+ } else if (strnpcinfo(NPC_MAP) == "yuno") {
setarray @wrpD$, "Al De Baran";
setarray @wrpP, 1200;
setarray @viewpX, 328, 278, 153, 0;
setarray @viewpY, 108, 221, 187, 0;
- } else if (strnpcinfo(4) == "job3_rune01") {
+ } else if (strnpcinfo(NPC_MAP) == "job3_rune01") {
setarray @wrpD$, "Izlude", "Geffen", "Payon", "Morroc", "Alberta";
setarray @wrpP, 600, 1200, 1200, 1200, 1800;
- } else if (strnpcinfo(4) == "rachel") {
+ } else if (strnpcinfo(NPC_MAP) == "rachel") {
setarray @wrpD$, "Veins";
setarray @wrpP, 2200;
- } else if (strnpcinfo(4) == "veins") {
+ } else if (strnpcinfo(NPC_MAP) == "veins") {
setarray @wrpD$, "Rachel";
setarray @wrpP, 2200;
}
diff --git a/npc/kafras/kafras.txt b/npc/kafras/kafras.txt
index 39e389682..29b1b02da 100644
--- a/npc/kafras/kafras.txt
+++ b/npc/kafras/kafras.txt
@@ -421,7 +421,7 @@ cmd_fild07,136,134,4 script Kafra Employee::kaf_cmd_fild07 4_F_KAFRA7,{
mes "How may I assist you?";
callfunc "F_Kafra",5,0,1,40,820;
if (RENEWAL)
- savepoint strnpcinfo(4),129,97;
+ savepoint strnpcinfo(NPC_MAP),129,97;
else
savepoint "izlude",94,103;
callfunc "F_KafEnd",0,1,"in the city of Izlude";
diff --git a/npc/merchants/coin_exchange.txt b/npc/merchants/coin_exchange.txt
index 8ce94830d..e0f72ca57 100644
--- a/npc/merchants/coin_exchange.txt
+++ b/npc/merchants/coin_exchange.txt
@@ -37,7 +37,7 @@
//== Manuk & Splendide =====================================
- script ::merchant_13_2 FAKE_NPC,{
- .@n$ = "["+strnpcinfo(1)+"]";
+ .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes .@n$;
if (isequipped(2782) && ep13_2_rhea == 100) {
if (!checkweight(Knife,1)) {
@@ -48,7 +48,7 @@
mes "Hello.";
mes "What are you looking for?";
next;
- if (strnpcinfo(1) == "Merchant of Manuk") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Merchant of Manuk") {
setarray .@items[2],12342,12343,12348;
.@Book = 11019; //Manuk_Selling_Item
.@coin = 6080; //Manuk_Coin
@@ -93,7 +93,7 @@
close;
}
else {
- if (strnpcinfo(1) == "Merchant of Manuk") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Merchant of Manuk") {
mes "Rtt od d";
mes "Qwo hd is d irr";
}
diff --git a/npc/other/gm_npcs.txt b/npc/other/gm_npcs.txt
index 54e37a2bd..9dfaa81a8 100644
--- a/npc/other/gm_npcs.txt
+++ b/npc/other/gm_npcs.txt
@@ -42,7 +42,7 @@ function script F_GM_NPC {
if (getgmlevel() < 99) {/* TODO: perhaps better to just add a group permission? [Ind] */
// Log the event.
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
- logmes strcharinfo(0)+" attempted to access GM NPC "+strnpcinfo(0)+" ("+.@map$+","+.@x+","+.@y+").";
+ logmes strcharinfo(0)+" attempted to access GM NPC "+strnpcinfo(NPC_NAME)+" ("+.@map$+","+.@x+","+.@y+").";
end;
}
diff --git a/npc/other/mercenary_rent.txt b/npc/other/mercenary_rent.txt
index 319b897d4..4b0878e79 100644
--- a/npc/other/mercenary_rent.txt
+++ b/npc/other/mercenary_rent.txt
@@ -39,7 +39,7 @@
setarray .@name$, "Spear", "Sword", "Bow";
setarray .@faith$, "SPEAR_MERC_GUILD", "SWORD_MERC_GUILD", "ARCH_MERC_GUILD";
setarray .@item, 12182, 12172, 12162;
- .@npc$ = strnpcinfo(2);
+ .@npc$ = strnpcinfo(NPC_NAME_HIDDEN);
.@size = getarraysize(.@name$);
for (.@i = 0; .@i < .@size; ++.@i)
if (.@npc$ == .@name$[.@i]) .@type = .@i;
diff --git a/npc/other/monster_race.txt b/npc/other/monster_race.txt
index 9241bd070..7baf3da94 100644
--- a/npc/other/monster_race.txt
+++ b/npc/other/monster_race.txt
@@ -240,15 +240,15 @@ OnInit:
OnEnable:
emotion e_gasp;
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC);
setarray .@mob[1], R_PORING,R_LUNATIC,R_SAVAGE_BABE,R_DESERT_WOLF_B,R_DEVIRUCHI,R_BAPHOMET_;
- monster "p_track01",58,.@y,"The "+ F_Ord() +" Racer", .@mob[F_Num()],1,strnpcinfo(0)+"::OnMyMobDead";
+ monster "p_track01",58,.@y,"The "+ F_Ord() +" Racer", .@mob[F_Num()],1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnDisable:
- disablenpc strnpcinfo(0);
- killmonster "p_track01",strnpcinfo(0)+"::OnMyMobDead";
+ disablenpc strnpcinfo(NPC_NAME);
+ killmonster "p_track01",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnTouchNPC:
@@ -268,12 +268,12 @@ OnTouchNPC:
mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
sleep 1000;
donpcevent "Medal Distributor#single::OnEnable";
- donpcevent strnpcinfo(0)+"::OnDisable";
- killmonster "p_track01",strnpcinfo(0)+"::OnMyMobDead";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
+ killmonster "p_track01",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
function F_Num {
- return atoi(strnpcinfo(2));
+ return atoi(strnpcinfo(NPC_NAME_HIDDEN));
}
function F_Ord {
@@ -288,8 +288,8 @@ OnTouchNPC:
}
OnInit:
- if (strnpcinfo(2) != "" )
- disablenpc strnpcinfo(0);
+ if (strnpcinfo(NPC_NAME_HIDDEN) != "" )
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
p_track01,30,38,0 duplicate(Runner_main) Runner No. 1#1 FAKE_NPC,1,0
@@ -845,7 +845,7 @@ OnTouchNPC:
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -861,7 +861,7 @@ OnTouchNPC:
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -876,7 +876,7 @@ OnTouchNPC:
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -891,7 +891,7 @@ OnTouchNPC:
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -1748,11 +1748,11 @@ p_track02,76,38,1 script Exit Guide#double 4_M_NFMAN,{
- script mob1#main FAKE_NPC,{
function MN;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
setarray .@mob[1], R_PORING,R_LUNATIC,R_SAVAGE_BABE,R_DESERT_WOLF_B,R_DEVIRUCHI,R_BAPHOMET_;
getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC);
.@num = MN();
- monster "p_track02",58,.@y,"Monster "+.@num,.@mob[.@num],1,strnpcinfo(0)+"::OnMyMobDead";
+ monster "p_track02",58,.@y,"Monster "+.@num,.@mob[.@num],1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnTouchNPC:
@@ -1762,7 +1762,7 @@ OnTouchNPC:
specialeffect EF_MVP;
mapannounce "p_track02","Monster "+.@i+" has reached the Finish Line!",bc_map,"0x66FFCC";
$@mon_race_2_1 = .@i;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
} else {
emotion e_lv;
specialeffect EF_MVP;
@@ -1784,19 +1784,19 @@ OnMyMobDead:
end;
OnDisable:
- killmonster "p_track02",strnpcinfo(0)+"::OnMyMobDead";
- disablenpc strnpcinfo(0);
+ killmonster "p_track02",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnInit:
- if (strnpcinfo(2) != "main")
- disablenpc strnpcinfo(0);
+ if (strnpcinfo(NPC_NAME_HIDDEN) != "main")
+ disablenpc strnpcinfo(NPC_NAME);
end;
function MN {
setarray .@n$[1], "poring","lunatic","savagebebe","desertwolf","deviruchi","baphomet";
for (.@i = 1; .@i <= getarraysize(.@n$); ++.@i) {
- if (compare(strnpcinfo(0),.@n$[.@i]))
+ if (compare(strnpcinfo(NPC_NAME),.@n$[.@i]))
break;
}
return .@i;
@@ -1894,14 +1894,14 @@ OnTouchNPC:
OnDisable:
for(.@i = 1; .@i < 7; ++.@i) {
- disablenpc "Luk#"+strnpcinfo(2)+"_"+.@i;
- disablenpc "Tire#"+strnpcinfo(2)+"_"+.@i;
+ disablenpc "Luk#"+strnpcinfo(NPC_NAME_HIDDEN)+"_"+.@i;
+ disablenpc "Tire#"+strnpcinfo(NPC_NAME_HIDDEN)+"_"+.@i;
}
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
diff --git a/npc/other/pvp.txt b/npc/other/pvp.txt
index e98af4ec9..28a925d14 100644
--- a/npc/other/pvp.txt
+++ b/npc/other/pvp.txt
@@ -166,11 +166,11 @@
mes "Position successfully saved...";
mes "Thank you very much!";
mes "We will see you again soon.";
- if(strnpcinfo(4) == "morocc_in") { savepoint "morocc_in",141,139; }
- if(strnpcinfo(4) == "alberta_in") { savepoint "alberta_in",22,148; }
- if(strnpcinfo(4) == "prt_in") { savepoint "prt_in",54,137; }
- if(strnpcinfo(4) == "geffen_in") { savepoint "geffen_in",70,59; }
- if(strnpcinfo(4) == "payon_in01") { savepoint "payon_in01",142,46; }
+ if(strnpcinfo(NPC_MAP) == "morocc_in") { savepoint "morocc_in",141,139; }
+ if(strnpcinfo(NPC_MAP) == "alberta_in") { savepoint "alberta_in",22,148; }
+ if(strnpcinfo(NPC_MAP) == "prt_in") { savepoint "prt_in",54,137; }
+ if(strnpcinfo(NPC_MAP) == "geffen_in") { savepoint "geffen_in",70,59; }
+ if(strnpcinfo(NPC_MAP) == "payon_in01") { savepoint "payon_in01",142,46; }
break;
case 5:
mes "[PVP Narrator]";
@@ -307,8 +307,8 @@ function script F_PVP_FSRS {
close;
}
}
- if (strnpcinfo(4) == "pvp_y_room") {
- .@base$ = "pvp_y_"+strnpcinfo(2);
+ if (strnpcinfo(NPC_MAP) == "pvp_y_room") {
+ .@base$ = "pvp_y_"+strnpcinfo(NPC_NAME_HIDDEN);
setarray .@maps$[0], .@base$+"-1", .@base$+"-2", .@base$+"-3", .@base$+"-4", .@base$+"-5";
setarray .@name$[0], "Prontera", "Izlude", "Payon", "Alberta", "Morroc";
setarray .@Limit[0], 128, 128, 128, 128, 128;
diff --git a/npc/other/turbo_track.txt b/npc/other/turbo_track.txt
index bb9149834..bd6d4df8a 100644
--- a/npc/other/turbo_track.txt
+++ b/npc/other/turbo_track.txt
@@ -40,8 +40,8 @@
//=========================================================================
function script F_tt {
- if (compare(strnpcinfo(2),"main")) end;
- .@w$ = (charat(strnpcinfo(4),6))+((getstrlen(strnpcinfo(4)) > 9)?(substr(strnpcinfo(4),8,9)):(charat(strnpcinfo(4),getstrlen(strnpcinfo(4))-1)));
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"main")) end;
+ .@w$ = (charat(strnpcinfo(NPC_MAP),6))+((getstrlen(strnpcinfo(NPC_MAP)) > 9)?(substr(strnpcinfo(NPC_MAP),8,9)):(charat(strnpcinfo(NPC_MAP),getstrlen(strnpcinfo(NPC_MAP))-1)));
return .@w$;
}
@@ -49,36 +49,36 @@ function script F_tt {
end;
OnEnable:
- enablenpc strnpcinfo(0);
- enablewaitingroomevent strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
+ enablewaitingroomevent strnpcinfo(NPC_NAME);
end;
OnStartArena:
- if (compare(strnpcinfo(2),"n1")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"n1")) {
.@in$ = "n";
.@in = 1;
} else {
- .@in$ = (compare(strnpcinfo(1),"Expert"))?"e":"n";
- if (compare(strnpcinfo(1),"4")) .@in = 4;
- if (compare(strnpcinfo(1),"8")) .@in = 8;
- if (compare(strnpcinfo(1),"16")) .@in = 16;
+ .@in$ = (compare(strnpcinfo(NPC_NAME_VISIBLE),"Expert"))?"e":"n";
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"4")) .@in = 4;
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"8")) .@in = 8;
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"16")) .@in = 16;
}
warpwaitingpc "turbo_"+.@in$+"_"+.@in,298,161;
donpcevent "Broadcast#"+.@in$+.@in+"::OnEnable";
- disablewaitingroomevent strnpcinfo(0);
+ disablewaitingroomevent strnpcinfo(NPC_NAME);
end;
OnInit:
- if (compare(strnpcinfo(0),"main")) end;
- if (compare(strnpcinfo(2),"n1")) {
+ if (compare(strnpcinfo(NPC_NAME),"main")) end;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"n1")) {
waitingroom "Solo Mode",60,"Solo Mode#n1::OnStartArena",1;
} else {
- if (compare(strnpcinfo(1),"4")) .@in = 4;
- if (compare(strnpcinfo(1),"8")) .@in = 8;
- if (compare(strnpcinfo(1),"16")) .@in = 16;
- waitingroom strnpcinfo(1),60,strnpcinfo(0)+"::OnStartArena",.@in,1000,10,99;
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"4")) .@in = 4;
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"8")) .@in = 8;
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"16")) .@in = 16;
+ waitingroom strnpcinfo(NPC_NAME_VISIBLE),60,strnpcinfo(NPC_NAME)+"::OnStartArena",.@in,1000,10,99;
}
- enablewaitingroomevent strnpcinfo(0);
+ enablewaitingroomevent strnpcinfo(NPC_NAME);
end;
}
turbo_room,110,135,3 duplicate(entrance#tt_main) Expert mode - 4 person 4_F_TELEPORTER
@@ -113,10 +113,10 @@ turbo_e_4,298,167,0 script Point#tt_main FAKE_NPC,15,15,{
OnTouch:
if (tt_point < 28999) {
tt_point += 2;
- warp strnpcinfo(4),59,364;
+ warp strnpcinfo(NPC_MAP),59,364;
}
else
- warp strnpcinfo(4),59,364;
+ warp strnpcinfo(NPC_MAP),59,364;
end;
OnInit:
@@ -140,55 +140,55 @@ OnEnable:
end;
OnTimer2000:
- mapannounce strnpcinfo(4),"You are now in the Waiting Room where you can check your items and prepare for the race.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You are now in the Waiting Room where you can check your items and prepare for the race.",bc_map,"0x33FF66";
end;
OnTimer7000:
- mapannounce strnpcinfo(4),"You will have 30 seconds before you are transported to the Starting Line.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You will have 30 seconds before you are transported to the Starting Line.",bc_map,"0x33FF66";
end;
OnTimer10000:
- mapannounce strnpcinfo(4),"Please make sure that you have suitable equipment and items with you.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Please make sure that you have suitable equipment and items with you.",bc_map,"0x33FF66";
end;
OnTimer15000:
- mapannounce strnpcinfo(4),"The 30 second countdown will begin shortly.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"The 30 second countdown will begin shortly.",bc_map,"0x33FF66";
end;
OnTimer17000:
- mapannounce strnpcinfo(4),"30 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"30 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer27000:
- mapannounce strnpcinfo(4),"20 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"20 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer37000:
- mapannounce strnpcinfo(4),"10 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"10 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer42000:
- mapannounce strnpcinfo(4),"5 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"5 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer43000:
- mapannounce strnpcinfo(4),"4 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"4 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer44000:
- mapannounce strnpcinfo(4),"3 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"3 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer45000:
- mapannounce strnpcinfo(4),"2 seconds remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"2 seconds remaining.",bc_map,"0x33FF66";
end;
OnTimer46000:
- mapannounce strnpcinfo(4),"1 second remaining.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"1 second remaining.",bc_map,"0x33FF66";
end;
OnTimer47000:
- mapannounce strnpcinfo(4),"You will be transported to the Starting Line shortly.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You will be transported to the Starting Line shortly.",bc_map,"0x33FF66";
end;
OnTimer49000:
@@ -201,7 +201,7 @@ OnTimer50000:
.@w$ = callfunc("F_tt");
donpcevent "snake#"+.@w$+"::OnEnable";
donpcevent "hunting#"+.@w$+"::OnEnable";
- if (strnpcinfo(4) != "turbo_n_1") enablenpc "bing#"+.@w$;
+ if (strnpcinfo(NPC_MAP) != "turbo_n_1") enablenpc "bing#"+.@w$;
end;
OnTimer57000:
@@ -237,164 +237,164 @@ OnDisable:
end;
OnTimer7000:
- mapannounce strnpcinfo(4),"Welcome to the Turbo Track.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Welcome to the Turbo Track.",bc_map,"0x33FF66";
end;
OnTimer9000:
- mapannounce strnpcinfo(4),"The game will be hosted for 15 minutes and at least one person must complete the entire course.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"The game will be hosted for 15 minutes and at least one person must complete the entire course.",bc_map,"0x33FF66";
end;
OnTimer11000:
- mapannounce strnpcinfo(4),"We hope you will do your best.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"We hope you will do your best.",bc_map,"0x33FF66";
end;
OnTimer13000:
- mapannounce strnpcinfo(4),"The game will begin after a 5 second countdown. Everyone, please take your positions behind the Starting Line.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"The game will begin after a 5 second countdown. Everyone, please take your positions behind the Starting Line.",bc_map,"0x33FF66";
end;
OnTimer15000:
- mapannounce strnpcinfo(4),"The countdown will commence shortly.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"The countdown will commence shortly.",bc_map,"0x33FF66";
end;
OnTimer17000:
- mapannounce strnpcinfo(4),"- 5 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 5 -",bc_map,"0x33FF66";
end;
OnTimer18000:
- mapannounce strnpcinfo(4),"- 4 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 4 -",bc_map,"0x33FF66";
end;
OnTimer19000:
- mapannounce strnpcinfo(4),"- 3 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 3 -",bc_map,"0x33FF66";
end;
OnTimer20000:
- mapannounce strnpcinfo(4),"- 2 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 2 -",bc_map,"0x33FF66";
end;
OnTimer21000:
- mapannounce strnpcinfo(4),"- 1 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 1 -",bc_map,"0x33FF66";
end;
OnTimer22000:
- mapannounce strnpcinfo(4),"- 0 -",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"- 0 -",bc_map,"0x33FF66";
end;
OnTimer23000:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),"Now! The race has begun! Go Go Go!!",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Now! The race has begun! Go Go Go!!",bc_map,"0x33FF66";
disablenpc "No_Unfair_Start#"+.@w$+"-1";
disablenpc "No_Unfair_Start#"+.@w$+"-2";
- if (strnpcinfo(4) == "turbo_n_1") $@start_time = gettimetick(0);
+ if (strnpcinfo(NPC_MAP) == "turbo_n_1") $@start_time = gettimetick(0);
end;
OnTimer30000:
- mapannounce strnpcinfo(4),"Remember that this is a 15 minute race. After 15 minutes, everyone will be transported out of the race track.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Remember that this is a 15 minute race. After 15 minutes, everyone will be transported out of the race track.",bc_map,"0x33FF66";
end;
OnTimer83000:
- mapannounce strnpcinfo(4),"You have 14 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 14 minutes left.",bc_map,"0x33FF66";
end;
OnTimer143000:
- mapannounce strnpcinfo(4),"You have 13 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 13 minutes left.",bc_map,"0x33FF66";
end;
OnTimer203000:
- mapannounce strnpcinfo(4),"You have 12 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 12 minutes left.",bc_map,"0x33FF66";
end;
OnTimer263000:
- mapannounce strnpcinfo(4),"You have 11 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 11 minutes left.",bc_map,"0x33FF66";
end;
OnTimer323000:
- mapannounce strnpcinfo(4),"You have 10 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 10 minutes left.",bc_map,"0x33FF66";
end;
OnTimer383000:
- mapannounce strnpcinfo(4),"You have 9 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 9 minutes left.",bc_map,"0x33FF66";
end;
OnTimer443000:
- mapannounce strnpcinfo(4),"You have 8 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 8 minutes left.",bc_map,"0x33FF66";
end;
OnTimer503000:
- mapannounce strnpcinfo(4),"You have 7 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 7 minutes left.",bc_map,"0x33FF66";
end;
OnTimer563000:
- mapannounce strnpcinfo(4),"You have 6 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 6 minutes left.",bc_map,"0x33FF66";
end;
OnTimer623000:
- mapannounce strnpcinfo(4),"You have 5 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 5 minutes left.",bc_map,"0x33FF66";
end;
OnTimer683000:
- mapannounce strnpcinfo(4),"You have 4 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 4 minutes left.",bc_map,"0x33FF66";
end;
OnTimer743000:
- mapannounce strnpcinfo(4),"You have 3 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 3 minutes left.",bc_map,"0x33FF66";
end;
OnTimer803000:
- mapannounce strnpcinfo(4),"You have 2 minutes left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 2 minutes left.",bc_map,"0x33FF66";
end;
OnTimer863000:
- mapannounce strnpcinfo(4),"You have 1 minute left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 1 minute left.",bc_map,"0x33FF66";
end;
OnTimer893000:
- mapannounce strnpcinfo(4),"You have 30 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 30 seconds left.",bc_map,"0x33FF66";
end;
OnTimer903000:
- mapannounce strnpcinfo(4),"You have 20 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 20 seconds left.",bc_map,"0x33FF66";
end;
OnTimer913000:
- mapannounce strnpcinfo(4),"You have 10 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 10 seconds left.",bc_map,"0x33FF66";
end;
OnTimer918000:
- mapannounce strnpcinfo(4),"You have 5 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 5 seconds left.",bc_map,"0x33FF66";
end;
OnTimer919000:
- mapannounce strnpcinfo(4),"You have 4 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 4 seconds left.",bc_map,"0x33FF66";
end;
OnTimer920000:
- mapannounce strnpcinfo(4),"You have 3 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 3 seconds left.",bc_map,"0x33FF66";
end;
OnTimer921000:
- mapannounce strnpcinfo(4),"You have 2 seconds left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 2 seconds left.",bc_map,"0x33FF66";
end;
OnTimer922000:
- mapannounce strnpcinfo(4),"You have 1 second left.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"You have 1 second left.",bc_map,"0x33FF66";
end;
OnTimer923000:
- mapannounce strnpcinfo(4),"Time's up!",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Time's up!",bc_map,"0x33FF66";
end;
OnTimer925000:
- mapannounce strnpcinfo(4),"The race is over.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"The race is over.",bc_map,"0x33FF66";
end;
OnTimer927000:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),"[Everyone will be transported to a Waiting Room.]",bc_map,"0x33FF66";
- mapwarp strnpcinfo(4),"turbo_room",71,89;
+ mapannounce strnpcinfo(NPC_MAP),"[Everyone will be transported to a Waiting Room.]",bc_map,"0x33FF66";
+ mapwarp strnpcinfo(NPC_MAP),"turbo_room",71,89;
disablenpc "Broadcast#"+.@w$;
donpcevent "Master#"+.@w$+"::OnDisable";
- if (strnpcinfo(4) == "turbo_n_1") {
+ if (strnpcinfo(NPC_MAP) == "turbo_n_1") {
donpcevent "Solo Mode#n1::OnEnable";
} else {
donpcevent RName(.@w$)+"::OnEnable";
@@ -421,7 +421,7 @@ OnInit:
function RName {
.@s = (getstrlen(getarg(0)) > 2)?(substr(getarg(0),1,2)):(charat(getarg(0),getstrlen(getarg(0))-1));
- .@rn$ = ((compare(strnpcinfo(4),"_e_"+.@s))?"Expert mode":"Normal mode")+" - "+.@s+" person";
+ .@rn$ = ((compare(strnpcinfo(NPC_MAP),"_e_"+.@s))?"Expert mode":"Normal mode")+" - "+.@s+" person";
return .@rn$;
}
}
@@ -435,7 +435,7 @@ turbo_n_1,167,3,0 duplicate(Master#tt_main) Master#n1 FAKE_NPC
- script NoUnfair#tt_main FAKE_NPC,{
OnTouch:
- warp strnpcinfo(4),59,364;
+ warp strnpcinfo(NPC_MAP),59,364;
end;
}
turbo_e_4,62,379,0 duplicate(NoUnfair#tt_main) No_Unfair_Start#e4-1 FAKE_NPC,0,31
@@ -456,9 +456,9 @@ turbo_n_1,68,379,5 duplicate(NoUnfair#tt_main) No_Unfair_Start#n1-2 FAKE_NPC,5,3
- script LogTrap#tt_main FAKE_NPC,{
OnTouch:
switch (rand(1,3)) {
- case 1: warp strnpcinfo(4),72,372; end;
- case 2: warp strnpcinfo(4),72,365; end;
- case 3: warp strnpcinfo(4),72,357; end;
+ case 1: warp strnpcinfo(NPC_MAP),72,372; end;
+ case 2: warp strnpcinfo(NPC_MAP),72,365; end;
+ case 3: warp strnpcinfo(NPC_MAP),72,357; end;
}
}
turbo_e_4,118,377,0 duplicate(LogTrap#tt_main) trap_a#e4-1 FAKE_NPC,44,1
@@ -1632,10 +1632,10 @@ turbo_n_1,236,3,0 duplicate(WaterTrap#tt_main) flasher#n1-48b FAKE_NPC,3,0
- script snake01#tt_main FAKE_NPC,{
OnTouch:
.@turbo2 = rand(1,7);
- if (.@turbo2 < 3) warp strnpcinfo(4),370,292;
- if (.@turbo2 < 5) warp strnpcinfo(4),295,293;
- if (.@turbo2 < 7) warp strnpcinfo(4),355,292;
- if (.@turbo2 < 8) warp strnpcinfo(4),279,292;
+ if (.@turbo2 < 3) warp strnpcinfo(NPC_MAP),370,292;
+ if (.@turbo2 < 5) warp strnpcinfo(NPC_MAP),295,293;
+ if (.@turbo2 < 7) warp strnpcinfo(NPC_MAP),355,292;
+ if (.@turbo2 < 8) warp strnpcinfo(NPC_MAP),279,292;
end;
}
turbo_e_4,324,279,0 duplicate(snake01#tt_main) snake01#e4 WARPNPC,1,1
@@ -1649,10 +1649,10 @@ turbo_n_1,324,279,0 duplicate(snake01#tt_main) snake01#n1 WARPNPC,1,1
- script snake02#tt_main FAKE_NPC,{
OnTouch:
.@turbo2 = rand(1,8);
- if (.@turbo2 < 3) warp strnpcinfo(4),287,256;
- if (.@turbo2 < 5) warp strnpcinfo(4),303,256;
- if (.@turbo2 < 7) warp strnpcinfo(4),347,256;
- if (.@turbo2 < 9) warp strnpcinfo(4),363,256;
+ if (.@turbo2 < 3) warp strnpcinfo(NPC_MAP),287,256;
+ if (.@turbo2 < 5) warp strnpcinfo(NPC_MAP),303,256;
+ if (.@turbo2 < 7) warp strnpcinfo(NPC_MAP),347,256;
+ if (.@turbo2 < 9) warp strnpcinfo(NPC_MAP),363,256;
end;
}
turbo_e_4,332,279,0 duplicate(snake02#tt_main) snake02#e4 WARPNPC,1,1
@@ -1666,10 +1666,10 @@ turbo_n_1,332,279,0 duplicate(snake02#tt_main) snake02#n1 WARPNPC,1,1
- script snake03#tt_main WARPNPC,1,1,{
OnTouch:
.@turbo2 = rand(1,8);
- if (.@turbo2 < 3) warp strnpcinfo(4),279,292;
- if (.@turbo2 < 5) warp strnpcinfo(4),311,292;
- if (.@turbo2 < 7) warp strnpcinfo(4),347,256;
- if (.@turbo2 < 9) warp strnpcinfo(4),370,292;
+ if (.@turbo2 < 3) warp strnpcinfo(NPC_MAP),279,292;
+ if (.@turbo2 < 5) warp strnpcinfo(NPC_MAP),311,292;
+ if (.@turbo2 < 7) warp strnpcinfo(NPC_MAP),347,256;
+ if (.@turbo2 < 9) warp strnpcinfo(NPC_MAP),370,292;
end;
}
turbo_e_4,324,270,0 duplicate(snake03#tt_main) snake03#e4 WARPNPC,1,1
@@ -1683,10 +1683,10 @@ turbo_n_1,324,270,0 duplicate(snake03#tt_main) snake03#n1 WARPNPC,1,1
- script snake04#tt_main WARPNPC,1,1,{
OnTouch:
.@turbo2 = rand(1,7);
- if (.@turbo2 < 3) warp strnpcinfo(4),363,256;
- if (.@turbo2 < 5) warp strnpcinfo(4),295,293;
- if (.@turbo2 < 7) warp strnpcinfo(4),355,292;
- if (.@turbo2 < 8) warp strnpcinfo(4),287,256;
+ if (.@turbo2 < 3) warp strnpcinfo(NPC_MAP),363,256;
+ if (.@turbo2 < 5) warp strnpcinfo(NPC_MAP),295,293;
+ if (.@turbo2 < 7) warp strnpcinfo(NPC_MAP),355,292;
+ if (.@turbo2 < 8) warp strnpcinfo(NPC_MAP),287,256;
end;
}
turbo_e_4,332,270,0 duplicate(snake04#tt_main) snake04#e4 WARPNPC,1,1
@@ -1701,14 +1701,14 @@ turbo_n_1,332,270,0 duplicate(snake04#tt_main) snake04#n1 WARPNPC,1,1
end;
OnReset:
- killmonsterall strnpcinfo(4);
+ killmonsterall strnpcinfo(NPC_MAP);
end;
OnEnable:
- if (compare(strnpcinfo(2),"snake")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"snake")) {
setarray .@n, 279,284,279,268,279,260,287,288,287,280,287,264,295,284,295,268,295,260,303,288,303,280,303,264,311,284,311,268,311,260,347,288,347,280,347,264,355,284,355,268,355,260,363,288,363,280,363,264,371,284,371,268,371,260,379,288,379,280,379,264;
for (.@i = 0; .@i < getarraysize(.@n); .@i += 2)
- monster strnpcinfo(4),.@n[.@i],.@n[.@i+1],"Archer Skeleton",1420,1;
+ monster strnpcinfo(NPC_MAP),.@n[.@i],.@n[.@i+1],"Archer Skeleton",1420,1;
} else {
setarray .@n_1$, "Munak","1610";
setarray .@n_1, 47,87,47,87,24,74,24,74,67,42,67,42,60,70,60,70,32,51,32,51,30,25,30,25,62,20,62,20,216,378,218,360,223,361,243,342,247,364;
@@ -1718,7 +1718,7 @@ OnEnable:
setarray .@n_3, 68,56,26,46;
while (.@c < 3) {
for (.@i = 0; .@i < getarraysize(getd(".@n_"+.@c)); .@i += 2)
- monster strnpcinfo(4),getd(".@n_"+.@c+"["+.@i+"]"),getd(".@n_"+.@c+"["+(.@i+1)+"]"),getd(".@n_"+.@c+"$[0]"),atoi(getd(".@n_"+.@c+"$[1]")),1;
+ monster strnpcinfo(NPC_MAP),getd(".@n_"+.@c+"["+.@i+"]"),getd(".@n_"+.@c+"["+(.@i+1)+"]"),getd(".@n_"+.@c+"$[0]"),atoi(getd(".@n_"+.@c+"$[1]")),1;
++.@c;
}
}
@@ -1738,41 +1738,41 @@ turbo_n_1,90,46,0 duplicate(SnakeHunt#tt_main) hunting#n1 HIDDEN_NPC
- script cos#tt_main FAKE_NPC,{
OnTouch:
- .@n = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@n = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
switch (.@n) {
case 1:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Log Bridge course!",bc_map,"0x70DBDB";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Log Bridge course!",bc_map,"0x70DBDB";
switch (rand(1,3)) {
- case 1: warp strnpcinfo(4),210,369; end;
- case 2: warp strnpcinfo(4),210,361; end;
- case 3: warp strnpcinfo(4),210,354; end;
+ case 1: warp strnpcinfo(NPC_MAP),210,369; end;
+ case 2: warp strnpcinfo(NPC_MAP),210,361; end;
+ case 3: warp strnpcinfo(NPC_MAP),210,354; end;
}
case 2:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Cube Hills course!",bc_map,"0x70DBDB";
- warp strnpcinfo(4),316,365;
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Cube Hills course!",bc_map,"0x70DBDB";
+ warp strnpcinfo(NPC_MAP),316,365;
end;
case 3:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Cursed Desert!",bc_map,"0x70DBDB";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Cursed Desert!",bc_map,"0x70DBDB";
switch (rand(1,4)) {
- case 1: warp strnpcinfo(4),46,254; end;
- case 2: warp strnpcinfo(4),76,227; end;
- case 3: warp strnpcinfo(4),42,197; end;
- case 4: warp strnpcinfo(4),86,220; end;
+ case 1: warp strnpcinfo(NPC_MAP),46,254; end;
+ case 2: warp strnpcinfo(NPC_MAP),76,227; end;
+ case 3: warp strnpcinfo(NPC_MAP),42,197; end;
+ case 4: warp strnpcinfo(NPC_MAP),86,220; end;
}
case 5:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Single Snail course!",bc_map,"0x70DBDB";
- warp strnpcinfo(4),268,275;
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Single Snail course!",bc_map,"0x70DBDB";
+ warp strnpcinfo(NPC_MAP),268,275;
end;
case 6:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Snake Dice course!",bc_map,"0x70DBDB";
- warp strnpcinfo(4),5,91;
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Snake Dice course!",bc_map,"0x70DBDB";
+ warp strnpcinfo(NPC_MAP),5,91;
end;
case 7:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Small Cave course! Hurry, you're almost at the finish!",bc_map,"0x70DBDB";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Small Cave course! Hurry, you're almost at the finish!",bc_map,"0x70DBDB";
switch(rand(1,3)) {
- case 1: warp strnpcinfo(4),307,52; end;
- case 2: warp strnpcinfo(4),307,46; end;
- case 3: warp strnpcinfo(4),307,40; end;
+ case 1: warp strnpcinfo(NPC_MAP),307,52; end;
+ case 2: warp strnpcinfo(NPC_MAP),307,46; end;
+ case 3: warp strnpcinfo(NPC_MAP),307,40; end;
}
}
}
@@ -1943,12 +1943,12 @@ turbo_n_1,222,65,0 duplicate(TurboHint_4#tt_main) #n1NoWayOut7 FAKE_NPC,1,1
OnTouch:
.@w$ = callfunc("F_tt");
if (.@w$ == "n1") $@end_time = gettimetick(0);
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just arrived at the Finish Line! Congratulations!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just arrived at the Finish Line! Congratulations!",bc_map,"0xFFFF00";
if (.@w$ != "n1") {
setd "$ttnames$["+GetNumber(.@w$)+"]",strcharinfo(0);
donpcevent "Turbo Track Guide::OnWin_"+.@w$;
}
- warp strnpcinfo(4),384,161;
+ warp strnpcinfo(NPC_MAP),384,161;
if (.@w$ == "e4" || .@w$ == "n4" || .@w$ == "n1") {
if (.@w$ == "e4") {
donpcevent "Winner Helper#TBT_"+.@w$+"::OnEnable";
@@ -1961,7 +1961,7 @@ OnTouch:
if (.@w$ == "e8" || .@w$ == "n8") setarray .@pts, 28951,50;
if (.@w$ == "e16" || .@w$ == "n16") setarray .@pts, 28941,60;
if (tt_point < .@pts[0]) tt_point += .@pts[1];
- warp strnpcinfo(4),384,161;
+ warp strnpcinfo(NPC_MAP),384,161;
enablenpc "Winner Helper#TBT_"+.@w$;
enablenpc "#cos_"+.@w$+"_end2";
}
@@ -1992,7 +1992,7 @@ turbo_n_1,371,47,0 duplicate(cos_end#tt_main) #cos_n1_end WARPNPC,1,1
- script cos_end2#tt_main WARPNPC,1,1,{
OnTouch:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),strcharinfo(0) +" is second to reach the Finish Line! Congratulations!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" is second to reach the Finish Line! Congratulations!",bc_map,"0xFFFF00";
if (.@w$ == "e8" || .@w$ == "n8") setarray .@pts, 28961,40;
if (.@w$ == "e16" || .@w$ == "n16") setarray .@pts, 28951,50;
if (tt_points < .@pts[0]) tt_point += .@pts[1];
@@ -2014,7 +2014,7 @@ turbo_n_16,371,51,0 duplicate(cos_end2#tt_main) #cos_n16_end2 WARPNPC,1,1
- script cos_end3#tt_main FAKE_NPC,{
OnTouch:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),"" + strcharinfo(0) +" is third to reach the Finish Line! Congratulations!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),"" + strcharinfo(0) +" is third to reach the Finish Line! Congratulations!",bc_map,"0xFFFF00";
if (.@w$ == "e8" || .@w$ == "n8") setarray .@pts, 28971,30;
if (.@w$ == "e16" || .@w$ == "n16") setarray .@pts, 28951,50;
if (tt_point < .@pts[0]) tt_point += .@pts[1];
@@ -2055,13 +2055,13 @@ turbo_n_1,316,365,0 duplicate(DSwitch#tt_main) Disposable_Switch#n1 FAKE_NPC,1,1
- script Flasher#tt_main FAKE_NPC,{
OnTouch:
- mapannounce strnpcinfo(4),strcharinfo(0) +" has just passed the Flasher Maze!",bc_map,"0x70DBDB";
- warp strnpcinfo(4),185,227;
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" has just passed the Flasher Maze!",bc_map,"0x70DBDB";
+ warp strnpcinfo(NPC_MAP),185,227;
end;
OnInit:
.@w$ = callfunc("F_tt");
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
turbo_e_4,11,266,0 duplicate(Flasher#tt_main) Flasher_Exit_1#e4 WARPNPC,1,1
@@ -2390,105 +2390,105 @@ OnEnable:
OnTimer4000:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),"This is the ending broadcast for Turbo Track "+RName(.@w$)+".",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"This is the ending broadcast for Turbo Track "+RName(.@w$)+".",bc_map,"0x33FF66";
end;
OnTimer8000:
- mapannounce strnpcinfo(4),"For smooth game play, the game will end in approximately 1 minute.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"For smooth game play, the game will end in approximately 1 minute.",bc_map,"0x33FF66";
end;
OnTimer12000:
- mapannounce strnpcinfo(4),"At that time, a Warp portal will open.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"At that time, a Warp portal will open.",bc_map,"0x33FF66";
end;
OnTimer16000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"Players in the arena must be ready to leave through the Warp Portal.",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Players in the arena must be ready to leave through the Warp Portal.",bc_map,"0x33FF66";
end;
OnTimer20000:
.@w$ = callfunc("F_tt");
if (compare(.@w$,"4"))
- mapannounce strnpcinfo(4),"In the meantime, winners must proceed to receive their rewards as soon as possible.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"In the meantime, winners must proceed to receive their rewards as soon as possible.",bc_map,"0x33FF66";
else
- mapannounce strnpcinfo(4),"Players within the arena must be in ready to enter the warp.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Players within the arena must be in ready to enter the warp.",bc_map,"0x33FF66";
end;
OnTimer24000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
end;
OnTimer25000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"In the meantime, winners must procceed to receive their rewards as soon as possible.",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"In the meantime, winners must procceed to receive their rewards as soon as possible.",bc_map,"0x33FF66";
end;
OnTimer28000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
end;
OnTimer30000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
OnTimer32000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
end;
OnTimer35000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
end;
OnTimer36000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
end;
OnTimer40000:
.@w$ = callfunc("F_tt");
if (compare(.@w$,"4"))
- mapannounce strnpcinfo(4),"[Blacksmith Union]",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"[Blacksmith Union]",bc_map,"0x33FF66";
else
- mapannounce strnpcinfo(4),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
end;
OnTimer44000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"And [Comodo Casino].",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"And [Comodo Casino].",bc_map,"0x33FF66";
end;
OnTimer45000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
end;
OnTimer48000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
end;
OnTimer50000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"[Blacksmith Union]",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"[Blacksmith Union]",bc_map,"0x33FF66";
end;
OnTimer52000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapannounce strnpcinfo(4),"Have a good day.",bc_map,"0x33FF66";
+ if (compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Have a good day.",bc_map,"0x33FF66";
end;
OnTimer55000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"And [Comodo Casino].",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"And [Comodo Casino].",bc_map,"0x33FF66";
end;
OnTimer58000:
.@w$ = callfunc("F_tt");
- if (compare(.@w$,"4")) mapwarp strnpcinfo(4),"turbo_room",72,89;
+ if (compare(.@w$,"4")) mapwarp strnpcinfo(NPC_MAP),"turbo_room",72,89;
end;
OnTimer60000:
@@ -2509,18 +2509,18 @@ OnTimer60000:
enablenpc "#cos_"+.@w$+"_end";
stopnpctimer;
} else {
- mapannounce strnpcinfo(4),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
}
end;
OnTimer65000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapannounce strnpcinfo(4),"Have a good day.",bc_map,"0x33FF66";
+ if (!compare(.@w$,"4")) mapannounce strnpcinfo(NPC_MAP),"Have a good day.",bc_map,"0x33FF66";
end;
OnTimer70000:
.@w$ = callfunc("F_tt");
- if (!compare(.@w$,"4")) mapwarp strnpcinfo(4),"turbo_room",72,89;
+ if (!compare(.@w$,"4")) mapwarp strnpcinfo(NPC_MAP),"turbo_room",72,89;
end;
OnTimer71000:
@@ -2548,7 +2548,7 @@ OnTimer71000:
function RName {
.@s = (getstrlen(getarg(0)) > 2)?(substr(getarg(0),1,2)):(charat(getarg(0),getstrlen(getarg(0))-1));
- .@rn$ = ((compare(strnpcinfo(4),"_e_"+.@s))?"Expert mode":"Normal mode")+" - "+.@s+" person";
+ .@rn$ = ((compare(strnpcinfo(NPC_MAP),"_e_"+.@s))?"Expert mode":"Normal mode")+" - "+.@s+" person";
return .@rn$;
}
@@ -2700,59 +2700,59 @@ OnEnable:
end;
OnTimer4000:
- mapannounce strnpcinfo(4),"This is the ending broadcast of Turbo Track Solo Mode.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"This is the ending broadcast of Turbo Track Solo Mode.",bc_map,"0x33FF66";
end;
OnTimer8000:
- mapannounce strnpcinfo(4),"For smooth game play, the game will end in approximately 1 minute from now.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"For smooth game play, the game will end in approximately 1 minute from now.",bc_map,"0x33FF66";
end;
OnTimer12000:
- mapannounce strnpcinfo(4),"At this time, the warp portal will open.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"At this time, the warp portal will open.",bc_map,"0x33FF66";
end;
OnTimer16000:
- mapannounce strnpcinfo(4),"Players within the arena must be ready for this.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Players within the arena must be ready for this.",bc_map,"0x33FF66";
end;
OnTimer20000:
- mapannounce strnpcinfo(4),"In the meantime, the winner must procceed to receive rewards as soon as possible.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"In the meantime, the winner must procceed to receive rewards as soon as possible.",bc_map,"0x33FF66";
end;
OnTimer24000:
- mapannounce strnpcinfo(4),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Thank you for visiting Al De Baran Turbo Track.",bc_map,"0x33FF66";
end;
OnTimer28000:
- mapannounce strnpcinfo(4),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Al De Baran Turbo Track is brought to you by...",bc_map,"0x33FF66";
end;
OnTimer32000:
- mapannounce strnpcinfo(4),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Kafra Corporation Headquarters]",bc_map,"0x33FF66";
end;
OnTimer36000:
- mapannounce strnpcinfo(4),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"[Al De Baran Guild Castle Management Luina]",bc_map,"0x33FF66";
end;
OnTimer40000:
- mapannounce strnpcinfo(4),"[Blacksmith Union]",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"[Blacksmith Union]",bc_map,"0x33FF66";
end;
OnTimer44000:
- mapannounce strnpcinfo(4),"And [Comodo Casino].",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"And [Comodo Casino].",bc_map,"0x33FF66";
end;
OnTimer48000:
- mapannounce strnpcinfo(4),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Once again, we'd like to thank our sponsors.",bc_map,"0x33FF66";
end;
OnTimer52000:
- mapannounce strnpcinfo(4),"Have a good day.",bc_map,"0x33FF66";
+ mapannounce strnpcinfo(NPC_MAP),"Have a good day.",bc_map,"0x33FF66";
end;
OnTimer56000:
- mapwarp strnpcinfo(4),"turbo_room",72,89;
+ mapwarp strnpcinfo(NPC_MAP),"turbo_room",72,89;
end;
OnTimer60000:
@@ -2782,7 +2782,7 @@ OnInit:
- script NMaker1#tt_main FAKE_NPC,{
OnTouch:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),strcharinfo(0) +" is now entering the Small Cave! " + strcharinfo(0) +" is now in the lead!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" is now entering the Small Cave! " + strcharinfo(0) +" is now in the lead!",bc_map,"0xFFFF00";
donpcevent "Turbo Track Guide::OnEnd_"+.@w$;
disablenpc "Notice_Maker1#TBT_"+.@w$;
end;
@@ -2803,7 +2803,7 @@ turbo_n_1,11,91,0 duplicate(NMaker1#tt_main) Notice_Maker1#TBT_n1 FAKE_NPC,3,3
- script NMaker3#tt_main FAKE_NPC,{
OnTouch:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),strcharinfo(0) +" is now entering the Single Snail! " + strcharinfo(0) +" is now in the lead!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" is now entering the Single Snail! " + strcharinfo(0) +" is now in the lead!",bc_map,"0xFFFF00";
disablenpc "Notice_Maker3#TBT_"+.@w$;
end;
@@ -2823,7 +2823,7 @@ turbo_n_1,234,223,0 duplicate(NMaker3#tt_main) Notice_Maker3#TBT_n1 FAKE_NPC,3,3
- script NMaker4#tt_main FAKE_NPC,{
OnTouch:
.@w$ = callfunc("F_tt");
- mapannounce strnpcinfo(4),strcharinfo(0) +" is currently in First Place!",bc_map,"0xFFFF00";
+ mapannounce strnpcinfo(NPC_MAP),strcharinfo(0) +" is currently in First Place!",bc_map,"0xFFFF00";
disablenpc "Notice_Maker4#TBT_"+.@w$;
end;
@@ -2844,11 +2844,11 @@ turbo_n_1,226,15,0 duplicate(NMaker4#tt_main) Notice_Maker4#TBT_n1 FAKE_NPC,3,3
- script warp#tt_main FAKE_NPC,{
OnTouch:
switch (rand(1,20)) {
- case 1: warp strnpcinfo(4),216,378; break;
- case 2: warp strnpcinfo(4),218,360; break;
- case 3: warp strnpcinfo(4),223,361; break;
- case 4: warp strnpcinfo(4),243,342; break;
- case 5: warp strnpcinfo(4),247,364; break;
+ case 1: warp strnpcinfo(NPC_MAP),216,378; break;
+ case 2: warp strnpcinfo(NPC_MAP),218,360; break;
+ case 3: warp strnpcinfo(NPC_MAP),223,361; break;
+ case 4: warp strnpcinfo(NPC_MAP),243,342; break;
+ case 5: warp strnpcinfo(NPC_MAP),247,364; break;
default: break;
}
end;
@@ -3612,15 +3612,15 @@ OnTouch:
.@w$ = callfunc("F_tt");
.@bing1 = rand(1,10);
if (.@bing1 > 0 && .@bing1 < 4)
- warp strnpcinfo(4),217,232;
+ warp strnpcinfo(NPC_MAP),217,232;
else if (.@bing1 == 6)
- warp strnpcinfo(4),233,207;
+ warp strnpcinfo(NPC_MAP),233,207;
else if (.@bing1 == 7)
- warp strnpcinfo(4),208,219;
+ warp strnpcinfo(NPC_MAP),208,219;
else if (.@bing1 == 8)
- warp strnpcinfo(4),219,202;
+ warp strnpcinfo(NPC_MAP),219,202;
else if (.@bing1 == 9)
- warp strnpcinfo(4),218,228;
+ warp strnpcinfo(NPC_MAP),218,228;
disablenpc "bing#"+.@w$;
enablenpc "bing2#"+.@w$;
end;
@@ -3636,12 +3636,12 @@ turbo_n_16,217,214,0 duplicate(bing_1#tt_main) bing#n16 WARPNPC,3,3
end;
OnTouch:
switch (rand(1,10)) {
- case 1: warp strnpcinfo(4),217,232; break;
- case 2: warp strnpcinfo(4),233,207; break;
- case 3: warp strnpcinfo(4),208,219; break;
- case 4: warp strnpcinfo(4),219,202; break;
- case 5: warp strnpcinfo(4),218,228; break;
- case 6: warp strnpcinfo(4),220,195; break;
+ case 1: warp strnpcinfo(NPC_MAP),217,232; break;
+ case 2: warp strnpcinfo(NPC_MAP),233,207; break;
+ case 3: warp strnpcinfo(NPC_MAP),208,219; break;
+ case 4: warp strnpcinfo(NPC_MAP),219,202; break;
+ case 5: warp strnpcinfo(NPC_MAP),218,228; break;
+ case 6: warp strnpcinfo(NPC_MAP),220,195; break;
default: break;
}
end;
@@ -4703,7 +4703,7 @@ alde_gld,186,199,3 script Turbo Track Guide#Entran 4_F_RACING,{
}
- script ::MountManager_turbo FAKE_NPC,{
- .@n$ = "["+strnpcinfo(1)+"]";
+ .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes .@n$;
if (hascashmount()) {
mes "Please get off of that creature you're riding on.";
diff --git a/npc/pre-re/jobs/novice/novice.txt b/npc/pre-re/jobs/novice/novice.txt
index 369e98c4e..afea49143 100644
--- a/npc/pre-re/jobs/novice/novice.txt
+++ b/npc/pre-re/jobs/novice/novice.txt
@@ -2661,7 +2661,7 @@ new_1-3,95,30,4 script Trainer#nv1::NovHoffman 4_M_02,{
mes "I see, then let me guide";
mes "you to a training ground that has stronger monsters. May God be with you...";
next;
- if (strnpcinfo(2) == "nv1") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "nv1") {
if (rand(2)) {
warp "new_2-3",96,21;
}
@@ -2681,7 +2681,7 @@ new_1-3,95,30,4 script Trainer#nv1::NovHoffman 4_M_02,{
mes "be careful, it can get";
mes "pretty difficult...";
next;
- if (strnpcinfo(2) == "nv1" || strnpcinfo(2) == "nv2" || strnpcinfo(2) == "nv3") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "nv1" || strnpcinfo(NPC_NAME_HIDDEN) == "nv2" || strnpcinfo(NPC_NAME_HIDDEN) == "nv3") {
if (rand(2)) {
warp "new_4-3",96,21;
}
diff --git a/npc/quests/guildrelay.txt b/npc/quests/guildrelay.txt
index 3d3358005..81e38b299 100644
--- a/npc/quests/guildrelay.txt
+++ b/npc/quests/guildrelay.txt
@@ -38,30 +38,30 @@
//== Floating NPCs to duplicate from. ======================
- script RelayDummy1::GuildRelay1 4_M_SAGE_A,{
- .@name$ = strnpcinfo(1);
+ .@name$ = strnpcinfo(NPC_NAME_VISIBLE);
if (.@name$ == "Buzz") {
.@name2$ = "Lenya";
.@name3$ = "Gealuve";
.@name4$ = "Pariz";
- .@GID = getcastledata("aldeg_cas"+strnpcinfo(2),1);
+ .@GID = getcastledata("aldeg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1);
}
else if (.@name$ == "Jody") {
.@name2$ = "Ron Haware";
.@name3$ = "Vers";
.@name4$ = "Gen Garish";
- .@GID = getcastledata("gefg_cas"+strnpcinfo(2),1);
+ .@GID = getcastledata("gefg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1);
}
else if (.@name$ == "Chungye") {
.@name2$ = "Dosuhlji";
.@name3$ = "Yayula";
.@name4$ = "Ashin";
- .@GID = getcastledata("payg_cas"+strnpcinfo(2),1);
+ .@GID = getcastledata("payg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1);
}
else if (.@name$ == "Hermod") {
.@name2$ = "Atila";
.@name3$ = "Cecil";
.@name4$ = "Diligo";
- .@GID = getcastledata("prtg_cas"+strnpcinfo(2),1);
+ .@GID = getcastledata("prtg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1);
}
if (checkweight(Spawn,630) == 0) {
mes "^3355FFWait a minute! You're";
@@ -1239,7 +1239,7 @@
}
- script RelayDummy2::GuildRelay2 4_M_SAGE_A,{
- .@name$ = strnpcinfo(1);
+ .@name$ = strnpcinfo(NPC_NAME_VISIBLE);
getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC);
.@GID = getcastledata(.@m$,1);
if (checkweight(Knife,1) == 0) {
@@ -1748,7 +1748,7 @@
}
- script RelayDummy3::GuildRelay3 4_M_SAGE_A,{
- .@name$ = strnpcinfo(1);
+ .@name$ = strnpcinfo(NPC_NAME_VISIBLE);
getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC);
.@GID = getcastledata(.@m$,1);
if (checkweight(Knife,1) == 0) {
@@ -2432,7 +2432,7 @@
}
- script GuildDummy4::GuildRelay4 4_M_SAGE_A,{
- .@name$ = strnpcinfo(1);
+ .@name$ = strnpcinfo(NPC_NAME_VISIBLE);
getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC);
.@GID = getcastledata(.@m$,1);
if (checkweight(Knife,1) == 0) {
diff --git a/npc/quests/kiel_hyre_quest.txt b/npc/quests/kiel_hyre_quest.txt
index f1bb67223..80e193f86 100644
--- a/npc/quests/kiel_hyre_quest.txt
+++ b/npc/quests/kiel_hyre_quest.txt
@@ -6768,7 +6768,7 @@ OnReset:
kh_kiehl02,49,55,6 script Mitchell#KiehlRoom 4_F_JOB_HUNTER,{
end;
OnInit:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
end;
}
kh_kiehl02,53,52,4 duplicate(Mitchell#KiehlRoom) Agent#KHAgent1 4_M_MASKMAN
diff --git a/npc/quests/okolnir.txt b/npc/quests/okolnir.txt
index 920c8b8ce..a9772ed5a 100644
--- a/npc/quests/okolnir.txt
+++ b/npc/quests/okolnir.txt
@@ -36,14 +36,14 @@
//=========================================================================
function script F_Okolnir {
- if (compare(strnpcinfo(0),"main")) end;
- .@sub$ = (compare(strnpcinfo(4),"cas"))?(substr(strnpcinfo(4),0,2))+(substr(strnpcinfo(4),8,9)):substr(strnpcinfo(4),5,9);
+ if (compare(strnpcinfo(NPC_NAME),"main")) end;
+ .@sub$ = (compare(strnpcinfo(NPC_MAP),"cas"))?(substr(strnpcinfo(NPC_MAP),0,2))+(substr(strnpcinfo(NPC_MAP),8,9)):substr(strnpcinfo(NPC_MAP),5,9);
return .@sub$;
}
- script Guide#gq_main FAKE_NPC,{
.@sub$ = callfunc("F_Okolnir");
- .@GID = getcastledata(strnpcinfo(4),1);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
if (getcharid(2) == .@GID) {
if (getd("$siz_"+.@sub$+"_on") == 0) {
mes "[Guide]";
@@ -80,8 +80,8 @@ function script F_Okolnir {
mes "Would you like to try to enter here?";
close;
case 2:
- .@defence = getcastledata(strnpcinfo(4),3);
- .@Economy = getcastledata(strnpcinfo(4),2);
+ .@defence = getcastledata(strnpcinfo(NPC_MAP),3);
+ .@Economy = getcastledata(strnpcinfo(NPC_MAP),2);
if ((.@Economy > 64) && (.@defence > 29)) {
mes "[Guide]";
mes "Great! Economy and Defense are OK.";
@@ -190,7 +190,7 @@ que_qsch05,345,23,0 warp Gate02#gq_sch05 1,1,schg_cas05,369,306
- script Wish Maiden#gq_main FAKE_NPC,{
.@sub$ = callfunc("F_Okolnir");
- .@t$ = ((compare(strnpcinfo(4),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(4),getstrlen(strnpcinfo(4))-1));
+ .@t$ = ((compare(strnpcinfo(NPC_MAP),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(NPC_MAP),getstrlen(strnpcinfo(NPC_MAP))-1));
.@GID = getcastledata(.@t$,1);
if (getcharid(2) == .@GID) {
cutin "wish_maiden31",1;
@@ -735,7 +735,7 @@ OnTimer3610000:
setd "$@gqse_"+.@sub$+"_pcc",0;
setd "$@gqse_"+.@sub$+"_gd",0;
setd "$@gqse_"+.@sub$+"_nm",0;
- mapwarp "que_q"+.@sub$,strnpcinfo(4),157,369;
+ mapwarp "que_q"+.@sub$,strnpcinfo(NPC_MAP),157,369;
end;
OnTimer3611000:
@@ -1283,14 +1283,14 @@ que_qsch05,1,4,0 duplicate(#piamette_main) #piamette_sch05 CLEAR_NPC
OnEnable:
.@sub$ = callfunc("F_Okolnir");
- .@c = charat(strnpcinfo(2),9);
+ .@c = charat(strnpcinfo(NPC_NAME_HIDDEN),9);
enablenpc "#getspell0"+.@c+"_"+.@sub$;
specialeffect EF_LOCKON;
end;
OnDisable:
.@sub$ = callfunc("F_Okolnir");
- .@c = charat(strnpcinfo(2),9);
+ .@c = charat(strnpcinfo(NPC_NAME_HIDDEN),9);
disablenpc "#getspell0"+.@c+"_"+.@sub$;
end;
@@ -1533,7 +1533,7 @@ que_qsch05,1,8,0 duplicate(#gd_main_mobctrl) #gd_sch05_mobctrl CLEAR_NPC
OnTouch:
.@sub$ = callfunc("F_Okolnir");
- if (compare(strnpcinfo(0),"windpath03")) {
+ if (compare(strnpcinfo(NPC_NAME),"windpath03")) {
warp "que_q"+.@sub$,119,103;
} else {
warp "que_q"+.@sub$,146,109;
@@ -1904,7 +1904,7 @@ que_qsch05,2,10,0 duplicate(#main_stone03) #sch05_stone03 CLEAR_NPC
end;
OnTouch:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
disablenpc "Guard of Shadow#"+.@sub$+"_0"+.@in;
switch (.@in) {
case 1: setarray .@n, 234,284,235,285,236,286; break;
@@ -1918,7 +1918,7 @@ OnTouch:
OnDisable:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
killmonster "que_q"+.@sub$,"Guard of Shadow#"+.@sub$+"_0"+.@in+"::OnMyMobDead";
disablenpc "Guard of Shadow#"+.@sub$+"_0"+.@in;
end;
@@ -1978,7 +1978,7 @@ que_qsch05,225,303,5 duplicate(Guard of Shadow#main_all) Guard of Shadow#sch05_0
OnTouch:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
disablenpc "Bloody Hunter#"+.@sub$+"_ac0"+.@in;
switch (.@in) {
case 1: setarray .@n, 265,297,266,296,267,295;
@@ -1992,7 +1992,7 @@ OnTouch:
OnDisable:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
killmonster "que_q"+.@sub$,"Bloody Hunter#"+.@sub$+"_ac0"+.@in+"::OnMyMobDead";
disablenpc "Bloody Hunter#"+.@sub$+"_ac0"+.@in;
end;
@@ -2052,7 +2052,7 @@ que_qsch05,279,300,3 duplicate(Bloody Hunter#main_all) Bloody Hunter#sch05_ac04
OnTouch:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
disablenpc "Temple Keeper#"+.@sub$+"_ac0"+.@in;
switch (.@in) {
case 1: setarray .@n, 246,330,247,330,248,330; break;
@@ -2064,7 +2064,7 @@ OnTouch:
OnDisable:
.@sub$ = callfunc("F_Okolnir");
- .@in = charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1);
+ .@in = charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1);
killmonster "que_q"+.@sub$,"Temple Keeper#"+.@sub$+"_ac0"+.@in+"::OnMyMobDead";
disablenpc "Temple Keeper#"+.@sub$+"_ac0"+.@in;
end;
@@ -2159,7 +2159,7 @@ que_qsch05,251,255,3 duplicate(Wish Maiden#main_boss) Wish Maiden#sch05_boss WIS
- script Wish Maiden#main_gift FAKE_NPC,{
.@sub$ = callfunc("F_Okolnir");
- .@t$ = ((compare(strnpcinfo(4),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(4),getstrlen(strnpcinfo(4))-1));
+ .@t$ = ((compare(strnpcinfo(NPC_MAP),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(NPC_MAP),getstrlen(strnpcinfo(NPC_MAP))-1));
.@GID = getcastledata(.@t$,1);
if (getcharid(2) == .@GID) {
if (strcharinfo(0) == getguildmaster(.@GID)) {
@@ -2290,7 +2290,7 @@ que_qsch05,252,340,3 duplicate(Wish Maiden#main_gift) Wish Maiden#sch05_gift 4_F
end;
OnTouch:
- .@t$ = ((compare(strnpcinfo(4),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(4),getstrlen(strnpcinfo(4))-1));
+ .@t$ = ((compare(strnpcinfo(NPC_MAP),"aru"))?"arug_cas0":"schg_cas0")+(charat(strnpcinfo(NPC_MAP),getstrlen(strnpcinfo(NPC_MAP))-1));
warp .@t$,157,369;
end;
diff --git a/npc/quests/partyrelay.txt b/npc/quests/partyrelay.txt
index 6b9014938..54d78bec6 100644
--- a/npc/quests/partyrelay.txt
+++ b/npc/quests/partyrelay.txt
@@ -2492,7 +2492,7 @@ payon,168,314,3 script Lospii#payon::RelayLospii 4_M_KID1,{
close;
}
.@relaytime = gettime(GETTIME_HOUR);
- getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC, strnpcinfo(3));
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC, strnpcinfo(NPC_NAME_UNIQUE));
.@juwi = getareausers(.@m$,.@x-8,.@y-8,.@x+8,.@y+8);
if (party_relay == 32) {
mes "[Lospii]";
diff --git a/npc/quests/quests_13_1.txt b/npc/quests/quests_13_1.txt
index 3eb88470c..9b0a5ad7e 100644
--- a/npc/quests/quests_13_1.txt
+++ b/npc/quests/quests_13_1.txt
@@ -4640,7 +4640,7 @@ mid_camp,336,171,1 script Camp Guard#man1 4_M_EIN_SOLDIER,{
mes "Please be careful out there.";
mes "If you encounter any threats or strange phenomenon, then please don't hesitate to report to us at the garrison.";
close2;
- switch(atoi(charat(strnpcinfo(2),3))) {
+ switch(atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),3))) {
case 1:
if (ep13_animal == 1)
ep13_animal = 2;
@@ -8444,7 +8444,7 @@ mid_camp,88,100,7 script Cat Hand Mining Agent 4_CAT,{
else if (.@rhea_ran == 16) getitem Yellow_Live,1;
else getitem Unidentified_Mineral,1;
initnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
else {
@@ -8455,7 +8455,7 @@ mid_camp,88,100,7 script Cat Hand Mining Agent 4_CAT,{
end;
OnTimer120000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -13710,11 +13710,11 @@ OnTimer11000:
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
diff --git a/npc/quests/quests_13_2.txt b/npc/quests/quests_13_2.txt
index 6ba10b8d6..83ce8419f 100644
--- a/npc/quests/quests_13_2.txt
+++ b/npc/quests/quests_13_2.txt
@@ -67,7 +67,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
next;
switch(select("Save your location", "Cancel")) {
case 1:
- if (strnpcinfo(2) == "spl") savepoint "spl_fild02",32,225;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "spl") savepoint "spl_fild02",32,225;
else savepoint "man_fild02",129,61;
mes "[Cat Hand Agent]";
mes "Thank you.";
@@ -87,7 +87,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
next;
switch(select("Save your location", "Use Storage", "Cancel")) {
case 1:
- if (strnpcinfo(2) == "spl") savepoint "spl_fild02",32,225;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "spl") savepoint "spl_fild02",32,225;
else savepoint "man_fild02",129,61;
mes "[Cat Hand Agent]";
mes "Thank you.";
@@ -134,7 +134,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
next;
switch(select("Save your location", "Use Storage", "Use Cat Warp (Midgard)", "Cancel")) {
case 1:
- if (strnpcinfo(2) == "spl") savepoint "spl_fild02",32,225;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "spl") savepoint "spl_fild02",32,225;
else savepoint "man_fild02",129,61;
mes "[Cat Hand Agent]";
mes "Thank you.";
@@ -255,7 +255,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
next;
switch(select("Save your location", "Use Storage", "Use Cat Warp (Midgard)", "Use Cat Warp (Jottunheim)", "Cancel")) {
case 1:
- if (strnpcinfo(2) == "spl") savepoint "spl_fild02",32,225;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "spl") savepoint "spl_fild02",32,225;
else savepoint "man_fild02",129,61;
mes "[Cat Hand Agent]";
mes "Thank you.";
@@ -358,7 +358,7 @@ spl_fild02,25,211,4 script Cat Hand Agent#spl 4_M_BOSSCAT,{
close;
}
case 4:
- if (strnpcinfo(2) == "spl") switch(select("Alliance Forces Post -> 5500z", "Manuk Camp -> 7500z", "Cancel")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "spl") switch(select("Alliance Forces Post -> 5500z", "Manuk Camp -> 7500z", "Cancel")) {
case 1: Catwarp(5500,13);
case 2: Catwarp(5500,12);
case 3:
@@ -426,7 +426,7 @@ man_fild02,132,47,4 duplicate(Cat Hand Agent#spl) Cat Hand Agent#man 4_M_BOSSCAT
else if (.@rhea_ran == 17) getitem Manuk_Coin,1;
else getitem Unidentified_Mineral,1;
initnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
else {
@@ -437,7 +437,7 @@ man_fild02,132,47,4 duplicate(Cat Hand Agent#spl) Cat Hand Agent#man 4_M_BOSSCAT
end;
OnTimer120000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -2463,7 +2463,7 @@ spl_in02,236,92,5 script Arc#ep13md_l02 4_M_FAIRYSOLDIER,{
close;
}
else if (ep13_mdrama == 27) {
- if (strnpcinfo(1) == "Arc") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Arc") {
mes "[Arc]";
mes "Terra. Get some rest...";
mes "Rest easy...";
@@ -2475,18 +2475,18 @@ spl_in02,236,92,5 script Arc#ep13md_l02 4_M_FAIRYSOLDIER,{
mes "I'm sorry... And. You...";
}
next;
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Originally... we Laphine were extremely reluctant to have others in our area.";
mes strcharinfo(0) + ", you will be a special exception.";
next;
- mes "["+strnpcinfo(1)+"]";
- if (strnpcinfo(1) == "Arc") mes "That's what Terra wants too.";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Arc") mes "That's what Terra wants too.";
mes "It might be cramped, but you are always welcome to visit us.";
ep13_mdrama = 28;
close;
}
else if (ep13_mdrama > 27) {
- if (strnpcinfo(1) == "Arc") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Arc") {
mes "[Arc]";
mes "How are you adapting to Splendide?";
mes "Terra's still not fully recovered yet, so keep that in mind.";
@@ -2500,7 +2500,7 @@ spl_in02,236,92,5 script Arc#ep13md_l02 4_M_FAIRYSOLDIER,{
}
else {
// custom translation
- if (strnpcinfo(1) == "Arc") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Arc") {
mes "[Arc]";
mes "The back of the right ... ";
mes "......";
@@ -2514,7 +2514,7 @@ spl_in02,236,92,5 script Arc#ep13md_l02 4_M_FAIRYSOLDIER,{
}
}
else {
- if (strnpcinfo(1) == "Arc") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Arc") {
mes "[Arc]";
mes "HirWosWeh. Yee DiebVilFar U manTalVil.";
mes "LarsNeiser...??";
@@ -3270,23 +3270,23 @@ mid_camp,192,239,4 script Wanted Sign#ep13_2ect01 4_BOARD3,{
if ((ep13_2_dayegg == 1) && (countitem(Egg_Of_Draco) < 10)) {
mes "We just got fresh eggs from the dragon nest.";
getitem Egg_Of_Draco,1;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
}
end;
OnTimer420000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -3305,23 +3305,23 @@ nyd_dun02,68,256,0 script Dragon Egg#ep13_degg_1 4_DRAGON_EGG,{
if ((ep13_2_dayegg == 1) && (countitem(Egg_Of_Draco) < 10)) {
mes "We just got fresh eggs from the dragon nest.";
getitem Egg_Of_Draco,1;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
}
end;
OnTimer240000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
nyd_dun02,68,256,0 duplicate(Dragon Egg#ep13_degg_1) Dragon Egg#ep13_degg11 4_DRAGON_EGG
@@ -3336,23 +3336,23 @@ nyd_dun02,201,166,0 script Dragon Egg#ep13_degg_2 4_DRAGON_EGG,{
if ((ep13_2_dayegg == 1) && (countitem(Egg_Of_Draco) < 10)) {
mes "We just got fresh eggs from the dragon nest.";
getitem Egg_Of_Draco,1;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
}
end;
OnTimer120000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
nyd_dun02,201,166,0 duplicate(Dragon Egg#ep13_degg_2) Dragon Egg#ep13_degg16 4_DRAGON_EGG
@@ -4876,8 +4876,8 @@ mjolnir_12,220,37,0 duplicate(mjo_no_find) #mj12_find_3 FAKE_NPC,5,5
else if (.@stst == 1) getitem Rough_Mineral,1;
else getitem Rough_Mineral,2;
close2;
- donpcevent strnpcinfo(0)+"_t::OnEnable";
- disablenpc strnpcinfo(0);
+ donpcevent strnpcinfo(NPC_NAME)+"_t::OnEnable";
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
case 2:
@@ -4893,7 +4893,7 @@ mjolnir_12,220,37,0 duplicate(mjo_no_find) #mj12_find_3 FAKE_NPC,5,5
end;
OnInit:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnTouch:
@@ -5226,8 +5226,8 @@ OnTouch:
if (.@stst == 5) getitem Rough_Mineral,5;
else if (.@stst == 1) getitem Rough_Mineral,2;
else getitem Rough_Mineral,1;
- donpcevent strnpcinfo(0)+"_t::OnEnable";
- disablenpc strnpcinfo(0);
+ donpcevent strnpcinfo(NPC_NAME)+"_t::OnEnable";
+ disablenpc strnpcinfo(NPC_NAME);
close;
}
case 2:
@@ -5243,7 +5243,7 @@ OnTouch:
end;
OnInit:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnTouch:
@@ -5359,8 +5359,8 @@ OnTouch:
if (.@stst == 5) getitem Rough_Mineral,5;
else if (.@stst == 1) getitem Rough_Mineral,2;
else getitem Rough_Mineral,1;
- donpcevent strnpcinfo(0)+"_t::OnEnable";
- disablenpc strnpcinfo(0);
+ donpcevent strnpcinfo(NPC_NAME)+"_t::OnEnable";
+ disablenpc strnpcinfo(NPC_NAME);
close;
}
case 2:
@@ -5376,7 +5376,7 @@ OnTouch:
end;
OnInit:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnTouch:
@@ -6940,7 +6940,7 @@ OnTouch:
- script ep13_warp_s_0 FAKE_NPC,{
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
OnTimer2000:
OnTimer4000:
@@ -6954,18 +6954,18 @@ OnTimer8000:
OnTimer10000:
specialeffect EF_STEAL;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
specialeffect EF_WIND;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
- script ep13_warp_s_1 FAKE_NPC,{
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
OnTimer2000:
OnTimer4000:
@@ -6980,18 +6980,18 @@ OnTimer10000:
OnTimer12000:
specialeffect EF_STEAL;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
specialeffect EF_WIND;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
- script ep13_warp_s_2 FAKE_NPC,{
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
OnTimer2000:
OnTimer4000:
@@ -7007,12 +7007,12 @@ OnTimer12000:
OnTimer15000:
specialeffect EF_STEAL;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
specialeffect EF_WIND;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
diff --git a/npc/quests/quests_morocc.txt b/npc/quests/quests_morocc.txt
index 8cb418508..6d5ab7325 100644
--- a/npc/quests/quests_morocc.txt
+++ b/npc/quests/quests_morocc.txt
@@ -1110,7 +1110,7 @@ moc_fild20,203,336,5 duplicate(MocConGuard) Continental Guard#07 4_M_MOC_SOLDIER
moc_fild20,215,336,3 duplicate(MocConGuard) Continental Guard#08 4_M_MOC_SOLDIER,3,3
- script Continental Messenger#00::ConMessenger 4_M_MOCASS1,3,3,{
- .@area$ = strnpcinfo(2);
+ .@area$ = strnpcinfo(NPC_NAME_HIDDEN);
if (.@area$ == "01") { .@area$ = "Prontera"; }
else if (.@area$ == "02") { .@area$ = "Geffen"; }
else if (.@area$ == "03") { .@area$ = "Payon"; }
@@ -2074,7 +2074,7 @@ sec_in02,14,43,5 script Morroc GlobalVar Admin::MorrocAdmin_sec 4_F_RUSGREEN,{
mes "Alright.";
close;
case 2:
- if (strnpcinfo(4) == "sec_in02")
+ if (strnpcinfo(NPC_MAP) == "sec_in02")
mes "You can reset at moc_fild21 5 5.";
else {
mes "Reset starts.";
diff --git a/npc/quests/quests_moscovia.txt b/npc/quests/quests_moscovia.txt
index ed15fb7e9..4a03c03c6 100644
--- a/npc/quests/quests_moscovia.txt
+++ b/npc/quests/quests_moscovia.txt
@@ -2569,14 +2569,14 @@ OnTimer300000:
- script Baehideun#main FAKE_NPC,{
OnInit:
- if (compare(strnpcinfo(0),"main")) end;
- disablenpc strnpcinfo(0);
+ if (compare(strnpcinfo(NPC_NAME),"main")) end;
+ disablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnEnable:
- enablenpc strnpcinfo(0);
- .@c = charat(strnpcinfo(0),9);
+ enablenpc strnpcinfo(NPC_NAME);
+ .@c = charat(strnpcinfo(NPC_NAME),9);
switch (.@c) {
case 1: setarray .@m, 89,112,1425,85,110,1425; break;
case 2: setarray .@m, 89,112,1425,80,110,1426,83,114,1426,85,110,1425; break;
@@ -2584,39 +2584,39 @@ OnEnable:
case 4: setarray .@m, 85,111,1451,89,112,1543,90,106,1543; break;
}
for (.@i = 0; .@i < getarraysize(.@m); .@i += 3)
- monster "mosk_ship",.@m[.@i],.@m[.@i+1],"Sea Monster",.@m[.@i+2],1,strnpcinfo(0)+"::OnMyMobDead";
+ monster "mosk_ship",.@m[.@i],.@m[.@i+1],"Sea Monster",.@m[.@i+2],1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
initnpctimer;
end;
OnDisable:
$@mos1_edq = 0;
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnMyMobDead:
- if (!mobcount("mosk_ship",strnpcinfo(0)+"::OnMyMobDead")) {
+ if (!mobcount("mosk_ship",strnpcinfo(NPC_NAME)+"::OnMyMobDead")) {
$@mos1_edq = 0;
mes "[Mr. Ibanoff]";
mes "Now that all the monsters are gone,";
mes "we can start sailing again";
mes "normally.";
- .@c = charat(strnpcinfo(0),9);
+ .@c = charat(strnpcinfo(NPC_NAME),9);
switch (.@c) {
case 1: break;
case 2: break;
case 3: mos_whale_edq = 11; break;
case 4: mos_whale_edq = 26; break;
}
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
close;
}
end;
OnTimer300000:
- killmonster "mosk_ship",strnpcinfo(0)+"::OnMyMobDead";
+ killmonster "mosk_ship",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
$@mos1_edq = 0;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
mosk_ship,2,2,4 duplicate(Baehideun#main) Baehideun1#ship FAKE_NPC
@@ -3992,7 +3992,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 4_M_RUSMAN1,{
//- Big Squirrel - Trade Acorns for Gems -
- script Squirrel#mos_main FAKE_NPC,{
- if (compare(strnpcinfo(0),"mos_sq")) end;
+ if (compare(strnpcinfo(NPC_NAME),"mos_sq")) end;
OnTouch:
if ((MaxWeight-Weight) < 2000) {
mes "- Please stop here!! -";
@@ -7371,23 +7371,23 @@ OnTimer300000:
- script mos_rus#main FAKE_NPC,{
end;
OnInit:
- if (compare(strnpcinfo(0),"main")) end;
- disablenpc strnpcinfo(0);
+ if (compare(strnpcinfo(NPC_NAME),"main")) end;
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
initnpctimer;
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTimer120000:
stopnpctimer;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
mosk_dun01,50,256,3 duplicate(mos_rus#main) Gray Wolf#rus05 4_RUS_DWOLF
diff --git a/npc/quests/seals/god_weapon_creation.txt b/npc/quests/seals/god_weapon_creation.txt
index baacf17c2..87a6ca7c8 100644
--- a/npc/quests/seals/god_weapon_creation.txt
+++ b/npc/quests/seals/god_weapon_creation.txt
@@ -830,7 +830,7 @@ OnDisable:
que_god01,154,67,0 script god_failwarp#1 FAKE_NPC,4,7,{
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTouch:
warp "prontera",156,324;
diff --git a/npc/quests/skills/rogue_skills.txt b/npc/quests/skills/rogue_skills.txt
index 166f01c84..a1c64b09f 100644
--- a/npc/quests/skills/rogue_skills.txt
+++ b/npc/quests/skills/rogue_skills.txt
@@ -1174,7 +1174,7 @@ OnDisable:
prt_are01,149,162,0 script Kienna#1st 8_F_GIRL,1,1,{
end;
OnTouch:
- callfunc "F_Kienna",strnpcinfo(2);
+ callfunc "F_Kienna",strnpcinfo(NPC_NAME_HIDDEN);
end;
}
prt_are01,136,150,0 duplicate(Kienna#1st) Kienna#2nd 8_F_GIRL,1,1
diff --git a/npc/quests/thana_quest.txt b/npc/quests/thana_quest.txt
index c535253d7..f72d48f42 100644
--- a/npc/quests/thana_quest.txt
+++ b/npc/quests/thana_quest.txt
@@ -1699,10 +1699,10 @@ tha_t08,90,153,0 script Shining Crystal#tt_r1 CLEAR_NPC,{
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
tha_t08,90,62,0 duplicate(Shining Crystal#tt_r1) Shining Crystal#tt_r2 CLEAR_NPC
@@ -1733,10 +1733,10 @@ tha_t08,49,153,0 script Shining Crystal#tt_y1 CLEAR_NPC,{
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
tha_t08,90,150,0 duplicate(Shining Crystal#tt_y1) Shining Crystal#tt_y2 CLEAR_NPC
@@ -1767,10 +1767,10 @@ tha_t08,49,65,0 script Shining Crystal#tt_b1 CLEAR_NPC,{
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
tha_t08,49,150,0 duplicate(Shining Crystal#tt_b1) Shining Crystal#tt_b2 CLEAR_NPC
@@ -1801,10 +1801,10 @@ tha_t08,90,65,0 script Shining Crystal#tt_g1 CLEAR_NPC,{
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
tha_t08,49,62,0 duplicate(Shining Crystal#tt_g1) Shining Crystal#tt_g2 CLEAR_NPC
@@ -2102,15 +2102,15 @@ OnTimer3000:
thana_boss,217,167,3 script Memory Seal#tt1 G_THA_MAERO,3,3,{
end;
OnEnable:
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
.hide = 0;
end;
OnDisable:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
.hide = 0;
end;
OnTouch:
- .@seal = atoi(charat(strnpcinfo(2),2));
+ .@seal = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),2));
if (.hide & (1<<.@seal)) end;
// .@i: ItemID,MobID,MapX,MapY,EffectNum
@@ -2153,11 +2153,11 @@ OnTouch:
mes "into the crest, causing";
mes "its glow to intensify.^000000";
close2;
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
.hide |= (1<<.@seal);
delitem .@i[0],1;
specialeffect .@i[4];
- monster "thana_boss",.@i[2],.@i[3],.@j$,.@i[1],1,strnpcinfo(0)+"::OnMyMobDead";
+ monster "thana_boss",.@i[2],.@i[3],.@j$,.@i[1],1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
switch($@thana_summon2) {
case 0: .@str$ = "... who... released... the... Memory... of... "+.@j$+"...?"; break;
case 1: .@str$ = "... why... did you... release... the... Memory... of... "+.@j$+"...?"; break;
diff --git a/npc/re/cities/malangdo.txt b/npc/re/cities/malangdo.txt
index ea2a65e1c..f4ac6300a 100644
--- a/npc/re/cities/malangdo.txt
+++ b/npc/re/cities/malangdo.txt
@@ -44,7 +44,7 @@
next;
mes "[Dolangmal]";
.@s$ = "Why don't you go to ^A2314BMalangdo^000000?";
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 1: mes "How is that? The crowded city of Prontera is good, but why don't you go our heaven of the cats, ^A2314BMalangdo^000000?"; break;
case 2: mes "Why don't you go to ^A2314BMalangdo^000000? That place is better than Geffen, where there are only crowds of simple honest wizards."; break;
case 3: mes "The fresh air of Payon is not bad, but why don't you go better place like the heaven of the cats, ^A2314BMalangdo^000000?"; break;
@@ -174,7 +174,7 @@ lighthalzen,254,83,5 duplicate(Dolangmal) Dolangmal#8 4_CAT_DOWN
mora,57,150,4 duplicate(Dolangmal) Dolangmal#9 4_CAT_DOWN
- script ::Odgnalam FAKE_NPC,{
- mes "This cat is sleeping in the warm "+((strnpcinfo(2) == "albe")?"Alberta":"Izlude")+" sun.";
+ mes "This cat is sleeping in the warm "+((strnpcinfo(NPC_NAME_HIDDEN) == "albe")?"Alberta":"Izlude")+" sun.";
next;
if(select("Let him sleep", "Talk to him") == 1) close;
mes "[Odgnalam]";
diff --git a/npc/re/cities/malaya.txt b/npc/re/cities/malaya.txt
index 6d69feefe..c8171b9d6 100644
--- a/npc/re/cities/malaya.txt
+++ b/npc/re/cities/malaya.txt
@@ -153,7 +153,7 @@ ma_in01,30,94,4 script Inn Keeper#ma 4_F_MALAYA,{
- script Unidentified Creature#i FAKE_NPC,{
end;
OnInit:
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 1: setarray .@npc$,"01","02","03","04"; break;
case 5: setarray .@npc$,"05","06","07","08"; break;
case 9: setarray .@npc$,"09","10","11"; break;
@@ -165,13 +165,13 @@ OnInit:
donpcevent "Unidentified Creature#"+.@npc$[.@i]+"::"+((.@i == .@rand)?"OnEnable":"OnDisable");
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnBingx2:
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 1: setarray .@npc$,"02","03","04"; break;
case 5: setarray .@npc$,"06","07","08"; break;
case 9: setarray .@npc$,"10","11"; break;
@@ -180,27 +180,27 @@ OnBingx2:
.@rand = rand(.@size);
for(.@i = 0; .@i<.@size; ++.@i)
donpcevent "Unidentified Creature#"+.@npc$[.@i]+"::"+((.@i == .@rand)?"OnEnable":"OnDisable");
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnTouch:
if (getcharid(1)) {
if ($ma_name04$ == strcharinfo(0) || $ma_name05$ == strcharinfo(0) || $ma_name06$ == strcharinfo(0)) {
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature gets a glimpse of you, blushes and then disappears.";
close;
}
if (rand(1,5)%2) {
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 1: $ma_name04$ = strcharinfo(0); break;
case 5: $ma_name05$ = strcharinfo(0); break;
case 9: $ma_name06$ = strcharinfo(0); break;
}
}
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature gets a glimpse of you and disappears.";
close;
}
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature looks at you and runs away.";
close;
}
@@ -211,13 +211,13 @@ ma_scene01,195,92,4 duplicate(Unidentified Creature#i) Unidentified Creature#09
- script Unidentified Creature#j FAKE_NPC,{
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnBingx2:
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 2: setarray .@npc$,"01","03","04"; break;
case 3: setarray .@npc$,"01","02","04"; break;
case 4: setarray .@npc$,"01","02","03"; break;
@@ -231,10 +231,10 @@ OnBingx2:
.@rand = rand(.@size);
for(.@i = 0; .@i<.@size; ++.@i)
donpcevent "Unidentified Creature#"+.@npc$[.@i]+"::"+((.@i == .@rand)?"OnEnable":"OnDisable");
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnTouch:
- .@i = atoi(strnpcinfo(2));
+ .@i = atoi(strnpcinfo(NPC_NAME_HIDDEN));
if (.@i%4 == 2) {
if (getcharid(0) == getpartyleader(getcharid(1),2))
.@pass = 1;
@@ -247,7 +247,7 @@ OnTouch:
}
if (.@pass) {
if ($ma_name04$ == strcharinfo(0) || $ma_name05$ == strcharinfo(0) || $ma_name06$ == strcharinfo(0)) {
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature gets a glimpse of you, blushes and then disappears.";
close;
}
@@ -269,11 +269,11 @@ OnTouch:
break;
}
}
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature gets a glimpse of you and disappears.";
close;
}
- donpcevent strnpcinfo(0)+"::OnBingx2";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature looks at you and runs away.";
close;
}
diff --git a/npc/re/guides/guides_ayothaya.txt b/npc/re/guides/guides_ayothaya.txt
index 09dfd70b1..6a4ce5ad2 100644
--- a/npc/re/guides/guides_ayothaya.txt
+++ b/npc/re/guides/guides_ayothaya.txt
@@ -35,7 +35,7 @@
//=========================================================================
ayothaya,203,169,4 script Ayothaya Guide Noi#01ay 4_F_THAIGIRL,{
- if (strnpcinfo(0) == "Ayothaya Guide Noi#01ay")
+ if (strnpcinfo(NPC_NAME) == "Ayothaya Guide Noi#01ay")
.@n$ = "[Noi]";
else
.@n$ = "[Noa]";
diff --git a/npc/re/guides/guides_izlude.txt b/npc/re/guides/guides_izlude.txt
index a323a8c17..1bdf5a472 100644
--- a/npc/re/guides/guides_izlude.txt
+++ b/npc/re/guides/guides_izlude.txt
@@ -42,7 +42,7 @@
mes "Do you need help navigating the town?";
F_Navi("[Izlude Guide]");
next;
- .@map$ = strnpcinfo(4);
+ .@map$ = strnpcinfo(NPC_MAP);
while (1) {
switch(select("[ Main Facilities ]", "[ Merchants & Helpers ]", "Remove Marks from Mini-Map", "Cancel")) {
case 1:
diff --git a/npc/re/instances/BangungotHospital.txt b/npc/re/instances/BangungotHospital.txt
index c6a8ac317..66ed61f8a 100644
--- a/npc/re/instances/BangungotHospital.txt
+++ b/npc/re/instances/BangungotHospital.txt
@@ -426,14 +426,14 @@ OnTimer10000:
1@ma_h,46,165,0 script #Ward1 Entry HIDDEN_WARP_NPC,{ //3,3
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable1:
.@map$ = instance_mapname("1@ma_h");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- enablenpc instance_npcname(strnpcinfo(0));
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
specialeffect EF_BAT2;
- switch(atoi(charat(strnpcinfo(2),4))) {
+ switch(atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),4))) {
case 1:
areamonster .@map$,49,171,51,173,"Bangungot's Mangkukulam",2339,1,.@label$;
areamonster .@map$,51,171,53,173,"Bangungot's Mangkukulam",2339,1,.@label$;
@@ -466,19 +466,19 @@ OnEnable2:
end;
*/
OnEnable3:
- .@i = atoi(charat(strnpcinfo(2),4))+1;
+ .@i = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),4))+1;
donpcevent instance_npcname("#Ward"+.@i+" Entry")+"::OnEnable1";
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnMyMobDead:
initnpctimer;
end;
OnTimer1000:
.@map$ = instance_mapname("1@ma_h");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
specialeffect EF_BAT2;
- donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable3";
- switch(atoi(charat(strnpcinfo(2),4))) {
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnEnable3";
+ switch(atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),4))) {
case 1: .@str$ = "Bangungot: I will let you see the pain and the agony actually be real....."; break;
case 2: .@str$ = "Bangungot: Diseased spirits are the source of my energy, and my life..."; break;
case 3: .@str$ = "Bangungot: Scream more....and more...... your pain..."; break;
@@ -925,7 +925,7 @@ OnTimer36000:
1@ma_h,118,171,0 script #Boss Room Entry_a HIDDEN_WARP_NPC,10,10,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
specialeffect EF_GHOST;
@@ -984,7 +984,7 @@ OnTimer30000:
1@ma_h,60,87,4 script Screaming Patient#2 4_M_PATIENT,{
end;
OnEnable:
- switch(atoi(strnpcinfo(2))) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 2: .@str$ = "Screaming Patient: Aaaaargh!!"; break;
case 3: .@str$ = "Patient in Pain: Oooooowwww!! It's killing me!!!"; break;
case 4: .@str$ = "Passed Out Patient: ........"; break;
diff --git a/npc/re/instances/BuwayaCave.txt b/npc/re/instances/BuwayaCave.txt
index 03de64375..8d1639ea1 100644
--- a/npc/re/instances/BuwayaCave.txt
+++ b/npc/re/instances/BuwayaCave.txt
@@ -337,7 +337,7 @@ OnDisable:
1@ma_c,97,74,0 script #yunobi1 HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
specialeffect EF_MAPPILLAR2;
diff --git a/npc/re/instances/EclageInterior.txt b/npc/re/instances/EclageInterior.txt
index e7d603340..9ee105bb9 100644
--- a/npc/re/instances/EclageInterior.txt
+++ b/npc/re/instances/EclageInterior.txt
@@ -156,11 +156,11 @@ ecl_hub01,130,15,0 script It is closed shut. CLEAR_NPC,{
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- hideoffnpc instance_npcname(strnpcinfo(0));
+ hideoffnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
@@ -175,7 +175,7 @@ OnEnable:
1@ecl,42,80,5 script Suspicious Creature#5 MOROCC_2_142,{
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
@@ -188,7 +188,7 @@ OnInstanceInit:
OnInstanceInit:
.mob_summoned = 0;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
diff --git a/npc/re/instances/HazyForest.txt b/npc/re/instances/HazyForest.txt
index 6de94e7ac..c5e37ee3b 100644
--- a/npc/re/instances/HazyForest.txt
+++ b/npc/re/instances/HazyForest.txt
@@ -212,7 +212,7 @@ OnTimer180000:
// callfunc "F_Mora_Mist",<warp to enable>,<success message>,<fail message>{,<end flag>}
function script F_Mora_Mist {
.@map$ = instance_mapname("1@mist");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") == 0) {
+ if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") == 0) {
mes "Obviously no one is taking care of it.";
mes "It seems like you can chop down the garden tree.";
next;
@@ -221,7 +221,7 @@ function script F_Mora_Mist {
mes "You chop down the tree, which was blocking the path of the maze, "+((getarg(3,0))?"clearing the way out of the forest.":"so now you can continue.");
mapannounce .@map$,getarg(1),bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
enablenpc instance_npcname(getarg(0));
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
close;
} else
mapannounce .@map$,((getarg(3,0))?getarg(2):getarg(2)+"'s Cry: Huh? Who's doing bad things to my tree?!"),bc_map,"0xccffcc"; //FW_NORMAL 12 0 0
@@ -461,7 +461,7 @@ OnMyMobDead:
1@mist,73,290,0 script Mysterious Flower#1 CLEAR_NPC,{
specialeffect EF_LEVEL99_4;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
getitem Mysterious_Seed,1;
end;
}
diff --git a/npc/re/instances/MalangdoCulvert.txt b/npc/re/instances/MalangdoCulvert.txt
index 42cf196b9..ff472e23d 100644
--- a/npc/re/instances/MalangdoCulvert.txt
+++ b/npc/re/instances/MalangdoCulvert.txt
@@ -610,18 +610,18 @@ function script F_mal_missing {
case 2:
mes "[Missing, the Cleaner]";
mes "Ok! Let's start now!";
- .@i$ = charat(strnpcinfo(2),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
enablenpc instance_npcname("Missing, the Cleaner#"+.@i$);
donpcevent instance_npcname("Missing, the Cleaner#"+.@i$)+"::OnStart";
disablenpc instance_npcname("Culvert Entrance#"+.@i$);
disablenpc instance_npcname("Missing, the Cleaner#"+.@i$+"o");
donpcevent instance_npcname("Monster Hole#"+.@i$)+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
close;
}
close;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
@@ -710,7 +710,7 @@ OnTimer520000:
1@pump,1,1,4 script Monster Hole#n FAKE_NPC,{
end;
OnSpawn:
- .@i$ = charat(strnpcinfo(2),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
if (.@i$ == "n")
.@n = 6;
else if (.@i$ == "h")
@@ -718,7 +718,7 @@ OnSpawn:
donpcevent instance_npcname("#Culvert_"+.@i$+rand(1,.@n))+"::OnEnable";
end;
OnClear:
- .@i$ = charat(strnpcinfo(2),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
if (.@i$ == "n")
.@n = 6;
else if (.@i$ == "h")
@@ -731,16 +731,16 @@ OnClear:
1@pump,36,111,4 script #Culvert_n1 CLEAR_NPC,14,14,{ //temporary workaround for ALL_SAMEMAP
progressbar "0xFFFF00",10;
stopnpctimer;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
.@map$ = instance_mapname("1@pump");
- .@index = atoi(charat(strnpcinfo(2),9));
+ .@index = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9));
switch(.@index) {
case 1: setarray .@c[0],32,107,40,115; break;
case 2: setarray .@c[0],64,120,72,128; break;
@@ -772,12 +772,12 @@ OnMyMobDead:
end;
OnClear:
stopnpctimer;
- killmonster instance_mapname("1@pump"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ killmonster instance_mapname("1@pump"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
end;
OnTimer49500: //OnTimer50000 clashes with the timer in "Missing, the Cleaner#h".
donpcevent instance_npcname("Missing, the Cleaner#n")+"::OnAddSeaweed";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(0));
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear";
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
specialeffect EF_MAPPILLAR2;
@@ -792,48 +792,48 @@ OnTouch:
1@pump,1,1,4 script Boss Creation#n FAKE_NPC,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
initnpctimer;
end;
OnTimer100:
- .@i$ = charat(strnpcinfo(2),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
if (.@i$ == "n")
mapannounce instance_mapname("1@pump"),"Hmm! That wasn't so bad!",bc_map,"0xff88ff",FW_NORMAL,15;
else if (.@i$ == "h")
mapannounce instance_mapname("2@pump"),"Hmm! You guys are pretty good!!",bc_map,"0xff88ff",FW_NORMAL,15;
end;
OnTimer5000:
- mapannounce strnpcinfo(4),"Let's pack up and go... WHAT!!?",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce strnpcinfo(NPC_MAP),"Let's pack up and go... WHAT!!?",bc_map,"0xff88ff",FW_NORMAL,15;
end;
OnTimer10000:
- mapannounce strnpcinfo(4),"I sense something strange!! Don't loosen up-- prepare for a fight!!",bc_map,"0xff88ff",FW_NORMAL,15;
+ mapannounce strnpcinfo(NPC_MAP),"I sense something strange!! Don't loosen up-- prepare for a fight!!",bc_map,"0xff88ff",FW_NORMAL,15;
end;
OnTimer20000:
stopnpctimer;
- .@i$ = charat(strnpcinfo(2),0);
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
if (rand(1,100) > 50) {
if (.@i$ == "n")
monster instance_mapname("1@pump"),0,0,"Weird Coelacanth",2188,1,.@label$;
else if (.@i$ == "h")
monster instance_mapname("2@pump"),0,0,"Mutant Coelacanth",2189,1,.@label$;
- mapannounce strnpcinfo(4),"Something big inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce strnpcinfo(NPC_MAP),"Something big inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
} else {
if (.@i$ == "n")
monster instance_mapname("1@pump"),0,0,"Gloomy Coelacanth",2187,1,.@label$;
else if (.@i$ == "h")
monster instance_mapname("2@pump"),0,0,"Violent Coelacanth",2190,1,.@label$;
- mapannounce strnpcinfo(4),"Something savage inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
+ mapannounce strnpcinfo(NPC_MAP),"Something savage inside the abyss appears with a huge noise.",bc_map,"0x00ffcc",FW_NORMAL,15;
}
end;
OnMyMobDead:
- if (mobcount(strnpcinfo(4),instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
- mapannounce strnpcinfo(4),"You've destroyed all monsters in the culverts. There are trophies lying on the ground, please look for them.",bc_map,"0xffff00",FW_NORMAL,15;
- .@i$ = charat(strnpcinfo(2),0);
- .@map$ = strnpcinfo(4);
+ if (mobcount(strnpcinfo(NPC_MAP),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
+ mapannounce strnpcinfo(NPC_MAP),"You've destroyed all monsters in the culverts. There are trophies lying on the ground, please look for them.",bc_map,"0xffff00",FW_NORMAL,15;
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
+ .@map$ = strnpcinfo(NPC_MAP);
enablenpc instance_npcname("Culvert Entrance#"+.@i$);
enablenpc instance_npcname("Missing, the Cleaner#"+.@i$+"o");
if (.@i$ == "n") {
@@ -860,12 +860,12 @@ OnMyMobDead:
}
}
} else
- mapannounce strnpcinfo(4),"There are still monsters alive.",bc_map,"0x00ff99",FW_NORMAL,20;
+ mapannounce strnpcinfo(NPC_MAP),"There are still monsters alive.",bc_map,"0x00ff99",FW_NORMAL,20;
end;
}
1@pump,84,105,4 script Missing, the Cleaner#no 4_CAT_SAILOR2,{
- .@i$ = charat(strnpcinfo(2),0);
+ .@i$ = charat(strnpcinfo(NPC_NAME_HIDDEN),0);
if (.@i$ == "n") {
mes "[Missing, the Cleaner]";
mes "I was very surprised!!";
@@ -894,14 +894,14 @@ OnMyMobDead:
mes "If Tomas closes this down, we will lose our jobs!";
close;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
1@pump,32,100,0 script Culvert Entrance#n WARPNPC,3,3,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
warp "mal_in01",161,32;
@@ -911,7 +911,7 @@ OnTouch:
//MD_Putmob "1@pump" 0 0 0 0 20 HYDRA 0 0 2
1@pump,1,1,4 script Hydra#n FAKE_NPC,{
OnInstanceInit:
- monster strnpcinfo(4),0,0,"Hydra",1068,20;
+ monster strnpcinfo(NPC_MAP),0,0,"Hydra",1068,20;
end;
}
@@ -998,16 +998,16 @@ OnTimer425000:
2@pump,53,114,4 script #Culvert_h1 CLEAR_NPC,14,14,{ //temporary workaround for ALL_SAMEMAP
progressbar "0xFFFF00",15;
stopnpctimer;
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
.@map$ = instance_mapname("2@pump");
- .@index = atoi(substr(strnpcinfo(2),9,getstrlen(strnpcinfo(2))-1));
+ .@index = atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),9,getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1));
switch(.@index) {
case 1: setarray .@c[0],49,110,57,118; break;
case 2: setarray .@c[0],75,105,83,113; break;
@@ -1033,12 +1033,12 @@ OnMyMobDead:
end;
OnClear:
stopnpctimer;
- killmonster instance_mapname("2@pump"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ killmonster instance_mapname("2@pump"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
end;
OnTimer39500: //OnTimer40000 clashes with the timer in "Missing, the Cleaner#h".
donpcevent instance_npcname("Missing, the Cleaner#h")+"::OnAddSeaweed";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnClear";
- disablenpc instance_npcname(strnpcinfo(0));
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnClear";
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
specialeffect EF_MAPPILLAR2;
diff --git a/npc/re/instances/OctopusCave.txt b/npc/re/instances/OctopusCave.txt
index 9e62c9b3c..c2087649c 100644
--- a/npc/re/instances/OctopusCave.txt
+++ b/npc/re/instances/OctopusCave.txt
@@ -252,12 +252,12 @@ OnMyMobDead:
1@cash,20,114,0 script oct_foot1 HIDDEN_WARP_NPC,6,6,{
end;
OnInstanceInit:
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- .@i = atoi(charat(strnpcinfo(0),8));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
.@map$ = instance_mapname("1@cash");
switch(.@i) {
case 1:
@@ -315,21 +315,21 @@ OnEnable:
}
end;
OnDisable:
- killmonster instance_mapname("1@cash"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; // Not in official script.
- disablenpc instance_npcname(strnpcinfo(0));
+ killmonster instance_mapname("1@cash"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead"; // Not in official script.
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
- if (getd("."+strnpcinfo(0)+instance_id())) end;
- setd "."+strnpcinfo(0)+instance_id(),1;
- hideonnpc instance_npcname(strnpcinfo(0));
+ if (getd("."+strnpcinfo(NPC_NAME)+instance_id())) end;
+ setd "."+strnpcinfo(NPC_NAME)+instance_id(),1;
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
mapannounce instance_mapname("1@cash"),"Come out all my babies and help me out!",bc_map,"0xFFFF00";
initnpctimer;
end;
OnTimer5000:
.@map$ = instance_mapname("1@cash");
mapannounce .@map$,"Let's give them a lesson!",bc_map,"0xFFFF00";
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- .@i = atoi(charat(strnpcinfo(0),8));
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
switch(.@i) {
case 1:
areamonster .@map$,18,112,22,116,"Octopus's Henchman",2192,3,.@label$;
@@ -350,21 +350,21 @@ OnTimer5000:
}
end;
OnTimer30000:
- setd "."+strnpcinfo(0)+instance_id(),0;
+ setd "."+strnpcinfo(NPC_NAME)+instance_id(),0;
stopnpctimer;
- .@i = atoi(charat(strnpcinfo(0),8));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
end;
OnMyMobDead:
.@map$ = instance_mapname("1@cash");
- if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if (mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
mapannounce .@map$,"You hurt my babies!!? You'll have to pay for this!!!",bc_map,"0x00ff99";
- setd "."+strnpcinfo(0)+instance_id(),0;
+ setd "."+strnpcinfo(NPC_NAME)+instance_id(),0;
stopnpctimer;
- .@i = atoi(charat(strnpcinfo(0),8));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),8));
donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
end;
}
end;
@@ -376,10 +376,10 @@ OnMyMobDead:
1@cash,16,117,0 script oct_foot_exit1 WARPNPC,2,2,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
warp instance_mapname("1@cash"),198,99;
@@ -705,7 +705,7 @@ OnTouch:
1@cash,190,208,0 script oct_exit_1 WARPNPC,2,2,{
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
mes "Do you want to go out from the octopus dungeon?";
diff --git a/npc/re/instances/OldGlastHeim.txt b/npc/re/instances/OldGlastHeim.txt
index bf201d3cd..329bee220 100644
--- a/npc/re/instances/OldGlastHeim.txt
+++ b/npc/re/instances/OldGlastHeim.txt
@@ -231,8 +231,8 @@ OnEnable:
}
1@gl_k,145,54,6 script Khalitzburg Knight#1 4_F_KHALITZBURG,{
- mesf("[%s]", strnpcinfo(1));
- switch ((atoi(strnpcinfo(2)) + 1) / 2) {
+ mesf("[%s]", strnpcinfo(NPC_NAME_VISIBLE));
+ switch ((atoi(strnpcinfo(NPC_NAME_HIDDEN)) + 1) / 2) {
case 1: mes("Is there something you need?"); break;
case 2: mes("What can I do for you?"); break;
case 3: mes("..."); break;
@@ -247,10 +247,10 @@ OnEnable:
}
close;
OnDisable:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- hideoffnpc instance_npcname(strnpcinfo(0));
+ hideoffnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
@@ -680,11 +680,11 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEffect1:
@@ -721,17 +721,17 @@ OnEffect1:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
.@map1$ = instance_mapname("1@gl_k");
.@map2$ = instance_mapname("2@gl_k");
- switch (atoi(replacestr(strnpcinfo(2), "ghinstancewarp", ""))) {
+ switch (atoi(replacestr(strnpcinfo(NPC_NAME_HIDDEN), "ghinstancewarp", ""))) {
case 1: warp .@map1$,80,80; break;
case 2: warp .@map1$,105,80; break;
case 3: warp .@map1$,215,79; break;
@@ -963,8 +963,8 @@ OnTouch:
else .@mobs = 7;
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
specialeffect EF_VENOMDUST;
- monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- disablenpc instance_npcname(strnpcinfo(0));
+ monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnMyMobDead:
@@ -972,11 +972,11 @@ OnMyMobDead:
OnInstanceInit:
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
diff --git a/npc/re/instances/WolfchevLaboratory.txt b/npc/re/instances/WolfchevLaboratory.txt
index 3860b35a3..16eaad351 100644
--- a/npc/re/instances/WolfchevLaboratory.txt
+++ b/npc/re/instances/WolfchevLaboratory.txt
@@ -1669,16 +1669,16 @@ que_lhz,140,231,1 script Human Guinea pig#01 CHEN,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
specialeffect EF_FLASHER;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -2004,17 +2004,17 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
OnEnable:
.@map$ = instance_mapname("1@lhz");
mapannounce .@map$,"[Security System] Security system Activated !! Experimental animals are released. The persons concerned have to evacuate.",bc_map,"0xff9977";
- areamonster .@map$,35,159,50,169,"Starving Lab animal",MD_DESERT_WOLF,rand(10,15),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ areamonster .@map$,35,159,50,169,"Starving Lab animal",MD_DESERT_WOLF,rand(10,15),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
initnpctimer;
end;
OnDisable:
- killmonster instance_mapname("1@lhz"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ killmonster instance_mapname("1@lhz"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
end;
OnTimer180000:
stopnpctimer;
- if(mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if(mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
donpcevent instance_npcname("Lab1#1_1")+"::OnType_02";
mapannounce instance_mapname("1@lhz"),"[Security System] The Lab No.1's security system has been stopped.",bc_map,"0xff9977";
} else {
@@ -2023,7 +2023,7 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
end;
OnMyMobDead:
- if(mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if(mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
donpcevent instance_npcname("Lab1#1_1")+"::OnType_02";
mapannounce instance_mapname("1@lhz"),"[Security System] The Lab No.1's security system has been stopped.",bc_map,"0xff9977";
stopnpctimer;
@@ -2566,7 +2566,7 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
progressbar "0xffff00", 20;
stopnpctimer;
donpcevent instance_npcname("Lab2#2_2")+"::OnDisableValve1";
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
} else {
mes "Let your party leader handle the valve.";
@@ -2574,16 +2574,16 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
}
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
initnpctimer;
end;
OnTimer3000:
- specialeffect EF_DRAGONSMOKE,AREA,instance_npcname(strnpcinfo(0));
+ specialeffect EF_DRAGONSMOKE,AREA,instance_npcname(strnpcinfo(NPC_NAME));
stopnpctimer;
initnpctimer;
end;
@@ -2987,86 +2987,86 @@ lhz_dun04,147,279,0 script Laboratory Entrance#memo CLEAR_NPC,{
OnEnable:
.@map$ = instance_mapname("1@lhz");
- .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ .@label$ = instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
specialeffect EF_SUI_EXPLOSION;
- if(strnpcinfo(0) == "Seyren Windsor#boss01") {
+ if(strnpcinfo(NPC_NAME) == "Seyren Windsor#boss01") {
monster .@map$,129,154,"Load Knight Seyren",B_SEYREN,1,.@label$;
}
- if(strnpcinfo(0) == "Cecile Damon#boss02") {
+ if(strnpcinfo(NPC_NAME) == "Cecile Damon#boss02") {
monster .@map$,125,150,"Sniper Cecile",B_SHECIL,1,.@label$;
}
- if(strnpcinfo(0) == "Gertie Wie#boss03") {
+ if(strnpcinfo(NPC_NAME) == "Gertie Wie#boss03") {
monster .@map$,121,146,"Stalker Gertie",B_GERTIE,1,.@label$;
}
- if(strnpcinfo(0) == "Eremes Guile#boss04") {
+ if(strnpcinfo(NPC_NAME) == "Eremes Guile#boss04") {
monster .@map$,117,142,"Assassin Cross Eremes",B_EREMES,1,.@label$;
}
- if(strnpcinfo(0) == "Trentini#boss05") {
+ if(strnpcinfo(NPC_NAME) == "Trentini#boss05") {
monster .@map$,117,125,"Gypsy Trentini",B_TRENTINI,1,.@label$;
}
- if(strnpcinfo(0) == "Chen Liu#boss06") {
+ if(strnpcinfo(NPC_NAME) == "Chen Liu#boss06") {
monster .@map$,121,121,"Champion Chen",B_CHEN,1,.@label$;
}
- if(strnpcinfo(0) == "Alphochio Basil#boss07") {
+ if(strnpcinfo(NPC_NAME) == "Alphochio Basil#boss07") {
monster .@map$,125,117,"Crown Alphochio",B_ALPHOCCIO,1,.@label$;
}
- if(strnpcinfo(0) == "Flamel Emul#boss08") {
+ if(strnpcinfo(NPC_NAME) == "Flamel Emul#boss08") {
monster .@map$,129,113,"Creator Flamel",B_FLAMEL,1,.@label$;
}
- if(strnpcinfo(0) == "Randel Lawrence#boss09") {
+ if(strnpcinfo(NPC_NAME) == "Randel Lawrence#boss09") {
monster .@map$,146,113,"Paladin Randel",B_RANDEL,1,.@label$;
}
- if(strnpcinfo(0) == "Celia Alde#boss10") {
+ if(strnpcinfo(NPC_NAME) == "Celia Alde#boss10") {
monster .@map$,150,117,"Professor Celia",B_CELIA,1,.@label$;
}
- if(strnpcinfo(0) == "Kathryne Keyron#boss11") {
+ if(strnpcinfo(NPC_NAME) == "Kathryne Keyron#boss11") {
monster .@map$,154,121,"High Wizard Kathryne",B_KATRINN,1,.@label$;
}
- if(strnpcinfo(0) == "Margaretha Sorin#boss12") {
+ if(strnpcinfo(NPC_NAME) == "Margaretha Sorin#boss12") {
monster .@map$,158,125,"High Priest Margaretha",B_MAGALETA,1,.@label$;
}
- if(strnpcinfo(0) == "Howard Alt-Eisen#boss13") {
+ if(strnpcinfo(NPC_NAME) == "Howard Alt-Eisen#boss13") {
monster .@map$,158,142,"White Smith Howard",B_HARWORD,1,.@label$;
}
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnDisable:
- killmonster instance_mapname("1@lhz"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
- disablenpc instance_npcname(strnpcinfo(0));
+ killmonster instance_mapname("1@lhz"),instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnMyMobDead:
- if (mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
+ if (mobcount(instance_mapname("1@lhz"), instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead") < 1) {
.@map$ = instance_mapname("1@lhz");
- if(strnpcinfo(0) == "Seyren Windsor#boss01")
+ if(strnpcinfo(NPC_NAME) == "Seyren Windsor#boss01")
mapannounce .@map$,"Awww... Where are all my fellows....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Cecile Damon#boss02")
+ else if (strnpcinfo(NPC_NAME) == "Cecile Damon#boss02")
mapannounce .@map$,"Any..one, please help.. please.....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Gertie Wie#boss03")
+ else if (strnpcinfo(NPC_NAME) == "Gertie Wie#boss03")
mapannounce .@map$,".. did I act too.. rashly...?",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Eremes Guile#boss04")
+ else if (strnpcinfo(NPC_NAME) == "Eremes Guile#boss04")
mapannounce .@map$,"Ah..... I am absolutely defeated....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Trentini#boss05")
+ else if (strnpcinfo(NPC_NAME) == "Trentini#boss05")
mapannounce .@map$,"ah.. If I.. ever can ... dance and.... sing...happily....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Chen Liu#boss06")
+ else if (strnpcinfo(NPC_NAME) == "Chen Liu#boss06")
mapannounce .@map$,"I.... am so .. sorry....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Alphochio Basil#boss07")
+ else if (strnpcinfo(NPC_NAME) == "Alphochio Basil#boss07")
mapannounce .@map$,"...the new song......was ....for.....her....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Flamel Emul#boss08")
+ else if (strnpcinfo(NPC_NAME) == "Flamel Emul#boss08")
mapannounce .@map$,"Ha...I wanted to show.... the new potion....",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Randel Lawrence#boss09")
+ else if (strnpcinfo(NPC_NAME) == "Randel Lawrence#boss09")
mapannounce .@map$,"Wooooo.. everyone got defeated.....??",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Celia Alde#boss10")
+ else if (strnpcinfo(NPC_NAME) == "Celia Alde#boss10")
mapannounce .@map$,"No..... this experiment is.....dang...",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Kathryne Keyron#boss11")
+ else if (strnpcinfo(NPC_NAME) == "Kathryne Keyron#boss11")
mapannounce .@map$,"awww.. is everyone Ok....?",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Margaretha Sorin#boss12")
+ else if (strnpcinfo(NPC_NAME) == "Margaretha Sorin#boss12")
mapannounce .@map$,"My good boy.. Don't cry... ah.... our Great Odin.. please save us...",bc_map,"0xFD3B02";
- else if (strnpcinfo(0) == "Howard Alt-Eisen#boss13")
+ else if (strnpcinfo(NPC_NAME) == "Howard Alt-Eisen#boss13")
mapannounce .@map$,"oh...no.... can't breath.... and my sister...?? sister!!",bc_map,"0xFD3B02";
donpcevent instance_npcname("Wolfchev#last")+"::OnEnable";
- donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
+ donpcevent instance_npcname(strnpcinfo(NPC_NAME))+"::OnDisable";
}
end;
}
diff --git a/npc/re/instances/saras_memory.txt b/npc/re/instances/saras_memory.txt
index 69ee7dacb..bb7dbdeec 100644
--- a/npc/re/instances/saras_memory.txt
+++ b/npc/re/instances/saras_memory.txt
@@ -763,77 +763,77 @@ OnTimer5000:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,107,325,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,115,325,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,116,317,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,108,317,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,116,311,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,108,311,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,101,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,105,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,109,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,113,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,117,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,122,227,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,122,225,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,122,223,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,122,221,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,122,219,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,122,217,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,227,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,225,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,223,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,221,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,219,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,217,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,151,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,153,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,155,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,157,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,159,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,161,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,187,215,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,187,217,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,187,219,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,187,221,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,187,223,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,187,225,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,215,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,217,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,219,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,221,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,223,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,225,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,192,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,194,250,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,196,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,198,250,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,196,254,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,196,256,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,196,258,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,199,254,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,199,256,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,199,258,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,204,246,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,248,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,252,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,254,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,206,251,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,107,325,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,115,325,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,116,317,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,108,317,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,116,311,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,108,311,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,101,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,105,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,109,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,113,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,117,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,295,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,122,227,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,122,225,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,122,223,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,122,221,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,122,219,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,122,217,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,227,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,225,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,223,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,221,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,219,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,217,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,151,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,153,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,155,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,157,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,159,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,161,231,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,187,215,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,187,217,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,187,219,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,187,221,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,187,223,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,187,225,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,215,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,217,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,219,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,221,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,223,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,225,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,192,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,194,250,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,196,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,198,250,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,196,254,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,196,256,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,196,258,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,199,254,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,199,256,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,199,258,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,204,246,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,248,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,250,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,252,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,254,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,206,251,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnMyMobDead:
.@callnum = 58;
.@map$ = instance_mapname("1@sara");
- .@a_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@a_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@a_mob_num;
if (.@mob_dead_num > 57) {
viewpoint 1, 209, 250, 1, C_GREEN;
@@ -860,32 +860,32 @@ OnDisable:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$,228,312,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,227,312,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,229,315,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,228,312,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,227,312,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,229,315,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- monster(.@map$,247,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,248,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,249,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,247,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,248,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,249,290,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- monster(.@map$,223,264,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,230,248,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,227,248,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,223,264,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,230,248,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,227,248,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- monster(.@map$,238,229,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,225,220,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,228,220,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,238,229,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,225,220,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,228,220,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- monster(.@map$,220,212,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,223,212,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,220,212,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,223,212,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
- monster(.@map$,219,203,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,222,203,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,219,203,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,222,203,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnMyMobDead:
.@callnum = 16;
.@map$ = instance_mapname("1@sara");
- .@b_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@b_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@b_mob_num;
if (.@mob_dead_num > 15) {
viewpoint 1, 226, 190, 1, C_GREEN;
@@ -912,64 +912,64 @@ OnDisable:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$, 255,91,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$, 255,92,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$, 255,93,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$, 255,94,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,254,91,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,254,92,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,254,93,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,254,94,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,228,65,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,228,64,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,228,63,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,228,62,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,198,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,195,56,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,195,60,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,195,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,192,56,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,192,60,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,192,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,187,68,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,188,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,120,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,121,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,93,64,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,93,68,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,93,72,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,93,76,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,90,64,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,90,68,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,90,72,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,90,76,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,87,67,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,87,63,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,87,59,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,87,55,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,84,67,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,84,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,84,59,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,84,55,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,81,67,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,81,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,81,59,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,81,55,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,81,51,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$, 255,91,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$, 255,92,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$, 255,93,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$, 255,94,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,254,91,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,254,92,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,254,93,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,254,94,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,228,65,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,228,64,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,228,63,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,228,62,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,198,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,195,56,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,195,60,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,195,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,192,56,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,192,60,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,192,62,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,187,68,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,188,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,120,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,121,39,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,93,64,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,93,68,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,93,72,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,93,76,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,90,64,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,90,68,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,90,72,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,90,76,"A Gentle Guard Dog",2545,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,87,67,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,87,63,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,87,59,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,87,55,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,84,67,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,84,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,84,59,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,84,55,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,81,67,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,81,63,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,81,59,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,81,55,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,81,51,"A Fierce Guard Dog",2546,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnMyMobDead:
.@callnum = 45;
.@map$ = instance_mapname("1@sara");
- .@c_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@c_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@c_mob_num;
if (.@mob_dead_num > 44) {
viewpoint 1, 166, 67, 1, C_GREEN;
@@ -996,63 +996,63 @@ OnDisable:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$,155,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,157,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,159,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,161,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,201,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,207,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,210,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,213,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,201,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,204,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,207,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,210,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,213,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,223,152,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,223,148,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,223,144,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,221,152,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,221,148,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,221,144,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,151,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,153,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,155,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,157,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,159,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,151,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,153,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,155,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,157,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,159,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,151,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,153,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,155,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,157,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,159,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,173,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,170,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,167,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,164,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
-
- monster(.@map$,173,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,170,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,167,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- monster(.@map$,164,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,155,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,157,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,159,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,161,97,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,201,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,207,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,210,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,213,113,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,201,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,204,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,207,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,210,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,213,117,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,223,152,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,223,148,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,223,144,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,221,152,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,221,148,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,221,144,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,151,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,153,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,155,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,157,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,159,174,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,151,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,153,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,155,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,157,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,159,177,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,151,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,153,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,155,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,157,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,159,180,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,173,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,170,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,167,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,164,139,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+
+ monster(.@map$,173,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,170,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,167,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ monster(.@map$,164,137,"Payon Town Guard",2543,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
end;
OnMyMobDead:
.@callnum = 43;
.@map$ = instance_mapname("1@sara");
- .@d_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@d_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@d_mob_num;
if (.@mob_dead_num > 42) {
viewpoint 1, 155, 180, 1, C_GREEN;
@@ -1161,27 +1161,27 @@ OnDisable:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$,150,232,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,150,232,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("I am getting too old for this sh-"));
- monster(.@map$,150,227,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,150,227,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,150,222,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,150,222,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,150,217,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,150,217,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,161,232,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,161,232,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,161,227,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,161,227,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,161,222,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,161,222,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
- monster(.@map$,161,217,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,161,217,"Payon Town Guard",2544,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("For Payon!!"));
end;
OnMyMobDead:
.@callnum = 8;
.@map$ = instance_mapname("1@sara");
- .@f_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@f_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@f_mob_num;
if (.@mob_dead_num > 7) {
mapannounce(instance_mapname("1@sara"),_("<SYSTEM> Doyen Irene draws his blade!"), bc_map, C_YELLOW);
@@ -1205,13 +1205,13 @@ OnDisable:
end;
OnRespawn:
.@map$ = instance_mapname("1@sara");
- monster(.@map$,155,226,"Doyen Irene",2542,1,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ monster(.@map$,155,226,"Doyen Irene",2542,1,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
unittalk($@mobid[0], _("I will have revenge for Sara's Mom!"));
end;
OnMyMobDead:
.@callnum = 1;
.@map$ = instance_mapname("1@sara");
- .@g_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@g_mob_num = mobcount(.@map$, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
.@mob_dead_num = .@callnum - .@g_mob_num;
if (.@mob_dead_num > 0) {
mapannounce(instance_mapname("1@sara"), _("<SYSTEM> Doyen Irene has fallen."), bc_map, C_YELLOW);
diff --git a/npc/re/jobs/2e/kagerou_oboro.txt b/npc/re/jobs/2e/kagerou_oboro.txt
index 7d166b75a..c239e4a0e 100644
--- a/npc/re/jobs/2e/kagerou_oboro.txt
+++ b/npc/re/jobs/2e/kagerou_oboro.txt
@@ -1140,12 +1140,12 @@ function script F_KO_Survival_rps {
//- Templates -
- script Sight#ko_trap FAKE_NPC,{
- callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(2),3,4));
+ callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
end;
OnTouch:
mes "There are tiny letters on the sign.";
next;
- switch (atoi(substr(strnpcinfo(2),3,4))) {
+ switch (atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4))) {
case 2: set .@id,0; break;
case 7: set .@id,5; break;
case 11: set .@id,9; break;
@@ -1161,10 +1161,10 @@ OnTouch:
}
- script Sight#ko_trap2 FAKE_NPC,{
- callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(2),3,4));
+ callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
end;
OnTouch:
- set .@id, atoi(substr(strnpcinfo(2),3,4));
+ set .@id, atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
switch (.@id) {
case 10: set .@var$, "$20110808_vko01"; break;
case 28: set .@var$, "$20110808_vko03"; break;
@@ -1206,10 +1206,10 @@ OnTouch:
}
- script Sight#ko_heal FAKE_NPC,{
- callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(2),3,4));
+ callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
end;
OnTouch:
- set .@id, atoi(substr(strnpcinfo(2),3,4));
+ set .@id, atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
mes "There are tiny letters on the sign.";
next;
mes "This block is blessed.";
@@ -1224,10 +1224,10 @@ OnTouch:
}
- script Sight#ko_curse FAKE_NPC,{
- callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(2),3,4));
+ callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
end;
OnTouch:
- set .@id, atoi(substr(strnpcinfo(2),3,4));
+ set .@id, atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
set .@playtime, questprogress(5141,PLAYTIME);
if (!.@playtime) {
mes "There are tiny letters on the sign.";
@@ -1269,10 +1269,10 @@ OnTouch:
}
- script Sight#ko_gravity FAKE_NPC,{
- callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(2),3,4));
+ callfunc "F_KO_Survival_mes", atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
end;
OnTouch:
- set .@id, atoi(substr(strnpcinfo(2),3,4));
+ set .@id, atoi(substr(strnpcinfo(NPC_NAME_HIDDEN),3,4));
mes "There are tiny letters on the sign.";
next;
mes "Area cursed with 10 times the normal gravity. You will need 10 ^FD0260LP^000000 to roll the dice.";
diff --git a/npc/re/jobs/3-1/archbishop.txt b/npc/re/jobs/3-1/archbishop.txt
index addcc0346..9caa1f538 100644
--- a/npc/re/jobs/3-1/archbishop.txt
+++ b/npc/re/jobs/3-1/archbishop.txt
@@ -1007,7 +1007,7 @@ OnTouch:
delitem ValkyrieA_Scroll,1;
// fall through
} else if (getmercinfo(1) == 2037) {
- if (strnpcinfo(0) == "#arch_1_10")
+ if (strnpcinfo(NPC_NAME) == "#arch_1_10")
viewpoint 1,113,327,1,0xFF9900;
.@randht = rand(1,10);
if (.@randht < 8)
diff --git a/npc/re/jobs/3-1/guillotine_cross.txt b/npc/re/jobs/3-1/guillotine_cross.txt
index a29961eca..3f34e03f7 100644
--- a/npc/re/jobs/3-1/guillotine_cross.txt
+++ b/npc/re/jobs/3-1/guillotine_cross.txt
@@ -3062,10 +3062,10 @@ OnTimer5000:
end;
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -3386,17 +3386,17 @@ OnMyMobDead:
job3_guil03,2,2,0 script #3rdgc_sunchal_kill01 CLEAR_NPC,{
end;
OnEnable:
- .@i = atoi(charat(strnpcinfo(0),20));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),20));
setarray .@x[1],74,124,103;
setarray .@y[1],63, 78, 24;
- monster "job3_guil03",.@x[.@i],.@y[.@i],"Guard",1985,1,strnpcinfo(0)+"::OnMyMobDead";
+ monster "job3_guil03",.@x[.@i],.@y[.@i],"Guard",1985,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnStop:
mapannounce "job3_guil03","Guard : Am I imagining things? I just heard something...",bc_map,"0xA8A8A8"; //FW_NORMAL 12 0 0
stopnpctimer;
end;
OnReset:
- killmonster "job3_guil03",strnpcinfo(0)+"::OnMyMobDead";
+ killmonster "job3_guil03",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnMyMobDead:
initnpctimer;
@@ -3419,32 +3419,32 @@ job3_guil03,2,4,0 duplicate(#3rdgc_sunchal_kill01) #3rdgc_sunchal_kill03 CLEAR_N
job3_guil03,64,68,3 script #3rdgc_gojung_kill01 4_M_DSTMAN,7,7,{
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnStop:
mapannounce "job3_guil03","Guard : Am I imagining things? I just heard something.",bc_map,"0xA8A8A8"; //FW_NORMAL 12 0 0
stopnpctimer;
end;
OnReset:
- killmonster "job3_guil03",strnpcinfo(0)+"::OnMyMobDead";
+ killmonster "job3_guil03",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnTouch:
- .@i = atoi(charat(strnpcinfo(0),19));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME),19));
setarray .@x[1],64,86,83;
setarray .@y[1],68,63,36;
mapannounce "job3_guil03","Guard : Who are you?!",bc_map,"0x7b68ee"; //FW_NORMAL 12 0 0
- disablenpc strnpcinfo(0);
- monster "job3_guil03",.@x[.@i],.@y[.@i],"Guard",1985,1,strnpcinfo(0)+"::OnMyMobDead";
+ disablenpc strnpcinfo(NPC_NAME);
+ monster "job3_guil03",.@x[.@i],.@y[.@i],"Guard",1985,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
initnpctimer;
end;
OnMyMobDead:
stopnpctimer;
end;
OnTimer5000:
- if (strnpcinfo(0) == "#3rdgc_gojung_kill03") end;
+ if (strnpcinfo(NPC_NAME) == "#3rdgc_gojung_kill03") end;
OnTimer10000:
mapannounce "job3_guil03","Guard : I need support! Take caution!",bc_map,"0x7b68ee"; //FW_NORMAL 12 0 0
donpcevent "#3rdgc_guard::OnEnable";
@@ -3458,7 +3458,7 @@ job3_guil03,88,71,0 script #3rdgc_safezone01 HIDDEN_WARP_NPC,1,1,{
end;
OnTouch:
mes "It's a good bush to hide yourself.";
- donpcevent strnpcinfo(0)+"::OnTimer";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnTimer";
close;
OnTimer:
//FIXME: This is a workaround for...
@@ -3491,7 +3491,7 @@ job3_guil03,111,51,7 script Priest from Rachel 4_M_MIDDLE1,{
next;
mes "[Priest from Rachel]";
mes "Because of you, you ruined everything!";
- setnpcdisplay(strnpcinfo(0), HIDEN_PRIEST);
+ setnpcdisplay(strnpcinfo(NPC_NAME), HIDEN_PRIEST);
next;
mes "[Priest from Rachel]";
mes "You want to destroy us forever!";
diff --git a/npc/re/jobs/3-1/ranger.txt b/npc/re/jobs/3-1/ranger.txt
index 1e7b40c98..91adb9b49 100644
--- a/npc/re/jobs/3-1/ranger.txt
+++ b/npc/re/jobs/3-1/ranger.txt
@@ -1584,14 +1584,14 @@ OnTimer133000:
- script Egg Bomb#0 FAKE_NPC,{
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
- monster "job3_rang02",.@x,.@y,"Egg Bomb",1047,1,strnpcinfo(0)+"::OnMyMobDead";
- switch(atoi(strnpcinfo(2))%3) {
+ monster "job3_rang02",.@x,.@y,"Egg Bomb",1047,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))%3) {
case 0: .@str$ = "Hey, I am going to explode. What are you going to do?"; break;
case 1: .@str$ = "I... no, I can't stand anymore!!"; break;
case 2: .@str$ = "I am almost done now... Don't stop me."; break;
@@ -1600,22 +1600,22 @@ OnEnable:
end;
OnDisable:
stopnpctimer;
- killmonster "job3_rang02",strnpcinfo(0)+"::OnMyMobDead";
- disablenpc strnpcinfo(0);
+ killmonster "job3_rang02",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnMyMobDead:
++$@job_rang_point03;
- switch(atoi(strnpcinfo(2))%3) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))%3) {
case 0: .@str$ = "The world is meaningless and my dream is so far away..."; break;
case 1: .@str$ = "Don't be relieved. Misery always comes from carelessness."; break;
case 2: .@str$ = "Alas, it was only a dream for a short time..."; break;
}
mapannounce "job3_rang02","Egg Bomb : "+.@str$,bc_map,"0x87ceeb"; //FW_NORMAL 12 0 0
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnTimer10000:
mapannounce "job3_rang02","Egg Bomb : Ughhhhhhhhhhhhhh!!! So what did I say!!",bc_map,"0xFF9900"; //FW_NORMAL 12 0 0
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
job3_rang02,246,42,0 duplicate(Egg Bomb#0) Egg Bomb#14 HIDDEN_WARP_NPC
diff --git a/npc/re/jobs/3-1/rune_knight.txt b/npc/re/jobs/3-1/rune_knight.txt
index 237c1f33e..fb875278d 100644
--- a/npc/re/jobs/3-1/rune_knight.txt
+++ b/npc/re/jobs/3-1/rune_knight.txt
@@ -1236,13 +1236,13 @@ mid_camp,13,138,3 script Dispatched Rune Knight#1 4_M_01,2,2,{
mes "I've been waiting for you Rune Knight candidate. I'm helping the candidates as a favor to Ms. Serpeone.";
next;
mes "[Dispatched Rune Knight]";
- if (strnpcinfo(0) == "Dispatched Rune Knight#1") {
+ if (strnpcinfo(NPC_NAME) == "Dispatched Rune Knight#1") {
mes "Do you want to go out to the Splendide field?";
next;
if(select("Move to Splendide field", "Cancel.") == 1)
warp "spl_fild01",355,325;
close;
- } else if (strnpcinfo(0) == "Dispatched Rune Knight#2") {
+ } else if (strnpcinfo(NPC_NAME) == "Dispatched Rune Knight#2") {
mes "Do you want to go back to the expeditionary team's post?";
next;
if(select("Yes please.", "Not yet.") == 1)
diff --git a/npc/re/jobs/3-1/warlock.txt b/npc/re/jobs/3-1/warlock.txt
index adbdf2d6a..137eefd40 100644
--- a/npc/re/jobs/3-1/warlock.txt
+++ b/npc/re/jobs/3-1/warlock.txt
@@ -40,7 +40,7 @@
OnTouch:
if (job_wl > 1) {
mes " - There is a strange distortion here - ";
- if (strnpcinfo(0) == "#distorted_space_1" && (Class == Job_Warlock || Class == Job_Warlock_T || Class == Job_Baby_Warlock)) {
+ if (strnpcinfo(NPC_NAME) == "#distorted_space_1" && (Class == Job_Warlock || Class == Job_Warlock_T || Class == Job_Baby_Warlock)) {
close2;
if (countitem(Special_Exchange_Coupon) > 0)
warp "spl_in02",79,102;
@@ -58,7 +58,7 @@ OnTouch:
close;
}
}
- if (BaseLevel > 94 && (strnpcinfo(0) == "#distorted_space_2" || BaseJob == Job_Wizard)) {
+ if (BaseLevel > 94 && (strnpcinfo(NPC_NAME) == "#distorted_space_2" || BaseJob == Job_Wizard)) {
mes " - There is a strange distortion here - ";
next;
switch(select("Search the area.", "Ignore it.")) {
@@ -801,36 +801,36 @@ OnDisable:
- script The chamber of magic#2 FAKE_NPC,{
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
- monster "job3_war02",23,32,"Magic Monster",2047,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",23,21,"Magic Monster",2048,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",34,32,"Magic Monster",2049,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",34,21,"Magic Monster",2050,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",23,32,"Magic Monster",2047,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",23,21,"Magic Monster",2048,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",34,32,"Magic Monster",2049,1,strnpcinfo(0)+"::OnMyMobDead";
- monster "job3_war02",34,21,"Magic Monster",2050,1,strnpcinfo(0)+"::OnMyMobDead";
+ enablenpc strnpcinfo(NPC_NAME);
+ monster "job3_war02",23,32,"Magic Monster",2047,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",23,21,"Magic Monster",2048,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",34,32,"Magic Monster",2049,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",34,21,"Magic Monster",2050,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",23,32,"Magic Monster",2047,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",23,21,"Magic Monster",2048,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",34,32,"Magic Monster",2049,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ monster "job3_war02",34,21,"Magic Monster",2050,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
initnpctimer;
end;
OnReset:
- killmonster "job3_war02",strnpcinfo(0)+"::OnMyMobDead";
+ killmonster "job3_war02",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnMyMobDead:
- if (mobcount("job3_war02",strnpcinfo(0)+"::OnMyMobDead") < 1) {
+ if (mobcount("job3_war02",strnpcinfo(NPC_NAME)+"::OnMyMobDead") < 1) {
stopnpctimer;
mapannounce "job3_war02","The Monster Invasion has been stopped.",bc_map;
- .@str$ = "The chamber of magic#"+((strnpcinfo(0) == "The chamber of magic#2")?"3":"4");
+ .@str$ = "The chamber of magic#"+((strnpcinfo(NPC_NAME) == "The chamber of magic#2")?"3":"4");
donpcevent .@str$+"::OnEnable";
}
end;
OnTimer3000:
- if (strnpcinfo(0) != "The chamber of magic#2") end;
+ if (strnpcinfo(NPC_NAME) != "The chamber of magic#2") end;
mapannounce "job3_war02","A Magical Power fragment has been created in the Magic Chamber Room.",bc_map;
end;
OnTimer4000:
diff --git a/npc/re/jobs/3-2/genetic.txt b/npc/re/jobs/3-2/genetic.txt
index f2c1ded47..ea926b0b1 100644
--- a/npc/re/jobs/3-2/genetic.txt
+++ b/npc/re/jobs/3-2/genetic.txt
@@ -970,7 +970,7 @@ job3_gen01,91,48,3 script Demi Calberine#gen 4_F_SCIENCE,{
mes "- You found a little metal fragment. -";
job_gen = job_gen+1;
specialeffect EF_BASH;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
} else if (job_gen == 74) {
@@ -979,7 +979,7 @@ job3_gen01,91,48,3 script Demi Calberine#gen 4_F_SCIENCE,{
}
end;
OnTimer7000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
diff --git a/npc/re/jobs/3-2/minstrel.txt b/npc/re/jobs/3-2/minstrel.txt
index a8cb2d61d..ca5b7e261 100644
--- a/npc/re/jobs/3-2/minstrel.txt
+++ b/npc/re/jobs/3-2/minstrel.txt
@@ -828,18 +828,18 @@ OnTimer300000:
yuno,146,168,0 script Karian#cmd2 4_M_BARD,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnTimer100000:
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
stopnpctimer;
end;
}
diff --git a/npc/re/jobs/3-2/royal_guard.txt b/npc/re/jobs/3-2/royal_guard.txt
index a1dff376d..0d87db5d2 100644
--- a/npc/re/jobs/3-2/royal_guard.txt
+++ b/npc/re/jobs/3-2/royal_guard.txt
@@ -465,7 +465,7 @@ gl_church,173,88,0 script Delicate trace#01 CLEAR_NPC,{
getitem Stone,1;
else {
mes "While investigating, the topography breaks. It would be better to dig other places for a while.";
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
}
@@ -473,7 +473,7 @@ gl_church,173,88,0 script Delicate trace#01 CLEAR_NPC,{
mes "There is a trace that someone has already dug here.";
close;
OnTimer60000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
OnTimer1000:
OnTimer20000:
diff --git a/npc/re/jobs/3-2/sorcerer.txt b/npc/re/jobs/3-2/sorcerer.txt
index ff9faf500..a75480f24 100644
--- a/npc/re/jobs/3-2/sorcerer.txt
+++ b/npc/re/jobs/3-2/sorcerer.txt
@@ -392,10 +392,10 @@ gef_tower,113,161,5 script Karacas 4_M_SAGE_A,{
}
- script Spirit Detecting Staff#0 FAKE_NPC,{
- if (strnpcinfo(4) == "thor_v01") setarray .@id[0],990,994,6276,6278;
- else if (strnpcinfo(4) == "ice_dun01") setarray .@id[0],991,995,6278,6276;
- else if (strnpcinfo(4) == "mjo_dun03") setarray .@id[0],993,997,6277,6276;
- else if (strnpcinfo(4) == "gon_dun02") setarray .@id[0],992,996,6277,6278;
+ if (strnpcinfo(NPC_MAP) == "thor_v01") setarray .@id[0],990,994,6276,6278;
+ else if (strnpcinfo(NPC_MAP) == "ice_dun01") setarray .@id[0],991,995,6278,6276;
+ else if (strnpcinfo(NPC_MAP) == "mjo_dun03") setarray .@id[0],993,997,6277,6276;
+ else if (strnpcinfo(NPC_MAP) == "gon_dun02") setarray .@id[0],992,996,6277,6278;
if (job_soc == 4 && countitem(.@id[0]) > 2) {
progressbar "ffff00",5;
diff --git a/npc/re/jobs/3-2/sura.txt b/npc/re/jobs/3-2/sura.txt
index b28cb6fdd..f1353e282 100644
--- a/npc/re/jobs/3-2/sura.txt
+++ b/npc/re/jobs/3-2/sura.txt
@@ -166,7 +166,7 @@ ve_in,237,125,0 script King Crab#job_shu 1_M_PAY_ELDER,{
setquest 11155;
close;
} else {
- if (strnpcinfo(0) == "King Crab#job_shu") {
+ if (strnpcinfo(NPC_NAME) == "King Crab#job_shu") {
mes "[King Crab]";
mes "How come a little rookie knocked me out! Me! The great King Crab...";
} else {
diff --git a/npc/re/jobs/3-2/wanderer.txt b/npc/re/jobs/3-2/wanderer.txt
index baad4b65a..6f131f2bc 100644
--- a/npc/re/jobs/3-2/wanderer.txt
+++ b/npc/re/jobs/3-2/wanderer.txt
@@ -102,7 +102,7 @@ xmas,162,209,5 script Aspiring Wanderer, Soy 4_F_06,{
close;
}
} else if (job_wan == 1) {
- if (strnpcinfo(0) == "Aspiring Wanderer, Soy") {
+ if (strnpcinfo(NPC_NAME) == "Aspiring Wanderer, Soy") {
mes "[Soy]";
mes "The performance will be held in front of the Christmas tree here in Lutie.";
mes "I can't wait! Ah~ I'm losing my senses, Mimi.";
@@ -120,7 +120,7 @@ xmas,162,209,5 script Aspiring Wanderer, Soy 4_F_06,{
mes "<Nollio> is the best!!";
close;
} else {
- if (strnpcinfo(0) == "Aspiring Wanderer, Soy") {
+ if (strnpcinfo(NPC_NAME) == "Aspiring Wanderer, Soy") {
mes "[Soy]";
mes "I want to become an famous Wanderer too, Mimi.";
} else {
@@ -1044,7 +1044,7 @@ OnInit:
- script #wander_xmas FAKE_NPC,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
xmas,149,135,3 duplicate(#wander_xmas) Guitar Song#xmas 4_M_MINSTREL
diff --git a/npc/re/jobs/novice/academy.txt b/npc/re/jobs/novice/academy.txt
index 4b970a86c..0d8f3a7e2 100644
--- a/npc/re/jobs/novice/academy.txt
+++ b/npc/re/jobs/novice/academy.txt
@@ -776,7 +776,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "<NAVI>[the Academy building]<INFO>iz_ac01,100,39</INFO></NAVI>.";
mes "Anybody can enroll, so take advantage of it.";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "Sorry to interrupt.";
mes "But ^4d4dff if you need location info, please ask me.^000000";
@@ -798,7 +798,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "If there are more adventurers like you, the future will be brighter.";
mes "Hahahaha.";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "Sorry to interrupt.";
mes "But ^4d4dff if you need location info, please ask me.^000000";
@@ -817,7 +817,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "<NAVI>[the academy building]<INFO>iz_ac01,100,39</INFO></NAVI>.";
mes "What is well, is well- isn't it?";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "You are correct.";
mes "Preperation is the key.";
@@ -852,7 +852,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "<NAVI>[the Academy building]<INFO>iz_ac01,100,39</INFO></NAVI>.";
mes "Anybody can enroll, so take advantage of it.";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "Sorry to interrupt.";
mes "But ^4d4dff if you need location info, please ask me.^000000";
@@ -874,7 +874,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "If there are more adventurers like you, the future will be brighter.";
mes "Hahahaha.";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "Sorry to interrupt.";
mes "But ^4d4dff if you need location info, please ask me.^000000";
@@ -893,7 +893,7 @@ izlude,122,207,3 script Criatura Academy Staff#0 4_M_KHKYEL,3,3,{
mes "<NAVI>[the academy building]<INFO>iz_ac01,100,39</INFO></NAVI>.";
mes "What is well, is well- isn't it?";
next;
- emotion e_gasp, 0, "Information Staff#"+strnpcinfo(2);
+ emotion e_gasp, 0, "Information Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Information Staff]";
mes "You are correct.";
mes "Preperation is the key.";
@@ -2108,19 +2108,19 @@ izlude,141,251,0 script Cultivated Red Plant#0 RED_PLANT,3,3,{
OnTouch:
if (questprogress(7478) == 1 && !questprogress(7479))
- donpcevent "Cultivated Red Plant#"+strnpcinfo(2)+"::OnDisable";
+ donpcevent "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
end;
OnDisable:
specialeffect EF_STEAL;
- disablenpc "Cultivated Red Plant#"+strnpcinfo(2);
+ disablenpc "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN);
emotion e_gasp, 1;
- emotion e_heh, 0, "Academy Student#"+strnpcinfo(2);
+ emotion e_heh, 0, "Academy Student#"+strnpcinfo(NPC_NAME_HIDDEN);
initnpctimer;
end;
OnTimer30000:
- enablenpc "Cultivated Red Plant#"+strnpcinfo(2);
+ enablenpc "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN);
stopnpctimer;
end;
}
@@ -2138,8 +2138,8 @@ izlude,140,249,7 script Academy Student#0 4_M_NOV_RUMIN,{
close;
}
if (questprogress(7478) == 1 && !questprogress(7479)) {
- specialeffect EF_STEAL, AREA, "Cultivated Red Plant#"+strnpcinfo(2);
- donpcevent "Cultivated Red Plant#"+strnpcinfo(2)+"::OnDisable";
+ specialeffect EF_STEAL, AREA, "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN);
+ donpcevent "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
emotion e_gasp, 1;
emotion e_heh;
mes "[Lumin]";
@@ -2200,7 +2200,7 @@ izlude,140,249,7 script Academy Student#0 4_M_NOV_RUMIN,{
next;
mes "[Lumin]";
mes "Ah... see it's growing back.";
- enablenpc "Cultivated Red Plant#"+strnpcinfo(2);
+ enablenpc "Cultivated Red Plant#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
} else {
if (Class == Job_Novice) {
@@ -3738,11 +3738,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "I am Dacquoise, the pupil of the legendary chef of Rune Midgard, ^0000cdCharles Orleans^000000.";
next;
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "And we are also club members of Sir Orleans' ^0000cdfan club- Loverleans^000000.";
next;
- emotion e_lv,"Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv,"Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Orlean belongs to all of us!";
next;
@@ -3765,7 +3765,7 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Eclaire]";
mes "You, do you want to know more about cooking?";
next;
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Will you exeprience the various spectrums of cooking?";
next;
@@ -3784,11 +3784,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "Ok, we will be kind guides to the journey of cooking!!";
next;
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "It's ok with me, asking me everthing you want to know.";
next;
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Kindness is our spice~";
next;
@@ -3848,18 +3848,18 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "Right, cooking needs some preparation. This can also be divided into two catagories.";
next;
- emotion e_gasp,"Dacquoise#"+strnpcinfo(2);
+ emotion e_gasp,"Dacquoise#"+strnpcinfo(NPC_NAME_HIDDEN);
break;
case 3:
emotion e_an;
mes "[Dacquoise]";
mes "What is this? What a waste of time!";
next;
- emotion e_ag, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_ag, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "I thought we were going to get more members!";
next;
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Never show up again!!";
close;
@@ -3924,11 +3924,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
next;
mes "[Eclaire]";
mes "You have insulted us!";
- emotion e_ag, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_ag, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
next;
mes "[Mille Feuille]";
mes "Come back again, if you want to learn later~ I guess...";
- emotion e_dots, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_dots, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
if(questprogress(14154) == 1)
erasequest 14154;
@@ -3951,12 +3951,12 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
next;
mes "[Eclaire]";
mes "Go hunting after eating this. You will feel your power enhanced.";
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
next;
mes "[Mille Feuille]";
mes "If you really want to cook, go and see ^0000ffSir. Charles Orleans at the basement of Prontera castle^000000!!";
mes "Kya... Sir Orleans!!";
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
delitem Clover, 1; // Clover
delitem Green_Herb, 1; // Green_Herb
@@ -3973,11 +3973,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
next;
mes "[Eclaire]";
mes "Try this. It will make you run like you are a flying bee.";
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
next;
mes "[Mille Feuille]";
mes "If you really want to cook, go and see ^0000ffSir. Charles Orleans at the basement of Prontera castle^000000!! You must be attracted by him!!";
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
delitem Apple, 1; // Apple
delitem Carrot, 2; // Carrot
@@ -3993,11 +3993,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
next;
mes "[Eclaire]";
mes "Can you feel unknown power coursing through your veins? You're eating it!";
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
next;
mes "[Mille Feuille]";
mes "If you are really curious about the cooking, go seek Sir. Charles Orleans at the basement of Prontera Castle.";
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
delitem Jellopy, 1; // Jellopy
delitem Fluff, 1; // Fluff
@@ -4015,12 +4015,12 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Eclaire]";
mes "If you eat this. You will never miss your target!";
mes "In fact, never miss the target for level 1!";
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
next;
mes "[Mille Feuille]";
mes "Go and see Sir. Charles Orleans at the basement of Prontera castle!!";
mes "You can learn real cooking from him!";
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
delitem Apple, 1; // Apple
delitem Clover, 1; // Clover
@@ -4056,14 +4056,14 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "Why are you saying you will make them?";
next;
- emotion e_hmm, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_hmm, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Ah, Why not?";
next;
mes "[Dacquoise]";
mes "I am the leader of this flame cooking trio chefs!";
next;
- emotion e_omg, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_omg, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "What?!! When was that decided?";
next;
@@ -4071,11 +4071,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "Is there anyone who is older than me?";
next;
- emotion e_omg, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_omg, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "Age! There is nothing I can do with it.";
next;
- emotion e_ok,"Mille Feuille#"+strnpcinfo(2);
+ emotion e_ok,"Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "Just because you're one year older, you want to automatically be rejected. Anyone have an objection?";
next;
@@ -4202,11 +4202,11 @@ iz_ac01,147,50,3 script Dacquoise#ac 4_COOK,{
mes "[Dacquoise]";
mes "I am Dacquoise, the pupil of the legendary chef of Rune Midgard, ^0000cdCharles Orleans^000000.";
next;
- emotion e_no1, 0, "Eclaire#"+strnpcinfo(2);
+ emotion e_no1, 0, "Eclaire#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Eclaire]";
mes "Steaks not only increase stats but also recover both your HP and SP.";
next;
- emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(2);
+ emotion e_lv, 0, "Mille Feuille#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Mille Feuille]";
mes "If you really want to cook, go and see^0000cd Sir. Charles Orleans at the basement of Prontera castle^000000!! You must be attracted by him!!";
close;
@@ -4474,7 +4474,7 @@ iz_ac01,59,83,3 script Battle Instructor#08 4_M_NOV_HUNT,{
mes "Ok, I'll send you to the West field of Izlude.";
mes "Be sure you know how to get back.";
close2;
- warp "prt_fild"+strnpcinfo(2), 344, 213;
+ warp "prt_fild"+strnpcinfo(NPC_NAME_HIDDEN), 344, 213;
end;
case 3:
mes "[Battle Instructor Subino]";
@@ -5484,15 +5484,15 @@ izlude,95,146,5 script Mom#iz 4_F_CAVE1,{
mes "[Mom]";
mes "^0000cd[Come to me, honey~]^000000";
next;
- enablenpc "Etinifni#"+strnpcinfo(2);
- specialeffect EF_PORTAL, AREA, "Etinifni#"+strnpcinfo(2);
+ enablenpc "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
+ specialeffect EF_PORTAL, AREA, "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Etinifni]";
mes "What's up? Where am I?";
next;
mes "[Mom]";
mes "Here!";
next;
- emotion e_ag, 0, "Etinifni#"+strnpcinfo(2);
+ emotion e_ag, 0, "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Etinifni]";
mes "Ah... Again!! I have been out hunting Orcs.";
next;
@@ -5505,12 +5505,12 @@ izlude,95,146,5 script Mom#iz 4_F_CAVE1,{
mes "[Mom]";
mes "What? This moron?!";
next;
- emotion e_sigh, 0, "Etinifni#"+strnpcinfo(2);
+ emotion e_sigh, 0, "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Etinifni]";
mes "OK. I will do it.";
next;
- disablenpc "Etinifni#"+strnpcinfo(2);
- emotion e_sob, 0, "Dad#"+strnpcinfo(2);
+ disablenpc "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
+ emotion e_sob, 0, "Dad#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Dad]";
mes "I am sorry... Dad has no power over your mom.";
close;
@@ -5549,7 +5549,7 @@ izlude,97,144,1 script Etinifni#iz 4_M_DEWBOY,{
close;
OnInit:
- disablenpc "Etinifni#"+strnpcinfo(2);
+ disablenpc "Etinifni#"+strnpcinfo(NPC_NAME_HIDDEN);
end;
}
@@ -5571,8 +5571,8 @@ izlude,99,138,3 script Romantic Male#iz 4_M_SITDOWN,{
mes "[Romantic Male]";
mes "Are you lifting up our good old memories renting my wedding dress and your tuxedo!! It will strenghthen our relationship, won't it?";
next;
- specialeffect EF_HEARTCASTING, AREA, "Romantic Female#"+strnpcinfo(2);
- emotion e_kis, 0, "Romantic Female#"+strnpcinfo(2);
+ specialeffect EF_HEARTCASTING, AREA, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
+ emotion e_kis, 0, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Romantic Male]";
mes "Honey~~ I love you!! Sweetheart~";
next;
@@ -5592,7 +5592,7 @@ izlude,97,138,5 script Romantic Female#iz 4_F_SITDOWN,{
mes "[Romantic Female]";
mes "Shout like this when I miss you, honey!!";
next;
- emotion e_lv, 0, "Romantic Female#"+strnpcinfo(2);
+ emotion e_lv, 0, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Romantic Female]";
mes "^0000cd[I miss you.]^000000";
next;
@@ -5605,20 +5605,20 @@ izlude,97,138,5 script Romantic Female#iz 4_F_SITDOWN,{
mes "[Romantic Female]";
mes "You are tired of sitting, aren't you?";
next;
- specialeffect EF_HEARTCASTING, AREA, "Romantic Female#"+strnpcinfo(2);
- emotion e_kis, 0, "Romantic Female#"+strnpcinfo(2);
+ specialeffect EF_HEARTCASTING, AREA, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
+ emotion e_kis, 0, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Romantic Female]";
mes "My sweetheart!!! I love you!!!";
next;
mes "[Romantic Male]";
mes "Yes, thank you for sharing your SP! You are also tired, aren't you?";
next;
- specialeffect EF_HEARTCASTING, AREA, "Romantic Male#"+strnpcinfo(2);
- emotion e_kis2, 0, "Romantic Male#"+strnpcinfo(2);
+ specialeffect EF_HEARTCASTING, AREA, "Romantic Male#"+strnpcinfo(NPC_NAME_HIDDEN);
+ emotion e_kis2, 0, "Romantic Male#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Romantic Male]";
mes "My sweetheart!! I love you!!!";
next;
- emotion e_lv, 0, "Romantic Female#"+strnpcinfo(2);
+ emotion e_lv, 0, "Romantic Female#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Romantic Female]";
mes "Kia~ You are Coolest!!!";
close;
@@ -6151,7 +6151,7 @@ iz_ac01,159,32,3 script Hungry Trainee#ac 4_M_SIT_NOVICE,{
mes "Wonder when my order will get taken... it's already been an hour...";
mes "Look at the helpers lingering on the side...";
next;
- emotion e_an, 0, "Scholarship Trainee#"+strnpcinfo(2);
+ emotion e_an, 0, "Scholarship Trainee#"+strnpcinfo(NPC_NAME_HIDDEN);
mes "[Scholarship Trainee]";
mes "Ugh... this guy...";
mes "I already told you eight hundred times! It's buffet style! Ah!";
@@ -11750,7 +11750,7 @@ iz_ac02,62,139,3 script Lumin#ac 4_M_NOV_RUMIN,{
mes "Lumin changing clothes piece by piece.";
specialeffect2 EF_SPHERE;
specialeffect2 EF_SPHERE;
- classchange "Lumin#"+strnpcinfo(2), 4_M_THIEF_RUMIN;
+ classchange "Lumin#"+strnpcinfo(NPC_NAME_HIDDEN), 4_M_THIEF_RUMIN;
next;
cutin "thf_lumin01.bmp", 2;
mes "[Lumin]";
@@ -11764,7 +11764,7 @@ iz_ac02,62,139,3 script Lumin#ac 4_M_NOV_RUMIN,{
close2;
specialeffect2 EF_SPHERE;
specialeffect2 EF_SPHERE;
- classchange "Lumin#"+strnpcinfo(2), 4_M_NOV_RUMIN;
+ classchange "Lumin#"+strnpcinfo(NPC_NAME_HIDDEN), 4_M_NOV_RUMIN;
cutin "", 255;
end;
}
@@ -11786,25 +11786,25 @@ iz_ac02,1,1,0 script #nbacStone01 CLEAR_NPC,{
end;
OnInit:
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnReset:
- killmonster strnpcinfo(4),"#"+strnpcinfo(2)+"::OnMyMobDead";
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ killmonster strnpcinfo(NPC_MAP),"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnMyMobDead:
- .@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
+ .@dead_num = mobcount(""+strnpcinfo(NPC_MAP)+"", "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead");
if (.@dead_num < 1)
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnSpawn:
- monster strnpcinfo(4),59,143,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),60,143,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),61,143,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),62,143,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),59,143,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),60,143,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),61,143,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),62,143,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
end;
}
@@ -11818,25 +11818,25 @@ iz_ac02,1,1,0 script #nbacStone02 CLEAR_NPC,{
end;
OnInit:
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnReset:
- killmonster strnpcinfo(4),"#"+strnpcinfo(2)+"::OnMyMobDead";
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ killmonster strnpcinfo(NPC_MAP),"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnMyMobDead:
- .@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
+ .@dead_num = mobcount(""+strnpcinfo(NPC_MAP)+"", "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead");
if (.@dead_num < 1)
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnSpawn:
- monster strnpcinfo(4),59,137,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),60,137,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),61,137,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),62,137,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),59,137,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),60,137,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),61,137,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),62,137,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
end;
}
@@ -11850,25 +11850,25 @@ iz_ac02,1,1,0 script #nbacStone03 CLEAR_NPC,{
end;
OnInit:
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnReset:
- killmonster strnpcinfo(4),"#"+strnpcinfo(2)+"::OnMyMobDead";
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ killmonster strnpcinfo(NPC_MAP),"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnMyMobDead:
- .@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
+ .@dead_num = mobcount(""+strnpcinfo(NPC_MAP)+"", "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead");
if (.@dead_num < 1)
- donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
+ donpcevent "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawn";
end;
OnSpawn:
- monster strnpcinfo(4),59,131,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),60,131,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),61,131,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
- monster strnpcinfo(4),62,131,"Poring",R_PORING,1,"#"+strnpcinfo(2)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),59,131,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),60,131,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),61,131,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
+ monster strnpcinfo(NPC_MAP),62,131,"Poring",R_PORING,1,"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead";
end;
}
@@ -12008,7 +12008,7 @@ iz_ac02,156,169,5 script Acolyte Leader Alice#2 4_F_ACOLYTE,{
mes "[Alice Yisha]";
mes "Ask ^ff0000if you want to experience skills of an Acolyte, ask the sister next to you^000000.";
mes "Now I am reading an introductory skill.";
- emotion e_omg, 0, "A Nun#"+strnpcinfo(2);
+ emotion e_omg, 0, "A Nun#"+strnpcinfo(NPC_NAME_HIDDEN);
close2;
cutin "", 255;
end;
@@ -14080,15 +14080,15 @@ new_1-1,53,114,3 script Training Instructor#1a 4_F_03,{
mes "I will send you to Izlude.";
close2;
erasequest 7117, 7127;
- if (strnpcinfo(4) == "new_1-1" || strnpcinfo(4) == "new_1-2" || strnpcinfo(4) == "new_1-3" || strnpcinfo(4) == "new_1-4") {
+ if (strnpcinfo(NPC_MAP) == "new_1-1" || strnpcinfo(NPC_MAP) == "new_1-2" || strnpcinfo(NPC_MAP) == "new_1-3" || strnpcinfo(NPC_MAP) == "new_1-4") {
.@warp$ = "iz_int";
- } else if (strnpcinfo(4) == "new_2-1" || strnpcinfo(4) == "new_2-2" || strnpcinfo(4) == "new_2-3" || strnpcinfo(4) == "new_2-4") {
+ } else if (strnpcinfo(NPC_MAP) == "new_2-1" || strnpcinfo(NPC_MAP) == "new_2-2" || strnpcinfo(NPC_MAP) == "new_2-3" || strnpcinfo(NPC_MAP) == "new_2-4") {
.@warp$ = "iz_int01";
- } else if (strnpcinfo(4) == "new_3-1" || strnpcinfo(4) == "new_3-2" || strnpcinfo(4) == "new_3-3" || strnpcinfo(4) == "new_3-4") {
+ } else if (strnpcinfo(NPC_MAP) == "new_3-1" || strnpcinfo(NPC_MAP) == "new_3-2" || strnpcinfo(NPC_MAP) == "new_3-3" || strnpcinfo(NPC_MAP) == "new_3-4") {
.@warp$ = "iz_int02";
- } else if (strnpcinfo(4) == "new_4-1" || strnpcinfo(4) == "new_4-2" || strnpcinfo(4) == "new_4-3" || strnpcinfo(4) == "new_4-4") {
+ } else if (strnpcinfo(NPC_MAP) == "new_4-1" || strnpcinfo(NPC_MAP) == "new_4-2" || strnpcinfo(NPC_MAP) == "new_4-3" || strnpcinfo(NPC_MAP) == "new_4-4") {
.@warp$ = "iz_int03";
- } else if (strnpcinfo(4) == "new_5-1" || strnpcinfo(4) == "new_5-2" || strnpcinfo(4) == "new_5-3" || strnpcinfo(4) == "new_5-4") {
+ } else if (strnpcinfo(NPC_MAP) == "new_5-1" || strnpcinfo(NPC_MAP) == "new_5-2" || strnpcinfo(NPC_MAP) == "new_5-3" || strnpcinfo(NPC_MAP) == "new_5-4") {
.@warp$ = "iz_int04";
}
savepoint .@warp$, 98, 88;
diff --git a/npc/re/jobs/novice/novice.txt b/npc/re/jobs/novice/novice.txt
index fff0dbb13..a20bb81f8 100644
--- a/npc/re/jobs/novice/novice.txt
+++ b/npc/re/jobs/novice/novice.txt
@@ -163,8 +163,8 @@ new_5-1,53,114,3 duplicate(NvSprakkiA) Sprakki#nv5a 4_F_01
mes "^4d4dff- You received a quest 'Novice Training Ground -1' from Sprakki.";
mes "Please check the Quest Info Window. -^000000";
close2;
- savepoint strnpcinfo(4),100,100;
- warp strnpcinfo(4),100,100;
+ savepoint strnpcinfo(NPC_MAP),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
case 2:
nov_1st_cos = 0;
@@ -218,8 +218,8 @@ new_5-1,53,114,3 duplicate(NvSprakkiA) Sprakki#nv5a 4_F_01
mes "These are the Novice Training Grounds.";
mes "I will guide you to the Novice Training Center.";
close2;
- savepoint strnpcinfo(4),100,100;
- warp strnpcinfo(4),100,100;
+ savepoint strnpcinfo(NPC_MAP),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
}
}
@@ -466,7 +466,7 @@ new_5-2,100,29,4 duplicate(NvSprakkiB) Sprakki#nv5b 4_F_01
mes "I think it's better than seeing you lost and wandering about.";
mes "Hahahaha...";
close2;
- warp strnpcinfo(4),41,172;
+ warp strnpcinfo(NPC_MAP),41,172;
end;
}
} else {
@@ -480,7 +480,7 @@ new_5-2,100,29,4 duplicate(NvSprakkiB) Sprakki#nv5b 4_F_01
mes "Sure.";
mes "Be careful not to be lost again.";
close2;
- warp "new_"+charat(strnpcinfo(4),4)+"-3",96,21;
+ warp "new_"+charat(strnpcinfo(NPC_MAP),4)+"-3",96,21;
end;
case 2:
mes "[Instructor Brade]";
@@ -488,7 +488,7 @@ new_5-2,100,29,4 duplicate(NvSprakkiB) Sprakki#nv5b 4_F_01
mes "In that case, I will send you to where the Kafra Employee is at.";
mes "Use ^4d4dffKafra's Warp Service^000000 to go to town.";
close2;
- warp strnpcinfo(4),41,172;
+ warp strnpcinfo(NPC_MAP),41,172;
end;
}
}
@@ -508,7 +508,7 @@ new_5-2,100,105,3 duplicate(NvBradeA) Brade#nv5a 4_M_JOB_KNIGHT1
mes "[Jinha]";
mes "You have to see Instructor Brade first before me. I will send you to Instructor Brade.";
close2;
- warp strnpcinfo(4),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
} else if (job_novice_q == 5) {
if (getskilllv("NV_FIRSTAID") > 0) {
@@ -577,7 +577,7 @@ new_5-2,100,105,3 duplicate(NvBradeA) Brade#nv5a 4_M_JOB_KNIGHT1
mes "[Jinha]";
mes "I will send you to Instructor Brade.";
close2;
- warp strnpcinfo(4),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
}
} else {
@@ -622,7 +622,7 @@ new_5-2,115,120,3 duplicate(NvJinha) Jinha#nv5 1_M_ORIENT01
mes "I will send you to Instructor Brade.";
mes "Instructor Brade will start your basic training.";
close2;
- warp strnpcinfo(4),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
case 2:
mes "[Chocolat]";
@@ -664,7 +664,7 @@ new_5-2,115,120,3 duplicate(NvJinha) Jinha#nv5 1_M_ORIENT01
mes "Sure.";
mes "I will see you later.";
close2;
- warp strnpcinfo(4),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
}
}
@@ -746,7 +746,7 @@ new_5-2,115,120,3 duplicate(NvJinha) Jinha#nv5 1_M_ORIENT01
mes "Real Combat Training will be given by Instructor Brade. You met him earlier.";
mes "I will send you to the Real Combat Training Field.";
close2;
- .@map$ = "new_"+charat(strnpcinfo(4),4)+"-3";
+ .@map$ = "new_"+charat(strnpcinfo(NPC_MAP),4)+"-3";
savepoint .@map$,96,21;
warp .@map$,96,21;
end;
@@ -764,7 +764,7 @@ new_5-2,115,120,3 duplicate(NvJinha) Jinha#nv5 1_M_ORIENT01
mes "[Chocolat]";
mes "I will send you to the Real Combat Training Field.";
close2;
- .@map$ = "new_"+charat(strnpcinfo(4),4)+"-3";
+ .@map$ = "new_"+charat(strnpcinfo(NPC_MAP),4)+"-3";
savepoint .@map$,96,21;
warp .@map$,96,21;
end;
@@ -1132,7 +1132,7 @@ new_5-2,36,176,4 duplicate(NvGuide) Guide#nv5 8W_SOLDIER
mes "[Brade]";
mes "Ok. I'll send you to the basic course.";
close2;
- warp "new_"+charat(strnpcinfo(4),4)+"-2",100,100;
+ warp "new_"+charat(strnpcinfo(NPC_MAP),4)+"-2",100,100;
end;
case 2:
mes "[Brade]";
@@ -1151,7 +1151,7 @@ new_5-2,36,176,4 duplicate(NvGuide) Guide#nv5 8W_SOLDIER
mes "[Brade]";
mes "Ok. I'll send you to Chocolat.";
close2;
- warp "new_"+charat(strnpcinfo(4),4)+"-2",41,172;
+ warp "new_"+charat(strnpcinfo(NPC_MAP),4)+"-2",41,172;
end;
case 2:
mes "[Brade]";
@@ -1184,7 +1184,7 @@ new_5-2,36,176,4 duplicate(NvGuide) Guide#nv5 8W_SOLDIER
job_novice_q = 13;
setquest 7122;
getitem Novice_Potion,100;
- savepoint strnpcinfo(4),96,21;
+ savepoint strnpcinfo(NPC_MAP),96,21;
next;
mes "^4d4dff- You've received a quest from Instructor Brade.";
mes "Please check the quest information window. -^000000";
@@ -2308,7 +2308,7 @@ new_5-3,97,50,4 duplicate(NvEden) Eden Group Officer#nv5 4_F_NOVICE,5,5
mes "I see, then let me guide you to another level. Which level do you want to go to?";
next;
for(.@i = 1; .@i<6; ++.@i) {
- if (!compare(strnpcinfo(2),"nv"+.@i))
+ if (!compare(strnpcinfo(NPC_NAME_HIDDEN),"nv"+.@i))
.@menu$ += "Send me to Level "+.@i;
.@menu$ += ":";
}
@@ -2439,8 +2439,8 @@ new_5-1,144,107,2 duplicate(NvGuardB) Guard#nv5b 8W_SOLDIER
mes "Well, I will let you out of here.";
mes "Go find the instructor, Brade.";
close2;
- savepoint strnpcinfo(4),100,100;
- warp strnpcinfo(4),100,100;
+ savepoint strnpcinfo(NPC_MAP),100,100;
+ warp strnpcinfo(NPC_MAP),100,100;
end;
}
new_1-2,161,182,5 duplicate(NvEdwin) Instructor#nv1 4_F_03
diff --git a/npc/re/merchants/card_separation.txt b/npc/re/merchants/card_separation.txt
index 8c62b3e80..0e5b31ea2 100644
--- a/npc/re/merchants/card_separation.txt
+++ b/npc/re/merchants/card_separation.txt
@@ -43,7 +43,7 @@
mes "Can't continue because you have too many heavy objects. Let's try to continue after reducing the weight.";
close;
}
- if (strnpcinfo(1) == "Jeremy") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Jeremy") {
.@Jeremy = 1;
.@n$ = "[Jeremy]";
setarray .@equip_name$[0], "Armor", "Shoes", "Garment", "Upper Hat";
diff --git a/npc/re/mobs/dungeons/lhz_dun.txt b/npc/re/mobs/dungeons/lhz_dun.txt
index 7ec6e6c49..3243a6e04 100644
--- a/npc/re/mobs/dungeons/lhz_dun.txt
+++ b/npc/re/mobs/dungeons/lhz_dun.txt
@@ -94,7 +94,7 @@ OnInit:
case 6: .@x = 175; .@y = 137; break;
}
.@mob = rand(1646,1651);
- monster "lhz_dun03",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(3)+"::OnMyMVPDead";
+ monster "lhz_dun03",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnMyMVPDead";
// Select Coordinates to summon a random 99 on
switch(rand(1,6)) {
@@ -106,11 +106,11 @@ OnInit:
case 6: .@x2 = 139; .@y2 = 259; break;
}
.@mob2 = rand(1640,1645);
- monster "lhz_dun03",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,strnpcinfo(3)+"::OnMy99Dead";
+ monster "lhz_dun03",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnMy99Dead";
end;
OnMyMVPDead:
- killmonster "lhz_dun03",strnpcinfo(3)+"::OnMy99Dead";
+ killmonster "lhz_dun03",strnpcinfo(NPC_NAME_UNIQUE)+"::OnMy99Dead";
initnpctimer;
OnMy99Dead:
end;
@@ -148,7 +148,7 @@ OnInit:
case 7: .@x = 149; .@y = 151; break;
}
.@mob = rand(2235,2241);
- monster "lhz_dun04",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(3)+"::OnMyMVPDead";
+ monster "lhz_dun04",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnMyMVPDead";
// Select Coordinates to summon a random 99 on
switch(rand(1,7)) {
@@ -161,11 +161,11 @@ OnInit:
case 7: .@x2 = 149; .@y2 = 151; break;
}
.@mob2 = rand(2228,2234);
- monster "lhz_dun04",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,strnpcinfo(3)+"::OnMy99Dead";
+ monster "lhz_dun04",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnMy99Dead";
end;
OnMyMVPDead:
- killmonster "lhz_dun04",strnpcinfo(3)+"::OnMy99Dead";
+ killmonster "lhz_dun04",strnpcinfo(NPC_NAME_UNIQUE)+"::OnMy99Dead";
initnpctimer;
OnMy99Dead:
end;
diff --git a/npc/re/mobs/fields/niflheim.txt b/npc/re/mobs/fields/niflheim.txt
index d47248a8c..c42aba3d9 100644
--- a/npc/re/mobs/fields/niflheim.txt
+++ b/npc/re/mobs/fields/niflheim.txt
@@ -66,120 +66,120 @@ OnTimer7980000: // delay1 = 7980000 ms (133 min)
OnInit:
switch(rand(6)) {
case 0:
- monster "niflheim",327,193,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",330,193,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",324,193,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",327,196,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",327,190,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",324,190,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",330,190,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",324,196,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",330,196,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",327,193,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",330,193,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",324,193,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",327,196,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",327,190,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",324,190,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",330,190,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",324,196,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",330,196,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 1:
- monster "niflheim",337,252,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",337,255,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",337,249,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",334,252,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",340,252,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",334,249,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",340,255,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",340,249,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",334,255,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",337,252,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",337,255,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",337,249,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",334,252,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",340,252,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",334,249,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",340,255,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",340,249,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",334,255,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 2:
- monster "niflheim",190,185,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",190,188,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",190,182,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",193,185,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",187,185,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",187,182,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",193,182,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",193,188,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",187,188,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",190,185,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",190,188,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",190,182,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",193,185,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",187,185,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",187,182,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",193,182,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",193,188,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",187,188,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 3:
- monster "niflheim",131,138,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",131,141,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",131,135,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",128,138,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",134,138,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",134,141,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",128,141,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",134,135,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",128,135,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",131,138,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",131,141,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",131,135,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",128,138,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",134,138,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",134,141,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",128,141,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",134,135,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",128,135,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 4:
- monster "niflheim",311,64,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",311,67,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",311,61,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",308,64,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",314,64,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",314,61,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",314,67,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",308,67,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",308,61,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",311,64,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",311,67,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",311,61,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",308,64,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",314,64,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",314,61,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",314,67,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",308,67,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",308,61,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 5:
- monster "niflheim",238,131,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",238,134,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",238,128,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",235,131,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",241,131,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",235,128,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",235,134,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",241,128,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",241,134,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",238,131,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",238,134,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",238,128,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",235,131,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",241,131,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",235,128,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",235,134,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",241,128,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",241,134,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
case 6:
- monster "niflheim",86,219,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";
- monster "niflheim",86,222,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",86,216,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",89,219,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",83,219,"Bloody Murderer",1507,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",89,222,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",89,216,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",83,222,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",83,216,"Loli Ruri",1505,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",86,219,"Lord Of Death",1373,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnLoDDead";
+ monster "niflheim",86,222,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",86,216,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",89,219,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",83,219,"Bloody Murderer",1507,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",89,222,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",89,216,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",83,222,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",83,216,"Loli Ruri",1505,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
break;
}
- monster "niflheim",154,95,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",115,65,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",330,195,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",151,83,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",285,245,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",235,135,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",265,48,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",186,139,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",166,267,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",82,202,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",219,44,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",287,44,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",275,165,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",138,204,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",299,39,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",31,154,"Disguise",1506,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",154,96,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",116,65,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",151,84,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",286,245,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",330,196,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",236,135,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",165,49,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",167,267,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",82,203,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",220,44,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",287,45,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",287,44,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",276,166,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",139,205,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",300,39,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
- monster "niflheim",31,155,"Dullahan",1504,1,strnpcinfo(3)+"::OnInvasionMonsters";
+ monster "niflheim",154,95,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",115,65,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",330,195,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",151,83,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",285,245,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",235,135,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",265,48,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",186,139,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",166,267,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",82,202,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",219,44,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",287,44,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",275,165,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",138,204,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",299,39,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",31,154,"Disguise",1506,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",154,96,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",116,65,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",151,84,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",286,245,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",330,196,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",236,135,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",165,49,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",167,267,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",82,203,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",220,44,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",287,45,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",287,44,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",276,166,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",139,205,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",300,39,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
+ monster "niflheim",31,155,"Dullahan",1504,1,strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
end;
OnLoDDead:
- killmonster "niflheim",strnpcinfo(3)+"::OnInvasionMonsters";
+ killmonster "niflheim",strnpcinfo(NPC_NAME_UNIQUE)+"::OnInvasionMonsters";
initnpctimer;
OnInvasionMonsters:
end;
diff --git a/npc/re/quests/eden/121-130.txt b/npc/re/quests/eden/121-130.txt
index 77b7c26b2..32fbdeb26 100644
--- a/npc/re/quests/eden/121-130.txt
+++ b/npc/re/quests/eden/121-130.txt
@@ -779,8 +779,8 @@ S_Erasequest2:
}
- script Trace of an adventurer FAKE_NPC,{
- .@quest = 13106 + atoi(strnpcinfo(2));
- .@delay = 13110 + atoi(strnpcinfo(2));
+ .@quest = 13106 + atoi(strnpcinfo(NPC_NAME_HIDDEN));
+ .@delay = 13110 + atoi(strnpcinfo(NPC_NAME_HIDDEN));
if (questprogress(.@quest) == 1) {
mes "I found traces of someone who was here but I cannot find a clue. Lets go back and report to Aigu.";
erasequest .@quest;
diff --git a/npc/re/quests/eden/eden_common.txt b/npc/re/quests/eden/eden_common.txt
index 9100e74bc..2e37eeb6f 100644
--- a/npc/re/quests/eden/eden_common.txt
+++ b/npc/re/quests/eden/eden_common.txt
@@ -218,7 +218,7 @@ moc_para01,27,35,5 script Secretary Lime Evenor 4_F_EDEN_OFFICER,{
case 1:
mes "[Eden Teleport Officer]";
mes "Let's go to our secret base!";
- nak_warp = strnpcinfo(2);
+ nak_warp = strnpcinfo(NPC_NAME_HIDDEN);
close2;
warp "moc_para01",31,14;
end;
diff --git a/npc/re/quests/quests_brasilis.txt b/npc/re/quests/quests_brasilis.txt
index d44b4e2fe..9c414a6c9 100644
--- a/npc/re/quests/quests_brasilis.txt
+++ b/npc/re/quests/quests_brasilis.txt
@@ -124,11 +124,11 @@ OnGo:
mes "Ah... who's a good puppy?";
mes "Ok, where are the others?";
}
- if (compare(strnpcinfo(2),"1")) setarray .@i[0],2,3;
- else if (compare(strnpcinfo(2),"2")) setarray .@i[0],1,3;
+ if (compare(strnpcinfo(NPC_NAME_UNIQUE),"1")) setarray .@i[0],2,3;
+ else if (compare(strnpcinfo(NPC_NAME_UNIQUE),"2")) setarray .@i[0],1,3;
else setarray .@i[0],1,2;
- donpcevent "Puppy#"+charat(strnpcinfo(2),0)+.@i[rand(2)]+"::OnEnable";
- hideonnpc strnpcinfo(0);
+ donpcevent "Puppy#"+charat(strnpcinfo(NPC_NAME_UNIQUE),0)+.@i[rand(2)]+"::OnEnable";
+ hideonnpc strnpcinfo(NPC_NAME);
close;
}
}
@@ -137,15 +137,15 @@ OnGo:
close;
OnInit:
- if (!compare(strnpcinfo(2),"1")) hideonnpc strnpcinfo(0);
+ if (!compare(strnpcinfo(NPC_NAME_UNIQUE),"1")) hideonnpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
end;
}
diff --git a/npc/re/quests/quests_dewata.txt b/npc/re/quests/quests_dewata.txt
index a78427f12..19b4a197d 100644
--- a/npc/re/quests/quests_dewata.txt
+++ b/npc/re/quests/quests_dewata.txt
@@ -1596,7 +1596,7 @@ dew_fild01,259,48,4 script Poby#dew_drink 4_M_DEWBOY,{
mes "something smashes down on your head, right where that soft spot is, $#*@! that's a one in a million shot.";
percentheal -30,0;
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
warp "dew_fild01",371,211;
end;
}
@@ -1619,14 +1619,14 @@ dew_fild01,259,48,4 script Poby#dew_drink 4_M_DEWBOY,{
break;
}
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnTimer60000:
@@ -1634,10 +1634,10 @@ OnTimer180000:
OnTimer120000:
OnTimer240000:
if(rand(2))
- donpcevent strnpcinfo(0)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEnable";
end;
OnTimer300000:
- donpcevent strnpcinfo(0)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEnable";
end;
}
dew_fild01,247,62,0 duplicate(DewataPalm) Palm Tree#drink01 CLEAR_NPC
diff --git a/npc/re/quests/quests_dicastes.txt b/npc/re/quests/quests_dicastes.txt
index d52de0f70..c615a16ef 100644
--- a/npc/re/quests/quests_dicastes.txt
+++ b/npc/re/quests/quests_dicastes.txt
@@ -204,7 +204,7 @@ sec_in02,16,43,5 script Scaraba Dungeon Entrance 4_MAN_BENKUNI,{
//== Vigilantes ============================================
- script Vigilante#main FAKE_NPC,{
- if (compare(strnpcinfo(0),"ep133_26")) {
+ if (compare(strnpcinfo(NPC_NAME),"ep133_26")) {
if (!isequipped(2782)) {
mes "[Vigilante]";
mes sprintf("¡ô¡ó¡ö ¡÷ ¡þ¡ù¡ó?");
@@ -348,11 +348,11 @@ OnTouch:
mid_camp,218,250,3 script Suspicious Guy#ep133_ 4_M_ROKI,{
mes "[Suspicious Guy]";
mes ".....";
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
close;
OnInit:
OnDisable:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
OnEnable:
hideoffnpc "Suspicious Guy#ep133_";
end;
@@ -413,7 +413,7 @@ OnEnable:
end;
}
mes "[Capital City Guard]";
- mes "Unknown situation occurred. Case " + strnpcinfo(2);
+ mes "Unknown situation occurred. Case " + strnpcinfo(NPC_NAME_HIDDEN);
mes "Please inquiry with a GM.";
close;
}
@@ -4798,7 +4798,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
mes "- You can too many items to proceed with the quest. -";
close;
}
- .@n$ = strnpcinfo(1);
+ .@n$ = strnpcinfo(NPC_NAME_VISIBLE);
setarray .@npc$, "Rock Pile", "Dirt Pile", "Split Earth";
setarray .@item, 6307, 6306, 6305;
.@size = getarraysize(.@npc$);
@@ -4825,7 +4825,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
if (.@npc$[.@type] == "Rock Pile") mes "Knock down the pebbles that make up the pile of rocks and spread them out.";
else if (.@npc$[.@type] == "Dirt Pile") mes "You step on the dug up dirt pile and make the ground flat.";
else if (.@npc$[.@type] == "Split Earth") mes "You step on the dry, split surface and make the ground flat.";
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
close;
}
if (.@npc$[.@type] == "Rock Pile") {
@@ -4849,7 +4849,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
getitem .@item[.@type], 1;
erasequest 7193;
setquest 7194;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
next;
mes "[" + strcharinfo(0) + "]";
mes "Hmm.. I may need to discuss these with Shay.";
@@ -4882,7 +4882,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
mes "There is something stuck by the frost on the sharp, crack surface.";
}
getitem .@item[.@type], 1;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
next;
if (.@npc$[.@type] == "Rock Pile") mes "You collect stone fragments.";
else if (.@npc$[.@type] == "Dirt Pile") mes "Collect bloodstains.";
@@ -4911,7 +4911,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
else if (.@npc$[.@type] == "Dirt Pile") mes "You collect another clotted bloodstain from a dirt pile.";
else if (.@npc$[.@type] == "Split Earth") mes "You collect another piece of skin frozen in the frost in the crack of the split earth.";
getitem .@item[.@type], 1;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
close;
}
mes "No need to collect more.";
@@ -4931,7 +4931,7 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
mes "You collect the frozen piece of skin and then step on the ground to leave no trace.";
}
getitem .@item[.@type], 1;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
close;
}
setarray .@str$, "stone fragments","bloodstains","pieces of skin";
@@ -4942,14 +4942,14 @@ dic_fild01,231,174,5 script BK#ep133_18 4_M_MERCAT2,{
mes "Was arranged neatly.";
close;
OnEnable:
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnReset:
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnTimer60000:
@@ -4957,13 +4957,13 @@ OnTimer120000:
OnTimer180000:
OnTimer240000:
if (!rand(2)) {
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
stopnpctimer;
}
end;
OnTimer300000:
- hideoffnpc strnpcinfo(0);
+ hideoffnpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -6105,7 +6105,7 @@ dic_in01,349,129,5 script Bouy#13_3 4_MAN_BENKUNI,{
//== Sapha's Visit =========================================
- script Expedition#ep133_is FAKE_NPC,{
if (ep13_3_invite) {
- if (compare(strnpcinfo(1),"Maha")) {
+ if (compare(strnpcinfo(NPC_NAME_VISIBLE),"Maha")) {
mes "[Maha]";
mes "But I do think the Sapha race is overly kind, almost unnaturally.";
mes "Guess it'll be fine.";
@@ -6667,7 +6667,7 @@ mid_campin,165,127,5 script Hibba Agip#ep133_is07 4_M_REDSWORD,{
mes "I should go now.";
close2;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -6951,7 +6951,7 @@ dic_in01,42,264,3 script Adventurer Clerk#ep133 4_MAN_NITT,{
}
//== Enchantment NPCs ======================================
- script dic_enc#main FAKE_NPC,{
- .@re$ = strnpcinfo(1);
+ .@re$ = strnpcinfo(NPC_NAME_VISIBLE);
.@n$ = "["+.@re$+"]";
if (!checkweight (1201,1)) {
mes "You have too many kinds of items. Let's try again after you reduce the number of items.";
diff --git a/npc/re/quests/quests_eclage.txt b/npc/re/quests/quests_eclage.txt
index 58082684d..f1abf56aa 100644
--- a/npc/re/quests/quests_eclage.txt
+++ b/npc/re/quests/quests_eclage.txt
@@ -42,8 +42,8 @@ ecl_fild01,118,311,4 script Teleport Cat No.1#1 4_M_BOSSCAT,{
mes "[Teleport Cat]";
mes "We provide teleport service between various regions based on our accumulated knowledge. We accept Malangdo Canned Specialties or Zeny, so you can pay however you like it~";
next;
- .@index[0] = .index[(atoi(strnpcinfo(2))*2-2)];
- .@index[1] = .index[(atoi(strnpcinfo(2))*2-1)];
+ .@index[0] = .index[(atoi(strnpcinfo(NPC_NAME_HIDDEN))*2-2)];
+ .@index[1] = .index[(atoi(strnpcinfo(NPC_NAME_HIDDEN))*2-1)];
.@menu$ = "Forget it:";
for (.@i=0; .@i < getarraysize(.maps$); .@i++){
for (.@j=0; .@j<2; .@j++){
@@ -12838,8 +12838,8 @@ ecl_tdun02,99,63,5 script Rosi#No.1 4_F_HUWOMAN,1,1,{
end;
OnInit:
- if (atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) ) > 1){
- disablenpc strnpcinfo(0);
+ if (atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) ) > 1){
+ disablenpc strnpcinfo(NPC_NAME);
}
end;
@@ -12856,7 +12856,7 @@ OnTouch:
close;
}
if ((questprogress(13055) == 1) && (questprogress(13056) == 1)) {
- .@npc_uin = atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) );
+ .@npc_uin = atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) );
mes "[Rosi]";
mes "It's you again! Oh, is it because I'm a woman? Let me make it clear here. I'm going nowhere until I get a news item.";
erasequest 13056;
@@ -12881,7 +12881,7 @@ OnTouch:
}
else if (ep14_2_nines == 2) {
if ((questprogress(13055) == 1) && (questprogress(13056) == 1)) {
- .@npc_uin = atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) );
+ .@npc_uin = atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) );
mes "[Rosi]";
mes "Oh my gosh! You scared me! What are you doing here?";
next;
@@ -12929,8 +12929,8 @@ ecl_tdun01,11,62,5 script Euncheong#No.1 4_M_HUBOY,1,1,{
end;
OnInit:
- if (atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) ) > 1){
- disablenpc strnpcinfo(0);
+ if (atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) ) > 1){
+ disablenpc strnpcinfo(NPC_NAME);
}
end;
@@ -12947,7 +12947,7 @@ OnTouch:
close;
}
if ((questprogress(13055) == 1) && (questprogress(13057) == 1)) {
- .@npc_uin = atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) );
+ .@npc_uin = atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) );
mes "[Euncheong]";
mes "You really shouldn't worry about me. I'll go out when I'm done exploring...Tell him I'm doing okay.";
next;
@@ -12975,7 +12975,7 @@ OnTouch:
}
else if (ep14_2_nines == 2) {
if ((questprogress(13055) == 1) && (questprogress(13057) == 1)){
- .@npc_uin = atoi( charat( strnpcinfo(0), getstrlen(strnpcinfo(0))-1 ) );
+ .@npc_uin = atoi( charat( strnpcinfo(NPC_NAME), getstrlen(strnpcinfo(NPC_NAME))-1 ) );
mes "[Euncheong]";
mes "Are you an adventurer, too? Don't you dare cut in here. I was here first.";
next;
@@ -19386,7 +19386,7 @@ OnTimer8000:
que_avan01,22,40,3 script Avant's Summon#tlact01 DARK_PRIEST,{
end;
OnInit:
- hideonnpc strnpcinfo(0);
+ hideonnpc strnpcinfo(NPC_NAME);
end;
}
diff --git a/npc/re/quests/quests_malangdo.txt b/npc/re/quests/quests_malangdo.txt
index 9a3a3284f..4a5f5fab8 100644
--- a/npc/re/quests/quests_malangdo.txt
+++ b/npc/re/quests/quests_malangdo.txt
@@ -1335,7 +1335,7 @@ mal_in02,140,94,0 script Bob#mal 4_CAT_DOWN,{
mes "- Ground is a bit cracked. -";
mes "- Used a stapler. -";
.off = 1;
- donpcevent "Crackt"+substr(strnpcinfo(2),3,getstrlen(strnpcinfo(2))-1)+"#mal::OnEnable";
+ donpcevent "Crackt"+substr(strnpcinfo(NPC_NAME_HIDDEN),3,getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1)+"#mal::OnEnable";
close;
} else if (.@ma_cr1 == 7) {
mes "- With the crack opening -";
@@ -1388,7 +1388,7 @@ mal_in02,140,94,0 script Bob#mal 4_CAT_DOWN,{
mes "- the other cracks. -";
}
.off = 1;
- donpcevent "Crackt"+substr(strnpcinfo(2),3,getstrlen(strnpcinfo(2))-1)+"#mal::OnEnable";
+ donpcevent "Crackt"+substr(strnpcinfo(NPC_NAME_HIDDEN),3,getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1)+"#mal::OnEnable";
close;
}
}
@@ -1399,11 +1399,11 @@ mal_in02,140,94,0 script Bob#mal 4_CAT_DOWN,{
mes "- not enough supporters yet. -";
close;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
.off = 0;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
malangdo,114,157,0 duplicate(Crack#mal0) Crack#mal1 4_CRACK
@@ -1420,22 +1420,22 @@ malangdo,162,183,0 duplicate(Crack#mal0) Crack#mal10 4_CRACK
- script Crackt0#mal FAKE_NPC,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTimer1000:
- donpcevent "Crack#mal"+substr(strnpcinfo(1),6,getstrlen(strnpcinfo(1))-1)+"::OnDisable";
+ donpcevent "Crack#mal"+substr(strnpcinfo(NPC_NAME_VISIBLE),6,getstrlen(strnpcinfo(NPC_NAME_VISIBLE))-1)+"::OnDisable";
end;
OnTimer30000:
- donpcevent "Crack#mal"+substr(strnpcinfo(1),6,getstrlen(strnpcinfo(1))-1)+"::OnEnable";
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent "Crack#mal"+substr(strnpcinfo(NPC_NAME_VISIBLE),6,getstrlen(strnpcinfo(NPC_NAME_VISIBLE))-1)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
- duplicate(Crackt0#mal) Crackt1#mal FAKE_NPC
@@ -1930,18 +1930,18 @@ mal_in01,116,168,0 script Dry Machine#mal 2_SLOT_MACHINE,{
emotion e_omg,1;
}
.off = 1;
- donpcevent "Water Sand"+strnpcinfo(2)+"#mal::OnEnable";
+ donpcevent "Water Sand"+strnpcinfo(NPC_NAME_HIDDEN)+"#mal::OnEnable";
close;
}
mes "- Seeems suspicious. -";
mes "- But it's just sand... -";
close;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
.off = 0;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
malangdo,221,139,0 duplicate(Suspicious Sand Pile#0) Suspicious Sand Pile#1 4_SOIL
@@ -1957,22 +1957,22 @@ malangdo,242,175,0 duplicate(Suspicious Sand Pile#0) Suspicious Sand Pile#10 4_S
- script Water Sand0#mal FAKE_NPC,{
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTimer1000:
- donpcevent "Suspicious Sand Pile#"+substr(strnpcinfo(1),10,getstrlen(strnpcinfo(1))-1)+"::OnDisable";
+ donpcevent "Suspicious Sand Pile#"+substr(strnpcinfo(NPC_NAME_VISIBLE),10,getstrlen(strnpcinfo(NPC_NAME_VISIBLE))-1)+"::OnDisable";
end;
OnTimer30000:
- donpcevent "Suspicious Sand Pile#"+substr(strnpcinfo(1),10,getstrlen(strnpcinfo(1))-1)+"::OnEnable";
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent "Suspicious Sand Pile#"+substr(strnpcinfo(NPC_NAME_VISIBLE),10,getstrlen(strnpcinfo(NPC_NAME_VISIBLE))-1)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
- duplicate(Water Sand0#mal) Water Sand1#mal FAKE_NPC
@@ -2604,7 +2604,7 @@ mal_dun01,133,125,5 script Star Candy#mal 4_F_STARFISHGIRL,{
}
- script #skin_mal FAKE_NPC,{
- .@index = atoi(strnpcinfo(2));
+ .@index = atoi(strnpcinfo(NPC_NAME_HIDDEN));
switch(.@index) {
case 29: .@str$ = "dry"; break;
case 30: .@str$ = "prickly"; break;
@@ -4175,7 +4175,7 @@ malangdo,133,134,0 script Strange Pile of Sand#7 4_SOIL,{
close;
}
if (questprogress(7268)) {
- .@quest = (strnpcinfo(0) == "Strange Pile of Sand#7")?7270:7275;
+ .@quest = (strnpcinfo(NPC_NAME) == "Strange Pile of Sand#7")?7270:7275;
if (!questprogress(.@quest)) {
mes "The pile of sand is billowed like a grave. Should be something in there.";
mes "According to rumors, cats have a habit to bury with sand after stool...";
@@ -5488,7 +5488,7 @@ L_Viewpoint:
mes "This is the Duruduru compass from the Meow Bravery Team.";
close;
}
- .@index = atoi(strnpcinfo(2));
+ .@index = atoi(strnpcinfo(NPC_NAME_HIDDEN));
switch(.@index) {
case 1:
setarray .@var[0],11,25;
@@ -5511,7 +5511,7 @@ L_Viewpoint:
.@color$ = "white";
break;
}
- mes "Delicate "+.@color$+" lights surround the "+strnpcinfo(1)+".";
+ mes "Delicate "+.@color$+" lights surround the "+strnpcinfo(NPC_NAME_VISIBLE)+".";
if (nyadven02 < 11) {
mes "After inserting the card and pressing the button, characters appear on the screen.";
next;
@@ -5560,7 +5560,7 @@ L_Viewpoint:
input .@input;
if (.@input == .@nori_c) {
mes "The card slides out with a sound after entering the number.";
- mes "^4d4dffYou have passed the "+strnpcinfo(1)+"! Run to the next destination!^000000";
+ mes "^4d4dffYou have passed the "+strnpcinfo(NPC_NAME_VISIBLE)+"! Run to the next destination!^000000";
mes "You should run for the next destination.";
++nyadven02;
close;
diff --git a/npc/re/quests/quests_malaya.txt b/npc/re/quests/quests_malaya.txt
index fa19f3be9..950398355 100644
--- a/npc/re/quests/quests_malaya.txt
+++ b/npc/re/quests/quests_malaya.txt
@@ -1487,7 +1487,7 @@ malaya,62,274,0 script Sand Trap#malaya 4_SOIL,{
mes "someone scattered on the sea water.";
close2;
progressbar "0xffff00", 5;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
getitem Salt_Bag, 1; // Salt_Bag
mes "[" + strcharinfo(0) + "]";
@@ -1495,7 +1495,7 @@ malaya,62,274,0 script Sand Trap#malaya 4_SOIL,{
close;
OnTimer30000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -1519,7 +1519,7 @@ ma_fild01,178,206,0 script Black Bamboo#malaya CLEAR_NPC,4,4,{
mes "If some of it is cut off and sharpened, I think it will suffice for the Sharpened Bamboo Imelda wanted.";
close2;
progressbar "0xffff00", 3;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
getitem Sharp_Bamboo, 1;
mes "[" + strcharinfo(0) + "]";
@@ -1531,7 +1531,7 @@ OnTouch:
}
end;
OnTimer30000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -3150,10 +3150,10 @@ ma_fild01,251,93,3 script Lost Child#malaya01 4_F_BARYO_GIRL,{
setquest 7389;
erasequest 7388;
close2;
- disablenpc strnpcinfo(0);
- if (strnpcinfo(0) == "Lost Child#malaya01") {
+ disablenpc strnpcinfo(NPC_NAME);
+ if (strnpcinfo(NPC_NAME) == "Lost Child#malaya01") {
enablenpc "Lost Child#malaya02";
- } else if (strnpcinfo(0) == "Lost Child#malaya01") {
+ } else if (strnpcinfo(NPC_NAME) == "Lost Child#malaya01") {
enablenpc "Lost Child#malaya03";
} else {
enablenpc "Lost Child#malaya01";
@@ -3183,8 +3183,8 @@ ma_fild01,251,93,3 script Lost Child#malaya01 4_F_BARYO_GIRL,{
end;
OnInit:
- if (strnpcinfo(0) != "Lost Child#malaya01")
- disablenpc strnpcinfo(0);
+ if (strnpcinfo(NPC_NAME) != "Lost Child#malaya01")
+ disablenpc strnpcinfo(NPC_NAME);
}
ma_fild01,114,141,3 duplicate(Lost Child#malaya01) Lost Child#malaya02 4_F_BARYO_GIRL
ma_fild01,130,314,3 duplicate(Lost Child#malaya01) Lost Child#malaya03 4_F_BARYO_GIRL
@@ -4561,13 +4561,13 @@ OnInit:
mes "[" + strcharinfo(0) + "]";
mes "It's warm as a mother's bosom.";
getitem Collected_Sample,1;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
close;
}
end;
OnTimer20000:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
}
@@ -7951,18 +7951,18 @@ malaya,53,68,4 script Bushes#ma CLEAR_NPC,{
malaya_bang = 15;
changequest 11295,11296;
getitem Lesser_Agimat,1;
- donpcevent "Tent"+replacestr(strnpcinfo(3),"MalayaStick","")+"#ma::OnEnable";
+ donpcevent "Tent"+replacestr(strnpcinfo(NPC_NAME_UNIQUE),"MalayaStick","")+"#ma::OnEnable";
next;
mes "Better show Las the talisman.";
close;
} else {
getitem Lesser_Agimat,1;
- donpcevent "Tent"+replacestr(strnpcinfo(3),"MalayaStick","")+"#ma::OnEnable";
+ donpcevent "Tent"+replacestr(strnpcinfo(NPC_NAME_UNIQUE),"MalayaStick","")+"#ma::OnEnable";
close;
}
} else {
mes "After pulling out the deeply planted stick, an uneasy feeling washes over.";
- donpcevent "Tent"+replacestr(strnpcinfo(3),"MalayaStick","")+"#ma::OnEnable";
+ donpcevent "Tent"+replacestr(strnpcinfo(NPC_NAME_UNIQUE),"MalayaStick","")+"#ma::OnEnable";
close;
}
case 2:
@@ -7975,10 +7975,10 @@ malaya,53,68,4 script Bushes#ma CLEAR_NPC,{
}
end;
OnEnable:
- enablenpc strnpcinfo(3); // NPC name is too long for strnpcinfo(0).
+ enablenpc strnpcinfo(NPC_NAME_UNIQUE); // NPC name is too long for strnpcinfo(NPC_NAME).
end;
OnDisable:
- disablenpc strnpcinfo(3);
+ disablenpc strnpcinfo(NPC_NAME_UNIQUE);
end;
}
malaya,40,52,4 duplicate(MalayaStick) Suspicious Wooden Stick::MalayaStick1 4_BULLETIN_BOARD2
@@ -7995,22 +7995,22 @@ malaya,59,84,4 duplicate(MalayaStick) Suspicious Wooden Stick::MalayaStick10 4_B
- script Tent#ma FAKE_NPC,{ //557
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTimer1000:
- donpcevent "MalayaStick"+replacestr(strnpcinfo(1),"Tent","")+"::OnDisable";
+ donpcevent "MalayaStick"+replacestr(strnpcinfo(NPC_NAME_VISIBLE),"Tent","")+"::OnDisable";
end;
OnTimer30000:
- donpcevent "MalayaStick"+replacestr(strnpcinfo(1),"Tent","")+"::OnEnable";
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent "MalayaStick"+replacestr(strnpcinfo(NPC_NAME_VISIBLE),"Tent","")+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
- duplicate(Tent#ma) Tent1#ma FAKE_NPC
@@ -9156,13 +9156,13 @@ ma_fild01,164,231,6 script Beat Catching Boy#pin10 4_M_BARYO_BOY,{
close;
OnInit:
if (!$malaya_pintados_00)
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
ma_fild01,170,228,4 duplicate(Beat Catching Boy#pin10) Beat Catching Boy#pin11 4_M_BARYO_BOY
diff --git a/npc/re/quests/quests_mora.txt b/npc/re/quests/quests_mora.txt
index 34999bbd8..5c570ffc0 100644
--- a/npc/re/quests/quests_mora.txt
+++ b/npc/re/quests/quests_mora.txt
@@ -382,7 +382,7 @@ OnTouch:
mes "- It's just an ordinary bush. -";
close;
}
- .@i = atoi(charat(strnpcinfo(2),9));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9));
.@rand = rand(1,3);
mes "[Unarmed Laphine]";
mes "Aaaarrrrrggggghhhhh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
@@ -401,18 +401,18 @@ OnTouch:
donpcevent "Bush"+.@i+"Timer::OnEnable";
close;
OnEnable:
- enablenpc strnpcinfo(0);
- donpcevent "Bush"+charat(strnpcinfo(2),9)+"Timer::OnDisable";
+ enablenpc strnpcinfo(NPC_NAME);
+ donpcevent "Bush"+charat(strnpcinfo(NPC_NAME_HIDDEN),9)+"Timer::OnDisable";
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
}
- script #mora_pouch FAKE_NPC,{
end;
OnTouch:
- .@i = atoi(charat(strnpcinfo(2),9));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9));
if (ep14_1_bs == .@i+3) {
if (countitem(Small_Pocket) == 0) {
if (checkweight(Knife,1) == 0) {
@@ -452,18 +452,18 @@ OnTouch:
- script #mora_fairy FAKE_NPC,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnTimer5000:
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
stopnpctimer;
end;
}
@@ -507,22 +507,22 @@ spl_fild02,186,260,6 duplicate(#mora_fairy) Fairy#cmd63 4_F_FAIRYKID4
- script #mora_bush_timer FAKE_NPC,{
end;
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnDisable:
stopnpctimer;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnTimer1000:
- donpcevent "Bush#ep14_1_bs"+charat(strnpcinfo(0),4)+"::OnDisable";
+ donpcevent "Bush#ep14_1_bs"+charat(strnpcinfo(NPC_NAME),4)+"::OnDisable";
end;
OnTimer600000:
- donpcevent "Bush#ep14_1_bs"+charat(strnpcinfo(0),4)+"::OnEnable";
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent "Bush#ep14_1_bs"+charat(strnpcinfo(NPC_NAME),4)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
spl_fild02,180,1,0 duplicate(#mora_bush_timer) Bush1Timer 4_F_FAIRYKID5
@@ -4102,19 +4102,19 @@ OnFullon:
mes "What will you do?";
next;
if(select("Collect samples.", "Leave.") == 2) {
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
if (countitem(Bathtub_R_Sample) >= 10) {
mes "You will not need additional samples.";
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
if (countitem(Empty_Cylinder) == 0) {
mes "To obtain a sample, you need a sample tube.";
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
mes "Collecting samples.";
@@ -4126,7 +4126,7 @@ OnFullon:
mes "that it is difficult to collect samples.";
mes "You will have to lighten your load and come back.";
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
mes "Bath water sample collection complete.";
@@ -4137,7 +4137,7 @@ OnFullon:
percentheal 5,5;
}
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
} else if (questprogress(5021) || questprogress(5022)) {
if (questprogress(5021)) {
@@ -4152,13 +4152,13 @@ OnFullon:
mes "What do you want to do?";
next;
if(select("Look further.", "Leave.") == 2) {
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
if (countitem(.@item) >= 10) {
mes "You will not need additional samples.";
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
progressbar "ffff00",3;
@@ -4175,7 +4175,7 @@ OnFullon:
} else
mes "You thought you saw it on the ground, but it was an illusion.";
close2;
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
} else {
mes "???";
@@ -4186,16 +4186,16 @@ OnFullon:
}
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
stopnpctimer;
end;
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
initnpctimer;
end;
OnReset:
if (rand(2))
- donpcevent strnpcinfo(0)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEnable";
else
initnpctimer;
end;
@@ -4205,10 +4205,10 @@ OnTimer30000:
OnTimer40000:
OnTimer50000:
if (rand(2))
- donpcevent strnpcinfo(0)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEnable";
end;
OnTimer60000:
- donpcevent strnpcinfo(0)+"::OnEnable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEnable";
end;
OnTouch:
if (questprogress(5034) == 2 || ep14_1_muk == 0 || rand(5)) {
@@ -4238,7 +4238,7 @@ mora,116,81,0 duplicate(???#mora) ???#ep14_muk04 CLEAR_NPC,2,2
mora,118,86,0 duplicate(???#mora) ???#ep14_muk05 CLEAR_NPC,2,2
- script #mora_puddle FAKE_NPC,{
- .@i = atoi(charat(strnpcinfo(2),9));
+ .@i = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9));
// This script has a lot of checks,
// so arrays are only set when used.
diff --git a/npc/re/warps/cities/dicastes.txt b/npc/re/warps/cities/dicastes.txt
index e9b90614c..862765d9a 100644
--- a/npc/re/warps/cities/dicastes.txt
+++ b/npc/re/warps/cities/dicastes.txt
@@ -66,7 +66,7 @@ dic_in01,242,182,0 script #eldicastes0016 CLEAR_NPC,{
// Elevators
- script Elevator#main FAKE_NPC,{
- .@n = atoi(strnpcinfo(2));
+ .@n = atoi(strnpcinfo(NPC_NAME_HIDDEN));
.@eq = (isequipped(2782))?1:0;
if (.@n <= 4) {
.@m$ = (.@eq)?"Civil Services:Archive Room:Situation Room:Administrative Office":"¢³¡ð¡Ð:¡ñ¡ñ¡ò:¡ø¡ø¡ð:¡÷¡ú¡ð";
diff --git a/npc/re/warps/cities/izlude.txt b/npc/re/warps/cities/izlude.txt
index a6229d25b..a8062d578 100644
--- a/npc/re/warps/cities/izlude.txt
+++ b/npc/re/warps/cities/izlude.txt
@@ -87,7 +87,7 @@ iz_int,96,73,0 script iz_int_iz WARPNPC,2,2,{
OnTouch:
savepoint "izlude", 128, 98;
- warp "izlude"+strnpcinfo(2)+"", 195, 209;
+ warp "izlude"+strnpcinfo(NPC_NAME_HIDDEN)+"", 195, 209;
end;
}
diff --git a/npc/re/warps/fields/bif_fild.txt b/npc/re/warps/fields/bif_fild.txt
index 2122ae15f..68e3f4f7a 100644
--- a/npc/re/warps/fields/bif_fild.txt
+++ b/npc/re/warps/fields/bif_fild.txt
@@ -47,7 +47,7 @@ mora,56,25,0 warp bifrost_field0005 1,1,bif_fild02,176,162
mes "When you knock on the door-like thing just for fun,";
mes "the door clicks open and you feel some mysterious force pulling you inside.";
close2;
- switch(atoi(charat(strnpcinfo(2),9))) {
+ switch(atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),9))) {
case 1: warp "mora",179,74; end;
case 2: warp "mora",22,157; end;
case 3: warp "mora",58,27; end;
diff --git a/npc/re/woe-fe/invest_main.txt b/npc/re/woe-fe/invest_main.txt
index 0097b1b3c..012a96afe 100644
--- a/npc/re/woe-fe/invest_main.txt
+++ b/npc/re/woe-fe/invest_main.txt
@@ -707,22 +707,22 @@ OnAgitInvest:
//== Realms - Merchant Guilds, Gate Managers, Status Boards =
- script Cat Paw Merchant Guild FAKE_NPC,{
- if (compare(strnpcinfo(4),"alde")) {
+ if (compare(strnpcinfo(NPC_MAP),"alde")) {
.@npc$ = "alde";
.@name$ = "Megrez";
.@realm$ = "Luina";
.@intro$ = "Luina Branch Manager in Al De Baran";
- } else if (compare(strnpcinfo(4),"gef")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"gef")) {
.@npc$ = "gef";
.@name$ = "Meraq";
.@realm$ = "Britoniah";
.@intro$ = "Britoniah Branch Manager";
- } else if (compare(strnpcinfo(4),"pay")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"pay")) {
.@npc$ = "pay";
.@name$ = "Phecda";
.@realm$ = "Greenwood Lake";
.@intro$ = "Payon Greenwood Lake Branch Manager";
- } else if (compare(strnpcinfo(4),"prt")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"prt")) {
.@npc$ = "prt";
.@name$ = "Dubae";
.@realm$ = "Valkyrie Realm";
@@ -949,22 +949,22 @@ OnAgitInvest:
- script Gate Manager#realm FAKE_NPC,{
- if (compare(strnpcinfo(4),"alde")) {
+ if (compare(strnpcinfo(NPC_MAP),"alde")) {
.@npc$ = "alde";
.@name$ = "Alkor";
.@gate$ = "Hero's Tears";
.@realm$ = "Luina";
- } else if (compare(strnpcinfo(4),"gef")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"gef")) {
.@npc$ = "gef";
.@name$ = "Mizar";
.@gate$ = "Hill of the Dead";
.@realm$ = "Britoniah";
- } else if (compare(strnpcinfo(4),"pay")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"pay")) {
.@npc$ = "pay";
.@name$ = "Alkaid";
.@gate$ = "Winds of the Ancient";
.@realm$ = "Greenwood Lake";
- } else if (compare(strnpcinfo(4),"prt")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"prt")) {
.@npc$ = "prt";
.@name$ = "Arios";
.@gate$ = "Way of the Warrior";
@@ -1005,13 +1005,13 @@ OnAgitInvest:
Zeny -= 10000;
setd "$fund_"+.@npc$+"_extra", getd("$fund_"+.@npc$+"_extra") + 1;
close2;
- if (compare(strnpcinfo(2),"alde"))
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"alde"))
warp "gld_dun02"+((.@i == 2)?"_2":""),32,122;
- else if (compare(strnpcinfo(2),"gef"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gef"))
warp "gld_dun04"+((.@i == 2)?"_2":""),39,258;
- else if (compare(strnpcinfo(2),"pay"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"pay"))
warp "gld_dun01"+((.@i == 2)?"_2":""),186,165;
- else if (compare(strnpcinfo(2),"prt"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prt"))
warp "gld_dun03"+((.@i == 2)?"_2":""),164,268;
end;
} else if (.@status == 2) {
@@ -1031,16 +1031,16 @@ OnAgitInvest:
- script Investment Status Board FAKE_NPC,{
.@invest_status = callfunc("F_Invest_Status");
if (.@invest_status == 1) {
- if (compare(strnpcinfo(4),"alde")) {
+ if (compare(strnpcinfo(NPC_MAP),"alde")) {
.@npc$ = "alde";
.@realm$ = "Luina";
- } else if (compare(strnpcinfo(4),"gef")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"gef")) {
.@npc$ = "gef";
.@realm$ = "Britoniah";
- } else if (compare(strnpcinfo(4),"pay")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"pay")) {
.@npc$ = "pay";
.@realm$ = "Greenwood Lake";
- } else if (compare(strnpcinfo(4),"prt")) {
+ } else if (compare(strnpcinfo(NPC_MAP),"prt")) {
.@npc$ = "prt";
.@realm$ = "Valkyrie Realm";
}
@@ -1098,22 +1098,22 @@ OnAgitInvest:
//== Inside Castles - Gate Managers ========================
- script Gate Manager#castle FAKE_NPC,{
- .@id = atoi(charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1));
- if (compare(strnpcinfo(2),"alde")) {
+ .@id = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),getstrlen(strnpcinfo(NPC_NAME_HIDDEN))-1));
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"alde")) {
.@npc$ = "alde";
.@realm$ = "Luina";
- } else if (compare(strnpcinfo(2),"gef")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gef")) {
.@npc$ = "gef";
.@realm$ = "Britoniah";
- } else if (compare(strnpcinfo(2),"pay")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"pay")) {
.@npc$ = "pay";
.@realm$ = "Greenwood Lake";
- } else if (compare(strnpcinfo(2),"prt")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prt")) {
.@npc$ = "prt";
.@realm$ = "Valkyrie Realm";
}
- .@GID = getcastledata(strnpcinfo(4),1);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
if (getcharid(2) != .@GID) {
mes "[Gate Manager]";
mes "You don't seem to be the member of guild owning this castle.";
@@ -1161,7 +1161,7 @@ OnAgitInvest:
mes "You are interested in exploring the "+.@realm$+" Guild Dungeon Deepest Layer (2F).";
mes "Let me guide you. Good luck.";
close2;
- if (compare(strnpcinfo(2),"alde")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"alde")) {
switch(.@id) {
case 1: warp "gld_dun02_2",32,122; end;
case 2: warp "gld_dun02_2",79,30; end;
@@ -1169,7 +1169,7 @@ OnAgitInvest:
case 4: warp "gld_dun02_2",160,148; end;
case 5: warp "gld_dun02_2",103,169; end;
}
- } else if (compare(strnpcinfo(2),"gef")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gef")) {
switch(.@id) {
case 1: warp "gld_dun04_2",39,258; end;
case 2: warp "gld_dun04_2",125,270; end;
@@ -1177,7 +1177,7 @@ OnAgitInvest:
case 4: warp "gld_dun04_2",268,108; end;
case 5: warp "gld_dun04_2",230,35; end;
}
- } else if (compare(strnpcinfo(2),"pay")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"pay")) {
switch(.@id) {
case 1: warp "gld_dun01_2",186,165; end;
case 2: warp "gld_dun01_2",54,165; end;
@@ -1185,7 +1185,7 @@ OnAgitInvest:
case 4: warp "gld_dun01_2",186,39; end;
case 5: warp "gld_dun01_2",223,202; end;
}
- } else if (compare(strnpcinfo(2),"prt")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prt")) {
switch(.@id) {
case 1: warp "gld_dun03_2",28,251; end;
case 2: warp "gld_dun03_2",164,268; end;
@@ -1200,7 +1200,7 @@ OnAgitInvest:
mes "[Gate Manager]";
mes "Let me guide you to the Abyss Gap connected with "+.@realm$+", the Abyss Gate 'Way of the Warrior'.";
close2;
- if (compare(strnpcinfo(2),"alde")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"alde")) {
switch(.@id) {
case 1: warp "gld2_ald",175,41; end;
case 2: warp "gld2_ald",77,64; end;
@@ -1208,7 +1208,7 @@ OnAgitInvest:
case 4: warp "gld2_ald",104,246; end;
case 5: warp "gld2_ald",241,156; end;
}
- } else if (compare(strnpcinfo(2),"gef")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gef")) {
switch(.@id) {
case 1: warp "gld2_gef",28,199; end;
case 2: warp "gld2_gef",217,46; end;
@@ -1216,7 +1216,7 @@ OnAgitInvest:
case 4: warp "gld2_gef",30,67; end;
case 5: warp "gld2_gef",115,40; end;
}
- } else if (compare(strnpcinfo(2),"pay")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"pay")) {
switch(.@id) {
case 1: warp "gld2_pay",33,112; end;
case 2: warp "gld2_pay",119,27; end;
@@ -1224,7 +1224,7 @@ OnAgitInvest:
case 4: warp "gld2_pay",175,221; end;
case 5: warp "gld2_pay",61,221; end;
}
- } else if (compare(strnpcinfo(2),"prt")) {
+ } else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prt")) {
switch(.@id) {
case 1: warp "gld2_prt",10,27; end;
case 2: warp "gld2_prt",14,247; end;
diff --git a/npc/woe-fe/agit_main.txt b/npc/woe-fe/agit_main.txt
index 06e54c859..3303fc9f2 100644
--- a/npc/woe-fe/agit_main.txt
+++ b/npc/woe-fe/agit_main.txt
@@ -63,39 +63,39 @@
// War of Emperium has started.
OnAgitStart:
- if (strnpcinfo(0) == "Gld_Agit_Manager") end;
- maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),6;
- gvgon strnpcinfo(2);
+ if (strnpcinfo(NPC_NAME) == "Gld_Agit_Manager") end;
+ maprespawnguildid strnpcinfo(NPC_NAME_HIDDEN),getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1),6;
+ gvgon strnpcinfo(NPC_NAME_HIDDEN);
// Spawn (fall through), or respawn the Emperium once it has been broken.
OnStartArena:
// OnAgitStart will fall through and spawn the Emperium.
- if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; }
- else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; }
- else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; }
- else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; }
- else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; }
- else if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; }
- else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; }
- else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; }
- else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; }
- else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; }
- else if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; }
- else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; }
- else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; }
- else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; }
- else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; }
- else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; }
- else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; }
- else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; }
- else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; }
- else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; }
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") { setarray .@emproom[0],216,23; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") { setarray .@emproom[0],213,23; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") { setarray .@emproom[0],205,31; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") { setarray .@emproom[0],36,217; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") { setarray .@emproom[0],27,101; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") { setarray .@emproom[0],197,181; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") { setarray .@emproom[0],176,178; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") { setarray .@emproom[0],244,166; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") { setarray .@emproom[0],174,177; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") { setarray .@emproom[0],194,184; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") { setarray .@emproom[0],139,139; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") { setarray .@emproom[0],38,25; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") { setarray .@emproom[0],269,265; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") { setarray .@emproom[0],270,28; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") { setarray .@emproom[0],30,30; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") { setarray .@emproom[0],197,197; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") { setarray .@emproom[0],157,174; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") { setarray .@emproom[0],16,220; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") { setarray .@emproom[0],291,14; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") { setarray .@emproom[0],266,266; }
// Add custom Guild Castles here.
else {
end;
}
- if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) {
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
+ if (!mobcount(strnpcinfo(NPC_NAME_HIDDEN),"Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnAgitBreak")) {
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnAgitBreak";
}
end;
@@ -104,213 +104,213 @@ OnAgitBreak:
.@GID = getcharid(2);
// Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen)
if (.@GID <= 0) {
- .@notice$ = "Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned.";
+ .@notice$ = "Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(NPC_NAME_HIDDEN)+" while guildless. No data will be saved and Emperium respawned.";
logmes .@notice$; debugmes .@notice$;
- donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
+ donpcevent "Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnStartArena";
end;
}
// Adjust Economy Invest Level for Castle
- .@Economy = getcastledata(strnpcinfo(2),2) - 5;
+ .@Economy = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2) - 5;
if (.@Economy < 0) .@Economy = 0;
- setcastledata strnpcinfo(2), 2, .@Economy;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN), 2, .@Economy;
// Adjust Defense Invest Level for Castle
- .@defence = getcastledata(strnpcinfo(2),3) - 5;
+ .@defence = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3) - 5;
if (.@defence < 0) .@defence = 0;
- setcastledata strnpcinfo(2), 3, .@defence;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN), 3, .@defence;
// Set new Castle Occupant
- setcastledata strnpcinfo(2),1, .@GID;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),1, .@GID;
// Announce that the Emperium is destroyed, and respawn all but new castle-occupants.
- mapannounce strnpcinfo(2),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12;
- maprespawnguildid strnpcinfo(2),.@GID,6;
+ mapannounce strnpcinfo(NPC_NAME_HIDDEN),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12;
+ maprespawnguildid strnpcinfo(NPC_NAME_HIDDEN),.@GID,6;
// Refresh castle data, disable Kafra and reset Invest information.
- donpcevent strnpcinfo(0)+"::OnRecvCastle";
- disablenpc "Kafra Staff#"+strnpcinfo(2);
+ donpcevent strnpcinfo(NPC_NAME)+"::OnRecvCastle";
+ disablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
for (.@i = 4; .@i <= 9; ++.@i) {
- setcastledata strnpcinfo(2), .@i, 0;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN), .@i, 0;
}
// Erase Guardian Database information if the new owners do not have Guardian Research.
if( getgdskilllv(.@GID,10002) == 0 ) {
for (.@i = 10; .@i <= 17; ++.@i) {
- setcastledata strnpcinfo(2), .@i, 0;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN), .@i, 0;
}
}
// Respawn the Emperium, and display new owners.
sleep 500; // Slow down script execution slightly.
if( agitcheck() )
- donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
+ donpcevent "Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnStartArena";
sleep 7000;
- announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe;
+ announce "The [" + getcastlename(strnpcinfo(NPC_NAME_HIDDEN)) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe;
end;
// War of Emperium has ended.
OnAgitEnd:
- if (strnpcinfo(0) == "Gld_Agit_Manager") end;
- gvgoff strnpcinfo(2);
+ if (strnpcinfo(NPC_NAME) == "Gld_Agit_Manager") end;
+ gvgoff strnpcinfo(NPC_NAME_HIDDEN);
// If the castle has no owner at the end of WoE, do not kill Emperium.
- if (getcastledata(strnpcinfo(2),1)) {
- killmonster strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1)) {
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),"Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnAgitBreak";
}
end;
// Occupying Guild has been disbanded.
OnGuildBreak:
- if (strnpcinfo(0) == "Gld_Agit_Manager") end;
+ if (strnpcinfo(NPC_NAME) == "Gld_Agit_Manager") end;
// Kill guardians, disable the Kafra, and set owner to 0.
- killmonster strnpcinfo(2),"Guardian#"+strnpcinfo(2)+"::OnGuardianDied";
- disablenpc "Kafra Staff#"+strnpcinfo(2);
- setcastledata strnpcinfo(2),1,0;
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),"Guardian#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnGuardianDied";
+ disablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),1,0;
// Wait before refreshing guild information.
sleep 7000;
- announce "Guild Base [" + getcastlename(strnpcinfo(2)) + "] has been abandoned.",0;
- donpcevent strnpcinfo(0)+"::OnRecvCastle";
+ announce "Guild Base [" + getcastlename(strnpcinfo(NPC_NAME_HIDDEN)) + "] has been abandoned.",0;
+ donpcevent strnpcinfo(NPC_NAME)+"::OnRecvCastle";
end;
OnAgitInit:
OnRecvCastle:
- if (strnpcinfo(0) == "Gld_Agit_Manager") end;
+ if (strnpcinfo(NPC_NAME) == "Gld_Agit_Manager") end;
// Spawn Monsters if the castle is empty.
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
if (.@GID == 0) {
- killmonsterall strnpcinfo(2);
- if (compare(strnpcinfo(2),"aldeg")) {
+ killmonsterall strnpcinfo(NPC_NAME_HIDDEN);
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"aldeg")) {
// Normal Spawns
- monster strnpcinfo(2),0,0,"Evil Druid",1117,10;
- monster strnpcinfo(2),0,0,"Khalitzburg",1132,4;
- monster strnpcinfo(2),0,0,"Abysmal Knight",1219,2;
- monster strnpcinfo(2),0,0,"Executioner",1205,1;
- monster strnpcinfo(2),0,0,"Penomena",1216,10;
- monster strnpcinfo(2),0,0,"Alarm",1193,18;
- monster strnpcinfo(2),0,0,"Clock",1269,9;
- monster strnpcinfo(2),0,0,"Raydric Archer",1276,7;
- monster strnpcinfo(2),0,0,"Wanderer",1208,3;
- monster strnpcinfo(2),0,0,"Alice",1275,1;
- monster strnpcinfo(2),0,0,"Bloody Knight",1268,1;
- monster strnpcinfo(2),0,0,"Dark Lord",1272,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Evil Druid",1117,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Khalitzburg",1132,4;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Abysmal Knight",1219,2;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Executioner",1205,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Penomena",1216,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alarm",1193,18;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Clock",1269,9;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric Archer",1276,7;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Wanderer",1208,3;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alice",1275,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Bloody Knight",1268,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Dark Lord",1272,1;
// Set Emperium room spawn coordinates and spawn monsters.
- if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; }
- else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; }
- else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; }
- else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; }
- else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; }
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Dark Lord",1272,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Tower Keeper",1270,4;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Bloody Knight",1268,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Abysmal Knight",1219,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") { setarray .@emproom[0],216,23; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") { setarray .@emproom[0],213,23; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") { setarray .@emproom[0],205,31; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") { setarray .@emproom[0],36,217; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") { setarray .@emproom[0],27,101; }
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Dark Lord",1272,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Tower Keeper",1270,4;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Bloody Knight",1268,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Abysmal Knight",1219,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
}
- else if (compare(strnpcinfo(2),"gefg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gefg")) {
// Normal Spawns
- monster strnpcinfo(2),0,0,"Evil Druid",1117,10;
- monster strnpcinfo(2),0,0,"Wind Ghost",1263,11;
- monster strnpcinfo(2),0,0,"Bathory",1102,10;
- monster strnpcinfo(2),0,0,"Jakk",1130,10;
- monster strnpcinfo(2),0,0,"Marduk",1140,20;
- monster strnpcinfo(2),0,0,"Raydric",1163,9;
- monster strnpcinfo(2),0,0,"Alice",1275,1;
- monster strnpcinfo(2),0,0,"Abysmal Knight",1219,1;
- monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1;
- monster strnpcinfo(2),0,0,"Phreeoni",1159,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Evil Druid",1117,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Wind Ghost",1263,11;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Bathory",1102,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Jakk",1130,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Marduk",1140,20;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric",1163,9;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alice",1275,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Abysmal Knight",1219,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Moonlight Flower",1150,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Phreeoni",1159,1;
// Set Emperium room spawn coordinates and spawn monsters.
- if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; }
- else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; }
- else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; }
- else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; }
- else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; }
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Mysteltainn",1203,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Hero",1087,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"High Orc",1213,10;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Archer",1189,10;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") { setarray .@emproom[0],197,181; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") { setarray .@emproom[0],176,178; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") { setarray .@emproom[0],244,166; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") { setarray .@emproom[0],174,177; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") { setarray .@emproom[0],194,184; }
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Mysteltainn",1203,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Orc Hero",1087,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"High Orc",1213,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Orc Archer",1189,10;
}
- else if (compare(strnpcinfo(2),"payg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"payg")) {
// Normal Spawns
- monster strnpcinfo(2),0,0,"Greatest General",1277,9;
- monster strnpcinfo(2),0,0,"Wanderer",1208,10;
- monster strnpcinfo(2),0,0,"Mutant Dragonoid",1262,5;
- monster strnpcinfo(2),0,0,"Bathory",1102,5;
- monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1;
- monster strnpcinfo(2),0,0,"Eddga",1115,1;
- monster strnpcinfo(2),0,0,"Horong",1129,11;
- monster strnpcinfo(2),0,0,"Raydric Archer",1276,5;
- monster strnpcinfo(2),0,0,"Kobold Archer",1282,4;
- monster strnpcinfo(2),0,0,"Gargoyle",1253,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Greatest General",1277,9;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Wanderer",1208,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Mutant Dragonoid",1262,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Bathory",1102,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Moonlight Flower",1150,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Eddga",1115,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Horong",1129,11;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric Archer",1276,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Kobold Archer",1282,4;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Gargoyle",1253,5;
// Set Emperium room spawn coordinates and spawn monsters.
- if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; }
- else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; }
- else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; }
- else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; }
- else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; }
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Moonlight Flower",1150,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Eddga",1115,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Wanderer",1208,6;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") { setarray .@emproom[0],139,139; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") { setarray .@emproom[0],38,25; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") { setarray .@emproom[0],269,265; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") { setarray .@emproom[0],270,28; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") { setarray .@emproom[0],30,30; }
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Moonlight Flower",1150,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Eddga",1115,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Wanderer",1208,6;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
}
- else if (compare(strnpcinfo(2),"prtg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prtg")) {
// Normal Spawns
- monster strnpcinfo(2),0,0,"Raydric",1163,1;
- monster strnpcinfo(2),0,0,"Khalitzburg",1132,10;
- monster strnpcinfo(2),0,0,"Abysmal Knight",1219,5;
- monster strnpcinfo(2),0,0,"Bloody Knight",1268,5;
- monster strnpcinfo(2),0,0,"Stormy Knight",1251,1;
- monster strnpcinfo(2),0,0,"Hatii",1252,1;
- monster strnpcinfo(2),0,0,"Raydric Archer",1276,5;
- monster strnpcinfo(2),0,0,"Gryphon",1259,2;
- monster strnpcinfo(2),0,0,"Chimera",1283,3;
- monster strnpcinfo(2),0,0,"Alice",1275,1;
- monster strnpcinfo(2),0,0,"Zealotus",1200,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric",1163,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Khalitzburg",1132,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Abysmal Knight",1219,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Bloody Knight",1268,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Stormy Knight",1251,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Hatii",1252,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric Archer",1276,5;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Gryphon",1259,2;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Chimera",1283,3;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alice",1275,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Zealotus",1200,1;
// Set Emperium room spawn coordinates and spawn monsters.
- if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; }
- else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; }
- else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; }
- else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; }
- else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; }
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1268,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Master",1251,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Hatii",1252,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1219,1;
- monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") { setarray .@emproom[0],197,197; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") { setarray .@emproom[0],157,174; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") { setarray .@emproom[0],16,220; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") { setarray .@emproom[0],291,14; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") { setarray .@emproom[0],266,266; }
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Guardian Knight",1268,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Guardian Master",1251,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Hatii",1252,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Guardian Knight",1219,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5;
}
// Add custom Guild Castles here.
else {
end;
}
- donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
+ donpcevent "Agit#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnStartArena";
// Disable Kafra Staff...
- disablenpc "Kafra Staff#"+strnpcinfo(2);
+ disablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
end;
}
else {
// Otherwise place the guild emblem on flags.
- if (strnpcinfo(2) == "aldeg_cas01") { donpcevent "::OnRecvCastleA01"; }
- else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent "::OnRecvCastleA02"; }
- else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent "::OnRecvCastleA03"; }
- else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent "::OnRecvCastleA04"; }
- else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent "::OnRecvCastleA05"; }
- else if (strnpcinfo(2) == "gefg_cas01") { donpcevent "::OnRecvCastleG01"; }
- else if (strnpcinfo(2) == "gefg_cas02") { donpcevent "::OnRecvCastleG02"; }
- else if (strnpcinfo(2) == "gefg_cas03") { donpcevent "::OnRecvCastleG03"; }
- else if (strnpcinfo(2) == "gefg_cas04") { donpcevent "::OnRecvCastleG04"; }
- else if (strnpcinfo(2) == "gefg_cas05") { donpcevent "::OnRecvCastleG05"; }
- else if (strnpcinfo(2) == "payg_cas01") { donpcevent "::OnRecvCastlePy01"; }
- else if (strnpcinfo(2) == "payg_cas02") { donpcevent "::OnRecvCastlePy02"; }
- else if (strnpcinfo(2) == "payg_cas03") { donpcevent "::OnRecvCastlePy03"; }
- else if (strnpcinfo(2) == "payg_cas04") { donpcevent "::OnRecvCastlePy04"; }
- else if (strnpcinfo(2) == "payg_cas05") { donpcevent "::OnRecvCastlePy05"; }
- else if (strnpcinfo(2) == "prtg_cas01") { donpcevent "::OnRecvCastlePt01"; }
- else if (strnpcinfo(2) == "prtg_cas02") { donpcevent "::OnRecvCastlePt02"; }
- else if (strnpcinfo(2) == "prtg_cas03") { donpcevent "::OnRecvCastlePt03"; }
- else if (strnpcinfo(2) == "prtg_cas04") { donpcevent "::OnRecvCastlePt04"; }
- else if (strnpcinfo(2) == "prtg_cas05") { donpcevent "::OnRecvCastlePt05"; }
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") { donpcevent "::OnRecvCastleA01"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") { donpcevent "::OnRecvCastleA02"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") { donpcevent "::OnRecvCastleA03"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") { donpcevent "::OnRecvCastleA04"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") { donpcevent "::OnRecvCastleA05"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") { donpcevent "::OnRecvCastleG01"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") { donpcevent "::OnRecvCastleG02"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") { donpcevent "::OnRecvCastleG03"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") { donpcevent "::OnRecvCastleG04"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") { donpcevent "::OnRecvCastleG05"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") { donpcevent "::OnRecvCastlePy01"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") { donpcevent "::OnRecvCastlePy02"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") { donpcevent "::OnRecvCastlePy03"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") { donpcevent "::OnRecvCastlePy04"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") { donpcevent "::OnRecvCastlePy05"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") { donpcevent "::OnRecvCastlePt01"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") { donpcevent "::OnRecvCastlePt02"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") { donpcevent "::OnRecvCastlePt03"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") { donpcevent "::OnRecvCastlePt04"; }
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") { donpcevent "::OnRecvCastlePt05"; }
// Add custom Guild Castles here.
else {
end;
}
// And load purchased Guardian in castles.
- donpcevent "Guardian#"+strnpcinfo(2)+"::OnSpawnGuardians";
+ donpcevent "Guardian#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnSpawnGuardians";
// And display Kafra if purchased.
- if (getcastledata(strnpcinfo(2),9) < 1) disablenpc "Kafra Staff#"+strnpcinfo(2);
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),9) < 1) disablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
}
end;
}
@@ -318,21 +318,21 @@ OnRecvCastle:
//== WoE : Guild Kafras ====================================
- script Kafra Staff#woe::guildkafra FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
- if (compare(strnpcinfo(2),"aldeg")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"aldeg")) {
setarray .@destination$[0],"Al De Baran","aldebaran";
setarray .@coordinates[0],132,103;
}
- else if (compare(strnpcinfo(2),"gefg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gefg")) {
setarray .@destination$[0],"Geffen","geffen";
setarray .@coordinates[0],120,39;
}
- else if (compare(strnpcinfo(2),"payg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"payg")) {
setarray .@destination$[0],"Payon","payon";
setarray .@coordinates[0],70,100;
}
- else if (compare(strnpcinfo(2),"prtg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prtg")) {
setarray .@destination$[0],"Prontera","prontera";
setarray .@coordinates[0],278,211;
}
@@ -466,7 +466,7 @@ OnRecvCastle:
//== WoE : Castle Managers =================================
- script Castle Manager#cm::cm FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
// .@guardiantype = Defines the types of guardians per castle basis.
// 1 - Soldier Guardian, 2 - Archer Guardian, 3 - Knight Guardian
@@ -475,124 +475,124 @@ OnRecvCastle:
// .@guardianposy = Define the y spawn point for each guardian.
// [0] = 1st guardian's y spawn point.
// .@masterroom = Defines the coordinates of the Treasure Room.
- if (strnpcinfo(2) == "aldeg_cas01") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") {
setarray .@guardiantype[0],1,2,2,2,2,3,3,3;
setarray .@guardianposx[0],17,39,38,45,21,218,213,73;
setarray .@guardianposy[0],218,208,196,228,194,24,24,70;
setarray .@masterroom[0],113,223;
}
- else if (strnpcinfo(2) == "aldeg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],27,88,117,60,51,21,36,210;
setarray .@guardianposy[0],184,43,46,202,183,177,183,7;
setarray .@masterroom[0],134,225;
}
- else if (strnpcinfo(2) == "aldeg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") {
setarray .@guardiantype[0],3,3,1,1,1,2,2,2;
setarray .@guardianposx[0],90,116,86,116,64,212,195,110;
setarray .@guardianposy[0],112,112,120,76,103,160,151,217;
setarray .@masterroom[0],229,267;
}
- else if (strnpcinfo(2) == "aldeg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") {
setarray .@guardiantype[0],2,2,2,1,1,1,3,3;
setarray .@guardianposx[0],187,192,148,145,169,198,48,55;
setarray .@guardianposy[0],100,42,88,209,53,77,72,88;
setarray .@masterroom[0],83,17;
}
- else if (strnpcinfo(2) == "aldeg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") {
setarray .@guardiantype[0],2,2,1,1,3,3,3,3;
setarray .@guardianposx[0],51,188,157,157,27,145,156,41;
setarray .@guardianposy[0],202,79,192,74,221,78,73,112;
setarray .@masterroom[0],64,8;
}
// Geffen (Britoniah) Castles
- else if (strnpcinfo(2) == "gefg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],67,184,62,36,50,50,189,200;
setarray .@guardianposy[0],179,20,41,186,186,67,41,167;
setarray .@masterroom[0],152,117;
}
- else if (strnpcinfo(2) == "gefg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],64,56,166,35,20,19,166,159;
setarray .@guardianposy[0],168,41,25,148,150,41,42,188;
setarray .@masterroom[0],145,115;
}
- else if (strnpcinfo(2) == "gefg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],48,113,48,157,243,157,234,238;
setarray .@guardianposy[0],176,214,207,62,41,45,25,160;
setarray .@masterroom[0],275,289;
}
- else if (strnpcinfo(2) == "gefg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],53,31,49,29,147,57,160,148;
setarray .@guardianposy[0],191,178,220,46,65,46,50,189;
setarray .@masterroom[0],116,123;
}
- else if (strnpcinfo(2) == "gefg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],45,71,72,66,177,66,177,193;
setarray .@guardianposy[0],149,163,142,47,50,17,35,166;
setarray .@masterroom[0],149,106;
}
// Payon (Baulder) Castles
- else if (strnpcinfo(2) == "payg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],229,225,222,99,65,36,51,138;
setarray .@guardianposy[0],92,80,111,45,31,127,144,133;
setarray .@masterroom[0],295,8;
}
- else if (strnpcinfo(2) == "payg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],237,228,210,57,42,287,264,27;
setarray .@guardianposy[0],54,72,41,241,241,257,272,20;
setarray .@masterroom[0],141,149;
}
- else if (strnpcinfo(2) == "payg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],245,269,36,41,39,19,37,268;
setarray .@guardianposy[0],37,51,39,39,65,276,277,244;
setarray .@masterroom[0],163,167;
}
- else if (strnpcinfo(2) == "payg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],251,232,231,32,32,35,36,270;
setarray .@guardianposy[0],212,212,175,287,232,45,17,41;
setarray .@masterroom[0],151,47;
}
- else if (strnpcinfo(2) == "payg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],19,33,266,266,263,263,250,36;
setarray .@guardianposy[0],279,260,234,279,37,21,22,36;
setarray .@masterroom[0],153,137;
}
// Prontera (Valkyrie Realms) Castles
- else if (strnpcinfo(2) == "prtg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],182,182,153,59,50,184,196,107;
setarray .@guardianposy[0],62,116,86,28,36,183,189,179;
setarray .@masterroom[0],15,209;
}
- else if (strnpcinfo(2) == "prtg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],161,153,178,71,49,64,7,75;
setarray .@guardianposy[0],161,161,44,75,28,186,196,175;
setarray .@masterroom[0],207,229;
}
- else if (strnpcinfo(2) == "prtg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],191,137,45,50,41,191,179,191;
setarray .@guardianposy[0],190,190,99,87,87,42,43,72;
setarray .@masterroom[0],190,130;
}
- else if (strnpcinfo(2) == "prtg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") {
setarray .@guardiantype[0],3,3,3,1,1,1,2,2;
setarray .@guardianposx[0],276,274,246,38,29,33,78,36;
setarray .@guardianposy[0],14,35,246,240,240,258,48,61;
setarray .@masterroom[0],275,160;
}
- else if (strnpcinfo(2) == "prtg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") {
setarray .@guardiantype[0],3,3,3,1,1,1,2,2;
setarray .@guardianposx[0],266,287,245,236,251,278,32,44;
setarray .@guardianposy[0],262,280,250,63,63,253,253,248;
@@ -604,38 +604,38 @@ OnRecvCastle:
}
if (.@GID == 0) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I have been waiting for a master to fulfill my destiny.";
mes "Brave soul... fate will guide you towards your future...";
close;
}
if (getguildmaster(.@GID) != strcharinfo(0)) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "No matter how much you pester me, I'll still follow my master ^ff0000"+getguildmaster(.@GID)+"^000000. Where are the Guardians?! Send these ruffians away right now!";
close;
}
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Welcome. My honorable master, ^ff0000"+strcharinfo(0)+"^000000...";
- mes "Your humble servant, "+strnpcinfo(1)+", is here to serve you.";
+ mes "Your humble servant, "+strnpcinfo(NPC_NAME_VISIBLE)+", is here to serve you.";
next;
switch (select("Castle briefing", "Invest in commercial growth", "Invest in Castle Defenses", "Summon Guardian", "Hire / Fire a Kafra Employee", "Go into Master's room")) {
case 1:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I will report the Castle briefing, Master.";
mes " ";
- mes "^0000ffNow, the commercial growth level is "+getcastledata(strnpcinfo(2),2)+".";
- if (getcastledata(strnpcinfo(2),4)) {
- mes " You invested "+getcastledata(strnpcinfo(2),4)+" times in past 1 day.";
+ mes "^0000ffNow, the commercial growth level is "+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2)+".";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)) {
+ mes " You invested "+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)+" times in past 1 day.";
}
- mes " Now, the Castle Defense level is "+getcastledata(strnpcinfo(2),3)+".^000000";
- if (getcastledata(strnpcinfo(2),5)) {
- mes " ^0000ff- You invested "+getcastledata(strnpcinfo(2),5)+" times in past 1 day.^000000";
+ mes " Now, the Castle Defense level is "+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3)+".^000000";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)) {
+ mes " ^0000ff- You invested "+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)+" times in past 1 day.^000000";
}
mes " ";
mes "That's all I have to report, Master.";
close;
case 2:
- .@Economy = getcastledata(strnpcinfo(2),2);
+ .@Economy = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2);
if (.@Economy < 6) { .@eco_invest = 5000; }
else if ((.@Economy >= 6) && (.@Economy <= 10)) { .@eco_invest = 10000; }
else if ((.@Economy >= 11) && (.@Economy <= 15)) { .@eco_invest = 20000; }
@@ -657,10 +657,10 @@ OnRecvCastle:
else if ((.@Economy >= 91) && (.@Economy <= 95)) { .@eco_invest = 860000; }
else if ((.@Economy >= 96) && (.@Economy <= 100)) { .@eco_invest = 955000; }
//Quadruple the cost of investing if you've already invested once.
- if (getcastledata(strnpcinfo(2),4)) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)) {
.@eco_invest *= 4;
}
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "If you invest in commercial growth, the quantity of goods made by the guild will increase. Therfore, if you consider our future, investments will be a necessity.";
mes " ";
mes "Initially, you are able to invest just once but if you pay more money, you will be able to invest twice.";
@@ -669,12 +669,12 @@ OnRecvCastle:
mes "^ff0000The commercial growth level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great economist like you, Master.^000000";
close;
}
- if (getcastledata(strnpcinfo(2),4) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4) >= 2) {
mes " ";
mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect riches of the guild to grow at a high rate.";
close;
}
- if (getcastledata(strnpcinfo(2),4) == 0) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4) == 0) {
mes " ";
mes "The current investment amount required is ^ff0000"+.@eco_invest+"^000000 zeny. Will you invest?";
}
@@ -686,22 +686,22 @@ OnRecvCastle:
switch (select("Invest in commercial growth", "Cancel")) {
case 1:
if (Zeny < .@eco_invest) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master.";
close;
}
Zeny -= .@eco_invest;
- setcastledata strnpcinfo(2),4,getcastledata(strnpcinfo(2),4)+1;
- mes "[ "+strnpcinfo(1)+"]";
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),4,getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)+1;
+ mes "[ "+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "We finished the investment safely. I expect that our growth level will be increased by tomorrow.";
close;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I'll do as you bid, my master... There is no hurry. We will do our best.";
close;
}
case 3:
- .@defence = getcastledata(strnpcinfo(2),3);
+ .@defence = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3);
if (.@defence < 6) { .@def_invest = 10000; }
else if ((.@defence >= 6) && (.@defence <= 10)) { .@def_invest = 20000; }
else if ((.@defence >= 11) && (.@defence <= 15)) { .@def_invest = 40000; }
@@ -723,10 +723,10 @@ OnRecvCastle:
else if ((.@defence >= 91) && (.@defence <= 95)) { .@def_invest = 1720000; }
else if ((.@defence >= 96) && (.@defence <= 100)) { .@def_invest = 1910000; }
//Quadruple the cost of investing if you've already invested once.
- if (getcastledata(strnpcinfo(2),5)) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)) {
.@def_invest *= 4;
}
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "If you raise Castle Defenses, the durability of Guardians and the Emperium will increase. Therefore, if you consider our coming battles, some investment in this area will be required.";
mes " ";
mes "Originally you can invest just once but if you pay more money, you can invest twice.";
@@ -735,12 +735,12 @@ OnRecvCastle:
mes "^ff0000But the Castle Defense level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great strategist like you, Master.^000000";
close;
}
- if (getcastledata(strnpcinfo(2),5) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5) >= 2) {
mes " ";
mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect the Defenses of the guild to grow at a high rate.";
close;
}
- if (getcastledata(strnpcinfo(2),5) == 0) {
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5) == 0) {
mes " ";
mes "The current investment amount required is ^ff0000"+.@def_invest+"^000000 zeny. Will you invest?";
}
@@ -752,22 +752,22 @@ OnRecvCastle:
switch (select("Invest in Castle Defenses.", "Cancel")) {
case 1:
if (Zeny < .@def_invest) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master.";
close;
}
Zeny -= .@def_invest;
- setcastledata strnpcinfo(2),5,getcastledata(strnpcinfo(2),5)+1;
- mes "[ "+strnpcinfo(1)+"]";
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),5,getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)+1;
+ mes "[ "+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "We finished the investment safely. I expect that our Castle Defense level will be increased by tomorrow.";
close;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I'll do as you bid, my master... There is no hurry. We will do our best.";
close;
}
case 4:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Will you summon a Guardian? It'll be a protector to defend us loyally.";
mes "Please select a guardian to defend us.";
next;
@@ -775,8 +775,8 @@ OnRecvCastle:
if (.@guardiantype[.@i] == 1) { .@type$ = "Guardian Soldier"; }
else if (.@guardiantype[.@i] == 2) { .@type$ = "Guardian Archer"; }
else { .@type$ = "Guardian Knight"; }
- if (guardianinfo(strnpcinfo(2),.@i,0)) {
- setarray .@gname$[.@i], .@type$ + " - Implemented (" + guardianinfo(strnpcinfo(2),.@i,2) + "/" + guardianinfo(strnpcinfo(2),.@i,1) + ")";
+ if (guardianinfo(strnpcinfo(NPC_NAME_HIDDEN),.@i,0)) {
+ setarray .@gname$[.@i], .@type$ + " - Implemented (" + guardianinfo(strnpcinfo(NPC_NAME_HIDDEN),.@i,2) + "/" + guardianinfo(strnpcinfo(NPC_NAME_HIDDEN),.@i,1) + ")";
}
else {
setarray .@gname$[.@i], .@type$ + " - Not Implemented";
@@ -784,44 +784,44 @@ OnRecvCastle:
}
.@menu$ = .@gname$[0]+":"+.@gname$[1]+":"+.@gname$[2]+":"+.@gname$[3]+":"+.@gname$[4]+":"+.@gname$[5]+":"+.@gname$[6]+":"+.@gname$[7];
.@GDnum = select(.@menu$)+9;
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Will you summon the chosen guardian? 10,000 zeny are required to summon a Guardian.";
next;
switch (select("Summon", "Cancel")) {
case 1:
if (getgdskilllv(.@GID,10002) == 0) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Master, we have not the resources to Summon the Guardian. If you want to accumulate them, you have to learn the Guild skill. We failed to summon the Guardian.";
close;
}
- if (getcastledata(strnpcinfo(2),.@GDnum) == 1) {
- mes "["+strnpcinfo(1)+"]";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),.@GDnum) == 1) {
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Master, you already have summoned that Guardian. We cannot summon another.";
close;
}
if (Zeny < 10000) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Well... I'm sorry but we don't have funds to summon the Guardian. We failed to summon the Guardian.";
close;
}
Zeny -= 10000;
- setcastledata strnpcinfo(2),.@GDnum,1; // mark as 'installed'
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),.@GDnum,1; // mark as 'installed'
.@UseGID = .@GDnum - 10;
if (.@guardiantype[.@UseGID] == 1) { .@type = 1287; }
else if (.@guardiantype[.@UseGID] == 2) { .@type = 1285; }
else { .@type = 1286; }
- guardian strnpcinfo(2),.@guardianposx[.@UseGID],.@guardianposy[.@UseGID],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@UseGID;
- mes "["+strnpcinfo(1)+"]";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@guardianposx[.@UseGID],.@guardianposy[.@UseGID],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnGuardianDied",.@UseGID;
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "We completed the summoning of the Guardian. Our defenses are now increased with it in place.";
close;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I did as you ordered. But please remember if you the have money to spare, it'll be better to set it up.";
close;
}
case 5:
- if (getcastledata(strnpcinfo(2),9) == 1) {
- mes "["+strnpcinfo(1)+"]";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),9) == 1) {
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "We are currently hiring a Kafra Employee... Do you want to fire the Kafra Employee?";
next;
switch (select("Fire", "Cancel")) {
@@ -844,37 +844,37 @@ OnRecvCastle:
}
break;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "She worked hard in my opinion. It was a good decision to keep her.";
close;
}
- disablenpc "Kafra Staff#"+strnpcinfo(2);
- setcastledata strnpcinfo(2),9,0;
- mes "["+strnpcinfo(1)+"]";
+ disablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),9,0;
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "....";
mes "I have discharged the Kafra Employee... But... are you unsatisfied with something?";
close;
}
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Will you contact the kafra Main Office and Hire a Employee for our Castle?";
mes "^ff0000 10,000 zeny is required for their services. ";
next;
switch (select("Hire.", "Cancel")) {
case 1:
if (getgdskilllv(.@GID,10001) == 0) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Master, we can't hire a Kafra Employee because we don't have a contract with the Kafra Main Office. If you want to obtain a contract with the Kafra Main Office, you will need to learn the Guild skill first.";
close;
}
if (Zeny < 10000) {
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Well... I'm sorry but we don't have enough funds to hire a Kafra Employee.";
close;
}
Zeny -= 10000;
- enablenpc "Kafra Staff#"+strnpcinfo(2);
- setcastledata strnpcinfo(2),9,1;
- mes "["+strnpcinfo(1)+"]";
+ enablenpc "Kafra Staff#"+strnpcinfo(NPC_NAME_HIDDEN);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),9,1;
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "We obtained a contract with the kafra Main Office, and hired a Kafra Employee.";
next;
cutin "kafra_01",2;
@@ -883,30 +883,30 @@ OnRecvCastle:
mes "I'll do my best to not tarnish the reputation of the Guild.";
next;
cutin "",255;
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "The Contract terms of the hired Kafra Employee are for 1 month and after this term, you will need to to pay an additional fee.";
mes "It will be useful for our members.";
close;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I did as you ordered, but some of our members will be unhappy. It will be better to hire a Kafra Employee quickly.";
close;
}
case 6:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Do you want to visit the room where our valuables are stored?";
mes "That room is restricted to you... you are the only one with access to it.";
next;
switch (select("Go into Master's room.", "Cancel")) {
case 1:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "I'll show you the secret path. Follow me...please.";
mes "When you want to return here, please press the secret switch.";
close2;
- warp strnpcinfo(2),.@masterroom[0],.@masterroom[1];
+ warp strnpcinfo(NPC_NAME_HIDDEN),.@masterroom[0],.@masterroom[1];
end;
case 2:
- mes "["+strnpcinfo(1)+"]";
+ mes "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes "Goods are produced once a day... if you don't remove them in time, they will not be produced anymore.";
mes "Therefore, it will be better if you check up on them from time to time.";
close;
@@ -917,7 +917,7 @@ OnRecvCastle:
//== WoE : Guild Dungeon Entrances =========================
- script Lever#gd::gdlever FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
if (.@GID == 0) {
mes "[Ringing Voice]";
@@ -925,37 +925,37 @@ OnRecvCastle:
close;
}
- if (compare(strnpcinfo(2),"aldeg")) {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"aldeg")) {
.@destination$ = "gld_dun02";
- if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],32,122;
- else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],79,30;
- else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],165,38;
- else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],160,148;
- else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],103,169;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas01")) setarray .@coordinates[0],32,122;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas02")) setarray .@coordinates[0],79,30;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas03")) setarray .@coordinates[0],165,38;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas04")) setarray .@coordinates[0],160,148;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas05")) setarray .@coordinates[0],103,169;
}
- else if (compare(strnpcinfo(2),"gefg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gefg")) {
.@destination$ = "gld_dun04";
- if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],39,258;
- else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],125,270;
- else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],268,251;
- else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,108;
- else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],230,35;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas01")) setarray .@coordinates[0],39,258;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas02")) setarray .@coordinates[0],125,270;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas03")) setarray .@coordinates[0],268,251;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas04")) setarray .@coordinates[0],268,108;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas05")) setarray .@coordinates[0],230,35;
}
- else if (compare(strnpcinfo(2),"payg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"payg")) {
.@destination$ = "gld_dun01";
- if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],186,165;
- else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],54,165;
- else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],54,39;
- else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],186,39;
- else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],223,202;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas01")) setarray .@coordinates[0],186,165;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas02")) setarray .@coordinates[0],54,165;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas03")) setarray .@coordinates[0],54,39;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas04")) setarray .@coordinates[0],186,39;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas05")) setarray .@coordinates[0],223,202;
}
- else if (compare(strnpcinfo(2),"prtg")) {
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prtg")) {
.@destination$ = "gld_dun03";
- if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],28,251;
- else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],164,268;
- else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],164,179;
- else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,203;
- else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],199,28;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas01")) setarray .@coordinates[0],28,251;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas02")) setarray .@coordinates[0],164,268;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas03")) setarray .@coordinates[0],164,179;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas04")) setarray .@coordinates[0],268,203;
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"cas05")) setarray .@coordinates[0],199,28;
}
// Add custom Guild Castles here.
else {
@@ -994,105 +994,105 @@ OnSpawnGuardians:
// Define the y spawn point for each uardian.
// [0] = 1st guardian's y spawn point.
// Aldebaran (Luina) Castles
- if (strnpcinfo(2) == "aldeg_cas01") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") {
setarray .@guardiantype[0],1,2,2,2,2,3,3,3;
setarray .@guardianposx[0],17,39,38,45,21,218,213,73;
setarray .@guardianposy[0],218,208,196,228,194,24,24,70;
}
- else if (strnpcinfo(2) == "aldeg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],27,88,117,60,51,21,36,210;
setarray .@guardianposy[0],184,43,46,202,183,177,183,7;
}
- else if (strnpcinfo(2) == "aldeg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") {
setarray .@guardiantype[0],3,3,1,1,1,2,2,2;
setarray .@guardianposx[0],90,116,86,116,64,212,195,110;
setarray .@guardianposy[0],112,112,120,76,103,160,151,217;
}
- else if (strnpcinfo(2) == "aldeg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") {
setarray .@guardiantype[0],2,2,2,1,1,1,3,3;
setarray .@guardianposx[0],187,192,148,145,169,198,48,55;
setarray .@guardianposy[0],100,42,88,209,53,77,72,88;
}
- else if (strnpcinfo(2) == "aldeg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") {
setarray .@guardiantype[0],2,2,1,1,3,3,3,3;
setarray .@guardianposx[0],51,188,157,157,27,145,156,41;
setarray .@guardianposy[0],202,79,192,74,221,78,73,112;
}
// Geffen (Britoniah) Castles
- else if (strnpcinfo(2) == "gefg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],67,184,62,36,50,50,189,200;
setarray .@guardianposy[0],179,20,41,186,186,67,41,167;
}
- else if (strnpcinfo(2) == "gefg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],64,56,166,35,20,19,166,159;
setarray .@guardianposy[0],168,41,25,148,150,41,42,188;
}
- else if (strnpcinfo(2) == "gefg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],48,113,48,157,243,157,234,238;
setarray .@guardianposy[0],176,214,207,62,41,45,25,160;
}
- else if (strnpcinfo(2) == "gefg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],53,31,49,29,147,57,160,148;
setarray .@guardianposy[0],191,178,220,46,65,46,50,189;
}
- else if (strnpcinfo(2) == "gefg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") {
setarray .@guardiantype[0],2,2,1,1,1,3,3,3;
setarray .@guardianposx[0],45,71,72,66,177,66,177,193;
setarray .@guardianposy[0],149,163,142,47,50,17,35,166;
}
// Payon (Baulder) Castles
- else if (strnpcinfo(2) == "payg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],229,225,222,99,65,36,51,138;
setarray .@guardianposy[0],92,80,111,45,31,127,144,133;
}
- else if (strnpcinfo(2) == "payg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],237,228,210,57,42,287,264,27;
setarray .@guardianposy[0],54,72,41,241,241,257,272,20;
}
- else if (strnpcinfo(2) == "payg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],245,269,36,41,39,19,37,268;
setarray .@guardianposy[0],37,51,39,39,65,276,277,244;
}
- else if (strnpcinfo(2) == "payg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],251,232,231,32,32,35,36,270;
setarray .@guardianposy[0],212,212,175,287,232,45,17,41;
}
- else if (strnpcinfo(2) == "payg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") {
setarray .@guardiantype[0],2,2,2,2,2,2,2,3;
setarray .@guardianposx[0],19,33,266,266,263,263,250,36;
setarray .@guardianposy[0],279,260,234,279,37,21,22,36;
}
// Prontera (Valkyrie Realms) Castles
- else if (strnpcinfo(2) == "prtg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") {
setarray .@guardiantype[0],1,1,1,2,2,3,3,3;
setarray .@guardianposx[0],182,182,153,59,50,184,196,107;
setarray .@guardianposy[0],62,116,86,28,36,183,189,179;
}
- else if (strnpcinfo(2) == "prtg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],161,153,178,71,49,64,7,75;
setarray .@guardianposy[0],161,161,44,75,28,186,196,175;
}
- else if (strnpcinfo(2) == "prtg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") {
setarray .@guardiantype[0],3,3,3,1,1,2,2,2;
setarray .@guardianposx[0],191,137,45,50,41,191,179,191;
setarray .@guardianposy[0],190,190,99,87,87,42,43,72;
}
- else if (strnpcinfo(2) == "prtg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") {
setarray .@guardiantype[0],3,3,3,1,1,1,2,2;
setarray .@guardianposx[0],276,274,246,38,29,33,78,36;
setarray .@guardianposy[0],14,35,246,240,240,258,48,61;
}
- else if (strnpcinfo(2) == "prtg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") {
setarray .@guardiantype[0],3,3,3,1,1,1,2,2;
setarray .@guardianposx[0],266,287,245,236,251,278,32,44;
setarray .@guardianposy[0],262,280,250,63,63,253,253,248;
@@ -1104,15 +1104,15 @@ OnSpawnGuardians:
// Kill all existing guardians before spawning new ones.
// This should prevent duplicating Guardians when char Server disconnects.
- killmonster strnpcinfo(2),strnpcinfo(0)+"::OnGuardianDied";
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),strnpcinfo(NPC_NAME)+"::OnGuardianDied";
for (.@i = 0; .@i <= 7; ++.@i) {
.@UseGID = .@i + 10;
if (.@guardiantype[.@i] == 1) { .@type = 1287; }
else if (.@guardiantype[.@i] == 2) { .@type = 1285; }
else { .@type = 1286; }
- if (getcastledata(strnpcinfo(2),.@UseGID)) {
- guardian strnpcinfo(2),.@guardianposx[.@i],.@guardianposy[.@i],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@i;
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),.@UseGID)) {
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@guardianposx[.@i],.@guardianposy[.@i],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnGuardianDied",.@i;
}
}
end;
@@ -1127,113 +1127,113 @@ OnGuardianDied:
OnClock0001:
// Do nothing if this script is the template.
- if (strnpcinfo(1) == "Gld_Trea_Spawn") end;
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Gld_Trea_Spawn") end;
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
// If there is no owner, do nothing.
if (!.@GID) end;
// Is there Economy in this castle?
- .@Treasure = getcastledata(strnpcinfo(2),2)/5+4;
+ .@Treasure = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2)/5+4;
// Set information
- if (strnpcinfo(2) == "aldeg_cas01") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas01") {
.@treasurebox = 1324;
setarray .@treasurex[0],115,122,115,122,116,117,118,119,120,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116;
setarray .@treasurey[0],226,226,219,219,225,225,225,225,225,225,224,223,222,221,220,220,220,220,220,220,221,222,223,224;
}
- else if (strnpcinfo(2) == "aldeg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas02") {
.@treasurebox = 1326;
setarray .@treasurex[0],134,135,135,134,132,133,134,135,136,137,137,137,137,137,137,136,135,134,133,132,132,132,132,132;
setarray .@treasurey[0],231,231,230,230,233,233,233,233,233,233,232,231,230,229,228,228,228,228,228,228,229,230,231,232;
}
- else if (strnpcinfo(2) == "aldeg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas03") {
.@treasurebox = 1328;
setarray .@treasurex[0],224,225,225,224,222,223,224,225,226,227,227,227,227,227,227,226,225,224,223,222,222,222,222,222;
setarray .@treasurey[0],269,269,268,268,271,271,271,271,271,271,270,269,268,267,266,266,266,266,266,266,267,268,269,270;
}
- else if (strnpcinfo(2) == "aldeg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas04") {
.@treasurebox = 1330;
setarray .@treasurex[0],84,85,85,84,82,83,84,85,86,87,87,87,87,87,87,86,85,84,83,82,82,82,82,82;
setarray .@treasurey[0],13,13,12,12,15,15,15,15,15,15,14,13,12,11,10,10,10,10,10,10,11,12,13,14;
}
- else if (strnpcinfo(2) == "aldeg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "aldeg_cas05") {
.@treasurebox = 1332;
setarray .@treasurex[0],61,62,62,61,59,60,61,62,63,64,64,64,64,64,64,63,62,61,60,59,59,59,59,59;
setarray .@treasurey[0],12,12,11,11,14,14,14,14,14,14,13,12,11,10,9,9,9,9,9,9,10,11,12,13;
}
- else if (strnpcinfo(2) == "gefg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas01") {
.@treasurebox = 1334;
setarray .@treasurex[0],153,154,154,153,151,152,153,154,155,156,156,156,156,156,156,155,154,153,152,151,151,151,151,151;
setarray .@treasurey[0],113,113,112,112,115,115,115,115,115,115,114,113,112,111,110,110,110,110,110,110,111,112,113,114;
}
- else if (strnpcinfo(2) == "gefg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas02") {
.@treasurebox = 1336;
setarray .@treasurex[0],139,140,140,139,137,138,139,140,141,142,142,142,142,142,142,141,140,139,138,137,137,137,137,137;
setarray .@treasurey[0],115,115,114,114,117,117,117,117,117,117,116,115,114,113,112,112,112,112,112,112,113,114,115,116;
}
- else if (strnpcinfo(2) == "gefg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas03") {
.@treasurebox = 1338;
setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267;
setarray .@treasurey[0],291,291,290,290,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288,288,289,290,291,292;
}
- else if (strnpcinfo(2) == "gefg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas04") {
.@treasurebox = 1340;
setarray .@treasurex[0],115,116,116,115,113,114,115,116,117,118,118,118,118,118,118,117,116,115,114,113,113,113,113,113;
setarray .@treasurey[0],119,119,118,118,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116,116,117,118,119,120;
}
- else if (strnpcinfo(2) == "gefg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "gefg_cas05") {
.@treasurebox = 1342;
setarray .@treasurex[0],143,144,144,143,141,142,143,144,145,146,146,146,146,146,146,145,144,143,142,141,141,141,141,141;
setarray .@treasurey[0],110,110,109,109,112,112,112,112,112,112,111,110,109,108,107,107,107,107,107,107,108,109,110,111;
}
- else if (strnpcinfo(2) == "payg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas01") {
.@treasurebox = 1344;
setarray .@treasurex[0],289,292,292,289,288,289,290,291,292,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288;
setarray .@treasurey[0],10,10,7,7,11,11,11,11,11,11,10,9,8,7,6,6,6,6,6,6,7,8,9,10;
}
- else if (strnpcinfo(2) == "payg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas02") {
.@treasurebox = 1346;
setarray .@treasurex[0],143,146,146,143,142,143,144,145,146,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142;
setarray .@treasurey[0],146,146,143,143,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142,142,143,144,145,146;
}
- else if (strnpcinfo(2) == "payg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas03") {
.@treasurebox = 1348;
setarray .@treasurex[0],158,159,159,158,156,157,158,159,160,161,161,161,161,161,161,160,159,158,157,156,156,156,156,156;
setarray .@treasurey[0],169,169,168,168,171,171,171,171,171,171,170,169,168,167,166,166,166,166,166,166,167,168,169,170;
}
- else if (strnpcinfo(2) == "payg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas04") {
.@treasurebox = 1350;
setarray .@treasurex[0],146,147,147,146,144,145,146,147,148,149,149,149,149,149,149,148,147,146,145,144,144,144,144,144;
setarray .@treasurey[0],48,48,47,47,50,50,50,50,50,50,49,48,47,46,45,45,45,45,45,45,46,47,48,49;
}
- else if (strnpcinfo(2) == "payg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "payg_cas05") {
.@treasurebox = 1352;
setarray .@treasurex[0],155,158,158,155,154,155,156,157,158,159,159,159,159,159,159,158,157,156,155,154,154,154,154,154;
setarray .@treasurey[0],134,134,131,131,135,135,135,135,135,135,134,133,132,131,130,130,130,130,130,130,131,132,133,134;
}
- else if (strnpcinfo(2) == "prtg_cas01") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas01") {
.@treasurebox = 1354;
setarray .@treasurex[0],10,11,11,10,8,9,10,11,12,13,13,13,13,13,13,12,11,10,9,8,8,8,8,8;
setarray .@treasurey[0],209,209,208,208,211,211,211,211,211,211,210,209,208,207,206,206,206,206,206,206,207,208,209,210;
}
- else if (strnpcinfo(2) == "prtg_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas02") {
.@treasurebox = 1356;
setarray .@treasurex[0],201,202,202,201,199,200,201,202,203,204,204,204,204,204,204,203,202,201,200,199,199,199,199,199;
setarray .@treasurey[0],228,228,227,227,230,230,230,230,230,230,229,228,227,226,225,225,225,225,225,225,226,227,228,229;
}
- else if (strnpcinfo(2) == "prtg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas03") {
.@treasurebox = 1358;
setarray .@treasurex[0],187,188,188,187,185,186,187,188,189,190,190,190,190,190,190,189,188,187,186,185,185,185,185,185;
setarray .@treasurey[0],132,132,131,131,134,134,134,134,134,134,133,132,131,130,129,129,129,129,129,129,130,131,132,133;
}
- else if (strnpcinfo(2) == "prtg_cas04") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas04") {
.@treasurebox = 1360;
setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267;
setarray .@treasurey[0],162,162,161,161,164,164,164,164,164,164,163,162,161,160,159,159,159,159,159,159,160,161,162,163;
}
- else if (strnpcinfo(2) == "prtg_cas05") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "prtg_cas05") {
.@treasurebox = 1362;
setarray .@treasurex[0],275,276,276,275,273,274,275,276,277,278,278,278,278,278,278,277,276,275,274,273,273,273,273,273;
setarray .@treasurey[0],178,178,177,177,180,180,180,180,180,180,179,178,177,176,175,175,175,175,175,175,176,177,178,179;
@@ -1245,19 +1245,19 @@ OnClock0001:
// Apply investment to Eco. and Def. Only happens if there were investments made.
// Permanent Development can only happen once per day.
- if (getcastledata(strnpcinfo(2),4)) {
- .@Economy = getcastledata(strnpcinfo(2),2);
- setcastledata strnpcinfo(2),2,.@Economy + getcastledata(strnpcinfo(2),4) + (rand(2) && getgdskilllv(.@GID,10014));
- if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100;
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)) {
+ .@Economy = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),2,.@Economy + getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2) > 100) setcastledata strnpcinfo(NPC_NAME_HIDDEN),2,100;
}
- if (getcastledata(strnpcinfo(2),5)) {
- .@defence = getcastledata(strnpcinfo(2),3);
- setcastledata strnpcinfo(2),3,.@defence + getcastledata(strnpcinfo(2),5);
- if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100;
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)) {
+ .@defence = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),3,.@defence + getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5);
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3) > 100) setcastledata strnpcinfo(NPC_NAME_HIDDEN),3,100;
}
// Reset daily investment limits.
- setcastledata strnpcinfo(2),4,0;
- setcastledata strnpcinfo(2),5,0;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),4,0;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),5,0;
// Spawn boxes in proper order.
for (.@i = 0; .@i < .@Treasure ; ++.@i) {
@@ -1265,84 +1265,84 @@ OnClock0001:
.@boxid = .@treasurebox + (.@i+2) % 2;
.@box = 1 << .@i;
// Spawn or do not spawn chests if one already exists.
- if ((getd("$@"+strnpcinfo(2)+"_treasure") & .@box) == 0) {
- monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(2)+"::OnTreasureDied"+.@i;
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") | .@box;
+ if ((getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & .@box) == 0) {
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnTreasureDied"+.@i;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") | .@box;
}
}
end;
// Individual "You killed a chest" events to ensure proper spawning at the change of day.
OnTreasureDied0:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~1;
end;
OnTreasureDied1:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~2;
end;
OnTreasureDied2:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~4;
end;
OnTreasureDied3:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~8;
end;
OnTreasureDied4:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~16;
end;
OnTreasureDied5:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~32;
end;
OnTreasureDied6:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~64;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~64;
end;
OnTreasureDied7:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~128;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~128;
end;
OnTreasureDied8:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~256;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~256;
end;
OnTreasureDied9:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~512;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~512;
end;
OnTreasureDied10:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1024;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~1024;
end;
OnTreasureDied11:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2048;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~2048;
end;
OnTreasureDied12:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4096;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~4096;
end;
OnTreasureDied13:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8192;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~8192;
end;
OnTreasureDied14:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16384;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~16384;
end;
OnTreasureDied15:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32768;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~32768;
end;
OnTreasureDied16:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~65536;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~65536;
end;
OnTreasureDied17:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~131072;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~131072;
end;
OnTreasureDied18:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~262144;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~262144;
end;
OnTreasureDied19:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~524288;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~524288;
end;
OnTreasureDied20:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1048576;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~1048576;
end;
OnTreasureDied21:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2097152;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~2097152;
end;
OnTreasureDied22:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4194304;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~4194304;
end;
OnTreasureDied23:
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8388608;
+ setd "$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure",getd("$@"+strnpcinfo(NPC_NAME_HIDDEN)+"_treasure") & ~8388608;
end;
}
diff --git a/npc/woe-fe/trs_rp.txt b/npc/woe-fe/trs_rp.txt
index 2083ec035..74557e014 100644
--- a/npc/woe-fe/trs_rp.txt
+++ b/npc/woe-fe/trs_rp.txt
@@ -38,15 +38,15 @@ end;
OnTouch:
// Store the Guild ID of castle occupant.
- .@GID = getcastledata(strnpcinfo(2),1);
+ .@GID = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1);
if (strcharinfo(0) != getguildmaster(.@GID)) {
- if (compare(strnpcinfo(2),"aldeg"))
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"aldeg"))
warp "aldebaran",143,112;
- else if (compare(strnpcinfo(2),"gefg"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"gefg"))
warp "geffen",120,38;
- else if (compare(strnpcinfo(2),"payg"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"payg"))
warp "payon",100,100;
- else if (compare(strnpcinfo(2),"prtg"))
+ else if (compare(strnpcinfo(NPC_NAME_HIDDEN),"prtg"))
warp "prontera",119,64;
}
end;
diff --git a/npc/woe-se/agit_main_se.txt b/npc/woe-se/agit_main_se.txt
index 71d796367..6f1ad7df0 100644
--- a/npc/woe-se/agit_main_se.txt
+++ b/npc/woe-se/agit_main_se.txt
@@ -40,59 +40,59 @@
- script Manager#template FAKE_NPC,{
OnAgitInit2:
OnRecvCastle2:
- if (strnpcinfo(2) == "template") end;
- if (!getcastledata(strnpcinfo(2),1)) {
- donpcevent strnpcinfo(0)+"::OnStart";
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "template") end;
+ if (!getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1)) {
+ donpcevent strnpcinfo(NPC_NAME)+"::OnStart";
// Monster spawns are identical for all castles.
- monster strnpcinfo(2),0,0,"Evil Druid",1117,10;
- monster strnpcinfo(2),0,0,"Khalitzburg",1132,4;
- monster strnpcinfo(2),0,0,"Abysmal Knight",1219,3;
- monster strnpcinfo(2),0,0,"Executioner",1205,1;
- monster strnpcinfo(2),0,0,"Penomena",1216,10;
- monster strnpcinfo(2),0,0,"Alarm",1193,18;
- monster strnpcinfo(2),0,0,"Clock",1269,9;
- monster strnpcinfo(2),0,0,"Raydric Archer",1276,12;
- monster strnpcinfo(2),0,0,"Wanderer",1208,3;
- monster strnpcinfo(2),0,0,"Alice",1275,1;
- monster strnpcinfo(2),0,0,"Bloody Knight",1268,2;
- monster strnpcinfo(2),0,0,"Dark Lord",1272,2;
- monster strnpcinfo(2),0,0,"Tower Keeper",1270,4;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Evil Druid",1117,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Khalitzburg",1132,4;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Abysmal Knight",1219,3;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Executioner",1205,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Penomena",1216,10;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alarm",1193,18;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Clock",1269,9;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Raydric Archer",1276,12;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Wanderer",1208,3;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Alice",1275,1;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Bloody Knight",1268,2;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Dark Lord",1272,2;
+ monster strnpcinfo(NPC_NAME_HIDDEN),0,0,"Tower Keeper",1270,4;
}
- if (getcastledata(strnpcinfo(2),9) < 1)
- disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),9) < 1)
+ disablenpc "Kafra Employee#"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
end;
OnAgitStart2:
- if (strnpcinfo(2) == "template") end;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "template") end;
if (agitcheck2()) {
- maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),2;
- gvgon strnpcinfo(2);
- donpcevent strnpcinfo(0)+"::OnStart";
+ maprespawnguildid strnpcinfo(NPC_NAME_HIDDEN),getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1),2;
+ gvgon strnpcinfo(NPC_NAME_HIDDEN);
+ donpcevent strnpcinfo(NPC_NAME)+"::OnStart";
}
else for(.@i = 0; .@i<4; ++.@i)
- donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable";
+ donpcevent "RL"+.@i+"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
end;
OnAgitEnd2:
- if (strnpcinfo(2) == "template") end;
- gvgoff strnpcinfo(2);
- if (getcastledata(strnpcinfo(2),1)) {
- .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
- killmonster strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena";
- donpcevent strnpcinfo(0)+"::OnReset";
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "template") end;
+ gvgoff strnpcinfo(NPC_NAME_HIDDEN);
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1)) {
+ .@str$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),"Steward#"+.@str$+"::OnStartArena";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnReset";
donpcevent "Steward#"+.@str$+"::OnStop";
}
end;
OnGuildBreak:
- if (strnpcinfo(2) == "template") end;
- killmonster strnpcinfo(2),"gard1#"+strnpcinfo(2)+"::OnGuardianDied";
- killmonster strnpcinfo(2),"gard2#"+strnpcinfo(2)+"::OnGuardianDied";
- disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
- setcastledata strnpcinfo(2),1,0;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "template") end;
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),"gard1#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnGuardianDied";
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),"gard2#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnGuardianDied";
+ disablenpc "Kafra Employee#"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),1,0;
sleep 7000;
- announce "Guild Base ["+getcastlename(strnpcinfo(2))+"] has been abandoned.",0;
- donpcevent strnpcinfo(0)+"::OnRecvCastle2";
+ announce "Guild Base ["+getcastlename(strnpcinfo(NPC_NAME_HIDDEN))+"] has been abandoned.",0;
+ donpcevent strnpcinfo(NPC_NAME)+"::OnRecvCastle2";
end;
OnStart:
@@ -100,50 +100,50 @@ OnStart:
// 1st Guardian stone, 2nd Guardian stone, Barrier 1, Barrier 2, Barrier 3, Summon Guardians
// Settings for all but Summon Guardians: 0 = Okay | 1 = Destroyed | 2 = Repairing
// Summon Guardians: 0 = Do not Summon | 1 = Summon
- if (getcastledata(strnpcinfo(2),1)) {
- setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,0,0,0,0;
- donpcevent "df1#"+strnpcinfo(2)+"::OnEnable";
- donpcevent "df2#"+strnpcinfo(2)+"::OnEnable";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1)) {
+ setarray getd("$agit_"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9)+"[0]"),0,0,0,0,0,0;
+ donpcevent "df1#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnEnable";
+ donpcevent "df2#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnEnable";
for (.@i = 0; .@i<4; ++.@i)
- donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnEnable";
+ donpcevent "RL"+.@i+"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnEnable";
}
OnEmpSpawn:
- .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
- if (mobcount(strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena")) end;
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") setarray .@i[0],87,219;
- else if (strnpcinfo(2) == "arug_cas02") setarray .@i[0],89,256;
+ .@str$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
+ if (mobcount(strnpcinfo(NPC_NAME_HIDDEN),"Steward#"+.@str$+"::OnStartArena")) end;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") setarray .@i[0],87,219;
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") setarray .@i[0],89,256;
else setarray .@i[0],141,293; // Castles 3,4,5 are identical.
}
else {
- if (strnpcinfo(2) == "schg_cas02") setarray .@i[0],162,193;
- else if (strnpcinfo(2) == "schg_cas03") setarray .@i[0],338,202;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") setarray .@i[0],162,193;
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") setarray .@i[0],338,202;
else setarray .@i[0],120,272; // Castles 1,4,5 are identical.
}
- monster strnpcinfo(2),.@i[0],.@i[1],"Emperium",1288,1,"Steward#"+.@str$+"::OnStartArena";
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@i[0],.@i[1],"Emperium",1288,1,"Steward#"+.@str$+"::OnStartArena";
end;
OnReset:
- .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
- donpcevent "df1#"+strnpcinfo(2)+"::OnDisable";
- donpcevent "df2#"+strnpcinfo(2)+"::OnDisable";
- donpcevent "gard1#"+strnpcinfo(2)+"::OnReset";
- donpcevent "gard2#"+strnpcinfo(2)+"::OnReset";
+ .@str$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
+ donpcevent "df1#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
+ donpcevent "df2#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
+ donpcevent "gard1#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnReset";
+ donpcevent "gard2#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnReset";
donpcevent "1st Guardian Stone#"+.@str$+"::OnDisable";
donpcevent "2nd Guardian Stone#"+.@str$+"::OnDisable";
for(.@i = 1; .@i<4; ++.@i)
donpcevent "Control Device0"+.@i+"#"+.@str$+"::OnDisable";
for(.@i = 0; .@i<4; ++.@i)
- donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable";
+ donpcevent "RL"+.@i+"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
if (agitcheck2())
- setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,1,1,1,0;
+ setarray getd("$agit_"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9)+"[0]"),0,0,1,1,1,0;
end;
OnChange:
- .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
+ .@str$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
setarray getd("$agit_"+.@str$+"[0]"),2,2,1,1,2,0;
- donpcevent strnpcinfo(0)+"::OnEmpSpawn";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnEmpSpawn";
donpcevent "Control Device03#"+.@str$+"::OnEnable";
donpcevent "1st Guardian Stone#"+.@str$+"::OnEnable";
donpcevent "2nd Guardian Stone#"+.@str$+"::OnEnable";
@@ -151,65 +151,65 @@ OnChange:
OnClock0001:
// Spawn Treasure Chests based on castle economy.
- if (strnpcinfo(2) == "template") end;
- if (!getcastledata(strnpcinfo(2),1)) end;
- killmonster strnpcinfo(2),strnpcinfo(0)+"::OnTreasureDied";
- if (getcastledata(strnpcinfo(2),4)) {
- .@Economy = getcastledata(strnpcinfo(2),2);
- setcastledata strnpcinfo(2),2,.@Economy+getcastledata(strnpcinfo(2),4)+(rand(2) && getgdskilllv(getcastledata(strnpcinfo(2),1),10014));
- if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100;
- setcastledata strnpcinfo(2),4,0;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "template") end;
+ if (!getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1)) end;
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),strnpcinfo(NPC_NAME)+"::OnTreasureDied";
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)) {
+ .@Economy = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),2,.@Economy+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),4)+(rand(2) && getgdskilllv(getcastledata(strnpcinfo(NPC_NAME_HIDDEN),1),10014));
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2) > 100) setcastledata strnpcinfo(NPC_NAME_HIDDEN),2,100;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),4,0;
}
- if (getcastledata(strnpcinfo(2),5)) {
- .@defence = getcastledata(strnpcinfo(2),3);
- setcastledata strnpcinfo(2),3,.@defence+getcastledata(strnpcinfo(2),5);
- if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100;
- setcastledata strnpcinfo(2),5,0;
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5)) {
+ .@defence = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3);
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),3,.@defence+getcastledata(strnpcinfo(NPC_NAME_HIDDEN),5);
+ if (getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3) > 100) setcastledata strnpcinfo(NPC_NAME_HIDDEN),3,100;
+ setcastledata strnpcinfo(NPC_NAME_HIDDEN),5,0;
}
- .@Treasure = getcastledata(strnpcinfo(2),2)/5+4;
+ .@Treasure = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),2)/5+4;
if (!.@Treasure) end;
freeloop(1);
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
.@treasurebox = 1943;
setarray .@treasurex[0],251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258;
setarray .@treasurey[0],369,369,369,369,368,368,368,368,367,367,367,367,366,366,366,366,365,365,365,365,364,364,364,364;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
.@treasurebox = 1944;
setarray .@treasurex[0],382,383,384,385,386,387,384,385,386,387,388,389,382,383,384,385,386,387,384,385,386,387,388,389;
setarray .@treasurey[0],231,231,231,231,231,231,230,230,230,230,230,230,225,225,225,225,225,225,224,224,224,224,224,224;
}
else { // Castles 3,4,5 are identical, except 4's treasure.
- .@treasurebox = (strnpcinfo(2) == "arug_cas04")?1946:1945;
+ .@treasurebox = (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas04")?1946:1945;
setarray .@treasurex[0],291,292,293,294,295,296,293,294,295,296,297,298,291,292,293,294,295,296,293,294,295,296,297,298;
setarray .@treasurey[0],276,276,276,276,276,276,274,274,274,274,274,274,272,272,272,272,272,272,269,269,269,269,269,269;
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
.@treasurebox = 1939;
setarray .@treasurex[0],249,250,251,252,253,246,247,248,249,250,250,251,252,253,246,247,248,249,250,249,250,251,252,253;
setarray .@treasurey[0],378,378,378,378,378,376,376,376,376,376,374,374,374,374,372,372,372,372,372,370,370,370,370,370;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
.@treasurebox = 1940;
setarray .@treasurex[0],189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194;
setarray .@treasurey[0], 21, 21, 21, 21, 21, 21, 19, 19, 19, 19, 19, 19, 17, 17, 17, 17, 17, 17, 15, 15, 15, 15, 15, 15;
}
else { // Castles 1,4,5 are identical, except treasures.
- if (strnpcinfo(2) == "schg_cas01") .@treasurebox = 1938;
- else if (strnpcinfo(2) == "schg_cas04") .@treasurebox = 1941;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas01") .@treasurebox = 1938;
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas04") .@treasurebox = 1941;
else .@treasurebox = 1942;
setarray .@treasurex[0],388,388,388,387,386,385,384,384,384,384,384,384,385,386,387,388,389,390,390,390,389,388,387,386;
setarray .@treasurey[0],388,389,390,390,390,390,389,388,387,386,385,384,384,384,384,384,384,384,385,386,386,386,386,386;
}
}
for(.@i = 0; .@i<4; ++.@i)
- monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied";
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(NPC_NAME)+"::OnTreasureDied";
for(.@i = 4; .@i<24; ++.@i) {
if (.@Treasure < .@i+1) break;
- monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied";
+ monster strnpcinfo(NPC_NAME_HIDDEN),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(NPC_NAME)+"::OnTreasureDied";
}
freeloop(0);
end;
@@ -220,7 +220,7 @@ OnTreasureDied:
//== Guild Manager =========================================
- script Steward#template FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(4),1);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
if (!.@GID) {
mes "[ Steward ]";
mes "I await for the master";
@@ -251,24 +251,24 @@ OnTreasureDied:
case 1:
mes "[ Steward ]";
mes "The Commercial Growth";
- mes "Level of the stronghold is ^0000ff"+getcastledata(strnpcinfo(4),2)+".";
- if (getcastledata(strnpcinfo(4),4) > 0) {
+ mes "Level of the stronghold is ^0000ff"+getcastledata(strnpcinfo(NPC_MAP),2)+".";
+ if (getcastledata(strnpcinfo(NPC_MAP),4) > 0) {
mes "Last time, you invested in";
- mes "Commercial Growth "+getcastledata(strnpcinfo(4),4)+".";
+ mes "Commercial Growth "+getcastledata(strnpcinfo(NPC_MAP),4)+".";
}
next;
mes "[ Steward ]";
mes "Our stronghold's";
- mes "safeguard level is "+getcastledata(strnpcinfo(4),3)+".";
- if (getcastledata(strnpcinfo(4),5) > 0) {
+ mes "safeguard level is "+getcastledata(strnpcinfo(NPC_MAP),3)+".";
+ if (getcastledata(strnpcinfo(NPC_MAP),5) > 0) {
mes "Last time, you invested";
- mes "in defense "+getcastledata(strnpcinfo(4),5)+" times.";
+ mes "in defense "+getcastledata(strnpcinfo(NPC_MAP),5)+" times.";
}
mes " ";
mes "That is all, master.";
close;
case 2:
- .@Economy = getcastledata(strnpcinfo(4),2);
+ .@Economy = getcastledata(strnpcinfo(NPC_MAP),2);
setarray .@cost[0],5000,10000,20000,35000,55000,80000,110000,145000,185000,230000,280000,335000,395000,460000,530000,605000,685000,770000,860000,955000;
.@j = 0;
for(.@i = 6; .@i<101; .@i += 5) {
@@ -279,7 +279,7 @@ OnTreasureDied:
++.@j;
}
// Quadruple the cost of investing if you've already invested once.
- if (getcastledata(strnpcinfo(4),4))
+ if (getcastledata(strnpcinfo(NPC_MAP),4))
.@eco_invest *= 4;
mes "[ Steward ]";
mes "Raising the stronghold's";
@@ -306,7 +306,7 @@ OnTreasureDied:
mes "any further than that.";
close;
}
- if (getcastledata(strnpcinfo(4),4) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_MAP),4) >= 2) {
mes "[ Steward ]";
mes "You've already made two";
mes "investments today, so you'll";
@@ -314,7 +314,7 @@ OnTreasureDied:
mes "to make another investment.";
close;
}
- if (getcastledata(strnpcinfo(4),4) == 0) {
+ if (getcastledata(strnpcinfo(NPC_MAP),4) == 0) {
mes "[ Steward ]";
mes "You must pay ^FF0000"+.@eco_invest+"^000000 Zeny";
mes "to make an investment";
@@ -332,7 +332,7 @@ OnTreasureDied:
next;
switch(select("Invest in Commercial Growth", "Cancel")) {
case 1:
- if (getcastledata(strnpcinfo(4),4) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_MAP),4) >= 2) {
mes "[ Steward ]";
mes "You've already made two";
mes "investments today, so you'll";
@@ -349,7 +349,7 @@ OnTreasureDied:
close;
}
Zeny -= .@eco_invest;
- setcastledata strnpcinfo(4),4,getcastledata(strnpcinfo(4),4)+1;
+ setcastledata strnpcinfo(NPC_MAP),4,getcastledata(strnpcinfo(NPC_MAP),4)+1;
mes "[ Steward ]";
mes "A wise use of the guild's";
mes "funds, Master. We can expect";
@@ -362,7 +362,7 @@ OnTreasureDied:
close;
}
case 3:
- .@defence = getcastledata(strnpcinfo(4),3);
+ .@defence = getcastledata(strnpcinfo(NPC_MAP),3);
setarray .@cost[0],10000,20000,40000,70000,110000,160000,220000,290000,370000,460000,560000,670000,790000,920000,1060000,1210000,1370000,1540000,1720000,1910000;
.@j = 0;
for(.@i = 6; .@i<101; .@i += 5) {
@@ -373,7 +373,7 @@ OnTreasureDied:
++.@j;
}
// Quadruple the cost of investing if you've already invested once.
- if (getcastledata(strnpcinfo(4),5))
+ if (getcastledata(strnpcinfo(NPC_MAP),5))
.@def_invest *= 4;
mes "[ Steward ]";
mes "Investing in our stronghold's";
@@ -390,13 +390,13 @@ OnTreasureDied:
mes "a maximum of two times daily.";
next;
mes "[ Steward ]";
- if (getcastledata(strnpcinfo(4),3) == 100) {
+ if (getcastledata(strnpcinfo(NPC_MAP),3) == 100) {
mes "The Defense Level of this";
mes "stronghold is 100%, and";
mes "cannot be increased further.";
close;
}
- if (getcastledata(strnpcinfo(4),5) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_MAP),5) >= 2) {
mes "Master, you've already";
mes "invested in Defense twice";
mes "today. You'll need to wait";
@@ -404,7 +404,7 @@ OnTreasureDied:
mes "want to increase our defenses.";
close;
}
- if (getcastledata(strnpcinfo(4),5) == 0) {
+ if (getcastledata(strnpcinfo(NPC_MAP),5) == 0) {
mes "We need ^FF0000"+.@def_invest+"^000000";
mes "Zeny to invest in our";
mes "stronghold's defenses.";
@@ -420,7 +420,7 @@ OnTreasureDied:
next;
switch(select("Invest in Defense", "Cancel")) {
case 1:
- if (getcastledata(strnpcinfo(4),5) >= 2) {
+ if (getcastledata(strnpcinfo(NPC_MAP),5) >= 2) {
mes "[ Steward ]";
mes "Master, you've already";
mes "invested in Defense twice";
@@ -438,7 +438,7 @@ OnTreasureDied:
close;
}
Zeny -= .@def_invest;
- setcastledata strnpcinfo(4),5,getcastledata(strnpcinfo(4),5)+1;
+ setcastledata strnpcinfo(NPC_MAP),5,getcastledata(strnpcinfo(NPC_MAP),5)+1;
mes "[ Steward ]";
mes "A wise use of the guild's";
mes "funds, Master. Increasing";
@@ -452,7 +452,7 @@ OnTreasureDied:
close;
}
case 4:
- if (getcastledata(strnpcinfo(4),9) == 1) {
+ if (getcastledata(strnpcinfo(NPC_MAP),9) == 1) {
mes "[ Steward ]";
mes "Do you wish to dismiss";
mes "the Kafra Employee that";
@@ -494,8 +494,8 @@ OnTreasureDied:
mes "allow her to stay with us.";
close;
}
- disablenpc "Kafra Employee#"+strnpcinfo(2);
- setcastledata strnpcinfo(4),9,0;
+ disablenpc "Kafra Employee#"+strnpcinfo(NPC_NAME_HIDDEN);
+ setcastledata strnpcinfo(NPC_MAP),9,0;
mes "[ Steward ]";
mes "That Kafra Employee";
mes "has been dismissed.";
@@ -530,8 +530,8 @@ OnTreasureDied:
close;
}
Zeny -= 10000;
- enablenpc "Kafra Employee#"+strnpcinfo(2);
- setcastledata strnpcinfo(4),9,1;
+ enablenpc "Kafra Employee#"+strnpcinfo(NPC_NAME_HIDDEN);
+ setcastledata strnpcinfo(NPC_MAP),9,1;
mes "[ Steward ]";
mes "Very well. We have formed";
mes "a contract with the Kafra";
@@ -590,17 +590,17 @@ OnTreasureDied:
mes "Press the secret switch";
mes "when you wish to return here.";
close2;
- if (compare(strnpcinfo(4),"arug")) {
- if (strnpcinfo(4) == "arug_cas01") setarray .@i[0],250,363;
- else if (strnpcinfo(4) == "arug_cas02") setarray .@i[0],382,227;
+ if (compare(strnpcinfo(NPC_MAP),"arug")) {
+ if (strnpcinfo(NPC_MAP) == "arug_cas01") setarray .@i[0],250,363;
+ else if (strnpcinfo(NPC_MAP) == "arug_cas02") setarray .@i[0],382,227;
else setarray .@i[0],292,266; // Castles 3,4,5 are identical.
}
else {
- if (strnpcinfo(4) == "schg_cas02") setarray .@i[0],249,373;
- else if (strnpcinfo(4) == "schg_cas03") setarray .@i[0],190,16;
+ if (strnpcinfo(NPC_MAP) == "schg_cas02") setarray .@i[0],249,373;
+ else if (strnpcinfo(NPC_MAP) == "schg_cas03") setarray .@i[0],190,16;
else setarray .@i[0],381,381; // Castles 1,4,5 are identical.
}
- warp strnpcinfo(4),.@i[0],.@i[1];
+ warp strnpcinfo(NPC_MAP),.@i[0],.@i[1];
end;
case 2:
mes "[ Steward ]";
@@ -615,46 +615,46 @@ OnTreasureDied:
}
OnStop:
- awake strnpcinfo(0);
+ awake strnpcinfo(NPC_NAME);
end;
OnStartArena:
.@GID = getcharid(2);
- .@region$ = (compare(strnpcinfo(4),"arug"))?"Valfreyja":"Nithafjoll";
+ .@region$ = (compare(strnpcinfo(NPC_MAP),"arug"))?"Valfreyja":"Nithafjoll";
// Lower castle Economy
- .@Economy = getcastledata(strnpcinfo(4),2)-5;
+ .@Economy = getcastledata(strnpcinfo(NPC_MAP),2)-5;
if (.@Economy < 0) .@Economy = 0;
- setcastledata strnpcinfo(4),2,.@Economy;
+ setcastledata strnpcinfo(NPC_MAP),2,.@Economy;
// Lower Castle Defence
- .@defence = getcastledata(strnpcinfo(4),3)-5;
+ .@defence = getcastledata(strnpcinfo(NPC_MAP),3)-5;
if (.@defence < 0) .@defence = 0;
- setcastledata strnpcinfo(4),3,.@defence;
+ setcastledata strnpcinfo(NPC_MAP),3,.@defence;
// Set new owner
- setcastledata strnpcinfo(4),1,.@GID;
+ setcastledata strnpcinfo(NPC_MAP),1,.@GID;
// Clear castle's data.
for(.@i = 4; .@i<10; ++.@i)
- setcastledata strnpcinfo(4),.@i,0;
+ setcastledata strnpcinfo(NPC_MAP),.@i,0;
// Disable Kafra
- disablenpc "Kafra Employee#"+strnpcinfo(2);
+ disablenpc "Kafra Employee#"+strnpcinfo(NPC_NAME_HIDDEN);
- announce "The ["+getguildname(.@GID)+"] guild conquered the ["+.@region$+" "+charat(strnpcinfo(2),3)+"] stronghold of "+getcastlename(strnpcinfo(4))+"!",bc_all|bc_woe;
- mapannounce strnpcinfo(4),"The emperium has been shattered!",bc_map,"0x00FF00",FW_NORMAL,20,0,40;
- donpcevent "Manager#"+strnpcinfo(4)+"::OnReset";
- maprespawnguildid strnpcinfo(4),getcastledata(strnpcinfo(4),1),2;
- donpcevent "Manager#"+strnpcinfo(4)+"::OnRecvCastle2";
- donpcevent "::OnRecvCastle"+ strtoupper( substr( strnpcinfo(2), 0, 0 ) ) + substr( strnpcinfo(2), 1, getstrlen( strnpcinfo(2) ) -1 );
+ announce "The ["+getguildname(.@GID)+"] guild conquered the ["+.@region$+" "+charat(strnpcinfo(NPC_NAME_HIDDEN),3)+"] stronghold of "+getcastlename(strnpcinfo(NPC_MAP))+"!",bc_all|bc_woe;
+ mapannounce strnpcinfo(NPC_MAP),"The emperium has been shattered!",bc_map,"0x00FF00",FW_NORMAL,20,0,40;
+ donpcevent "Manager#"+strnpcinfo(NPC_MAP)+"::OnReset";
+ maprespawnguildid strnpcinfo(NPC_MAP),getcastledata(strnpcinfo(NPC_MAP),1),2;
+ donpcevent "Manager#"+strnpcinfo(NPC_MAP)+"::OnRecvCastle2";
+ donpcevent "::OnRecvCastle"+ strtoupper( substr( strnpcinfo(NPC_NAME_HIDDEN), 0, 0 ) ) + substr( strnpcinfo(NPC_NAME_HIDDEN), 1, getstrlen( strnpcinfo(NPC_NAME_HIDDEN) ) -1 );
sleep 10000;
if (agitcheck2()) {
- donpcevent "Manager#"+strnpcinfo(4)+"::OnChange";
- mapannounce strnpcinfo(4),"Rebuild this stronghold's Guardian Stones and Fortress Gates to secure your guild's new aquisition!",bc_map,"0x00FF00",FW_NORMAL,20,0,40;
+ donpcevent "Manager#"+strnpcinfo(NPC_MAP)+"::OnChange";
+ mapannounce strnpcinfo(NPC_MAP),"Rebuild this stronghold's Guardian Stones and Fortress Gates to secure your guild's new aquisition!",bc_map,"0x00FF00",FW_NORMAL,20,0,40;
}
end;
}
//== Castle Guardians ======================================
- script Guardian#template FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(4),1);
- .@n$ = "["+strnpcinfo(1)+"]";
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
+ .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
if (!.@GID) {
mes .@n$;
mes "Great job. Now, all you";
@@ -675,7 +675,7 @@ OnStartArena:
else {
if (!agitcheck2()) {
mes .@n$;
- mes "I am "+strnpcinfo(1)+", guardian of";
+ mes "I am "+strnpcinfo(NPC_NAME_VISIBLE)+", guardian of";
mes "this stronghold. For now,";
mes "all is quiet in this place.";
next;
@@ -786,7 +786,7 @@ OnStartArena:
next;
switch(select("Increase Stronghold Defense", "Situational Briefing", "Cancel")) {
case 1:
- if (!getd("$agit_"+strnpcinfo(2)+"[5]")) {
+ if (!getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[5]")) {
if (getgdskilllv(.@GID,10002) == 0) {
mes .@n$;
mes "I'm sorry, but the Guardian";
@@ -804,11 +804,11 @@ OnStartArena:
mes "Stone. However, keep in mind";
mes "that this will not work if the";
mes "Guardian Stone is destroyed.";
- setd "$agit_"+strnpcinfo(2)+"[5]",1;
- if (!getd("$agit_"+strnpcinfo(2)+"[0]"))
- donpcevent "gard1#"+strnpcinfo(4)+"::OnEnable";
- if (!getd("$agit_"+strnpcinfo(2)+"[1]"))
- donpcevent "gard2#"+strnpcinfo(4)+"::OnEnable";
+ setd "$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[5]",1;
+ if (!getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"))
+ donpcevent "gard1#"+strnpcinfo(NPC_MAP)+"::OnEnable";
+ if (!getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[1]"))
+ donpcevent "gard2#"+strnpcinfo(NPC_MAP)+"::OnEnable";
close;
}
}
@@ -823,11 +823,11 @@ OnStartArena:
mes .@n$;
mes "Our defense status is...";
setarray .@status$[0],"^4D4DFFOperational","^FF0000Destroyed","^008000Repairing";
- mes "1st Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[0]")]+"^000000";
- mes "2nd Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[1]")]+"^000000";
- mes "1st Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[2]")]+"^000000";
- mes "2nd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[3]")]+"^000000";
- mes "3rd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[4]")]+"^000000";
+ mes "1st Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]")]+"^000000";
+ mes "2nd Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[1]")]+"^000000";
+ mes "1st Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[2]")]+"^000000";
+ mes "2nd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[3]")]+"^000000";
+ mes "3rd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[4]")]+"^000000";
close;
case 3:
mes .@n$;
@@ -846,14 +846,14 @@ OnStartArena:
}
OnInit:
- setarray getd("$agit_"+strnpcinfo(2)+"[0]"),0,0,0,0,0,0;
+ setarray getd("$agit_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"),0,0,0,0,0,0;
end;
}
//== Guild Kafras ==========================================
- script Kafra#template FAKE_NPC,{
cutin "kafra_01",2;
- .@GID = getcastledata(strnpcinfo(4),1);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
if (getcharid(2) == .@GID && getgdskilllv(.@GID,10001)) {
mes "[Kafra Employee]";
mes "Welcome, proud member";
@@ -964,9 +964,9 @@ OnInit:
//== Guardian Stones (2) ===================================
- script Guardian Stone#template FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(4),1);
- .@num = atoi(charat(strnpcinfo(1),0));
- .@var$ = "$agit_"+strnpcinfo(2);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),0));
+ .@var$ = "$agit_"+strnpcinfo(NPC_NAME_HIDDEN);
if (getcharid(2) == .@GID) {
mes "^3355FFYou will need the";
mes "following materials to";
@@ -1067,18 +1067,18 @@ OnInit:
delitem Yellow_Gemstone,5;
delitem Red_Gemstone,5;
close2;
- donpcevent "df"+.@num+"#"+strnpcinfo(4)+"::OnEnable";
+ donpcevent "df"+.@num+"#"+strnpcinfo(NPC_MAP)+"::OnEnable";
specialeffect EF_ICECRASH;
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
setd .@var$+"["+(.@num-1)+"]",0;
.@df_all = getd(.@var$+"[0]")+getd(.@var$+"[1]");
if (!.@df_all) {
- mapannounce strnpcinfo(4),"Both Guardian Stones have been erected, bolstering this stronghold's defenses!",bc_map,"0x00ff00";
- donpcevent "RL0#"+strnpcinfo(4)+"::OnEnable";
+ mapannounce strnpcinfo(NPC_MAP),"Both Guardian Stones have been erected, bolstering this stronghold's defenses!",bc_map,"0x00ff00";
+ donpcevent "RL0#"+strnpcinfo(NPC_MAP)+"::OnEnable";
}
- else mapannounce strnpcinfo(4),"The "+strnpcinfo(1)+" has been repaired successfully.",bc_map,"0x00ff00";
+ else mapannounce strnpcinfo(NPC_MAP),"The "+strnpcinfo(NPC_NAME_VISIBLE)+" has been repaired successfully.",bc_map,"0x00ff00";
if (getd(.@var$+"[5]") == 1)
- donpcevent "gard"+.@num+"#"+strnpcinfo(4)+"::OnEnable";
+ donpcevent "gard"+.@num+"#"+strnpcinfo(NPC_MAP)+"::OnEnable";
end;
}
}
@@ -1106,20 +1106,20 @@ OnInit:
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
specialeffect EF_MAPPILLAR2;
end;
}
//== Control Devices (3) ===================================
- script Control#template FAKE_NPC,{
- .@GID = getcastledata(strnpcinfo(4),1);
- .@num = atoi(charat(strnpcinfo(1),15));
- .@var$ = "$agit_"+strnpcinfo(2);
+ .@GID = getcastledata(strnpcinfo(NPC_MAP),1);
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),15));
+ .@var$ = "$agit_"+strnpcinfo(NPC_NAME_HIDDEN);
if (getcharid(2) == .@GID) {
if (strcharinfo(0) == getguildmaster(.@GID)) {
if (getd(.@var$+"["+(.@num+1)+"]") == 2) {
@@ -1309,16 +1309,16 @@ OnEnable:
delitem Emveretarcon,10;
delitem Oridecon,5;
close2;
- donpcevent "RL"+.@num+"#"+strnpcinfo(4)+"::OnEnable";
- disablenpc strnpcinfo(0);
+ donpcevent "RL"+.@num+"#"+strnpcinfo(NPC_MAP)+"::OnEnable";
+ disablenpc strnpcinfo(NPC_NAME);
if (.@num == 1) .@str$ = "1st";
else if (.@num == 2) .@str$ = "2nd";
else if (.@num == 3) .@str$ = "3rd";
- mapannounce strnpcinfo(4),"The "+.@str$+" Fortress Gate has been reconstructed!",bc_map,"0x00ff00";
+ mapannounce strnpcinfo(NPC_MAP),"The "+.@str$+" Fortress Gate has been reconstructed!",bc_map,"0x00ff00";
if (.@num == 1) setd .@var$+"[2]",0;
else {
setarray getd(.@var$+"["+.@num+"]"),2,0;
- donpcevent "Control Device0"+(.@num-1)+"#"+strnpcinfo(2)+"::OnEnable";
+ donpcevent "Control Device0"+(.@num-1)+"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnEnable";
}
end;
}
@@ -1349,11 +1349,11 @@ OnEnable:
OnInit:
OnDisable:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
end;
}
@@ -1362,13 +1362,13 @@ OnEnable:
OnEnable:
// .@x[i],.@y[i]: Normal coordinates, #0-21.
// .@w[x],.@w[y]: Special coordinates if 'defence' is under 11.
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
setarray .@w[0],195,250,292,188;
setarray .x[0],233,252,232,201,224,196,269,252,201,224,222, 294,256,240,246,235,235,246,240,256,254,242;
setarray .y[0], 83, 81,108,130,168,137, 89, 81,130,168,129, 210,203,133, 92,132,132, 92,133,203, 95,151;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
setarray .@w[0],20,169,268,169;
setarray .x[0],104,67,67,113,122,67, 90, 91,122, 20,67, 175,204,211,209,161,186,183,150,161,209,211;
setarray .y[0], 32,36,85, 87,112,60,167,119,112,169,85, 31, 32, 63, 88, 91,170,121,110, 91, 88, 63;
@@ -1380,12 +1380,12 @@ OnEnable:
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
setarray .@w[0],337,95,307,222;
setarray .x[0],326,337,334,296,285,236,285,296,334,337,334, 359,300,337,317,307,300,337,317,307,359,236;
setarray .y[0], 83, 95,119, 82, 40, 41, 40, 82,119, 95,119, 85,119,154,183,222,119,154,183,222, 85, 41;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
setarray .@w[0],306,325,364,305;
setarray .x[0],323,273,288,306,323,323,273,288,306,273,273, 338,364,365,317,338,338,364,365,317,364,329;
setarray .y[0],308,309,306,326,308,308,309,306,325,309,309, 309,305,261,318,310,309,305,261,318,305,314;
@@ -1396,28 +1396,28 @@ OnEnable:
setarray .y[0], 18, 44,22, 40,20,40,43, 48, 18, 32, 37, 22, 47, 18, 15, 42, 43, 15, 42, 22, 28, 18;
}
}
- if (charat(strnpcinfo(1),4) == "2")
+ if (charat(strnpcinfo(NPC_NAME_VISIBLE),4) == "2")
.@z = 11;
freeloop(1);
- .@defence = getcastledata(strnpcinfo(2),3);
+ .@defence = getcastledata(strnpcinfo(NPC_NAME_HIDDEN),3);
callsub OnSummon,.@z;
- if (.@defence > 70) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),5;
- else if (.@defence > 50) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),4;
- else if (.@defence > 30) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),3;
- else if (.@defence > 10) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2;
+ if (.@defence > 70) set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),5;
+ else if (.@defence > 50) set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),4;
+ else if (.@defence > 30) set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),3;
+ else if (.@defence > 10) set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),2;
if (.@w[4] && .@z)
- guardian strnpcinfo(2),.@w[4],.@w[5],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@w[4],.@w[5],"Guardian Soldier",1899,strnpcinfo(NPC_NAME)+"::OnGuardianDied";
else if (.@defence < 11) {
- set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2;
+ set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),2;
.@i = (.@z)?2:0;
- guardian strnpcinfo(2),.@w[.@i],.@w[.@i+1],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@w[.@i],.@w[.@i+1],"Guardian Soldier",1899,strnpcinfo(NPC_NAME)+"::OnGuardianDied";
}
- else for(.@i = 1; .@i<getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)); ++.@i)
+ else for(.@i = 1; .@i<getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)); ++.@i)
callsub OnSummon,.@i+.@z;
freeloop(0);
- copyarray getd(".x_"+strnpcinfo(2)+"[0]"),.@x[0],22;
- copyarray getd(".y_"+strnpcinfo(2)+"[0]"),.@y[0],22;
- setd ".timer_"+charat(strnpcinfo(1),4)+strnpcinfo(2),4+.@z;
+ copyarray getd(".x_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"),.@x[0],22;
+ copyarray getd(".y_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"),.@y[0],22;
+ setd ".timer_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN),4+.@z;
setarray .count$[5],"1st","2nd","3rd","4th","5th";
initnpctimer;
end;
@@ -1427,13 +1427,13 @@ OnTimer900000:
OnTimer1800000:
OnTimer2700000:
OnTimer3600000:
- if (charat(strnpcinfo(1),4) == "2") end;
- .@var$ = ".timer_"+charat(strnpcinfo(1),4)+strnpcinfo(2);
+ if (charat(strnpcinfo(NPC_NAME_VISIBLE),4) == "2") end;
+ .@var$ = ".timer_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN);
setd .@var$, getd(.@var$)+1;
- set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2))+1;
+ set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN))+1;
callsub OnSummon,getd(.@var$);
setarray .count$[5],"1st","2nd","3rd","4th","5th";
- mapannounce strnpcinfo(2),"The "+.count$[getd(.@var$)]+" Guardian has been summoned from the Gate House.",bc_map,"0xff4500";
+ mapannounce strnpcinfo(NPC_NAME_HIDDEN),"The "+.count$[getd(.@var$)]+" Guardian has been summoned from the Gate House.",bc_map,"0xff4500";
if (getd(.@var$) == 9) {
setd .@var$,0;
stopnpctimer;
@@ -1445,10 +1445,10 @@ OnTimer1200000:
OnTimer2100000:
OnTimer3000000:
OnTimer3900000:
- if (!(charat(strnpcinfo(1),4) == "2")) end;
- .@var$ = ".timer_"+charat(strnpcinfo(1),4)+strnpcinfo(2);
+ if (!(charat(strnpcinfo(NPC_NAME_VISIBLE),4) == "2")) end;
+ .@var$ = ".timer_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN);
setd .@var$, getd(.@var$)+1;
- set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2))+1;
+ set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN))+1;
callsub OnSummon,getd(.@var$);
if (getd(.@var$) == 20) {
setd .@var$,0;
@@ -1457,54 +1457,54 @@ OnTimer3900000:
end;
OnSummon:
- guardian strnpcinfo(2),getd(".x_"+strnpcinfo(2)+"["+getarg(0)+"]"),getd(".y_"+strnpcinfo(2)+"["+getarg(0)+"]"),"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),getd(".x_"+strnpcinfo(NPC_NAME_HIDDEN)+"["+getarg(0)+"]"),getd(".y_"+strnpcinfo(NPC_NAME_HIDDEN)+"["+getarg(0)+"]"),"Guardian Soldier",1899,strnpcinfo(NPC_NAME)+"::OnGuardianDied";
return;
OnGuardianDied:
- if (charat(strnpcinfo(1),4) == "2")
+ if (charat(strnpcinfo(NPC_NAME_VISIBLE),4) == "2")
.@z = 11;
- set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2))-1;
- if (getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)) < 2) {
- set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2))+1;
+ set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN))-1;
+ if (getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)) < 2) {
+ set getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN)),getd(".MyMobCount_"+charat(strnpcinfo(NPC_NAME_VISIBLE),4)+strnpcinfo(NPC_NAME_HIDDEN))+1;
callsub OnSummon,10+.@z;
}
end;
OnReset:
stopnpctimer;
- killmonster strnpcinfo(2),strnpcinfo(0)+"::OnGuardianDied";
- deletearray getd(".x_"+strnpcinfo(2)+"[0]"),22;
- deletearray getd(".y_"+strnpcinfo(2)+"[0]"),22;
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),strnpcinfo(NPC_NAME)+"::OnGuardianDied";
+ deletearray getd(".x_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"),22;
+ deletearray getd(".y_"+strnpcinfo(NPC_NAME_HIDDEN)+"[0]"),22;
end;
}
//== Guardian Stone Summoners (2) ==========================
- script df#template FAKE_NPC,{
OnEnable:
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") setarray .@i[0],210,234,308,189;
- else if (strnpcinfo(2) == "arug_cas02") setarray .@i[0],33,168,245,168;
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") setarray .@i[0],210,234,308,189;
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") setarray .@i[0],33,168,245,168;
else setarray .@i[0],65,171,212,149; // Castles 3,4,5 are identical.
}
else {
- if (strnpcinfo(2) == "schg_cas02") setarray .@i[0],231,58,335,230;
- else if (strnpcinfo(2) == "schg_cas03") setarray .@i[0],242,309,376,251;
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") setarray .@i[0],231,58,335,230;
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") setarray .@i[0],242,309,376,251;
else setarray .@i[0],27,35,207,75; // Castles 1,4,5 are identical.
}
- .@num = atoi(charat(strnpcinfo(1),2));
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2));
.@j = (.@num == 1)?0:2;
- guardian strnpcinfo(2),.@i[.@j],.@i[.@j+1],((.@num == 1)?"1st":"2nd")+" Guardian Stone",1906+.@num,strnpcinfo(0)+"::OnGuardianStoneDied";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@i[.@j],.@i[.@j+1],((.@num == 1)?"1st":"2nd")+" Guardian Stone",1906+.@num,strnpcinfo(NPC_NAME)+"::OnGuardianStoneDied";
end;
OnDisable:
- killmonster strnpcinfo(2),strnpcinfo(0)+"::OnGuardianStoneDied";
- setd "$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"["+(atoi(charat(strnpcinfo(1),2))-1)+"]",1;
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),strnpcinfo(NPC_NAME)+"::OnGuardianStoneDied";
+ setd "$agit_"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9)+"["+(atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2))-1)+"]",1;
stopnpctimer;
end;
OnGuardianStoneDied:
- .@num = atoi(charat(strnpcinfo(1),2));
- .@var$ = "$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2));
+ .@var$ = "$agit_"+substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
setd .@var$+"["+(.@num-1)+"]",1;
if (getd(.@var$+"[0]") == 1 || getd(.@var$+"[0]") == 2) {
++.@destroyed;
@@ -1513,19 +1513,19 @@ OnGuardianStoneDied:
++.@destroyed;
}
if (.@destroyed == 2) {
- mapannounce strnpcinfo(2),"All of the Guardian Stones have been destroyed!",bc_map,"0x00ff00";
- donpcevent "RL0#"+strnpcinfo(2)+"::OnDisable";
+ mapannounce strnpcinfo(NPC_NAME_HIDDEN),"All of the Guardian Stones have been destroyed!",bc_map,"0x00ff00";
+ donpcevent "RL0#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnDisable";
}
- else mapannounce strnpcinfo(2),"The "+((.@num == 1)?"1st":"2nd")+" Guardian Stone has been destroyed!",bc_map,"0x00ff00";
- donpcevent "gard"+.@num+"#"+strnpcinfo(2)+"::OnReset";
+ else mapannounce strnpcinfo(NPC_NAME_HIDDEN),"The "+((.@num == 1)?"1st":"2nd")+" Guardian Stone has been destroyed!",bc_map,"0x00ff00";
+ donpcevent "gard"+.@num+"#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnReset";
initnpctimer;
end;
OnTimer300000:
- .@num = atoi(charat(strnpcinfo(1),2));
- .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2));
+ .@str$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
donpcevent ((.@num == 1)?"1st":"2nd")+" Guardian Stone#"+.@str$+"::OnEnable";
- setd "$agit_"+.@str$+"["+(atoi(charat(strnpcinfo(1),2))-1)+"]",2;
+ setd "$agit_"+.@str$+"["+(atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2))-1)+"]",2;
stopnpctimer;
end;
}
@@ -1533,15 +1533,15 @@ OnTimer300000:
//== Barrier Summoners (4) =================================
- script RL#template FAKE_NPC,{
OnEnable:
- .@num = atoi(charat(strnpcinfo(1),2));
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2));
if (.@num == 0) {
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
setarray .@wall[0],238,74,8,6,0;
setarray .@x[0],239,241,243,245;
setarray .@y[0], 73, 73, 73, 73;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
setarray .@wall[0],136,136,8,6,0;
setarray .@x[0],137,139,141,143;
setarray .@y[0],137,137,137,137;
@@ -1553,12 +1553,12 @@ OnEnable:
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
setarray .@wall[0],290,98,8,0,0;
setarray .@x[0],289,289,289,289;
setarray .@y[0], 98,100,102,104;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
setarray .@wall[0],326,301,6,6,0;
setarray .@x[0],326,328,330;
setarray .@y[0],300,300,300;
@@ -1571,13 +1571,13 @@ OnEnable:
}
}
else if (.@num == 1) {
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
setarray .@wall[0],239,53,8,6,1;
setarray .@x[0],239,241,243,240,242,244;
setarray .@y[0], 55, 55, 55, 54, 54, 54;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
setarray .@wall[0],150,223,12,6,1;
setarray .@x[0],151,153,155,157,159,161;
setarray .@y[0],222,222,222,222,222,222;
@@ -1589,12 +1589,12 @@ OnEnable:
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
setarray .@wall[0],279,98,8,0,1;
setarray .@x[0],280,280,280,281,281,281;
setarray .@y[0], 98,100,102, 99,101,103;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
setarray .@wall[0],325,277,8,6,1;
setarray .@x[0],326,328,330,327,329,331;
setarray .@y[0],278,278,278,279,279,279;
@@ -1607,13 +1607,13 @@ OnEnable:
}
}
else if (.@num == 2) {
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
setarray .@wall[0],107,124,6,6,1;
setarray .@x[0],107,109,111,108,110,112;
setarray .@y[0],122,122,122,123,123,123;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
setarray .@wall[0],125,342,8,0,1;
setarray .@x[0],126,126,126,127,127,127;
setarray .@y[0],343,345,347,344,346,348;
@@ -1625,12 +1625,12 @@ OnEnable:
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
setarray .@wall[0],230,213,6,0,1;
setarray .@x[0],231,231,231,232,232,232;
setarray .@y[0],213,215,217,213,215,217;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
setarray .@wall[0],200,230,8,0,1;
setarray .@x[0],201,201,201,202,202,202;
setarray .@y[0],231,233,235,232,234,236;
@@ -1643,13 +1643,13 @@ OnEnable:
}
}
else {
- if (compare(strnpcinfo(2),"arug")) {
- if (strnpcinfo(2) == "arug_cas01") {
+ if (compare(strnpcinfo(NPC_NAME_HIDDEN),"arug")) {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas01") {
setarray .@wall[0],84,171,8,6,1;
setarray .@x[0], 84, 86, 88, 90;
setarray .@y[0],170,170,170,170;
}
- else if (strnpcinfo(2) == "arug_cas02") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "arug_cas02") {
setarray .@wall[0],38,314,12,6,1;
setarray .@x[0], 40, 42, 44, 46;
setarray .@y[0],315,315,315,315;
@@ -1661,12 +1661,12 @@ OnEnable:
}
}
else {
- if (strnpcinfo(2) == "schg_cas02") {
+ if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas02") {
setarray .@wall[0],160,141,6,6,1;
setarray .@x[0],160,162,164,166;
setarray .@y[0],140,140,140,140;
}
- else if (strnpcinfo(2) == "schg_cas03") {
+ else if (strnpcinfo(NPC_NAME_HIDDEN) == "schg_cas03") {
setarray .@wall[0],285,198,8,0,1;
setarray .@x[0],284,284,284,284;
setarray .@y[0],199,201,203,205;
@@ -1678,36 +1678,36 @@ OnEnable:
}
}
}
- if (.@num == 3) set getd(".MyMobCount_"+.@num+strnpcinfo(2)),4;
- else if (.@num) set getd(".MyMobCount_"+.@num+strnpcinfo(2)),6;
- setwall strnpcinfo(2),.@wall[0],.@wall[1],.@wall[2],.@wall[3],.@wall[4],substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"_"+strnpcinfo(1);
- .@j = (getd(".MyMobCount_"+.@num+strnpcinfo(2)))?getd(".MyMobCount_"+.@num+strnpcinfo(2)):getarraysize(.@x);
+ if (.@num == 3) set getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)),4;
+ else if (.@num) set getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)),6;
+ setwall strnpcinfo(NPC_NAME_HIDDEN),.@wall[0],.@wall[1],.@wall[2],.@wall[3],.@wall[4],substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9)+"_"+strnpcinfo(NPC_NAME_VISIBLE);
+ .@j = (getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)))?getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)):getarraysize(.@x);
for (.@i = 0; .@i<.@j; ++.@i)
- guardian strnpcinfo(2),.@x[.@i],.@y[.@i]," ",1905,strnpcinfo(0)+"::OnBarrierDestroyed";
+ guardian strnpcinfo(NPC_NAME_HIDDEN),.@x[.@i],.@y[.@i]," ",1905,strnpcinfo(NPC_NAME)+"::OnBarrierDestroyed";
end;
OnBarrierDestroyed:
- .@num = atoi(charat(strnpcinfo(1),2));
+ .@num = atoi(charat(strnpcinfo(NPC_NAME_VISIBLE),2));
if (!.@num) end;
- set getd(".MyMobCount_"+.@num+strnpcinfo(2)),getd(".MyMobCount_"+.@num+strnpcinfo(2))-1;
- if (getd(".MyMobCount_"+.@num+strnpcinfo(2)) == 0) {
- .@var$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
+ set getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)),getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN))-1;
+ if (getd(".MyMobCount_"+.@num+strnpcinfo(NPC_NAME_HIDDEN)) == 0) {
+ .@var$ = substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9);
setd "$agit_"+.@var$+"["+(.@num+1)+"]",1;
setarray .@count$[0],"1st","2nd","3rd";
- mapannounce strnpcinfo(2),"The "+.@count$[.@num-1]+" Fortress Gate is destroyed.",bc_map,"0x00ff00";
- delwall .@var$+"_"+strnpcinfo(1);
+ mapannounce strnpcinfo(NPC_NAME_HIDDEN),"The "+.@count$[.@num-1]+" Fortress Gate is destroyed.",bc_map,"0x00ff00";
+ delwall .@var$+"_"+strnpcinfo(NPC_NAME_VISIBLE);
}
end;
OnDisable:
- delwall substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"_"+strnpcinfo(1);
- killmonster strnpcinfo(2),strnpcinfo(0)+"::OnBarrierDestroyed";
+ delwall substr(strnpcinfo(NPC_NAME_HIDDEN),0,1)+substr(strnpcinfo(NPC_NAME_HIDDEN),8,9)+"_"+strnpcinfo(NPC_NAME_VISIBLE);
+ killmonster strnpcinfo(NPC_NAME_HIDDEN),strnpcinfo(NPC_NAME)+"::OnBarrierDestroyed";
end;
}
//== Link Flags (function) =================================
function script LinkFlag {
- if (!getcharid(2) || getcharid(2) != getcastledata(strnpcinfo(4),1)) end;
+ if (!getcharid(2) || getcharid(2) != getcastledata(strnpcinfo(NPC_MAP),1)) end;
if (getarg(0) == "Convenience Facility") {
mes "^3355FFThis is the Stronghold";
mes "Teleport Service. Would";
@@ -1715,7 +1715,7 @@ function script LinkFlag {
mes "Convenience Facility for";
mes "guild members?^000000";
if(select("Go to Convenience Facility", "Cancel") == 1)
- warp strnpcinfo(4),getarg(1),getarg(2);
+ warp strnpcinfo(NPC_MAP),getarg(1),getarg(2);
close;
}
if (getarg(0) == "Emperium Center") {
@@ -1724,7 +1724,7 @@ function script LinkFlag {
mes "you like to teleport to";
mes "the Emperium Center?^000000";
if(select("Teleport", "Cancel") == 1)
- warp strnpcinfo(4),getarg(1),getarg(2);
+ warp strnpcinfo(NPC_MAP),getarg(1),getarg(2);
close;
}
mes "^3355FFThis is the Stronghold";
@@ -1736,13 +1736,13 @@ function script LinkFlag {
.@menu$ += "Cancel";
.@i = select(.@menu$)-1;
if (.@i != getargcount()/3)
- warp strnpcinfo(4),getarg(.@i*3+1),getarg(.@i*3+2);
+ warp strnpcinfo(NPC_MAP),getarg(.@i*3+1),getarg(.@i*3+2);
close;
}
//== Return Flags (function) ===============================
function script ReturnFlag {
- .@str$ = (compare(strnpcinfo(4),"aru"))?"Arunafeltz":"Schwaltzvalt";
+ .@str$ = (compare(strnpcinfo(NPC_MAP),"aru"))?"Arunafeltz":"Schwaltzvalt";
.@GID = getcastledata(getarg(0),1);
if (!.@GID) {
mes "[ "+.@str$+" Royal Edict ]";
@@ -1798,28 +1798,28 @@ function script ReturnFlag {
mes "this small lever?^000000";
next;
if(select("Pull Lever", "Cancel") == 2) close;
- if (compare(strnpcinfo(4),"arug")) {
- if (strnpcinfo(4) == "arug_cas01") setarray .@i[0],121,357;
- else if (strnpcinfo(4) == "arug_cas02") setarray .@i[0],387,323;
+ if (compare(strnpcinfo(NPC_MAP),"arug")) {
+ if (strnpcinfo(NPC_MAP) == "arug_cas01") setarray .@i[0],121,357;
+ else if (strnpcinfo(NPC_MAP) == "arug_cas02") setarray .@i[0],387,323;
else setarray .@i[0],321,57; // Castles 3,4,5 are identical.
}
else {
- if (strnpcinfo(4) == "schg_cas02") setarray .@i[0],339,79;
- else if (strnpcinfo(4) == "schg_cas03") setarray .@i[0],57,13;
+ if (strnpcinfo(NPC_MAP) == "schg_cas02") setarray .@i[0],339,79;
+ else if (strnpcinfo(NPC_MAP) == "schg_cas03") setarray .@i[0],57,13;
else setarray .@i[0],275,244; // Castles 1,4,5 are identical.
}
- warp strnpcinfo(4),.@i[0],.@i[1];
+ warp strnpcinfo(NPC_MAP),.@i[0],.@i[1];
close;
}
//== Guild Dungeon Warps ===================================
- script Sunflower#template FAKE_NPC,{
- if (getcharid(2) == getcastledata(strnpcinfo(4),1)) {
+ if (getcharid(2) == getcastledata(strnpcinfo(NPC_MAP),1)) {
mes "- It's an amazingly huge sunflower; as big as a human! ... You feel something mysterious emanating from the flower. -";
next;
switch(select("Hold the stem.", "Do nothing.")) {
case 1:
- if (compare(strnpcinfo(4),"arug")) {
+ if (compare(strnpcinfo(NPC_MAP),"arug")) {
.@map$ = "arug_dun01";
setarray .@mapx[0],350,350,50, 50,200;
setarray .@mapy[0],350, 50,50,350,386;
@@ -1829,7 +1829,7 @@ function script ReturnFlag {
setarray .@mapx[0],262, 94, 79,212,322;
setarray .@mapy[0],314,284,140, 70,166;
}
- .@i = atoi(charat(strnpcinfo(4),9))-1;
+ .@i = atoi(charat(strnpcinfo(NPC_MAP),9))-1;
warp .@map$,.@mapx[.@i],.@mapy[.@i];
close;
case 2: