Na verdade, é uma talkaction. Retireide um tópico, aqui mesmo do XTibia.
automessage.lua
--[[
Talking Tp/signs/tiles for TFS 0.2+
70%shawak,30%Damadgerz
Idea by Damadgerz
]]--
local time = 5 -- 1 = 1 sec, 2 = 2 sec, ...
local say_events = {}
local function SayText(cid)
if isPlayer(cid) == TRUE then
if say_events[getPlayerGUID(cid)] ~= nil then
if isPlayer(cid) == TRUE then
doSendAnimatedText(getPlayerPosition(cid),"Ausente!", math.random(01,255))
end
say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000 / 2, cid)
end
end
return TRUE
end
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
if param == "on" then
if isPlayer(cid) == TRUE then
doSendAnimatedText(getPlayerPosition(cid),"Ausente!", math.random(01,255))
end
say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000, cid)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"You Now Stated you are (afk).")
elseif param == "off" then
stopEvent(say_events[getPlayerGUID(cid)])
say_events[getPlayerGUID(cid)] = nil
doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"You Now stated your are not (afk).")
end
return TRUE
end
Em talkactions.xml coloque a tag:
<talkaction words="!afk" script="automessage.lua"/>
Utilização: Quando precisar se ausentar por um tempo do jogo, diga !afk e o seu jogador ficará enviando auto-mensagens alertando os outros jogadores.
Qualquer dúvida favor responder a esta mensagem utilizando o botão responder, para que eu possa receber uma notificação avisando que você respondeu.
Espero ter ajudado.




info
Grupo: Campones
Registrado: 05/02/11
Posts: 1
Reputação: 0
Ola, XTibianos!
Tipo do script:Action (eu acho que e esse tipo)
Protocolo:8.54
Servidor utilizado: Pokemon Maluco
Nível de experiência: Mediana
Adicionais/Informações: Quem ja jogou no Refugia,sabe que script esse,pra quem nao sabe , e um script que quando voce fala !afkon fica subindo umas palavras avisando o char ta afk e quando digita !afkoff ele para de subir as palavras (: Eu tambem queria que subisse coloridas as palvras.
Obrigado!
REP + :button_ok: