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

abilities.speed

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
hello guy
we have in 0.4
setField(L, "speed", item->abilities.speed);
setField(L, "speed", item->speed);
What is the difference between them
Which one can I use when I want to add a speed boost for items
 
I'm not 100% sure about item.speed, I believe that is used when loading an item from items.otb .
item.abilities.speed is for speed attribute which is set in items.xml
XML:
<item id="2195" name="boots of haste">
    ...
    <attribute key="speed" value="40" />
    ...
</item>

You should probably use abilities.speed for speed boost like BOH.
 
I'm not 100% sure about item.speed, I believe that is used when loading an item from items.otb .
item.abilities.speed is for speed attribute which is set in items.xml
XML:
<item id="2195" name="boots of haste">
    ...
    <attribute key="speed" value="40" />
    ...
</item>

You should probably use abilities.speed for speed boost like BOH.
if its right why don't add
setField(L, "healthGain", item->healthGain);
with
setField(L, "healthGain", item->abilities.healthGain);
like speed but its happen with speed only
 
if its right why don't add
setField(L, "healthGain", item->healthGain);
with
setField(L, "healthGain", item->abilities.healthGain);
like speed but its happen with speed only
🤔 look at the following lines;

it may not work if only abilities.healthGain is set. Try setting both abilities.regeneration and abilities.healthGain

edit: might need to set abilities.healthTicks aswell
 
Last edited:
Back
Top