diff options
author | Asheraf <acheraf1998@gmail.com> | 2016-08-28 17:03:57 +0100 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-08-29 01:03:42 +0200 |
commit | 86977d79269408a371384e61111c3a9cf6e87b0c (patch) | |
tree | 4f2a9b1f9a3ee6436a0b857d05caa2be7e99a877 /npc/woe-fe/trs_rp.txt | |
parent | 16f998c8a79153ed9f6721c36e129b6080fa59d2 (diff) | |
download | hercules-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/woe-fe/trs_rp.txt')
-rw-r--r-- | npc/woe-fe/trs_rp.txt | 10 |
1 files changed, 5 insertions, 5 deletions
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; |