local destination = {x=100, y=100, z=7}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 5461 then
doSendMagicEffect(position, CONST_ME_POFF)
doTeleportThing(cid, destination)
doSendMagicEffect(destination, CONST_ME_TELEPORT)
else
doTeleportThing(cid, fromPosition, true)
doCreatureSay(cid, "You need to wear a Helmet of the Deep!", TALKTYPE_ORANGE_1)
end
end
end