Alguem edita esse script para mim ? ele e uma talkaction que o gm faiz players falar entao queria modifica para que pokemons fale
segue o script
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário um paramêtro."), TRUE
end
local prm = string.explode(param, ",")
local pos = getCreaturePosition(cid)
local plr = getPlayerByName(prm[1])
if (plr == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O player está offline ou não existe.")
elseif (prm[2] == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "É necessário a mensagem após a vírgula.")
end
return doCreatureSay(plr, prm[2], 1), TRUE
end
quero do jeito que ta ai falando em amarelo tudin so que o pokemon falando