Ir para conteúdo

Pokemon x Fire

Campones
  • Total de itens

    17
  • Registro em

  • Última visita

Posts postados por Pokemon x Fire

  1. local config = {
    level = 150,
    }

    function onUse(cid, item, frompos, item2, topos)

    if getPlayerLevel(cid) > config.level then
       doPlayerSendCancel(cid, "Você não tem level suficiente para entra"
       doTeleportThing(cid, topos)
       else
       doPlayerSendTextMessage(cid,22,"Bem Vindo")
    return true
    end
    end

     

    testa ai!

  2. Vai no actions crie um arquivo .lua chamado BauV e cole isso \/

    Spoiler

    local btype = "normal"
    local pokemon = "Charizard" -- NOME DO POKEMON

    function onUse(cid, item, fromPosition, itemEx, toPosition)

    if doPlayerRemoveItem(cid, 2160, 100) then -- ITEM E QUANTIDADE DO ITEM
       doPlayerSendTextMessage(cid, 18, "Parabéns Voce Comprou Seu Pokemon \n By Pokemon X Ice")
    else
       doPlayerSendCancel(cid, "Você precisa de 100 notas azul")
    return true
    end

    if pokemon == "" then return true end
       addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você recebeu seu Pokemon Parabéns!")
    return true
    end

     

    tag:

    Spoiler

    <action actionid="55555" event="script" value="BauV.lua"/>

     

     

    By Pokemon X Fire

  3. Está dando esse error em quase toda scripts.

     

    servido possuir source.

     

    23/09/2017 22:45:06] [Error - Action Interface] 
    [23/09/2017 22:45:06] data/actions/scripts/booststone2.lua:onUse
    [23/09/2017 22:45:06] Description: 
    [23/09/2017 22:45:06] (luaGetItemAttribute) Item not found

     

     

    script

    Spoiler

    function onUse(cid, item, frompos, item2, topos)
     
    local cfg = {
        qnt = 10,       --Quantos boosts o pokémon irá receber.
        max = 3000,      --Boost máximo do seu servidor.
        chance = 40,   --Chance de acertar, em %
        boost_fail = 1000,  --A partir de quantos boosts poderá falhar.
    }
     
    local myball = getPlayerSlotItem(cid, 8).uid
    local summon = getCreatureSummons(cid)[1]
    local boost = getItemAttribute(myball, "boost") or 0
     
        if myball <= 0 then
            return doPlayerSendCancel(cid, "Coloque um pokémon no Main Slot!")
        elseif #getCreatureSummons(cid) <= 0 then
            return doPlayerSendCancel(cid, "Você precisa estar usando seu pokémon para conseguir boostá-lo!")
        elseif boost >= cfg.max then
            return doPlayerSendCancel(cid, "Seu pokémon já se encontra no nível máximo de boost!")
        end
        
        if boost >= cfg.boost_fail then
        local qqq = math.random(1, 100)
            if qqq <= cfg.chance then
                doItemSetAttribute(myball, "boost", (boost + cfg.qnt))
                doSendAnimatedText(getThingPos(summon), "+10 BOOST", 215)
                doPlayerSendTextMessage(cid, 21, "Seu pokémon avançou do nível [+"..tonumber(boost).."] de boost para o nível [+"..tonumber(boost + 10).."].")
                doRemoveItem(item.uid, 1)
            else
                doSendAnimatedText(getThingPos(summon), "Falhou!", 215)
                doPlayerSendTextMessage(cid, 21, "Sua boost stone falhou! [".. qqq .."/100]")
                doRemoveItem(item.uid, 1)
            end
        else
            doItemSetAttribute(myball, "boost", (boost + cfg.qnt))
            doSendAnimatedText(getThingPos(summon), "+10 BOOST", 215)
            doPlayerSendTextMessage(cid, 21, "Seu pokémon avançou do nível [+"..tonumber(boost).."] de boost para o nível [+"..tonumber(boost + 10).."].")
            doRemoveItem(item.uid, 1)
        end
        return true
    end

     

  4. local config = {
    [1] = {remove_id = XXXX, remove_quantidade = xxx}
    [2] = {remove_id = XXXX, remove_quantidade = xxx}
    }

    function onUse(cid, item, frompos, item2, topos)

    for i = 1, #config do
    if doPlayerRemoveItem(cid, config.remove_id, config.remove_quantidade) then
    doPlayerSendTextMessage(cid, 27,"Bem Vindo!")
    else
    return true
    end
    doPlayerSendCancel(cid, "Seu Personagem: "..getCreatureName(cid)..",  Precisar Do Item Para Entra")
    doTeleportThing(cid, topos)
    end
    end
    return true
    end

     

    a script ai

     

    remove_id < -- id do item

     

    remove_quantidade < -- quantidade do item

  5. servido.png

    ///* Projeto Pokémon X Fire *///

     

    ///*ATUALIZAÇÃO 1.0*///

    [1]Novas Raças:Dark, Steel.

    [2]Retirado Crash do Comando !invite.

    [3]Servidor Possuir o Codígo de Fonte.

     

    Base:Bolz

    servido.thumb.png.3fc5306094c2a2daa532f23b8e2c32a5.png

  6. Spoiler

    local config = {
    [1] = {look = 3} -- Look colocar id da sua roupa
    }

     

    function onEquip(cid, item)

     

    for i = 1, #config do

     

    doSetCreatureOutfit(cid, config.look, -1)

     

    doPlayerSendCancel(cid, "Test 1!")

     

    else

     

    doRemoveCondition(cid, CONDITION_OUTFIT)

     

    end

     

    end

     

    return true

     

    end

     

     

    Quiser Poder Usar minha script

  7. Spoiler

    local config = {
    [1] = {roupa = 2160, roupa2 = 2190, tempo = 5}
    }

    function onStatsChange(cid, attacker, type, combat, value) -- Poke X Fire

    for i = 1, #config do

    if isCreature(cid) then

    doSetCreatureOutfit(cid, config.roupa, configtempo * 1000)

    doSetCreatureOutfit(cid, config.roupa2, configtempo * 1000)

    else

    doPlayerSendCancel(cid, "Voce Esta Usando "..config.roupa..", "Voce Esta Usando"..config.roupa2..",!")

    end

    end

    return true

    end
     

    tentar assim

  • Quem Está Navegando   0 membros estão online

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