BR

[Encerrado] Ajuda Aiow

Por Brisadao, 15 de ago. de 2012 em Tópicos Sem Resposta

ajuda aiow
3
516
BrisadaoB
15 de agosto de 2012 às 04:20

Alguem Ai Pode me ajudar a Mudar a Mensagem do !afk on do meu ot quanto eu escrevo !afk on aparece em sima do meu nome AFK quero mudar essa mensagem ajuda aiow pf !

notle2012N
15 de agosto de 2012 às 04:52

aposta scripts

fica em data\talkactions\scripts\afk.lua

qual quer coisa usa meu

  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))
                                doSendAnimatedText(getPlayerPosition(cid),"Fui No Banheiro!", math.random(01,255))
                                doSendAnimatedText(getPlayerPosition(cid),"Eu Sair!", 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

Editado Agosto 15 por notle2012

5 anos depois...
StigalS
20 de abril de 2018 às 00:18
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.