HowToAddItemsStendhal: Difference between revisions

Content deleted Content added
imported>Herodot
No edit summary
imported>Chad3f
Line 8:
<item name="dagger">
<type class="sword" subclass="dagger"/>
<implementation class-name="games.stendhal.server.entity.item.Item"/>
<attributes>
<atk value="8"/>
Line 38 ⟶ 39:
For Stackable items like food, money, drinks, arrows, we can use:
* quantity
 
To configure stackable items in the xml, use the alternative implementation:
 
<pre>
<implementation class-name="games.stendhal.server.entity.item.StackableItem"/>
</pre>
 
And for foods, drinks and potions we have
* amount
* regen
* frequency
* frecuency
 
Now the ''level'' and ''experience'' tags.