local config = {
vocation = X, --Id of the vocation to teleport
telepos = {x= , y= , z= }, --Teleport position
actionid = XXXX --Action ID of the tile you step on
}
function onStepIn(cid, item, pos, fromPos)
if (item.actionid == config.actionid) then
if (getPlayerVocation(cid) == config.vocation) then
doTeleportThing(cid, config.telepos)
doPlayerSendTextMessage(cid, 25, 'You have been teleported!')
else
doPlayerSendTextMessage(cid, 25, 'You have to be a Druid to step on this tile.')
end
end
end