• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC xml error help please.

Tyronel

New Member
Joined
Feb 28, 2010
Messages
116
Reaction score
0
[17/03/2010 03:02:17] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 03:02:17] Line: 11, Info: Premature end of data in tag npc line 1

Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
	<parameter key="message_greet" value="Hello want to travel?!" />
        <parameterS>
key="travel_destinations"value="Edron,33179,31766,6,0; Thais,32313,32211,6,0;"/>
	<parameter key="travel_destinations" value="Thais,2148,1795,7,100,Edron,33179,31766,6,0;
     </parameters>
</npc>

Above, is the contents of the xml file!

fix please +rep
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations"value="Edron,33179,31766,6,0; Thais,32313,32211,6,0;"/>
		<parameter key="travel_destinations" value="Thais,2148,1795,7,100,Edron,33179,31766,6,0;"/>
     </parameters>
</npc>

try that
 
Now it is another error .....

[17/03/2010 05:33:13] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:33:13] Line: 7, Info: Couldn't find end of Start Tag parameter line 7
 
i made him spawn but now i get more errors ...

05:41 Capitain Charles: Hello want to travel?!
05:41 Tyrone [150]: travel
05:41 Capitain Charles: Thais.
05:41 Tyrone [150]: thais

Doesnt do anything! also

[17/03/2010 05:39:41] [Warning] NpcSystem:
[17/03/2010 05:39:41] Unknown parameter found in travel destination parameter.
[17/03/2010 05:39:41] 33179
[17/03/2010 05:39:41] Thais,2148,1795,7,100,Edron,33179,31766,6,0
[17/03/2010 05:39:41] [Warning] NpcSystem:
[17/03/2010 05:39:41] Unknown parameter found in travel destination parameter.
[17/03/2010 05:39:41] 31766
[17/03/2010 05:39:41] Thais,2148,1795,7,100,Edron,33179,31766,6,0
[17/03/2010 05:39:41] [Warning] NpcSystem:
[17/03/2010 05:39:41] Unknown parameter found in travel destination parameter.
[17/03/2010 05:39:41] 6
[17/03/2010 05:39:41] Thais,2148,1795,7,100,Edron,33179,31766,6,0
[17/03/2010 05:39:41] [Warning] NpcSystem:
[17/03/2010 05:39:41] Unknown parameter found in travel destination parameter.
[17/03/2010 05:39:41] 0
[17/03/2010 05:39:41] Thais,2148,1795,7,100,Edron,33179,31766,6,0

Someone just post the fixed xml code plz :(
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6; Thais,32313,32211,6;"/>
		<parameter key="travel_destinations" value="Thais,2148,1795,7,Edron,33179,31766,6;"/>
     </parameters>
</npc>

As I would guess that the value for the positions is, xyz. So I don't get why there's a 0 in the back of Edrons Travel destination... Try testing that... I don't know if it will work but just try will you :)
 
now i added the codes you guys gave and guess what?

[17/03/2010 05:46:21] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:46:21] Line: 7, Info: Couldn't find end of Start Tag parameter line 7

back to the start ...... just please post the full xml fixed =[
 
the 0 represents the gold ammount to pay anyone would know that .. i added ur code and again ... [17/03/2010 05:49:40] [Warning] NpcSystem:
[17/03/2010 05:49:40] Unknown parameter found in travel destination parameter.
[17/03/2010 05:49:40] 31766
[17/03/2010 05:49:40] Thais,2148,1795,7,Edron,33179,31766,6
[17/03/2010 05:49:40] [Warning] NpcSystem:
[17/03/2010 05:49:40] Unknown parameter found in travel destination parameter.
[17/03/2010 05:49:40] 6
[17/03/2010 05:49:40] Thais,2148,1795,7,Edron,33179,31766,6
[17/03/2010 05:49:40] [Warning] NpcSystem:
[17/03/2010 05:49:40] Parameter(s) missing for travel destination:
[17/03/2010 05:49:40] Thais
 
now i added the codes you guys gave and guess what?

[17/03/2010 05:46:21] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:46:21] Line: 7, Info: Couldn't find end of Start Tag parameter line 7

back to the start ...... just please post the full xml fixed =[

We're trying :)

Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6; Thais,32313,32211,6";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7, "Edron",33179,31766,6;/>
     </parameters>
</npc>

Hope this will work...
 
We're trying :)

Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6; Thais,32313,32211,6";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7, "Edron",33179,31766,6;/>
     </parameters>
</npc>

Hope this will work...


nope more error

[17/03/2010 05:52:45] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:52:45] Line: 8, Info: Couldn't find end of Start Tag parameter line 8
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6,100; Thais,32313,32211,6,0";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7,0; "Edron",33179,31766,6,100;/>
        </parameters>
</npc>
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6; Thais,32313,32211,6";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7; "Edron",33179,31766,6;/>
     </parameters>
</npc>

Again no ...
[17/03/2010 05:56:06] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:56:06] Line: 8, Info: Couldn't find end of Start Tag parameter line 8
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!"/>
        <parameter key="travel_destinations" value="Edron"33179,31766,6; "Thais",32313,32211,6";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7; "Edron",33179,31766,0;/>
     </parameters>
</npc>

try that
im half asleep doing this so yea
 
Again no ...
[17/03/2010 05:56:06] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:56:06] Line: 8, Info: Couldn't find end of Start Tag parameter line 8

Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!" />
        <parameter key="travel_destinations" value="Edron,33179,31766,6,100; Thais,32313,32211,6,0";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7,0; "Edron",33179,31766,6,100;/>
        </parameters>
</npc>
Maybe we should take this over a PM so that the thread doesn't get spammed...
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!"/>
        <parameter key="travel_destinations" value="Edron"33179,31766,6; "Thais",32313,32211,6";/>
		<parameter key="travel_destinations" value="Thais",2148,1795,7; "Edron",33179,31766,0;/>
     </parameters>
</npc>

try that
im half asleep doing this so yea

nope ..
[17/03/2010 05:59:47] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Capitain Charles.xml).
[17/03/2010 05:59:47] Line: 8, Info: Couldn't find end of Start Tag parameter line 8
 
Code:
<npc name="Capitain Charles" script="data/npc/scripts/bloodb.lua" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="13" legs="90" feet="115" addons="3" corpse="2212"/>
	<parameters>
        <parameter key="module_travel" value="1"/>
		<parameter key="message_greet" value="Hello want to travel?!"/>
        <parameter key="travel_destinations" value="Edron,33179,31766,6; Thais,32313,32211,6;"/>
     </parameters>
</npc>
 
Ok now he spawns but he says this ..


06:04 Capitain Charles: Hello want to travel?!
06:04 Tyrone [150]: yes
06:04 Tyrone [150]: travel
06:04 Capitain Charles: I can take you to 'Demon Land', 'Apocalypse Room', 'Thais, for just a small fee.
06:04 Tyrone [150]: thais

korrex's code fixed and made him spawn id appreciate his msn address :p so we can fix im sure there is a seperate lua file, btw ^ he doesnt take me to any of them :(
 
Back
Top