function onStepIn(cid, item, pos)
if item.actionid == 50001 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,1)
newpos = {x=1500, y=1500, z=7}
doPlayerSetMasterPos(cid,newpos)
doPlayerSendTextMessage(cid,22,"You are Sorcerer.")
end
if item.actionid == 50002 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,2)
newpos = {x=1500, y=1500, z=7}
doPlayerSetMasterPos(cid,newpos)
doPlayerSendTextMessage(cid,22,"You are Druid.")
end
if item.actionid == 50003 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,3)
newpos = {x=1500, y=1500, z=7}
doPlayerSetMasterPos(cid,newpos)
doPlayerSendTextMessage(cid,22,"You are Paladin.")
if item.actionid == 50004 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,4)
newpos = {x=1500, y=1500, z=7}
doPlayerSetMasterPos(cid,newpos)
doPlayerSendTextMessage(cid,22,"You are Knight.")
end
else
return false
end
return true
end
end
end
end
function onStepOut(cid, item, pos)
return true
end
end