• 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 1.2 Create new ring.

Svira

Banned User
Joined
Jan 27, 2008
Messages
361
Solutions
13
Reaction score
106
Hello i create new regeneration ring, but no works...

items.xml
Code:
<item id="2267" article="a" name="uncommon regeneration rune">
        <attribute key="description" value="Slot: Ring (Mana&HP regeneration +1)" />      
        <attribute key="weight" value="80" />
        <attribute key="slotType" value="ring" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="144000" />
        <attribute key="healthGain" value="1" />
        <attribute key="healthTicks" value="6000" />
        <attribute key="manaGain" value="1" />
        <attribute key="manaTicks" value="6000" />
        <attribute key="showduration" value="1" />
        <attribute key="showattributes" value="1" />
    </item>

movements.xml
Code:
    <movevent event="Equip" itemid="2267" slot="ring" function="onEquipItem"/>

no errors but not work...


I would like it to act like a ring of healing but without the transform function
 
Last edited:
movements require both equip and unequip code

ex:
Code:
    <movevent event="Equip" itemid="1111" slot="ring" function="onEquipItem" />
    <movevent event="DeEquip" itemid="1111" slot="ring" function="onDeEquipItem" />

And second thing, your ring will be decaying and disappear even if it's not equipped becouse you dont have stopduration attribute and you are using only one id for it without transform to. If someone drop it from mob, it will disappear after 144000 ms, doesn't matter if he put it into bp, depot or house.
 
Last edited:
Back
Top