<movevent event="StepIn" actionid="4005" script="vocation.lua"/>
function onStepIn(cid, item, position, fromPosition)
local location = {x=1079, y=1045, z=7}
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
doTeleportThing(cid, location, TRUE)
doSendMagicEffect(location, 10)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are a Sorcerer. You may proceed.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not a sorcerer.")
doTeleportThing(cid, fromPosition, TRUE)
doSendMagicEffect(fromPosition, 2)
end
end
if getPlayerVocation(cid) == [COLOR=red]1[/COLOR] or getPlayerVocation(cid) == [COLOR=red]5[/COLOR] then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[COLOR=red]You are not a sorcerer.[/COLOR]")
local location = {x=[COLOR=red]1079[/COLOR], y=[COLOR=red]1045[/COLOR], z=[COLOR=red]7[/COLOR]}