local actionId = 45001
local reward = {1111, 2, 100} -- {itemid, amountMin, amountMax}
local action = Action()
function action.onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:addItem(reward[1], math.random(reward[2], reward[3]), true)
return true
end
action:aid(actionId)
action:register()