fredde3436
Member
- Joined
- Jul 6, 2009
- Messages
- 226
- Reaction score
- 7
I was trying to crate a stepin teleport for sorcerers only.
When i walk on the tile it says "only sorcerers may enter"
Whats wrong?
When i walk on the tile it says "only sorcerers may enter"
Whats wrong?
Code:
function onStepIn(cid, item, pos)
local iceshrine = {x=1243, y=998, z=15}
vocation = getPlayerVocation(cid) == 1
if item.actionid == 15111 then
if vocation == 1 then
doTeleportThing(cid,iceshrine)
doSendMagicEffect(getCreaturePosition(cid),10)
else
doPlayerSendTextMessage(cid,19,"Only sorcerers may enter.")
end
end
end