summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-06 00:08:51 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-06 00:08:51 +0300
commit28fdcc18ff9c80fea20414482ecc7c74fd0bf9cf (patch)
tree87386b5cf5b45b1e72fcdb80a0492c863c279473 /npc/functions/main.txt
parent8ea7823761b86aa9fec47a47cc208b7f24ed8f29 (diff)
downloadserverdata-28fdcc18ff9c80fea20414482ecc7c74fd0bf9cf.tar.gz
serverdata-28fdcc18ff9c80fea20414482ecc7c74fd0bf9cf.tar.bz2
serverdata-28fdcc18ff9c80fea20414482ecc7c74fd0bf9cf.tar.xz
serverdata-28fdcc18ff9c80fea20414482ecc7c74fd0bf9cf.zip
Remove extra parameter from function getnpcid
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 97c34702..b620be0c 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -183,9 +183,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