Postado Julho 3, 2015 9 anos http://www.tibiaking.com/forum/topic/9640-flags-calculator-html/ The medieval RpG Server [RpG] OLDWORLD OPEN TIBIA
Postado Julho 3, 2015 9 anos Autor http://www.tibiaking.com/forum/topic/9640-flags-calculator-html/ Consegui fazer algumas alterações mais não conseguir fazer com que um GM ou CM consiga ver um GOD... =/ Ajudar os outros sobre o que se sabe não dói pois amanhã quem pode precisar de ajuda é você! Só sei que nada sei. ~ Sócrates
Postado Julho 7, 2015 9 anos Autor Up Ajudar os outros sobre o que se sabe não dói pois amanhã quem pode precisar de ajuda é você! Só sei que nada sei. ~ Sócrates
Postado Julho 9, 2015 9 anos Autor UP Ajudar os outros sobre o que se sabe não dói pois amanhã quem pode precisar de ajuda é você! Só sei que nada sei. ~ Sócrates
Postado Julho 9, 2015 9 anos Vai na pasta data/talkactions/scripts crie um arquivo chamado ons.lua e adicione isso dentro function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. "" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end Agora va no talkactions.xml e adicione essa tag.; <talkaction words="!on;/on" access="3" event="script" value="ons.lua"/> Agora digite o comando !on ou /on e veja todos os usuarios online até cm, gm, e god tudo. OBS: coloquei para que apenas usuarios acima do group3 possam utilizar esse comando no caso Senior tutores e superiores para mudar é só mudar o numero em vermelho que tem na tag. Editado Julho 9, 2015 9 anos por karlkalvin (veja o histórico de edições) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Assinatura~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.