Ir para conteúdo

Kene

Campones
  • Total de itens

    6
  • Registro em

  • Última visita

Histórico de Reputação

  1. Upvote
    Kene deu reputação a Roksas em [Encerrado] Meu vocations.xml, WODBO 8.0   
    Que que tem?
  2. Downvote
    Kene recebeu reputação de Roksas em Pedido de lavanca de teleport   
    isac tenta fazer o seguinte
     
    local config = {
    level = 600,
    storage = 17429,
    entry =
    {
    {x = 247, y = 659, z = 13},
    {x = 247, y = 660, z = 13},
    {x = 247, y = 661, z = 13},
    {x = 247, y = 662, z = 13},
    {x = 247, y = 662, z = 13},
    {x = 247, y = 662, z = 13},
    {x = 247, y = 662, z = 13},
    {x = 247, y = 662, z = 13},
    },
    destination =
    {
    {x = 189, y = 650, z = 13},
    {x = 189, y = 651, z = 13},
    {x = 189, y = 652, z = 13},
    {x = 189, y = 652, z = 13},
    {x = 189, y = 652, z = 13},
    {x = 189, y = 652, z = 13},
    {x = 189, y = 652, z = 13},
    {x = 189, y = 652, z = 13},
    }
    }
     
    function onUse(cid, item, fromPosition, itemEx, toPosition)
     
    local players = {}
    for _, position in ipairs(config.entry) do
    local pid = getTopCreature(position).uid
    if(pid == 0 or not isPlayer(pid) or getPlayerStorageValue(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
    doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
    return true
    end
     
    table.insert(players, pid)
    end
     
    for i, pid in ipairs(players) do
    doSendMagicEffect(config.entry, CONST_ME_POFF)
    doTeleportThing(pid, config.destination, false)
    doSendMagicEffect(config.destination, CONST_ME_ENERGYAREA)
    doSendPlayerTextMessage(pid, 28, "MENSAGEM")
    end
     
    doTransformItem(item.uid, item.itemid + 1)
    return true
    end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...