• 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!

Weapon with duration

renancs

New Member
Joined
Jul 8, 2008
Messages
252
Reaction score
3
There's any way to make a weapon has a duration like a ring?
i was trying this, but doenst work:

Code:
	<item id="2408" article="a" name="warlord sword" override="yes">
		<attribute key="description" value="Strong powers flow in this magic sword."/>
		<attribute key="weight" value="6400"/>
		<attribute key="defense" value="38"/>
		<attribute key="attack" value="58"/>
		<attribute key="duration" value="600"/>
		<attribute key="transformEquipTo" value="2408"/>
		<attribute key="showduration" value="1"/>
		<attribute key="weaponType" value="sword"/>
		<attribute key="slotType" value="two-handed"/>
	</item>

thx!
 
Jst add to weapon in items.xml
Code:
		<attribute key="duration" value="xx"/>
		<attribute key="DecayTo" value="0"/>
x = time in seconds

and to movements.xml
Code:
		<movevent type="Equip" itemid="yyyy" slot="hand" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="yyyy" slot="hand" event="function" value="onDeEquipItem"/>
y = id of the item

EDIT: It will disappear in backpack too(backpack = deposit, ground, everywhere)
If want to disappear only inUse make charges(write to me if u don't know how)

[Tested on TFS 0.3.6]

rep if I helped :)
 
Last edited:
Yes mates i tryed to make like a RIng, but i cant use 2 IDs, so better make like this guy show!

Thank for the help all of you
ty
=D
 
Back
Top