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

Editing base id item attribute in runtime

desalib

New Member
Joined
Jul 4, 2010
Messages
30
Reaction score
0
It is possible to edit during runtime (by this I mean with lua script) the "attributes" of the base id item? ( by this I mean : by exemple changing the attack from ice rapier so all the new dropped one will have this new value (it doesn't matter if already made one changes too))

An equivalent to change temporarely or permanantly changes the values in items.xml

Or is it possible to "add custom attributes" ( that indeed change nothing on the item directly ) that I may get/set later in lua script?

Code:
<item id="2123" article="a" name="ring of the sky">
		<attribute key="weight" value="40" />
		<attribute key="slotType" value="ring" />
                      <attribute key="customattr" value="100" />
</item>

then use it in code later :

Code:
if (getItemAttribute(uid,'customattr') = 100 then
       --some code
end
 
Last edited:
Back
Top