Erevius
It Was A Good Day
Do you guys know how to make NPC say two delayed messages? I mean, if I use this:
Will it make npc say the second sentece delayed just after he says the first one? Maybe a bit stupid question, but I'm not using TFS and I want to implement it to my avesta (7.72). If it's not working like this even in TFS, please tell me how to make it.
I just want my npc to talk several delayed messages. Possible?
If I put this into my avesta's NPC script:
NPC says only the last message.
And finally here is my NpcHandler:say:
If the thread is not understandable, ask for explaination.
Code:
npcHandler:say("First sentence. ...", cid)
npcHandler:say("Second sentence.", cid)
I just want my npc to talk several delayed messages. Possible?
If I put this into my avesta's NPC script:
Code:
npcHandler:say('First sentence. ...', cid)
npcHandler:say('Second sentence.', cid)
And finally here is my NpcHandler:say:
Code:
function NpcHandler:say(message, shallDelay)
if(shallDelay == nil) then
shallDelay = true
end
if(NPCHANDLER_TALKDELAY == TALKDELAY_NONE or shallDelay == false) then
selfSay(message)
return
end
self.talkDelay.message = message
self.talkDelay.time = os.time()+self.talkDelayTime
end
If the thread is not understandable, ask for explaination.
Last edited: