--> Adding Items.

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
brand0n2
Peon
Peon
Posts: 2
Joined: 27 May 2008, 19:30

--> Adding Items.

Post by brand0n2 »

I tried to add my own custom hat, in the items.xml it's Id "91"...

But I added this line to Athena's Item DB, when i try to @item 91 1, It seems not to
work at all.

This is the line:
91,Elder_Hat,Elder Hat,5,,,,99,99,99,,,2,,,,,{},{}
blameu
Peon
Peon
Posts: 6
Joined: 05 Apr 2008, 16:34

Re: --> Adding Items.

Post by blameu »

in the item_db.txt

Code: Select all

1203,	RangerHat,		Ranger Hat,		5,	1000,	500,	10,	,	2,	,	0,	10477567,	2,	256,	,	0,	21,	{},					{}
 





in the item.xml for the client

Code: Select all

<item id="21">
        <sprite>head-rangerhat.xml</sprite>
    </item>



    <item id="1203"
        image="armor-head-rangerhat.png"
        name="Ranger hat"
        description="A leather hat traditionally worn by Rangers."
        effect="Defense: +2"
        type="equip-head"
        weight="55"
        defense="2"
        max-per-slot="1">
        <sprite>head-rangerhat.xml</sprite>
    </item>


then you need to make a zip file and place it in the customdata folder in your .tmw dir
if you dont have the customdata folder in you .tmw dir make it

the zip should contain the tmw hierarchy
/graphics/item/item.png
/graphics/sprites/sprite.png
/graphics/sprites/sprite.xml

hope this helps
blame
Post Reply