Jump to content
×
×
  • Create New...
  • 0

pedido Tile teleport storage


Hamachine
 Share

Question

6 answers to this question

Recommended Posts

  • 0

Sabe fazer a tag?

 

local STORAGE = x    --Storage.
local VALUE = x      --Valor da storage acima.
local POS = {x = x, y = y, z = z}   --Para onde será teleportado.
function onStepIn(cid, item, position, fromPosition)
    if not isPlayer(cid) then return true end
    if getPlayerStorageValue(cid, STORAGE) >= VALUE then
        doTeleportThing(cid, POS)
        doPlayerSendTextMessage(cid, 27, "Você foi teleportado.")
        return true
    else
        return doPlayerSendCancel(cid, "Você não possui a storage.") and doTeleportThing(cid, fromPosition)
    end
    return true
end
Link to post
Share on other sites

  • 0

Aproveitando o tópico, queria um script parecido com o acima, porem, se o player estive em nos SQM seria teleportado...

 

Funciona assim, o player entra na anihi.. e tem 2 minutos para matar os monstro, caso nao complete é teleportado para tal position

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share