Good evening, could someone convert this script to be used in the canary distro
Lua:local storeBox = Action() local REWARD = {8153, 37317, 9586, 19082, 3043, 37110, 3079, 28887, 9145, 28895, 37378} local JEWEL = {37317, 9586, 19082, 3043, 37110, 3079, 28887, 9145, 28895, 37378} function storeBox.onUse(cid, item, fromPosition, itemEx, toPosition) local randomChance = math.random(1, #REWARD) doPlayerAddItem(cid, REWARD[randomChance], 1) local randomLoot = math.random(1,20) if randomLoot == 1 then doPlayerSendTextMessage(cid, 19, "You found an extra item!") local randomChance = math.random(1, #REWARD) doPlayerAddItem(cid, REWARD[randomChance], 1) end local randomJewel = math.random(1,10) if randomJewel == 1 then doPlayerSendTextMessage(cid, 19, "You found a jewel!") local charges = math.random(50, 150) local randomChance = math.random(1, #JEWEL) doPlayerAddItem(cid, JEWEL[randomChance], 1) end doSendMagicEffect(getPlayerPosition(cid), 73) doRemoveItem(item.uid, 1) return true end storeBox:id(9586) storeBox:register()