summaryrefslogtreecommitdiff
path: root/npc/re/quests/quests_eclage.txt
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/re/quests/quests_eclage.txt
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/re/quests/quests_eclage.txt')
-rw-r--r--npc/re/quests/quests_eclage.txt22
1 files changed, 11 insertions, 11 deletions
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;
}