Try use this
like:
function onUse(cid, item, frompos, item2, topos)
local vocationId = getPlayerVocation(cid)
local config = {
[7001]={ -- Uniqueid and StorageValue
[1]={2323,8870,7457}, -- 1 for sorcerer
[2]={2323,8870,7457}, -- 2 for druid
[3]={2491,2477,2476,7457}, -- 3 for...