• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Action Script to make Yalahar Gate Mashism work

i've seen it's a bunch of mechanisms that player clicks to teleport, and must have a storage value in order to use them
I need to know all details to do it
 
Here is one variant of it:

Code:
local config = {
    teleportPos = {x = 100, y = 100, z = 7},
    storage = 20000
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerStorageValue(cid, config.storage) ~= -1 then
        doSendMagicEffect(fromPosition, CONST_ME_POFF)
        doTeleportThing(cid, config.teleportPos)
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end
    return TRUE
end
 
Back
Top