Well for those who want it, here it is.
Put this in npc.lua:
function say(param)
selfSay(text)
doCreatureSay(param.cid, param.text, 1)
end
function delayedSay(text, delay)
local delay = delay or 0
local cid = getNpcCid()
addEvent(say, delay, {cid = cid, text = text})
end
Example...