I created this function to add a delay to selfSay npc function. Tested only in rev.3777 and rev.3884
Function
How to use
Function
Code:
function selfSayDelay(messages, interval, cid)
for i = 1, #messages do
if(i == 1) then
selfSay(messages[1], cid)
else
addEvent(doCreatureSay, interval * i, getNpcCid(), messages[i], TALKTYPE_PRIVATE_NP)
end
end
end
How to use
Code:
selfSayDelay({"Hahahaha", "Huhuhuhu"}, 2000, cid)