This will not work, use this:
local RemoveOnUse = 'yes'
local teleport = {x=1028, y=1020, z=7}
local vocation = {9,10,11,12}
local level = 100
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not isInArray(vocation, getPlayerVocation(cid))) then -- vocation id
return...