local SCROLLS = { -- ID of Scroll, Number of Premium Days
[X] = Y
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local scroll = SCROLLS[item:getId()]
if not scroll then
return true
end
player:addPremiumDays(scroll)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, scroll .. ' premium days have been added to your account. Please re-log to take effect!')
item:remove()
return true
end