playersaround[k]:say("C-Point", TALKTYPE_MONSTER_SAY, false, playersaround[k], tps[i].pos)
addEvent(playersaround[k]:say, 100, "C-Point", TALKTYPE_MONSTER_SAY, false, playersaround[k], tps[i].pos)
// creature:say(text, type[, ghost = false[, target = nullptr[, position]]])
function creatureSpeak(creature, text, type_, pos)
if creature:isPlayer() then
creature:say(text, type_, false, creature, pos)
end
end
addEvent(creatureSpeak, 100, playersaround[k], "C-Point", TALKTYPE_MONSTER_SAY, tps[i].pos)
function creatureSpeak(cid, text, type_, pos)
local creature = Creature(cid)
if creature and creature:isPlayer() then
creature:say(text, type_, false, creature, pos)
end
end
addEvent(creatureSpeak, 100, playersaround[k]:getId(), "C-Point", TALKTYPE_MONSTER_SAY, tps[i].pos)