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

Eleents in weapon

Ymm. One problem because I have upgrade system and weapons have random attack itc. How I can add elements to weapons with charges in script?
 
Function
LUA:
doItemSetAttribute(uid, key, value)


Description:
Sets an item attribute to an item through unique id.


Example:
LUA:
item = doPlayerAddItem(cid, 2376, 1)
doItemSetAttribute(item, "attack", math.random(30, 50))
 
Last edited:
Back
Top