Results 1 to 2 of 2

Thread: como criar reffiler

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    como criar reffiler

    Gente, alguém me ensina a criar refiller e check? eu sei criar tudo, até ponho o char pra caçar, mas ai não sei criar o refiler nem o check..
    alguem poderia me ensinar como faz os waypoint de refiler e colocar label?
    obrigado

  2. #2
    Normal User
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    siga os passos abaixo:

    1 - crie um waypoint (de o nome de Refiller) no banco e uma action para sacar o gold pa refiller
    2 - crie um waypoint na loja de potions e uma action pra comprar potions
    3 - crie um waypoint pra checar as potions
    4 - configure o setup

    as actions e configuração do setup estão aqui

    -----Withdraw for Refill-----

    wait(5000)
    local mana = positive(MPtobuy - itemcount(MPname)) * MPprice
    local health = positive(HPtobuy - itemcount(HPname)) * HPprice
    local Total = mana + health

    say("hi")
    wait(1500,3000)
    npcsay("deposit all")
    wait(1500,3000)
    npcsay("yes")
    wait(200,300)

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(1500,3000)
    npcsay("yes")
    wait(1500,3000)
    end

    -----Refiller-----

    sellflasks()
    wait(500,900)
    opentrade()
    wait(500, 1000)
    if itemcount(HPname) < HPtobuy then
    buyitemsupto(HPname, HPtobuy)
    end
    wait(500,1000)
    buyitemsupto(MPname, MPtobuy)
    npcsay('Bye')
    wait(500,1000)

    ----Advance check pots-------

    if (itemcount(HPname) < (HPtobuy))
    or (itemcount(MPname) < (MPtobuy))
    then
    gotolabel ("Refiller")
    end

    -- Potions Setup:
    MPname = "mana potion" -- Name of mana potion.
    MPprice = 50 -- Price of mana potion to buy.
    MPtobuy = 200 -- How many mana potions to buy?

    HPname = "Great health potion" -- Name of mana potion.
    HPprice = 190 -- Price of mana potion to buy.
    HPtobuy = 40 -- How many mana potions to buy?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •