przemek1991
New Member
- Joined
- Feb 17, 2008
- Messages
- 25
- Reaction score
- 0
hi, can someone can tell me how to do a time delay in normal talk i have done something like this and i dont work i really dont know how to do it
Code:
if msgcontains(msg, 'xxx') and talk_state == 1 then
npcHandler:say('xxx', cid)
addEvent(2*1000, delay) -- < there i need a 2 sec delay between these 2 msg
npcHandler:say('xxx', cid)
talk_state = 2
setPlayerStorageValue(cid, 10002,0)