function onStepIn(cid, item, pos)
------------
-- Config --
------------
local tilepos = {x = 556, y = 31, z = 7, stackpos = 1} -- The position of the "Voc" Tile.
local acceptpos = {x = 528, y = 156, z = 8, stackpos = 1} -- Accepted position.
local rejectpos = {x = 556, y = 35, z = 7, stackpos = 1} -- Rejected position.
local vocations = {2,3,4,6,7,8} -- Vocations that can pass. In this case I removed Sorcerer/Master Sorcerer like you asked.
function RejectPlayer()
doTeleportThing(cid, rejectpos)
doSendMagicEffect(tilepos, 2)
doPlayerSendCancel(cid, "Sorry, your vocation is not allowed to pass!")
end
------------
-- Script --
------------
if isInArray(vocations, getPlayerVocation(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Go on!")
doTeleportThing(cid, acceptpos)
doSendMagicEffect(tilepos, 6)
else
RejectPlayer()
end
return 1
end