Postado Dezembro 25, 2014 10 anos Olá galera do Tibiaking.com! Feliz Natal!! Gostaria de um comando que deixa a palavra "ausente" piscando encima do player que usa o comando e que não deixe ele deslogar nem se mover. E que quando o player usasse o comando de novo ele voltasse ao normal! Agradeço desde já, e todos que tentarem ajudar ganharão REP+ e.e Editado Dezembro 25, 2014 10 anos por Gabriel Linha (veja o histórico de edições) Atensiosamente, Gabriel L.
Postado Dezembro 26, 2014 10 anos Solução off.lua (data/talkactions/scripts): local stor = 54321 function ariseText(cid) local time = 2 -- seconds to repeat the function local text = 'ausente' if isPlayer(cid) then doSendAnimatedText(getCreaturePosition(cid), text, math.random(0, 255)) if getPlayerStorageValue(cid, stor) > 0 then addEvent(ariseText, time * 1000, cid) end end return true end function onSay(cid) if getPlayerStorageValue(cid, stor) < 1 then setPlayerStorageValue(cid, stor, 1) doCreatureSetNoMove(cid, true) ariseText(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'O modo ausente está ativado.') else doCreatureSetNoMove(cid, false) setPlayerStorageValue(cid, stor, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'O modo ausente está desativado.') end return true end Tag - talkactions.xml (data/talkactions): <talkaction words="!off" event="script" value="off.lua"/> offlogout.lua (data/creaturescripts/scripts): function onLogout(cid) local stor = 54321 if getPlayerStorageValue(cid, stor) > 0 then return doPlayerSendCancel(cid, 'Você não pode fazer logout com o modo ausente ativado.') and false end return true end Tag - creaturescripts.xml (data/creaturescripts): <event type="logout" name="OffLogout" event="script" value="offlogout.lua"/> The corrupt fear us. The honest support us. The heroic join us.
Postado Dezembro 29, 2014 10 anos Resolvido? Se sim clique em melhor resposta para que o tópico fique automaticamente como resolvido. STYLLER OT 2022
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.