Ir para conteúdo

[Encerrado] Ajuda Urgenteee!


bons4ik

Posts Recomendados

gente n to conseguindo carrega os npcs no meu mapa,da um erro:



 

ERRO
[29082009 150853] [Warning - NpcloadFromXml] Cannot load npc file (datanpcPotions Seller.xml).
[29082009 150853] Info failed to load external entity datanpcPotions Seller.xml


[29082009 150853] [Warning - NpcloadFromXml] Cannot load npc file (datanpcWeapons Seller.xml).
[29082009 150853] Info failed to load external entity datanpcWeapons Seller.xml


[29082009 150853] [Warning - NpcloadFromXml] Cannot load npc file (datanpcMagic Weapons Seller.xml).
[29082009 150853] Info failed to load external entity datanpcMagic Weapons Seller.xml


[29082009 150853] [Warning - NpcloadFromXml] Cannot load npc file (datanpcEquip Seller.xml).
[29082009 150853] Info failed to load external entity datanpcEquip Seller.xml



 

Potions Seller(potion.xml)

<div style="margin:0px 0px 0px 0px">

<div class="smallfont" style="margin-bottom:0px">

<input type="button" value="Mostrar Spoil" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Esconder'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar Spoil'; }">

<div style="margin: 0px; padding: 0px; border: 0px inset;">

<div style="display: none;">

<npc name="Potions Seller" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="130" head="19" body="71" legs="128" feet="128" addons="1" corpse="6080"/>
<parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell mana potion(50gp),strong mana potion(80gp),great mana potion(120gp),helth potion(50gp),strong helth potion(80gp),great helth potion(120gp),!" />
	<parameter key="shop_buyable" value="mana potion,7620,50;strong mana potion,7589,80;great mana potion,7590,120;health potion,7618,50;strong health potion,7588,80;great helth potion,7591,120;" />
</parameters>
</npc>

</div>

</div>

 

Weapons Seller(weapon.xml)

<npc name="Weapons Seller" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="134" head="115" body="10" legs="90" feet="115" corpse="2212"/>
<parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell two handed sword(1k),spike sword(10k),bright sword(15k),scimitar(7k),fire sword(12k),giant sword(20k),ice rapier(15k),morning star(3k),giant smithhammer(2,5k),headchopper(18k),crossbow(5k),elvish bow(15k),arrow(1gp),poison arrow(10gp),burst arrow!(13 gp)" />
	<parameter key="shop_buyable" value="two handed sword,2377,1000;spike sword,2383,10000;bright sword,2407,15000;scimitar,2419,7000;fire sword,2392,12000;giant sword,2393,20000;ice rapier,2396,15000;morning star,2394,3000;giant smithhammer,2321,2500;headchopper,7380,18000;crossbow,2455,5000;elvish bow,7438,15000;arrow,2544,1;poison arrow,2545,10;burst arrow,2546,13;" />
</parameters>
</npc>

 

Magic Weapons Seller(magic-weapon.xml)

<npc name="Magic Weapons Seller" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="37" head="20" body="30" legs="40" feet="50" corpse="5963"/>
<parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell wand of inferno(40k),wand of decay(18k),wand of vortex(10k),wand of dragonbreath(15k),wand of starstorm(40k),wand of voodoo(40k)!" />
	<parameter key="shop_buyable" value="wand of inferno,2187,40000;wand of decay,2188,18000;wand of vortex,2190,10000;wand of dragonbreath,2191,15000;wand of starstorm,8920,40000;wand of voodoo,8922,40000;" />
</parameters>
</npc>

 

Equip Seller.xml

<npc name="Equip Seller" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="25" head="20" body="30" legs="40" feet="50" corpse="5969"/>
<parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell steel helmet(10k),golden helmet(30k),plate armor(15k),golden armor(40k),plate legs(18k),golden legs(35k)!" />
	<parameter key="shop_buyable" value="steel helmet,2457,10000;golden helmet,2471;plate armor,2463,15000;golden armor,2466,40000;plate legs,2647,18000;golden legs,2470,35000;" />
</parameters>
</npc>

 

SCRIPT DEFAULT.LUA

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())

 

LEMBRANDO Q EU TROQUEI O MAPA ORIGINAL....

E EU N MECHI NAS CONFIGURAÇÔES...

SE ERA PRA MEXE ME DIZ AEW PLZ XD

ME AJUDEMMMM

POR FAVORRRRRRR

PLZZZ

VLW

VO DA GOD no meu sv pra quem me ajuda e der xD</div>

Editado por bons4ik
Link para o comentário
Compartilhar em outros sites

  • 8 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...