Ir para conteúdo

Posts Recomendados

Talkaction System !online Com Reset!

Ola EksTibianos Esse Sabado Foi Muinto Ruin Para min Porque minha Vo Esta Muinto mal No Hospital quase Morrendo Tomara DEUS que nao ! Amo Ela! Bem Chega de Papo Furado

Explicando Bem o Script!


As 19:00 Eu e VodKart Estava no Msn Zoando com Emoticons Ate que eu Tive Essa Grande Ideia de Criar um !online Mostrando Player Name [level] , [reset]

sim sim bom mesmo agente começou Fazer e Fazendo e Botamos ! e testamos e tudu!


Vá em Pasta do Seu Ot> Data > Talkactions > Scripts > Online
Abra ela e Exclui tudu dentro e coloque isso!

local config = {
showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand'))
}

function getResets(cid)
resets = getPlayerStorageValue(cid,1020)
if resets < 0 then
resets = 0
end
return resets
end

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) .. " level [" .. getPlayerLevel(pid) .. "] reset's[".. getResets(cid) .."]"
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


Vermelho= Ali Voce Botara o Storage Value do Seu Reset a Maioria Pode Ser 1020 Voce pode Ver Abrindo o Script do Seu Reset e olhando a Storage Value dele


Espero Que Gostem Do Script!


Creditos:

DevilMoon 10%
Vodkart 10%
NewFang 80%
Editado por CyberBot
Link para o comentário
https://xtibia.com/forum/topic/134844-talkaction-online-mostrando-level-e-reset/
Compartilhar em outros sites

Ótimo script, vai ajudar muitos svs que usam o Reset System.

Obrigado por compartilhar.

 

Acha que vou ser unico qe n vai zua seu tema? rs se enganou, que tema horrivel !

 

Abraços.

Link para o comentário
https://xtibia.com/forum/topic/134844-talkaction-online-mostrando-level-e-reset/#findComment-889636
Compartilhar em outros sites

Cara adicionei o sistema no meu test serv e ficou ótimo, parabéns novamente!

REP+

 

Aah meu tema é sexy olha:

nv60t0.jpg

kkkkkkkkkkkkkkkk

Editado por DoidinMapper
Link para o comentário
https://xtibia.com/forum/topic/134844-talkaction-online-mostrando-level-e-reset/#findComment-889738
Compartilhar em outros sites

Ótimo trabalho, script muito util ja que o reset ta virando uma moda entre os servidores, pena que a maioria nao sabe usa e estraga o PvP (;

 

@DevilMoon

acho que conheço vcê do elfen war, jogava la? o.O'

 

Aprovado! :button_ok:

 

Abraços.

Link para o comentário
https://xtibia.com/forum/topic/134844-talkaction-online-mostrando-level-e-reset/#findComment-891839
Compartilhar em outros sites

  • 1 month later...
  • 1 year later...
  • 1 month later...
×
×
  • Criar Novo...