function onStepIn(cid, item, pos)
local npos = {x=1000, y=1000, z=7} -- Where to be teleported!
local npos name = "Thais"
local effect = getCreaturePosition(cid), CONST_ME_POFF
local msg = "Hello" ".. getCreatureName(cid).." " You have been teleported to " " .. npos name .. " ." -- The message to player who enter the teleport.
local teleport = ITEM_ID -- The id of teleport.
local item = ITEM_ID -- The id you need to enter the teleport.
if item.itemid == teleport and getPlayerItem(cid, item) and if isPlayer(cid) == TRUE then
doTeleportThing(cid, npos, TRUE)
doSendMagicEffect(effect)
doCreatureSay(cid, msg)
end
return TRUE
end