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

Add earth, fire, ice in set.

darcioantonio

www.adventurerpg.com.br
Joined
Jul 30, 2013
Messages
165
Solutions
1
Reaction score
4
Location
Brasil
Twitch
darcio_
YouTube
UCEXCOEw_dYchojHNz
TFS 0.4 TheOTX 2.5
Is there a way to add elemental protection to an existing item? I'm creating a rarity system where items should come randomly with a kind of defense. For example, a common item could come with one random option with 3% defense against fire, ice, earth, etc. I know I can achieve this by creating various items, each with a different element via items.xml.
 
Sure, however, I would like to add things like this:
Lua:
<attribute key="absorbpercentphysical" value="8"/>
<attribute key="absorbpercentdeath" value="8"/>
<attribute key="absorbpercentearth" value="8"/>
<attribute key="absorbpercentenergy" value="8"/>
<attribute key="absorbpercentfire" value="8"/>
<attribute key="absorbpercentholy" value="8"/>
<attribute key="absorbpercentice" value="8"/>
<attribute key="absorbpercentall" value="8"/>

"It would be something like this if it were possible.
Lua:
doItemSetAttribute(uid, key, value)
 
Last edited:
Back
Top