Roksas ok ta funfano mas pra liberar a storage para ele me dar o item X eu preciso que o Domador funcione e ele da esse erro akie
[23/03/2013 22:28:32] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Domador.xml).
[23/03/2013 22:28:32] Info: failed to load external entity "data/npc/Domador.xml"
[23/03/2013 22:28:36] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Sumido.xml).
[23/03/2013 22:28:36] Line: 3, Info: XML declaration allowed only at the start of the document
e ta assim olha o XML dele
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Domador" script="sumido.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="128" head="132" body="79" legs="97" feet="132" corpse="2212"/>
</npc>




info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino
Troca o primeiro por esse aqui, e me fala todos os IDS, que o domador da, todos que o fazendeiro da, etc.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local gain, amount = 2148, 100 -- ID/QUANTIDADE
local gain2, amount2 = 2149, 100 -- ID DO SEGUNDO ITEM / QUANTIDADE
if(msgcontains(msg, 'help') or msgcontains(msg, 'quest')) then
talkState[talkUser] = 0
if getPlayerStorageValue (cid,9929) == -1 then
selfSay('Ola '..getCreatureName(cid)..' esta fazenda pertenceu a um grande domador de monstros, mas, um dia ele saiu de viagem e nunca mais retornou. Pegue, leve com você essa relíquia que ele me deixou!', cid)
doPlayerAddItem(cid,gain,amount)
setPlayerStorageValue(cid,9929,1)
else
selfSay('Oque você quer? Já te dei a relíquia.', cid)
talkState[talkUser] = 0
end
end
if(msgcontains(msg, 'help') or msgcontains(msg, 'quest')) then
talkState[talkUser] = 0
if getPlayerStorageValue(cid,9939) == 1 then
selfSay('Obrigado por salvar o nosso domador de animais, aqui uma recompensa para você!', cid)
doPlayerAddItem(cid,gain2,amount2)
setPlayerStorageValue(cid,9939,2)
elseif getPlayerStorageValue(cid,9939) == 2 then
selfSay('Já encontrou para mim o domador, não preciso mais de você!',cid)
end
return true
end
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Aonde ta vermelho poe o item que o primeiro item que da, e o segundo quando acha o domador.