• 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!

[MOD] is something wrong?

Joined
Jun 19, 2009
Messages
1,852
Reaction score
5
Hello!

Xeon gave me a script which allows you to add items without restarting ;D

but, when I add an item, it works - but it won't show the attributes ;s

example:

Code:
	<item id="2503" article="a" name="plz work"><![CDATA[
		<attribute key="armor" value="100"/>
		<attribute key="slotType" value="body"/>
	]]></item>
	<item id="11297" name="native shoes"><![CDATA[
		<attribute key="armor" value="100"/>
		<attribute key="slotType" value="feet"/>
		<attribute key="speed" value="60"/>
	]]></item>
</mod>

now when i do /i native shoes/plz work, it works - however, it wont show "armor" 100 or speed 60 ;t

tried to restart server as well but didn't work
 
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Custom items" enabled="yes">
	<item id="2365" article="a" name="backpack of holding">
		<attribute key="weight" value="1500" />
		<attribute key="containerSize" value="34" />
		<attribute key="slotType" value="backpack" />
	</item>
</mod>

heres mine, works 100%.
You shouldn't use CDATA for attributes.
 
theres already 2 items with same name, means override.. hm, guess thats not the problem, idk :S
works for me :S;
Code:
17:26 You see a plz work (Arm:10, protection physical +5%).
It weighs 130.00 oz.
ItemID: [2503].
Position: [X: 93] [Y: 119] [Z: 7].
 
Hmm I have no idea, might be something with 0.3.6pl1?
I've been using with CDATA but it doesn't show any attributes when I do so.
And when I use it without CDATA it works just fine
 
Nah, I don't have two items with same name or id.

The name works perfectly, but not the attributes. I'll try without CDATA.

Edit: rofl, worked ;s and I have TFS 0.4
 
sorry maing up this old thread but i have te same problem..
bye the item editor i add and item , then i put the mods and i do /reload mods and dont add the item .. appears "could'nt add item : 11393"
 
Back
Top Bottom