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

Lua Items with added attributes

archer32

Member
Joined
Feb 3, 2011
Messages
88
Solutions
1
Reaction score
9
TFS 1.4.2 - 10.98
Hey there, this one is probably easy for people... but I am stumped.. I don't know why it doesn't show up..

I just wanted to eventually add items with more healthTicks, healthGain and manaTicks, manaGain.. so they can get faster without ring of healing

XML:
<item id="2467" article="a" name="leather armor">
        <attribute key="weight" value="5000" />
        <attribute key="armor" value="4" />
        <attribute key="slotType" value="body" />
        <attribute key="healthGain" value="1" />
        <attribute key="healthTicks" value="6000" />
        <attribute key="manaGain" value="2" />
        <attribute key="manaTicks" value="6000" />
        <attribute key="showattributes" value="1" />
    </item>

XML:
<movevent event="Equip" itemid="2467" slot="armor" function="onEquipItem" />
    <movevent event="DeEquip" itemid="2467" slot="armor" function="onDeEquipItem" />

Shows this in-game:
11:14 You see a leather armor (Arm:4).
It weighs 50.00 oz.

Any help is appreciated :)

Cheers,
Post automatically merged:

A "fix" is to add the amounts to description, BUT I also want to potentially upgrade these items further using gems, to increase their hpGain and mpGain

I guess I am probably looking into SRC codes now, eh?

If anybody could point me in the right direction, much appreciated.
 
Last edited:
Back
Top