Postado Fevereiro 14, 2013 12 anos O AFK system é um sistema em que faz com que quando algum player fala !afk on, começa a surgir a palavra Ocupado em cima de sua cabeça, e assim, ninguém vai irritalo, irão saber que ele esta ocupado, e quando dizer !afk off, ele volta ao normal. Vamos ao script! 1° passo - Vá na pasta do seu data/talkactions/scripts crie um arquivo chamado afk.lua e adicione isso dentro: 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),"Já volto!", 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, "Fale !afk on para começar a ficar afk e fale !afk off para sair do afk.") return true end if param == "on" then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"Já volto!", math.random(01,255)) end say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000, cid) doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"Agora você esta afk.") elseif param == "off" then stopEvent(say_events[getPlayerGUID(cid)]) say_events[getPlayerGUID(cid)] = nil doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"Agora você não esta mais afk.") end return TRUE end Vai em Talkaction.xml e adiciona esta tag: <talkaction words="!afk" event="script" value="afk.lua"/> Bom esta não é uma Script minha, eu só disponibilizei aqui no TK. *90% Creditos ao TheCaos do XPokemon. *10% Creditos a mim por posta-lo aqui no Tibia King ! Post Original: http://xpokemon.ace.st/t524-afk-system
Postado Agosto 18, 2014 10 anos Eu estou com uma dúvida, tem como colocar o motivo? tipo !afk on Almoçando etc... ou tipo !afk estou estudando| !afk off?
Postado Outubro 5, 2014 10 anos Como faço funcionar no 10.41? Venha jogar > infernal-global.com < 24hrs , TeamSpeak3 Entre outros entrem e confiram. <center><a href="http://www.otpanel.com/painel/aff.php?aff=102"><img src="http://www.otpanel.com/wp-content/uploads/2015/11/Hospedado-por-claro1.png" title="Hospedado por ServerSoft"> </a></center><center><a href="http://www.otpanel.com/painel/aff.php?aff=102"><img src="http://www.otpanel.com/wp-content/uploads/2015/11/Hospedado-por-claro1.png" title="Hospedado por ServerSoft"> </a></center>
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.