summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-01-17 02:36:08 +0100
committerReid <reidyaro@gmail.com>2016-01-17 02:39:48 +0100
commite6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46 (patch)
treee5df4f31d5fdb85e15b43be51d1c8aaac3b72bf8 /npc
parentc1af08c958ce9f30b7e2bbf6cda8e0aeaec97b46 (diff)
downloadserverdata-e6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46.tar.gz
serverdata-e6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46.tar.bz2
serverdata-e6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46.tar.xz
serverdata-e6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46.zip
Add a lock to prevent NPC spamming on lucas.
Diffstat (limited to 'npc')
-rw-r--r--npc/001-1/lucas.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/001-1/lucas.txt b/npc/001-1/lucas.txt
index 8d8c2715..225b14d7 100644
--- a/npc/001-1/lucas.txt
+++ b/npc/001-1/lucas.txt
@@ -6,7 +6,16 @@
001-1,59,44,0 script Lucas#001-1 NPC_LUCAS,{
- villagertalk;
+ function randomTalk {
+ if (Repeat_NPC_lock <= gettimetick(2))
+ {
+ Repeat_NPC_lock = gettimetick(2) + 2;
+ debugmes "ACCEPTED";
+ villagertalk;
+ }
+ }
+
+ randomTalk;
closedialog;
close;