Ir para conteúdo
  • Cadastre-se

Posts Recomendados

[Error - BaseEvents::loadFromXml] Failed to load data/talkactions/talkactions.xml: Start-end tags mismatch 
> ERROR: Unable to load talk actions! 
> ERROR: Failed to load script systems 

 

esta dando esse erro

Link para o post
Compartilhar em outros sites
  • Moderador
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
       
<!-- Gods -->
<talkaction words="/addskill" separator=" " script="add_skill.lua" />
<talkaction words="/chameleon" separator=" " script="chameleon.lua" />
<talkaction words="/clean" script="clean.lua" />
<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
<talkaction words="/i" separator=" " script="create_item.lua" />
<talkaction words="/hide" script="hide.lua" />
<talkaction words="/mccheck" script="mccheck.lua" />
<talkaction words="/openserver" script="openserver.lua" />
<talkaction words="/owner" separator=" " script="owner.lua" />
<talkaction words="/m" separator=" " script="place_monster.lua" />
<talkaction words="/s" separator=" " script="place_npc.lua" />
<talkaction words="/summon" separator=" " script="place_summon.lua" />
<talkaction words="/addtp" separator=" " script="addtp.lua" />
<talkaction words="/addtutor" separator=" " script="add_tutor.lua" />
<talkaction words="/removetutor" separator=" " script="remove_tutor.lua" />
 
<!-- Gamemasters -->
<talkaction words="/save" script="save.lua" />
<talkaction words="/ban" separator=" " script="ban.lua" />
<talkaction words="/ipban" separator=" " script="ipban.lua" />
<talkaction words="/unban" separator=" " script="unban.lua" />
<talkaction words="/up" script="up.lua" />
<talkaction words="/down" script="down.lua" />
<talkaction words="/c" separator=" " script="teleport_creature_here.lua" />
<talkaction words="/goto" separator=" " script="teleport_to_creature.lua" />
<talkaction words="/gotopos" separator=" " script="teleport_to_pos.lua" />
<talkaction words="/t" script="teleport_home.lua" />
<talkaction words="/town" separator=" " script="teleport_to_town.lua" />
<talkaction words="/a" separator=" " script="teleport_ntiles.lua" />
<talkaction words="/pos" separator=" " script="position.lua" />
<talkaction words="/info" separator=" " script="info.lua" />
<talkaction words="/r" separator=" " script="removething.lua" />
<talkaction words="/kick" separator=" " script="kick.lua" />
<talkaction words="/B" separator=" " script="broadcast.lua" />
<talkaction words="/looktype" separator=" " script="looktype.lua" />
<talkaction words="/ghost" script="ghost.lua" />
<talkaction words="/mute" script="mute.lua" />
 
<!-- player talkactions -->
<talkaction words="!buyhouse" script="buyhouse.lua"/>
<talkaction words="!leavehouse" script="leavehouse.lua"/>
<talkaction words="!uptime" script="uptime.lua"/>
<talkaction words="!kills" script="kills.lua"/>
<talkaction words="!serverinfo" script="serverinfo.lua"/>
<talkaction words="!aol" script="aol.lua"/>
<talkaction words="!bless" script="bless.lua"/>
<talkaction words="!online" script="online.lua"/>
<talkaction words="!cast" separator=" " script="cast.lua"
/>
<!-- test talkactions -->
<talkaction words="!z" separator=" " script="magiceffect.lua"/>
<talkaction words="!x" separator=" " script="animationeffect.lua"/>
Link para o post
Compartilhar em outros sites

<?xml version="1.0" encoding="UTF-8"?>

<talkactions>
       
<!-- Gods -->
<talkaction words="/addskill" separator=" " script="add_skill.lua" />
<talkaction words="/chameleon" separator=" " script="chameleon.lua" />
<talkaction words="/clean" script="clean.lua" />
<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
<talkaction words="/i" separator=" " script="create_item.lua" />
<talkaction words="/hide" script="hide.lua" />
<talkaction words="/mccheck" script="mccheck.lua" />
<talkaction words="/openserver" script="openserver.lua" />
<talkaction words="/owner" separator=" " script="owner.lua" />
<talkaction words="/m" separator=" " script="place_monster.lua" />
<talkaction words="/s" separator=" " script="place_npc.lua" />
<talkaction words="/summon" separator=" " script="place_summon.lua" />
<talkaction words="/addtp" separator=" " script="addtp.lua" />
<talkaction words="/addtutor" separator=" " script="add_tutor.lua" />
<talkaction words="/removetutor" separator=" " script="remove_tutor.lua" />
 
<!-- Gamemasters -->
<talkaction words="/save" script="save.lua" />
<talkaction words="/ban" separator=" " script="ban.lua" />
<talkaction words="/ipban" separator=" " script="ipban.lua" />
<talkaction words="/unban" separator=" " script="unban.lua" />
<talkaction words="/up" script="up.lua" />
<talkaction words="/down" script="down.lua" />
<talkaction words="/c" separator=" " script="teleport_creature_here.lua" />
<talkaction words="/goto" separator=" " script="teleport_to_creature.lua" />
<talkaction words="/gotopos" separator=" " script="teleport_to_pos.lua" />
<talkaction words="/t" script="teleport_home.lua" />
<talkaction words="/town" separator=" " script="teleport_to_town.lua" />
<talkaction words="/a" separator=" " script="teleport_ntiles.lua" />
<talkaction words="/pos" separator=" " script="position.lua" />
<talkaction words="/info" separator=" " script="info.lua" />
<talkaction words="/r" separator=" " script="removething.lua" />
<talkaction words="/kick" separator=" " script="kick.lua" />
<talkaction words="/B" separator=" " script="broadcast.lua" />
<talkaction words="/looktype" separator=" " script="looktype.lua" />
<talkaction words="/ghost" script="ghost.lua" />
<talkaction words="/mute" script="mute.lua" />
 
<!-- player talkactions -->
<talkaction words="!buyhouse" script="buyhouse.lua"/>
<talkaction words="!leavehouse" script="leavehouse.lua"/>
<talkaction words="!uptime" script="uptime.lua"/>
<talkaction words="!kills" script="kills.lua"/>
<talkaction words="!serverinfo" script="serverinfo.lua"/>
<talkaction words="!aol" script="aol.lua"/>
<talkaction words="!bless" script="bless.lua"/>
<talkaction words="!online" script="online.lua"/>
<talkaction words="!cast" separator=" " script="cast.lua"/>
<!-- test talkactions -->
<talkaction words="!z" separator=" " script="magiceffect.lua"/>
<talkaction words="!x" separator=" " script="animationeffect.lua"/>

</talkactions>


 

 

Link para o post
Compartilhar em outros sites
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
 
<!-- Secret Service Quest -->
<event type="kill" name="SecretServiceBlackKnight" script="others/blackKnight.lua"/>
 
<!-- Spike Task: Drillworm -->
<event type="kill" name="SpikeDrillworm" script="spike task/drillworm.lua"/>
 
<!-- Thieves Guild Quest -->
<event type="kill" name="ThievesGuildNomad" script="others/nomad.lua"/>
 
<!-- Pythius The Rotten -->
<event type="kill" name="pythiusDead" script="pythius the rotten/pythiusDead.lua" />
 
<!-- Gray Island -->
<event type="kill" name="bossesGrayIsland" script="gray island/bossesgrayisland.lua"/> 
 
<!-- The Elemental Spheres -->
<event type="death" name="ElementalSpheres" script="elemental spheres quest/the_elemental_spheres.lua"/>
<event type="kill" name="ElementalSpheresKill" script="elemental spheres quest/the_elemental_spheres.lua"/>
<event type="login" name="ElementalSpheresLogin" script="elemental spheres quest/the_elemental_spheres.lua"/>
 
<!-- Gnomebase -->
<event type="kill" name="WarzoneTwo" script="gnomebase/warzone2.lua"/>
<event type="kill" name="WarzoneThree" script="gnomebase/warzone3.lua"/>
<event type="kill" name="bossesWarzone" script="gnomebase/bossesWarzone.lua"/> 
 
<!-- Svargrond Arena: Killing a boss -->
<event type="kill" name="SvargrondArenaKill" script="svargrond arena quest/arena_kill.lua"/>
 
<!-- Pharaos: Portal to reward room -->
<event type="kill" name="PharaoKillPortal" script="others/pharaoPortal.lua"/>
 
<!-- In Service Of Yalahar Quest -->
<event type="kill" name="inServiceOfYalaharQuestsDiseased" script="in service of yalahar quest/inServiceOfYalaharQuestsDiseased.lua"/>
<event type="kill" name="inServiceOfYalaharQuestsMorik" script="in service of yalahar quest/inServiceOfYalaharQuestsMorik.lua"/>
<event type="kill" name="inServiceOfYalaharQuestsQuara" script="in service of yalahar quest/inServiceOfYalaharQuestsQuara.lua"/>
 
<!-- Inquisition Quest -->
<event type="kill" name="inquisitionQuestBosses" script="inquisition quest/inquisitionQuestBosses.lua"/>
<event type="kill" name="inquisitionQuestUngreez" script="inquisition quest/inquisitionQuestUngreez.lua"/>
 
<!-- Killing In The Name Of Quest -->
<event type="kill" name="killingInTheNameOfQuestKills" script="killing in the name of quest/killingInTheNameOfQuestKills.lua"/>
<event type="kill" name="TaskCustom" script="killing in the name of quest/taskcustom.lua"/>
 
<!-- Raging Mage Tower -->
<event type="kill" name="Yielothax" script="raging mage tower/yielothax.lua"/>
<event type="kill" name="Energized" script="raging mage tower/energized.lua"/>
<event type="kill" name="Raging" script="raging mage tower/raging.lua"/>
 
<!-- The Masters Voice Quest -->
<event type="kill" name="MastersVoiceServants" script="their master's voice quest/ServantsKill.lua"/>
 
<!-- Wrath of Emperor -->
<event type="kill" name="wrathBoss" script="wrath of the emperor quest/wrathOfTheEmperorQuestBoss.lua"/>
<event type="kill" name="wrathZalamon" script="wrath of the emperor quest/wrathOfTheEmperorQuestZalamon.lua"/>
 
<!-- Others -->
<event type="logout" name="Cast" script="others/cast.lua"/>
<event type="login" name="PlayerLogin" script="others/login.lua"/>
<event type="death" name="PlayerDeath" script="others/playerdeath.lua"/>
<event type="advance" name="AdvanceSave" script="others/advance_save.lua"/>
<event type="advance" name="AdvanceRook" script="others/advance_rook.lua"/>
<event type="advance" name="Recompense" script="others/recompense.lua"/>
<event type="login" name="AddonsMounts" script="others/addons-montarias.lua"/>
        <event type="login" name="ShopMountAddon" script="addonmount.lua"/>
 
</creaturescripts>
Link para o post
Compartilhar em outros sites
Por gentileza altere o nome do tópico para algo referente ao tópico, clicando em Editar/Usar Editor Completo
 
Sobre os char começar sem itens, adicione esse arquivos.
 
mods\firstitems.xml
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')
 
 
function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end
 
 
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
 
 
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
 
 
doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>
 
data/creaturescripts.xml
<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
 
creaturescripts\scripts\firstitems.lua
local firstItems = {}
firstItems[0] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2460,
2478,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2460,
2478,
2643
}
firstItems[3] =
{
2173,
2525,
2389,
2124,
2460,
2478,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
 
 
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2465, 1)
else
doPlayerAddItem(cid, 2465, 1)
end
local bag = doPlayerAddItem(cid, 10518, 1)
doAddContainerItem(bag, 2160, 2)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 2383, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
Link para o post
Compartilhar em outros sites
  • 1 year later...

Mano, tem certeza que essa parte ta certinha?

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

É que eu fiz passo igual ao que vc ensinou mas continua dando o mesmo erro, dizendo que o arquivo nao esta no diretorio. =/

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo