Results 1 to 5 of 5

Thread: Ajuda com minha action

  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

    Lightbulb Ajuda com minha action

    galera meu setup e esse
    -- Setup:

    -- Backpack Setup:
    MainBP = "Pirate Backpack" --
    PotionsBP = "Yellow Backpack" --
    LootBP = "Demon Backpack" --
    GoldBP = "Brocade Backpack" --
    MainDPBP = "purple Backpack" --
    StackableDPBP = "beach Backpack" --
    LootDPBP = "Backpack" --

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

    -- Hunt:
    Captoback = 120 --


    dai eu uso esse action para tirar dinhero mas ela tira a qntia que etem no setup ela n conta pra compra tipo se eu gastei 140 ela so tem q repor as 150 mana ela tira o dinhero pra compra as 300
    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)


    essa e pra compra mana

    closewindows()
    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()
    while itemcount(MPname) > 0 do
    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)
    moveitems(MPname, MainBP, PotionsBP, 100)
    wait(500,900


    i essa pra compra mana ela nao vende os empty vials alguem pode me fornecer uma que faça isso :S

  2. #2
    Normal User
    Join Date
    Mar 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    say('hi')

    wait(500,900)

    opentrade()

    wait(800,1400)

    sellflasks()

    wait(800,1400)

    buyitemsupto(Mp, MpToBuy,itemcount(Mp))

    wait(500,900)

    buyitemsupto(Hp, HpToBuy,itemcount(Hp))

    wait(500,900)

    npcsay('Bye')

    wait(500,900)

  3. #3
    Normal User
    Join Date
    Mar 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    obs : mude os nick da mp conforme seu setup

  4. #4
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    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)


    essa e pra compra mana

    closewindows()
    wait(500, 1000)
    openitem(MainBP, "back")
    wait(500, 1000)
    resizewindows()
    while itemcount(MPname) > 0 do
    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)
    moveitems(MPname, MainBP, PotionsBP, 100)
    wait(500,900)

    Lembre-se, se usa ' ' ou " ", nuca os 2 simultaneamente.

  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
    gabriel mas nao esta funcionando :S ele ainda vai e tira 46 mil q n e necerario se gasta so 200 manas >S
    ajuda ae pow ele n ta fa\endo certo :S

    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()

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

    depositall()
    wait (500,900)
    say('hi')

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


    ta asim pra tira dinhero do bank mas ele n ta contando :s qnts gasto
    Last edited by titanoiasb; 06-02-2013 at 07:01 PM.

Posting Permissions

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