Results 1 to 6 of 6

Thread: preciso de action pra retira dinhero e compra mana pq essas nao ta dando certo

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

    preciso de action pra retira dinhero e compra mana pq essas nao ta dando certo

    pra deposita ele so compra hp e nao manas
    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()

    local health = positive(HPtobuy - itemcount(HPname)) * HPprice
    local Total = health
    wait(500,1000)

    depositall()

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end

    npcsay("balance")

    e compra pot so compra hp

    closewindows()
    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(PotionsBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    wait(500,900)
    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)

    ajuda ae galera ve se ta certo
    se ele tira dinhero pro hp e pra mana
    e se ele ta comprando mana e hp
    :s pq aki ele so tira pro hp

    tira 31k pra 100 ultimate mas as mana nao :s

  2. #2
    Normal User Healer Dark's Avatar
    Join Date
    Jul 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    poste seu setup tb
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Healer Dark
    ~~~~~~~~~~~~~~~~~~~~~~~~

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    -- Setup:

    -- Backpack Setup:
    MainBP = "Pirate Backpack" --
    PotionsBP = "Yellow Backpack" --
    LootBP = "Demon Backpack" --
    GoldBP = "Brocade Backpack" --
    MainDPBP = "Orange Backpack" --
    StackableDPBP = "Camouflage Backpack" --
    LootDPBP = "Golden Backpack" --

    -- Potions Setup:
    MPname = "mana potion" --
    Mpprice = 50 --
    MPtobuy = 600 --
    Mptoback = 25 --
    HPname = "Ultimate Health Potion" --
    HPprice = 310 --
    HPtobuy = 200 --
    HPtoback = 5 --

    -- Hunt:
    Captoback = 120 --
    tae
    Last edited by titanoiasb; 05-28-2013 at 05:48 PM.

  4. #4
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    PHP Code:
    wait(5001000
    openitem(MainBP'back'
    wait(5001000
    resizewindows() 

    local health positive(HPtobuy itemcount(HPname)) * HPprice 
    local mana 
    positive(MPtobuy itemcount(MPname)) * Mpprice
    local Total 
    health mana
    wait
    (500,1000

    depositall() 

    if 
    Total 0 then 
    npcsay
    ("withdraw "..Total
    wait(200,300
    npcsay("yes"
    wait(200,300
    end 
    Pronto, adicionei a parte de calculo de dinheiro para as manas, estava faltando ^^

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    E pra comprar pots dai akela action ali que eu postei compra manas tb ?

  6. #6
    Normal User
    Join Date
    Aug 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    preciso de um reconect que ele reconect qnd cair e no serv save

Posting Permissions

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