JeanCristian 7 Postado Abril 21, 2014 Share Postado Abril 21, 2014 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 ' Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/ Compartilhar em outros sites More sharing options...
Mazynho 2 Postado Abril 21, 2014 Share Postado Abril 21, 2014 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. Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1639974 Compartilhar em outros sites More sharing options...
JeanCristian 7 Postado Abril 21, 2014 Autor Share Postado Abril 21, 2014 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. Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1639991 Compartilhar em outros sites More sharing options...
Mazynho 2 Postado Abril 21, 2014 Share Postado Abril 21, 2014 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. Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1640000 Compartilhar em outros sites More sharing options...
JeanCristian 7 Postado Abril 21, 2014 Autor Share Postado Abril 21, 2014 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 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"/> Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1640006 Compartilhar em outros sites More sharing options...
Mazynho 2 Postado Abril 21, 2014 Share Postado Abril 21, 2014 (editado) 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 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, 2014 por Mazynho Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1640019 Compartilhar em outros sites More sharing options...
JeanCristian 7 Postado Abril 21, 2014 Autor Share Postado Abril 21, 2014 muito obrigado mais sao os mesmos que eu tenho aki ^^ Link para o comentário https://xtibia.com/forum/topic/232185-da-uma-passadinha-aki-erro-distro-com-imagem/#findComment-1640030 Compartilhar em outros sites More sharing options...
Posts Recomendados