• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua items give 150k mana and hp when on you possibel?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
hey i wanna know if this attribute gives when you are wearing it or having it in your bp is this possibel so it gives 150k mana and hp?
attribute:
<attribute key="maxManaPointsPercent" value="110"/>
<attribute key="maxHitPointsPercent" value="110"/>
 

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

Item id change with your itemid, and slot change with
"head" if your item is helmet
"ring" if ring
"feet" if boots
"necklace" if amulets
"armor" if armor
"legs" if legs
"shield" if shield

You got it?
 
I think it will add attribute when you equip it. I'm not sure what's gonna happen if you take it in bp. You have to script that.
But in movements.xml you should use:
LUA:
slot="pickupable"
 
I think it will add attribute when you equip it. I'm not sure what's gonna happen if you take it in bp. You have to script that.
But in movements.xml you should use:
LUA:
slot="pickupable"
No, you made the same mistake again! "Pickupable" is belt (ammunition) slot!
 
Back
Top