Ir para conteúdo

eliaszinho

Membro
  • Registro em

  • Última visita

Solutions

  1. eliaszinho's post in (Resolvido)Some Item X Y Ao Usar na Porta was marked as the answer   
    mas deu so Warning ? os iten la da porta funciono ?
    function onUse(cid, item, fromPosition, item2, toPosition)
        local teleport = {x=2366, y=1389, z=7} -- Coordenadas para onde o player irá ser teleportado.
        local item1 = 12149 -- ID do item1 que o player precisa para ser teleportado.
        local item2 = 12150 -- ID do item2 que o player precisa para ser teleportado.
        local storage = 28192
        local level = 250
        
        if getPlayerLevel(cid) < level then return doPlayerSendCancel(cid, "You need level ".. level .." to open this door.") end    
        if getPlayerStorageValue(cid, storage) < 1 then
            if getPlayerItemCount(cid,item1) >= 1 and getPlayerItemCount(cid,item2) >= 1 and getPlayerItemCount(cid,item3) >= 1 then
                doPlayerRemoveItem(cid, item1, 1)
                doPlayerRemoveItem(cid, item2, 1)
                setPlayerStorageValue(cid, storage, 1)
                doTeleportThing(cid, teleport)
            else
                doPlayerSendTextMessage(cid, 23, "Sorry, you need a "..getItemNameById(item3)..", "..getItemNameById(item2).." and "..getItemNameById(item3).." to enter.")
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
            end
        else
            doTeleportThing(cid, teleport)
        end
    return true 
    end
     
    veja esse se nao der ae vc vai ter que esperar os cara do Tk te ajuda
    Deu nao ne ?

Informação Importante

Confirmação de Termo