I just made this because i was bored, but its what you wanted... with more features
function onUse(cid, item, frompos, item2, topos)
local t = {
exp = 'single', -- single/random - single amount (eg 1000 experience) random amount (between x and x experience)
stor = 1337 -- Storage to...