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?
then use it in code later :
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: