How to configurate this script in Remere's Map Editor? Help please =(
function onStepIn(cid, item, position, fromPosition)
local config = {
demonHornID = 5954, -- Put the ID of the Demon Horn here
demonHornPosition = {x=574, y=623, z=10, stackpos=2}, -- Where the demon horn should be
teleportPos = {x=577, y=630, z=11} -- Where the player should get teleported
}
if getThingFromPos(config.demonHornPosition).itemid == config.demonHornID then
doTeleportThing(cid, config.teleportPos)
doRemoveItem(getThingFromPos(config.demonHornPosition).uid)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
end
return true
end