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

Charges on quest item

darkangel1

New Member
Joined
Oct 31, 2023
Messages
53
Reaction score
4
Hello guys, I need help. I put an item with 1000 charges in the chest, but when I take the item from the chest it has 1 charge. Is it possible to fix this and if so, how?1.png2.png3.png4.png5.png
 
You could do it in Lua by making an action script to give the item when player clicks on a specific chest.
Lua:
local it = player:addItem(itemId)
it:setAttribute(ITEM_ATTRIBUTE_CHARGES, amount)
 
You could do it in Lua by making an action script to give the item when player clicks on a specific chest.
Lua:
local it = player:addItem(itemId)
it:setAttribute(ITEM_ATTRIBUTE_CHARGES, amount)
How can this event be tied to a specific chest? By action id?
 
Back
Top