• 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!

Solved Oramond slime slides(teleports) not working

monkeyy

Member
Joined
Aug 20, 2011
Messages
153
Reaction score
9
Hello guys!

Well as the title states, the teleports in Oramond are not working. I can replace all the slime slides with normal teleports, but i would like to know to fix this problem.

Hope someone can help me out :)

EDIT: A lot of my teleports are not working, someone knows why this is ?
 
Last edited:
Never heard of any server distributions known as "Oramond".
And what is "slime slides"? Is it an item? What is the item id?
And where is the code? If its a teleport and you walk into it, its most likely a movement onStepIn, if its something you click on, its most likely an action script.
 
It took me an hour to figure it out :p
its a Stepin, I just had to put this in the movements.xml:
XML:
<!--- Oramond Portals -->
    <movevent event="StepIn" fromuid="50500" touid="50501" script="others/oramondEntrance.lua" />
    <movevent event="StepIn" fromuid="50510" touid="50515" script="others/oramondTeleports.lua" />
    <movevent event="StepIn" fromuid="50624" touid="50625" script="others/oramondTeleports.lua" />

Its basic stuff, but im a beginner when its comes to codes ^^
Thanks for your reply Znote!
 
Last edited by a moderator:
Post the Lua scripts:
others/oramondEntrance.lua
others/oramondTeleports.lua

Inside Lua code tags so we can read it.

Beside knowing that there are 2 Lua scripts to handle this oramond thingy, we also see there are uniqueids in use. These probably has to be placed on the relevant tiles or items on the map file using remere's map editor.
You might want to verify in RME that there are no duplicate unique ids, and that the two entrance tiles has unique id 50500 or 50501. And that the teleports has unique id somewhere between 50510 -> 50515 or 50624 -> 50625.
 
Last edited:
Sorry I didnt know how to do that :p got it now!

This is the Oramondentrance.lua
Lua:
local portals = {
    [50500] = {position = Position(33540, 32013, 6), message = 'Slrrp!'}, --entrance
    [50501] = {position = Position(33491, 31984, 7), message = 'Slrrp!'}, --exit
}

function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if not player then
        return true
    end

    local portal = portals[item.uid]
    if portal then
        player:teleportTo(portal.position)
        item:getPosition():sendMagicEffect(CONST_ME_GREEN_RINGS)
        player:say(portal.message, TALKTYPE_MONSTER_SAY)
        player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    end
    return true
end

And this is the oramondteleports.lua :

Lua:
local portals = {
    [50510] = {position = Position(33458, 31714, 9), message = 'Slrrp!', premium = false}, --entrance
    [50511] = {position = Position(33669, 31885, 5), message = 'Slrrp!', premium = false}, --exit {x = 33669, y = 31885, z = 5}
  
    [50512] = {position = Position(31256, 32607, 9), message = 'Slrrp!', premium = false}, -- entrada pros Minos  OK
    [50513] = {position = Position(31063, 32608, 9), message = 'Slrrp!', premium = false}, -- entrada pros Golens OK
  
    [50514] = {position = Position(33666, 31885, 5), message = 'Slrrp!', premium = false}, -- saida dos Minos OK
    [50515] = {position = Position(33666, 31885, 5), message = 'Slrrp!', premium = false}, -- saida dos Golens OK
  
    [50624] = {position = Position(33662, 31937, 11), message = 'Slrrp!', premium = false}, -- saida dos Minos OK
    [50625] = {position = Position(33732, 31750, 15), message = 'Slrrp!', premium = false}, -- saida dos Golens OK
}

function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if not player then
        return true
    end

    local portal = portals[item.uid]
    if portal then
        if not player:isPremium() and portal.premium then
            player:teleportTo(fromPosition)
            player:sendCancelMessage("You need a premium account to access this area.")
            fromPosition:sendMagicEffect(CONST_ME_POFF)
            return true
        end
        player:teleportTo(portal.position)
        item:getPosition():sendMagicEffect(CONST_ME_GREEN_RINGS)
        player:say(portal.message, TALKTYPE_MONSTER_SAY)
        player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    end
    return true
end
 
Open up the map with RME map editor, check out these positions, and make sure they have correct unique id:
Code:
[UNIQUE ID] = Position
[50510] = Position(33458, 31714, 9)
[50511] = Position(33669, 31885, 5)
[50512] = Position(31256, 32607, 9)
[50513] = Position(31063, 32608, 9)
[50514] = Position(33666, 31885, 5)
[50515] = Position(33666, 31885, 5)
[50624] = Position(33662, 31937, 11)
[50625] = Position(33732, 31750, 15)
[50500] = Position(33540, 32013, 6)
[50501] = Position(33491, 31984, 7)
 
Back
Top