Postado Setembro 19, 2014 10 anos Olá Galera Hoje eu Vou Postar um Sistema De Afk Para vcs Então VAMOS Lá Vá Na pasta do seu otserv data/talkaction/talkaction.xml Adicione a Tag abaixo <talkaction words="afk" script="afk.lua" /> Depois salve e Feche... Agr Va em data/talkactions/scripts. Abra um arquivo Lua q n estar sendo Usado Renomei Por Sistemaafk e Coloque Isto local FRASES = {"Off-Line!", "Ja Venho!", "Afk!", "Sai!", "Ja Volto!"} -- Auto-Mensagens. local TEMPO = 1 -- Intervalo de Tempo em segundos. local function doSendAutoMessage(cid, pos) if (isCreature(cid) == TRUE) then npos = getThingPos(cid) if (pos.x == npos.x) and (pos.y == npos.y) and (pos.z == npos.z) then doSendAnimatedText(pos, FRASES[math.random(#FRASES)], math.random(255)) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) addEvent(doSendAutoMessage, TEMPO*1000, cid, npos) end end end function onSay(cid, words, param) pos = getThingPos(cid) doSendAnimatedText(pos, FRASES[math.random(#FRASES)], math.random(255)) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doCreatureSay(cid, "Afk Aki, Nao Incomoda, Pera.", TALKTYPE_ORANGE_1) doPlayerPopupFYI(cid, "Voce esta afk! Ande para sair!") addEvent(doSendAutoMessage, TEMPO*1000, cid, pos) return TRUE end Pronto Seu Sistema De Afk Estar feito feche e salve. CREDITOS: Higor Lara Jeff Owns Obr Gostei Pus No meu Servidor Agora e Funcionou Da 1 Rep+++++++++++ Gewar :rofl:
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.