HowToAddItemsStendhal: Difference between revisions
Content deleted Content added
imported>Kymara m Move extendors to extenders |
imported>Ufizavipupu No edit summary |
||
Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ezemitekywe.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
----
=[http://ezemitekywe.co.cc CLICK HERE]=
----
</div>
{{Navigation for Stendhal Top}}
{{Navigation for Stendhal Extenders}}
Line 7 ⟶ 15:
The file contains all the description of the items in game.
Lets start with how to do weapons, for example in swords.xml:
It is important to understand how it works.
Line 40 ⟶ 48:
The implementation tag should be copied from above, unless the item is stackable, in which case use:
Inside the ''attributes'' tag you can specify the attributes the weapon has:
Line 74 ⟶ 82:
For scrolls, most of which are teleport scrolls, follow the examples in scrolls.xml for what implementation to use. The attribute INFOSTRING for marked scrolls is the destination of the scroll, e.g.
For summon scrolls the INFOSTRING is the creature name, but the implementation
takes care of this, so you do not set it.
Line 101 ⟶ 109:
= Add GFX=
Now place the 32x32 sprite in the folder '''data/sprites/items/
See also [[StendhalRefactoringGraphics#Items| How to know graphics specifications for items]]
Line 110 ⟶ 118:
Usually you need to register your item class unless it really does nothing. If you're adding an item which is like what we already have (i.e. just a new shield) it's done for you, the shield class is registered. Add your item to the rest in ''src/games/stendhal/client/entity/EntityMap.java''
register(
register(
register(
register(
register(
register(
| |||