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.
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Da uma passadinha aki? erro distro com imagem
info
Grupo: Visconde
Registrado: 11/04/12
Posts: 328
Reputação: +7
Char no Tibia: ADM MiHawk

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 eventdone.
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.
info
Grupo: Visconde
Registrado: 11/04/12
Posts: 328
Reputação: +7
Char no Tibia: ADM MiHawk

eu verifiquei ja, provavelmente é a funçao, porem nao sei qual colokar
codigo logo abaixo das 2
function onReportBug(cid, comment)
agrora o outro ![]()
function onJoinChannel(cid, channelId, users)
<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"/>
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) .. ")"))thendoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Your report has been sent to " .. getConfigValue('serverName') .. ".")elsedoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, getConfigValue('serverName') .. " couldn't save your report, please contact with gamemaster.")endreturn trueend
agrora o outro
function onJoinChannel(cid, channelId, users)
if(channelId == CHANNEL_GUILD) thenlocal guildId = getPlayerGuildId(cid)if(guildId and guildId ~= 0) thenlocal guildMotd = getGuildMotd(guildId)if(guildMotd and guildMotd ~= "") thenaddEvent(doPlayerSendChannelMessage, 150, cid, "", "Comand for Leaders: /guid - Message of the Day: " .. guildMotd, TALKTYPE_CHANNEL_W, CHANNEL_GUILD)endendendreturn trueend
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
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
info
Grupo: Visconde
Registrado: 11/04/12
Posts: 328
Reputação: +7
Char no Tibia: ADM MiHawk

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



info
Grupo: Visconde
Registrado: 11/04/12
Posts: 328
Reputação: +7
Char no Tibia: ADM MiHawk
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
'