Vamos lá no seu mapa tem um npc que não tem nome está .xml então no mapa tem ele, você tem que procura-lo e tirar, já o Dafraiy, vcê vai no data/npc/script/dafrai.lua crie um arquivo chamado dafraiy.lua, depois disso add qualquer coisa nele.. e salve..
Vamos Ao NPC Food ...
Data/npc crie uma arquivo chamado Danny.xml e adicione isto..
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Danny" script="danny.lua" walkinterval="32000000" floorchange="0" speed="0">
<health now="150" max="150"/>
<look type="1068" head="115" body="88" legs="114" feet="0"/>
<parameters>
<parameter key="message_greet" value="Hello dear customer! Are you here to see my offers? Come on, lets {trade}!"/>
<parameter key="message_farewell" value="Good bye!"/>
<parameter key="message_idletimeout" value="Good bye!"/>
<parameter key="message_walkaway" value="Good bye!"/>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="Japonese,12213,400;French,12214,500;Hot Dog,12215,500;Pizza,12222,500;Burguer,12218,500;Brownie,12217,400;Chocolate,12219,600;"/>
<parameter key="shop_sellable" value=""/>
</parameters>
</npc>
agora na pasta scripts crie um arquivo lua chamado Danny e adicione isto....
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid)
npcHandler:onCreatureAppear(cid)
end
function onCreatureDisappear(cid)
npcHandler:onCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
npcHandler:onCreatureSay(cid, type, msg)
end
function onThink()
npcHandler:onThink()
end
npcHandler:addModule(FocusModule:new())




info
Grupo: Campones
Registrado: 12/06/09
Posts: 39
Reputação: 0
Char no Tibia: matadorzim
Eu preciso Adicionar NPC com Food no POKE Dash advanced!
mas tambem quando o server esta aberto aparece isso
[04/10/2012 13:31:42] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/.xml).
[04/10/2012 13:31:42] Info: failed to load external entity "data/npc/.xml"
[04/10/2012 13:31:42] [Error - Npc interface]
[04/10/2012 13:31:42] data/npc/scripts/Daifray.lua:onCreatureSay
[04/10/2012 13:31:42] Description:
[04/10/2012 13:31:42] (luaDoCreateNpc) Npc with name '' not found
[04/10/2012 13:31:42] [Error - Npc interface]
[04/10/2012 13:31:42] data/npc/scripts/Daifray.lua:onCreatureSay
[04/10/2012 13:31:42] Description:
[04/10/2012 13:31:42] (luaDoConvinceCreature) Creature not found
[04/10/2012 13:31:42] [Error - Npc interface]
[04/10/2012 13:31:42] data/npc/scripts/Daifray.lua:onCreatureSay
[04/10/2012 13:31:42] Description:
[04/10/2012 13:31:42] (luaSetCreatureMaxHealth) Creature not found
[04/10/2012 13:31:42] [Error - Npc interface]
[04/10/2012 13:31:42] data/npc/scripts/Daifray.lua:onCreatureSay
[04/10/2012 13:31:42] Description:
[04/10/2012 13:31:42] (luaDoCreatureAddHealth) Creature not found
[04/10/2012 13:31:42] [Error - Npc interface]
[04/10/2012 13:31:42] data/npc/scripts/Daifray.lua:onCreatureSay
[04/10/2012 13:31:42] Description:
[04/10/2012 13:31:42] (luaDoCreatureAddHealth) Creature not found
Alguem sabe resolve?