Sir Islam
Never Give Up
Help to convert for TFS 1.0
Code:
function doSendAnimatedText(pos, text, color, cid)
if tonumber(text) then
text = tonumber(text)
if cid and isPlayer(cid) then
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE_OTHERS, '', text, color, pos)
else
local t = getSpectators(pos, 7, 5, false)
if t then
for _, cid in ipairs(t) do
if isPlayer(cid) then
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE_OTHERS, '', text, color, pos)
end
end
end
end
else
if cid and isCreature(cid) then
doCreatureSay(cid, text, TALKTYPE_MONSTER)
else
local t = getSpectators(pos, 7, 5, false)
if t then
for _, cid in ipairs(t) do
if isPlayer(cid) then
doCreatureSay(cid, text, TALKTYPE_MONSTER, false, cid, pos)
end
end
end
end
end
end