• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Delay for outgoing messages in msgcontains - Help needed!

ond

Veteran OT User
Joined
Mar 24, 2008
Messages
2,782
Solutions
25
Reaction score
491
Location
Sweden
I need to add a delay of one second in msgcontains.
Server: Avesta 0.6.3 [7.72] = No NPC Chat.

Problem is that when I say something, the NPC (using msgcontains) respond on 0.01 second.

Edit:

Solution had nothing to do with msgcontains, it was that selfSay originally doesn't have a delay.
A solution to this is using npcHandler:say("Message"). The delay of this can be changed in npchandler.lua
 
Last edited:
Back
Top