• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Item Attributes

Rafael Hamdan

OT Developer
Joined
Dec 12, 2007
Messages
98
Reaction score
1
Location
Brasil - Minas Gerais
How do I change my items' attributes in TAGS since there isn't that command named /attr?

I need to make some rings with extra duration and some weapons with extra attack, could someone help me?

Thanks,
Rafael Hamdan;
 
It depends what weapons you wonna change.
if you want to change attributes of classic weapons(melee/distanceweapons)
I give you an example of what you can change from item.xml
Code:
	<item id="7389" article="a" name="[COLOR="Red"]heroic axe[/COLOR]">
		<attribute key="weight" value="[COLOR="Red"]6100[/COLOR]"/>
		<attribute key="defense" value="[COLOR="Red"]24[/COLOR]"/>
		<attribute key="attack" value="[COLOR="Red"]44[/COLOR]"/>
		<attribute key="weaponType" value="axe"/>
		<attribute key="extradef" value="[COLOR="Red"]1[/COLOR]"/>
	</item>
if you change an armor, you can also change its defence and it`s name.

If you want to change the dmg of a wand/rod, you have to change it from weapons.xml file
If you want an example, look at one of my custom wands:
Code:
	<wand id="7735" level="[COLOR="Red"]3000[/COLOR]" mana="[COLOR="Red"]200[/COLOR]" min="[COLOR="DarkGreen"]1000[/COLOR]" max="[COLOR="DarkGreen"]15000[/COLOR]" type="energy" function="default"> <!-- Tear Starr-->
		<vocation name="Druid"/>
		<vocation name="Sorcerer"/>
	</wand>

if you want to change the name of a wand/rod you shall change it from items.xml file to. Here i come with how it looks that custom wand on items.xml file
Code:
	<item id="7735" article="the" name="[COLOR="Red"]star tear[/COLOR]">
		<attribute key="description" value="This holy wand radiates huge ammount of light."/>
		<attribute key="weaponType" value="[COLOR="Red"]wand[/COLOR]"/>
		<attribute key="shootType" value="[COLOR="Red"]energy"[/COLOR]/>
		<attribute key="range" value="8"/>
	</item>
 
i`ve forgot i think: DO NOT SAVE THE FILE AFTER YOU MODIFIED THEM WHILE SERVER IS RUNNING!!! Make sure that you have closed server aplication with CTRL+ALT+DEL! If you try to change an item while server is running it all yours items can crash, also if you by mistake delete a tag or a space between 2 words from xml file, your server house and depot system can crash.
So be a bit carefull when you try it. guarantee that it works on a TFS server.
 
Back
Top