Results 1 to 4 of 4

Thread: Cash withdrawing action help

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5

    Cash withdrawing action help

    this cash withdrawer isnt so smart, could someone please post this action and fix it so it withdraw all the cash needed with these variables at once instead of several withdraws. thanks


    wait(700,1450)

    if not islocation() then gotolabel("GotoBank") else

    closewindows()
    closewindows()
    closewindows()
    closewindows()
    while windowcount(supplyBp)+windowcount(mainBp) < 2 do
    closewindows()
    wait(2000,3000)
    openitem(mainBp,"back",true)
    wait(700,1450)
    openitem(supplyBp,mainBp,true)
    wait(700,1450)
    resizewindows()
    wait(700,1450)
    end

    npcsay("hi")
    wait(1300,1450)
    npcsay("deposit all")
    wait(300,450)
    npcsay("yes")
    wait(300,450)

    if ((maxMp-itemcount(nameMp))*priceMp) > 0 then
    npcsay("withdraw "..((maxMp-itemcount(nameMp))*priceMp))
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end

    if ((maxRune-itemcount(nameRune))*priceRune) > 0 then
    npcsay("withdraw "..((maxRune-itemcount(nameRune))*priceRune))
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end

    if ((maxRune2-itemcount(nameRune2))*priceRune2) > 0 then
    npcsay("withdraw "..((maxRune2-itemcount(nameRune2))*priceRune2))
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end

    if itemcount("Worn Soft Boots") > 0 and useSoftboots then
    npcsay("withdraw "..(10000*itemcount("Worn Soft Boots")))
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end



    if extraGp > 0 then
    npcsay("withdraw "..extraGp)
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end

    npcsay("balance")
    wait(1300,1650)
    npcsay("bye")
    wait(200,450)
    updateworld()

    end
    Follow my project! - curry's Project [Sponsored by Eli Scripts]

    MASSIVE CHARACTER SELLOUT - CHECK THIS OUT

  2. #2
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    local MP = positive(((maxMp-itemcount(nameMp))*priceMp))
    local RUNE = positive(((maxRune-itemcount(nameRune))*priceRune))
    local RUNE2 = positive(((maxRune2-itemcount(nameRune2))*priceRune2))
    local SOFT = positive((10000*itemcount("Worn Soft Boots")))
    local extraGp = 2000 --[this variable must be on Setup, so if im sure, just delete it]

    local TOTAL = MP+RUNE+RUNE2+extraGp

    if itemcount("Worn Soft Boots") > 0 and useSoftboots then
    TOTAL = TOTAL+SOFT
    end

    wait(700,1450)
    if not islocation() then gotolabel("GotoBank") else
    closewindows()
    while windowcount(supplyBp)+windowcount(mainBp) < 2 do
    closewindows()
    wait(2000,3000)
    openitem(mainBp,"back",true)
    wait(700,1450)
    openitem(supplyBp,mainBp,true)
    wait(700,1450)
    resizewindows()
    wait(700,1450)
    end

    npcsay("hi")
    wait(1300,1450)
    npcsay("deposit all")
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    npcsay("withdraw "..TOTAL)
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    npcsay("balance")
    wait(1300,1650)
    npcsay("bye")
    wait(200,450)
    updateworld()

    end
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  3. #3
    Normal User Dr. Olav's Avatar
    Join Date
    Mar 2013
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    Quote Originally Posted by Dehan View Post
    local MP = positive(((maxMp-itemcount(nameMp))*priceMp))
    local RUNE = positive(((maxRune-itemcount(nameRune))*priceRune))
    local RUNE2 = positive(((maxRune2-itemcount(nameRune2))*priceRune2))
    local SOFT = positive((10000*itemcount("Worn Soft Boots")))
    local extraGp = 2000 --[this variable must be on Setup, so if im sure, just delete it]

    local TOTAL = MP+RUNE+RUNE2+extraGp

    if itemcount("Worn Soft Boots") > 0 and useSoftboots then
    TOTAL = TOTAL+SOFT
    end

    wait(700,1450)
    if not islocation() then gotolabel("GotoBank") else
    closewindows()
    while windowcount(supplyBp)+windowcount(mainBp) < 2 do
    closewindows()
    wait(2000,3000)
    openitem(mainBp,"back",true)
    wait(700,1450)
    openitem(supplyBp,mainBp,true)
    wait(700,1450)
    resizewindows()
    wait(700,1450)
    end

    npcsay("hi")
    wait(1300,1450)
    npcsay("deposit all")
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    npcsay("withdraw "..TOTAL)
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    npcsay("balance")
    wait(1300,1650)
    npcsay("bye")
    wait(200,450)
    updateworld()

    end

    That one will pretty much handle it, ye.
    _______________________________

    And what seems to be the problem here?

  4. #4
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5
    thanks alot bro! +1
    Follow my project! - curry's Project [Sponsored by Eli Scripts]

    MASSIVE CHARACTER SELLOUT - CHECK THIS OUT

Posting Permissions

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