summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-14 00:48:59 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-14 00:48:59 -0200
commitd95b7707c57c8697dd523370dcab163947a60c84 (patch)
treee119d52940f5700ac32c92f92f6b136189ad35bc /npc/functions/main.txt
parentee8b35709e01dbdf4b3c489830d9c2d208ffa4df (diff)
downloadserverdata-d95b7707c57c8697dd523370dcab163947a60c84.tar.gz
serverdata-d95b7707c57c8697dd523370dcab163947a60c84.tar.bz2
serverdata-d95b7707c57c8697dd523370dcab163947a60c84.tar.xz
serverdata-d95b7707c57c8697dd523370dcab163947a60c84.zip
Hercules Update (needed for pipelines)
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index b1777cb3d..38034980e 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -221,9 +221,9 @@ function script npctalkonce {
set(getvariableofnpc(.talk_lock, strnpcinfo(NPC_NAME_UNIQUE)), gettimetick(2) + getarg(1, 1));
break;
default:
- if (gettimetick(2) <= @NPC_TALK_LOCK[getnpcid(0)])
+ if (gettimetick(2) <= @NPC_TALK_LOCK[getnpcid()])
return false;
- @NPC_TALK_LOCK[getnpcid(0)] = gettimetick(2) + getarg(1, 1);
+ @NPC_TALK_LOCK[getnpcid()] = gettimetick(2) + getarg(1, 1);
}
// talk mechanism