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

[tfs 0.3.6][Item disappear after 5 minutes after equipt]

SonGoqu

New Member
Joined
Nov 27, 2008
Messages
64
Reaction score
0
Hello, I need a script for item "12285" that after equip it, it disappear after 5 minutes.
 
Try to transform this item in another item (but the same sprite), like the rings...

Unequiped:
<item id="2168" article="a" name="life ring">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="transformEquipTo" value="2205" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="1" />
</item>


Equiped:
<item id="2205" article="a" name="life ring">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="decayTo" value="0" />
<attribute key="transformDeEquipTo" value="2168" />
<attribute key="duration" value="1200" />
<attribute key="healthGain" value="1" />
<attribute key="healthTicks" value="3000" />
<attribute key="manaGain" value="4" />
<attribute key="manaTicks" value="3000" />
<attribute key="showduration" value="1" />
</item>
 
<attribute key="duration" value="1200" />
<attribute key="decayTo" value="0" />

add to your armor or weapon xd

This work perfectly to me, THX!!!

I have an another problem, I need a Slingshot that change on deEquip, but it don't work 100%, the equip function work buy on deEquip the item don't change back. This are the scripts:

items.xml


Lua:
	<item id="5907" article="a" name="slingshot">  <!-- Edit by GM Martin -->
		<attribute key="description" value="The powerfull Paladin Weapon."/>
		<attribute key="attack" value="100"/>
		<attribute key="weight" value="1200"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="smallstone"/>
		<attribute key="range" value="6"/>
		<attribute key="decayTo" value="12428" />
		<attribute key="duration" value="18000" />
		<attribute key="showduration" value="1" />
		<attribute key="transformDeEquipTo" value="12382" />

	</item>


	<item id="12382" article="a" name="slingshot">
		<attribute key="weight" value="1200" />
		<attribute key="transformEquipTo" value="5907" />
		<attribute key="stopduration" value="1" />
		<attribute key="showduration" value="1" />
	</item>


	<item id="12428" article="a" name="worn slingshot">
		<attribute key="description" value="Someone specialised in slingshots might be able to repair this for you." />
		<attribute key="weight" value="10" />
	</item>

movements.xml

Lua:
	<movevent event="Equip" itemid="5907" slot="shield" function="onEquipItem">
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="5907" slot="shield" event="function" value="onDeEquipItem"/>

	<movevent type="Equip" itemid="12382" slot="shield" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="12382" slot="shield" event="function" value="onDeEquipItem"/>

What is wrong here?
 
Back
Top