diff options
author | Reid <reidyaro@gmail.com> | 2016-01-17 02:36:08 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-01-17 02:39:48 +0100 |
commit | e6d90c3efce2a81f1e63b2cd16fb6e9dff63ec46 (patch) | |
tree | e5df4f31d5fdb85e15b43be51d1c8aaac3b72bf8 /npc | |
parent | c1af08c958ce9f30b7e2bbf6cda8e0aeaec97b46 (diff) | |
download | serverdata-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.txt | 11 |
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; |