HowToAddItemsStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Herodot
No edit summary
imported>Chad3f
Line 8: Line 8:
<item name="dagger">
<item name="dagger">
<type class="sword" subclass="dagger"/>
<type class="sword" subclass="dagger"/>
<implementation class-name="games.stendhal.server.entity.item.Item"/>
<attributes>
<attributes>
<atk value="8"/>
<atk value="8"/>
Line 38: Line 39:
For Stackable items like food, money, drinks, arrows, we can use:
For Stackable items like food, money, drinks, arrows, we can use:
* quantity
* 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
And for foods, drinks and potions we have
* amount
* amount
* regen
* regen
* frequency
* frecuency


Now the ''level'' and ''experience'' tags.
Now the ''level'' and ''experience'' tags.