From 86977d79269408a371384e61111c3a9cf6e87b0c Mon Sep 17 00:00:00 2001 From: Asheraf Date: Sun, 28 Aug 2016 17:03:57 +0100 Subject: *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 --- npc/woe-fe/trs_rp.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'npc/woe-fe/trs_rp.txt') 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; -- cgit v1.2.3-60-g2f50