Ir para conteúdo

Featured Replies

Postado

Gente to voltando a hospedar um ot e tem muitas coisas novas que eu desconheço, tenho um problema que é o seguinte eu to motando um com sistema de reset por Banco de dados (db), e nao por storage gostaria de um codigo que aparece o nome, level e os resets. Desde de ja agradecido.

Postado

Bem, o motivo do double-post é que eu já resolvi o problema através desse script :

 

Vá até talkactions > scripts > online.lua, apague tudo e cole isso :

function onSay(cid, words, param, channel)
	local strings, i, position, added, showGamemasters = {""}, 1, 1, false, getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand'))
	for _, pid in ipairs(getPlayersOnline()) 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

		added = false
		if((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) .. " [" .. getPlayerLevel(pid) .. "] [Resets =" .. getPlayerReset(pid) .. "]"
			i = i + 1
			added = true
		end
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " 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

"A alma permanece em suas criações" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

Postado
  • Autor

acontece o seguinte :

 

[13:2:23.999] [Error - TalkAction Interface]
[13:2:24.000] data/talkactions/scripts/online.lua:onSay
[13:2:24.000] Description:
[13:2:24.001] data/talkactions/scripts/online.lua:16: attempt to call global 'ge
tPlayerReset' (a nil value)
[13:2:24.001] stack traceback:
[13:2:24.002]   data/talkactions/scripts/online.lua:16: in function <data/talkac
tions/scripts/online.lua:1>

 

------------- Edição  -----------

 

Alguem mais pode me ajudar, esperando resposta ainda .

Editado por DinhoNee (veja o histórico de edições)

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 520.1k

Informação Importante

Confirmação de Termo