JustinnoTibianno 71 Postado Julho 29, 2012 Share Postado Julho 29, 2012 Tem dois erros que ocorrem quando eu abro meu ot, quero arruma-los mas nao entendo nada de script, se alguem pode me ajudar >Loading creaturescripts... [Error - CreatureEvent::configureEvent] No valid type for creature event: joinchannel. [Warning - BaseEvents::loadFromXml] Cannot configure an event [Error - CreatureEvent::configureEvent] No valid type for creature event: receivemail. [Warning - BaseEvents::loadFromXml] Cannot configure an event Aqui estao os sciprts: SCRIPT DO RECEIVEMAIL: function onReceiveMail(cid, sender, item, openBox) if(openBox) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.") end return true end JOINCHANNEL: 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 E aqui estao as tags no craturescript.xml: <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/> <event type="receivemail" name="Mail" event="script" value="mail.lua"/> Link para o comentário https://xtibia.com/forum/topic/190816-erro-joinchannel-e-receivemail/ Compartilhar em outros sites More sharing options...
0 JustinnoTibianno 71 Postado Julho 29, 2012 Autor Share Postado Julho 29, 2012 (editado) e cara nao sei mais uq tentar . li de td procurei tutoriais e nada . =/ ai jaja chega o vodkart fala 1 tag e concerta haha. rep+? valeu vc ficou tentando me ajudar a sla quantas horas xd EDIT LOL, achei o erro, nao era funçao ReceiveMail e JoinChannel e sim MailReceive e ChannelJoin " Editado Julho 30, 2012 por JustinnoTibianno Link para o comentário https://xtibia.com/forum/topic/190816-erro-joinchannel-e-receivemail/page/2/#findComment-1304510 Compartilhar em outros sites More sharing options...
Pergunta
JustinnoTibianno 71
Tem dois erros que ocorrem quando eu abro meu ot, quero arruma-los mas nao entendo nada de script, se alguem pode me ajudar
>Loading creaturescripts... [Error - CreatureEvent::configureEvent] No valid type for creature event: joinchannel.
[Warning - BaseEvents::loadFromXml] Cannot configure an event
[Error - CreatureEvent::configureEvent] No valid type for creature event: receivemail.
[Warning - BaseEvents::loadFromXml] Cannot configure an event
Aqui estao os sciprts:
SCRIPT DO RECEIVEMAIL:
function onReceiveMail(cid, sender, item, openBox)
if(openBox) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.")
end
return true
end
JOINCHANNEL:
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
E aqui estao as tags no craturescript.xml:
<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
Link para o comentário
https://xtibia.com/forum/topic/190816-erro-joinchannel-e-receivemail/Compartilhar em outros sites
16 respostass a esta questão
Posts Recomendados