summaryrefslogtreecommitdiff
path: root/npc/re/cities/malaya.txt
diff options
context:
space:
mode:
authorIbrahem Hossam <ibrahem.h.basyone@gmail.com>2016-10-16 14:19:36 +0200
committerGitHub <noreply@github.com>2016-10-16 14:19:36 +0200
commit8f2dace11eb6cce3fa9d4ff194db2a4b34753f91 (patch)
tree5dd5748a4f12963b57253a6a946a583b07022e56 /npc/re/cities/malaya.txt
parent1b1682ed243ef8304bfce1be7a70626c95720d93 (diff)
parent062f2cf4235cf07481ecaf58682f37f2ad8928f8 (diff)
downloadhercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.gz
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.bz2
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.xz
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.zip
Merge pull request #1472 from Asheraf/getcharid
Change *getcharid to use constants
Diffstat (limited to 'npc/re/cities/malaya.txt')
-rw-r--r--npc/re/cities/malaya.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/re/cities/malaya.txt b/npc/re/cities/malaya.txt
index afe816a3e..f18bbd0af 100644
--- a/npc/re/cities/malaya.txt
+++ b/npc/re/cities/malaya.txt
@@ -183,7 +183,7 @@ OnBingx2:
donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnTouch:
- if (getcharid(1)) {
+ if (getcharid(CHAR_ID_PARTY)) {
if ($ma_name04$ == strcharinfo(PC_NAME) || $ma_name05$ == strcharinfo(PC_NAME) || $ma_name06$ == strcharinfo(PC_NAME)) {
donpcevent strnpcinfo(NPC_NAME)+"::OnBingx2";
mes "The unidentified creature gets a glimpse of you, blushes and then disappears.";
@@ -236,7 +236,7 @@ OnBingx2:
OnTouch:
.@i = atoi(strnpcinfo(NPC_NAME_HIDDEN));
if (.@i%4 == 2) {
- if (getcharid(0) == getpartyleader(getcharid(1),2))
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(getcharid(CHAR_ID_PARTY),2))
.@pass = 1;
} else if (.@i%4 == 3) {
if (questprogress(4229,PLAYTIME) && questprogress(9223,PLAYTIME) && questprogress(12278,PLAYTIME))