I have action when player use give a sword with time to decay, but dont work
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local it = player:addItem(2390, 1)
it:setAttribute(ITEM_ATTRIBUTE_DURATION, 60000)
it:setAttribute(ITEM_ATTRIBUTE_DECAYSTATE, true)...