local id =1000 -- the unique id of the item
local place = {x=118, y=123, z=7} --place where tp will teleport player
local group = 6 --required group id here only gods
local level = 1 ---require level
local sex = 0 -- male(1) , female(0)
local cancelmessage = "Sorry,You don't have the required conditions, level(1000),sex,group(gm)." -- here you type the cancl message that will appear to players when they don't have the required condition
function onStepIn(cid, item, position, fromPosition)
if item.uid == 1000 and getPlayerGroupId(cid) >= group and getPlayerLevel(cid) >= level and getPlayerSex(cid) == sex then
doTeleportThing(cid, place)
doSendMagicEffect(getPlayerPosition(cid), 10)
else
doPlayerSendCancel(cid, cancel message)
end
end