There is a flag that registeres the event when a player enters range... you would have to set up a variable that looks and sees if they are already talking ex:
Code:
istalking = false
Function talking(pUnit, event)
If istalking == false then
istalking = true
pUnit:Commandtomaketheunittalk
Sleep(timeinms)
pUnit:Commandtomaketheunittalk
Sleep(timeinms)
pUnit:Commandtomaketheunittalk
istalking = false
end
end
RegisterUnitEvent(registerstuff)
You would have to do one of these for each mob =/ and im not sure if the sleep command is sleep or wait
You could also do something like this for a wait command
For i = i to timeinms
sleep(1000)
Next
But personally i would not advise using that since i am almost 100% sure it will not work ^^