Ir para conteúdo

Erro No /online, Playerdeath.lua E Outros


Ases

Posts Recomendados

[14/02/2009 19:53:35] Lua Script Error: [TalkAction Interface]

[14/02/2009 19:53:35] data/talkactions/scripts/creature.lua:onSay

 

[14/02/2009 19:53:35] luaDoCreateNpc(). Npc name(Slayer Axe) not found

 

[14/02/2009 19:53:57] Lua Script Error: [Action Interface]

[14/02/2009 19:53:57] data/actions/scripts/fluids.lua:onUse

 

[14/02/2009 19:53:57] data/actions/scripts/fluids.lua:20: attempt to call global 'exhaust' (a nil value)

[14/02/2009 19:53:57] stack traceback:

[14/02/2009 19:53:57] data/actions/scripts/fluids.lua:20: in function <data/actions/scripts/fluids.lua:19>

 

[14/02/2009 19:53:59] Lua Script Error: [Action Interface]

[14/02/2009 19:53:59] data/actions/scripts/fluids.lua:onUse

 

[14/02/2009 19:53:59] data/actions/scripts/fluids.lua:20: attempt to call global 'exhaust' (a nil value)

[14/02/2009 19:53:59] stack traceback:

[14/02/2009 19:53:59] data/actions/scripts/fluids.lua:20: in function <data/actions/scripts/fluids.lua:19>

 

[14/02/2009 19:54:08] Lua Script Error: [TalkAction Interface]

[14/02/2009 19:54:08] data/talkactions/scripts/creature.lua:onSay

 

[14/02/2009 19:54:08] luaDoCreateNpc(). Npc name(magic plate armor) not found

 

[14/02/2009 19:54:49] Lua Script Error: [TalkAction Interface]

[14/02/2009 19:54:49] data/talkactions/scripts/creature.lua:onSay

 

[14/02/2009 19:54:49] luaDoCreateNpc(). Npc name(Slayer Axe) not found

 

[14/02/2009 20:00:30] Lua Script Error: [CreatureScript Interface]

[14/02/2009 20:00:30] data/creaturescripts/scripts/playerdeath.lua:onDeath

 

[14/02/2009 20:00:30] data/creaturescripts/scripts/playerdeath.lua:10: attempt to index global 'luasql' (a nil value)

[14/02/2009 20:00:30] stack traceback:

[14/02/2009 20:00:30] data/creaturescripts/scripts/playerdeath.lua:10: in function <data/creaturescripts/scripts/playerdeath.lua:3>

 

[14/02/2009 23:23:17] Lua Script Error: [TalkAction Interface]

[14/02/2009 23:23:17] data/talkactions/scripts/online.lua:onSay

 

[14/02/2009 23:23:17] data/talkactions/scripts/online.lua:28: attempt to concatenate field '?' (a nil value)

[14/02/2009 23:23:17] stack traceback:

[14/02/2009 23:23:17] data/talkactions/scripts/online.lua:28: in function <data/talkactions/scripts/online.lua:5>

 

 

Oq é isso? Se for Erro, como concerta? Derrepende aconteceu essas coisas... e o /online é o mais estranho, tem hora que pega e tem hora q nao pega.

Link para o comentário
Compartilhar em outros sites

Vai no seu script de online (data\talkactions\scripts\online.xml) e troque por este, mas faça um backup antes.

local config = {
showGamemasters = getConfigInfo('displayGamemastersWithOnlineCommand')
}

function onSay(cid, words, param)
local players = getPlayersOnline()
local strings = {}
local pos = 1
local count = 0
local tmp = TRUE
for i, pid in ipairs(players) do
	local line = ", "
	if(tmp == TRUE) then
		if(i > pos * 7) then
			pos = pos + 1
		end

		if(strings[pos] == nil) then
			strings[pos] = ""
			line = ""
		end
	end

	tmp = TRUE
	if((getBooleanFromString(config.showGamemasters) == FALSE and getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) == TRUE and getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then
		count = count + 1
		tmp = FALSE
	else
		strings[pos] = strings[pos] .. line .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
	end
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (#players - count) .. " player(s) online:")
for i, string in ipairs(strings) do
	if(string ~= "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, string .. ".")
	end
end
return TRUE
end

 

O mesmo com deathlist:

 

function onSay(cid, words, param)
local target = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";")
if(target:getID() ~= -1) then
	local targetName = target:getDataString("name")
	local targetGUID = target:getDataInt("id")
	target:free()

	local str = ""
	local deaths = db.getResult("SELECT `time`, `level`, `killed_by`, `altkilled_by` FROM `player_deaths` WHERE `player_id` = " .. targetGUID .. " ORDER BY `time` DESC;")
	if(deaths:getID() ~= -1) then
		local breakline = ""

		while(true) do
			if(str ~= "") then
				breakline = "\n"
			end

			local time = os.date("%d %B %Y %X ", deaths:getDataInt("time"))
			local level = deaths:getDataInt("level")
			local killed = ""
			local lastHitKiller = deaths:getDataString("killed_by")
			local mostDamageKiller = deaths:getDataString("altkilled_by")

			if(tonumber(lastHitKiller)) then
				killed = getPlayerNameByGUID(tonumber(lastHitKiller))
			else
				killed = getArticle(lastHitKiller) .. " " .. string.lower(lastHitKiller)
			end

			if(mostDamageKiller ~= "") then
				if(tonumber(mostDamageKiller)) then
					killed = killed .. " and by " .. getPlayerNameByGUID(tonumber(mostDamageKiller))
				else
					killed = killed .. " and by " .. getArticle(mostDamageKiller) .. " " .. string.lower(mostDamageKiller)
				end
			end

			str = str .. breakline .. " " .. time .. "  Died at Level " .. level .. " by " .. killed .. "."
			if not(deaths:next()) then
				break
			end
		end
		deaths:free()
	else
		str = "No deaths recorded."
	end
	doPlayerPopupFYI(cid, "Deathlist for player: " .. targetName .. ".\n\n" .. str)
else
	doPlayerSendCancel(cid, "A player with that name does not exist.")
end
return TRUE
end

 

Se não funcionar mande o script de ambos pra eu analizar.

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...