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

Need help with backpacks

Thats exactally what im what im talking about.

I mean in the bp slot that is.

You can do it normally like any other item with added attributes. Here you go:

In items.xml:

PHP:
	<item id="1988" article="a" name="backpack">
		<attribute key="weight" value="1800"/>
		<attribute key="containerSize" value="20"/>
		<attribute key="slotType" value="backpack"/>
		<attribute key="magiclevelpoints" value="3"/>
	</item>

In movements.xml:

PHP:
	<movevent type="Equip" itemid="1988" slot="backpack" event="function" value="onEquipItem"/>	
	<movevent type="DeEquip" itemid="1988" slot="backpack" event="function" value="onDeEquipItem"/>

And thats all, just change to the itemid of your choice and values. Works fine (tested in TFS 0.3.2).

Note that if you get an error in console saying something like "Unknown key value" then it is just because your TFS needs a different attribute than mine, if thats the case I suggest you see the "Item Attributes" guide in my signature and scroll down to the "how to" part to find out what you need.

Hope it helps.
 
Back
Top