JE
erro

Da uma passadinha aki? erro distro com imagem

Por JeanCristian, 21 de abr. de 2014 em Archived

7
761
JeanCristianJ
21 de abril de 2014 às 16:24

mini_14042107284097939.png

só tem esse erro no meu distro, queria saber se alguem sabe oq é, se alguem ja passo por isso, e sabe como arrumar?

agradeço desde ja


'

MazynhoM
21 de abril de 2014 às 17:00

Coloca uma imagem maior e/ou digita o erro para facilitar, pois não estou conseguindo ver nada e olhe que fui no site, em que a imagem se encontra hospedada, e ampliei.

JeanCristianJ
21 de abril de 2014 às 17:36

ok 1 momento


loading creaturescripts... [error - creatureevent ::configureevent] no valid type for creature event: joinchanel.
loading creaturescripts... [error - creatureevent ::configureevent] no valid type for creature event: receivemail.
[warning - baseEvent:: loadfromxml] cannot configure an event
done.

 

 

MazynhoM
21 de abril de 2014 às 17:54

 

ok 1 momento

 

 

 

Pelo que entendi o erro é por que ele não aceita esses dois (joinchanel e receivemail) tipos que você colocou no seu creaturescripts.xml, esses tipos existem, mas possa ser que a versão que você utilize não suporta ou então ele está acusando erro por algum erro no arquivo que você está chamando, não sei por que mas... verifique se seu código possui algum erro.

JeanCristianJ
21 de abril de 2014 às 18:03

eu verifiquei ja, provavelmente é a funçao, porem nao sei qual colokar

codigo logo abaixo das 2

 

function onReportBug(cid, comment)

local pos = getCreaturePosition(cid)
if(db.executeQuery("INSERT INTO `server_reports` (`id`, `world_id`, `player_id`, `posx`, `posy`, `posz`, `timestamp`, `report`) VALUES (NULL, " ..
getConfigValue('worldId') .. ", " .. getPlayerGUID(cid) .. ", " ..
pos.x .. ", " .. pos.y .. ", " .. pos.z .. ", " ..
os.time() .. ", " .. db.escapeString(comment) .. ")"))
then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Your report has been sent to " .. getConfigValue('serverName') .. ".")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, getConfigValue('serverName') .. " couldn't save your report, please contact with gamemaster.")
end
return true
end

 

 

agrora o outro :p

 

function onJoinChannel(cid, channelId, users)

if(channelId == CHANNEL_GUILD) then
local guildId = getPlayerGuildId(cid)
if(guildId and guildId ~= 0) then
local guildMotd = getGuildMotd(guildId)
if(guildMotd and guildMotd ~= "") then
addEvent(doPlayerSendChannelMessage, 150, cid, "", "Comand for Leaders: /guid - Message of the Day: " .. guildMotd, TALKTYPE_CHANNEL_W, CHANNEL_GUILD)
end
end
end
return true
end

 

 


versao do cliente é 10.10

 

 

<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>

 

MazynhoM
21 de abril de 2014 às 18:21

 

eu verifiquei ja, provavelmente é a funçao, porem nao sei qual colokar

codigo logo abaixo das 2

 

function onReportBug(cid, comment)

local pos = getCreaturePosition(cid)
if(db.executeQuery("INSERT INTO `server_reports` (`id`, `world_id`, `player_id`, `posx`, `posy`, `posz`, `timestamp`, `report`) VALUES (NULL, " ..
getConfigValue('worldId') .. ", " .. getPlayerGUID(cid) .. ", " ..
pos.x .. ", " .. pos.y .. ", " .. pos.z .. ", " ..
os.time() .. ", " .. db.escapeString(comment) .. ")"))
then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Your report has been sent to " .. getConfigValue('serverName') .. ".")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, getConfigValue('serverName') .. " couldn't save your report, please contact with gamemaster.")
end
return true
end

 

 

agrora o outro :p

 

function onJoinChannel(cid, channelId, users)

if(channelId == CHANNEL_GUILD) then
local guildId = getPlayerGuildId(cid)
if(guildId and guildId ~= 0) then
local guildMotd = getGuildMotd(guildId)
if(guildMotd and guildMotd ~= "") then
addEvent(doPlayerSendChannelMessage, 150, cid, "", "Comand for Leaders: /guid - Message of the Day: " .. guildMotd, TALKTYPE_CHANNEL_W, CHANNEL_GUILD)
end
end
end
return true
end

 

 

versao do cliente é 10.10

 

 

 

Não tenho server com a versão 10.10, mas esses que uso na 8.60 funcionam tenta ai.

 

GuildMotd

Utilize essa tag: <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>

function onJoinChannel(cid, channelId, users)
	if(channelId == CHANNEL_GUILD) then
		local guildId = getPlayerGuildId(cid)
		if(guildId and guildId ~= 0) then
			local guildMotd = getGuildMotd(guildId)
			if(guildMotd and guildMotd ~= "") then
				addEvent(doPlayerSendChannelMessage, 150, cid, "", "Comand for Leaders: /guid - Message of the Day: " .. guildMotd, TALKTYPE_CHANNEL_W, CHANNEL_GUILD)
			end
		end
	end

	return true
end

 

Mail

Utilize essa tag: <event type="receivemail" name="Mail" event="script" value="mail.lua"/>

function onReceiveMail(cid, sender, item, openBox)
	if(openBox) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.")
	end

	return true
end

 

SaveReportBug

Utilize essa tag: <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>

function onReportBug(cid, comment)
	local pos = getCreaturePosition(cid)
	if(db.executeQuery("INSERT INTO `server_reports` (`id`, `world_id`, `player_id`, `posx`, `posy`, `posz`, `timestamp`, `report`) VALUES (NULL, " ..
		getConfigValue('worldId') .. ", " .. getPlayerGUID(cid) .. ", " ..
		pos.x .. ", " .. pos.y .. ", " .. pos.z .. ", " ..
		os.time() .. ", " .. db.escapeString(comment) .. ")"))
	then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Your report has been sent to " .. getConfigValue('serverName') .. ".")
	else
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, getConfigValue('serverName') .. " couldn't save your report, please contact with gamemaster.")
	end

	return true
end

Editado Abril 21 por Mazynho

JeanCristianJ
21 de abril de 2014 às 18:37

muito obrigado mais sao os mesmos que eu tenho aki ^^