• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to configurate Script

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
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
 
Back
Top