Not working.
function onUse(cid, item, frompos, item2, topos)
local VOCNAME = Knight -- NOME DA VOC
local Vocid = {4,8,10,11,12,13,14,15,16} -- Id da vocacao
if isInArray(Vocid, getPlayerVocation(cid)) == true then --this will check if the player's vocation match one of the vocations listed...