local cfg = {
pos = {x = 1000, y = 1000, z = 7},
lvl = 100,
msg = "You have been teleported back to the temple!"
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= cfg.lvl then
doTeleportThing(cid, cfg.pos)
doSendMagicEffect(cfg.pos, CONST_ME_TELEPORT)
return true, cfg.msg and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, cfg.msg)
else
return false, doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have the required level.")
end
end