Hello, someone help me convert this script to click on the item with the ActionID teleports us into a random positions?
local positions = {
{x = 93, y = 139, z = 7},
{x = 92, y = 139, z = 7},
{x = 94, y = 139, z = 7},
}
function onStepIn(cid, item, position, fromPosition)
local randPos = positions[math.random(1, #positions)]
doTeleportThing(cid, randPos)
doSendMagicEffect(randPos, CONST_ME_TELEPORT)
return true
end