local c = {
topos = {x=555,y=555,z=5}, -- Where the player gets teleported
monsterpos = {x=555,y=555,z=5}, -- Where the monster spawns
monster = "demon" -- Monster name
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return false
end
if getCreatureStorage(cid, 12345) == 1 then
doTeleportThing(cid, fromPosition)
return false
end
doTeleportThing(cid, c.topos)
doCreateMonster(c.monster, c.monsterpos)
doCreatureSetStorage(cid, 12345, 1)
return true
end