--> Adding Items.

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
brand0n2
Peon
Peon
Posts: 2
Joined: Tue May 27, 2008 8:30 pm

--> Adding Items.

Post by brand0n2 » Thu May 29, 2008 9:14 am

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: Sat Apr 05, 2008 5:34 pm

Re: --> Adding Items.

Post by blameu » Thu May 29, 2008 11:56 pm

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