pls dont write it like that
local rewards = {
[1] = 7958,
[2] = 2184,
[3] = 7438,
[4] = 2451
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(52003) == -1 then
local reward = rewards[player:getVocation():getId()]...