hello someone help me with this script, I want you to ask for level 300 to pass
Lua:
local config = {
[26828] = Position(33876, 31884, 8),
}
local stone = Action()
function stone.onUse(player, item, fromPosition, itemEx, toPosition)
for actionId, destination in pairs(config) do
if item.actionid == actionId then
player:teleportTo(destination)
destination:sendMagicEffect(CONST_ME_TELEPORT)
fromPosition:sendMagicEffect(CONST_ME_TELEPORT)
return true
end
end
end
stone:aid(26828)
stone:register()