Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Problem with banker

  1. #1
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Problem with banker

    I have got problem with depositing action.

    Script :

    local mana = positive(manaamount - itemcount(mananame)) * manaprice
    local health = positive(healthamount - itemcount(healthname)) * healthprice
    local softs = positive(itemcount('worn soft boots')) * 10000
    local Total = mana + health + softs + gpsfortravel

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

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    npcsay("Balance")
    wait(200,300)
    end
    Bot wont talk with npc, he is just going to next waypoint with full backpacks of gps ;x

  2. #2
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    PHP Code:
    local mana positive((manaamount itemcount(mananame))*(manaprice))
    local health positive((healthamount itemcount(healthname))*(healthprice))
    local softs itemcount("worn soft boots") * 10000
    local Total 
    = (mana health softs)

    say("hi")
    wait(1200,1700)
    npcsay("deposit all")
    wait(300,500)
    npcsay("yes")
    wait(1000,2000)
    if (
    Total 0then
          npcsay
    ("withdraw "..(Total))
          
    wait(300,500)
          
    npcsay("yes")
          
    wait(300,500)
          
    npcsay("balance")
          
    wait(300,500)
    end 

    Try this one.

  3. #3
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Still doesnt working ;X

    There is setup :

    PHP Code:
    -------- Script setup -------- 
    usemount true  --true if you want to use mount (true/false)
    secondfloor true --if you want to hunt in secondfloor (true/false)

    gpsfortravel 5000 --extra gold you want to withdraw for travels

    pvpworld 
    true --for safety with strikes (true/false)

    usesoftboots false --true if you want to use soft boots (true/false)
    refillsofts false   --true if you want to refill soft boots (true/false)

    -------- 
    Backpack setup -------- 

    mainbp "Backpack of Holding"   --your main backpack name
    suppliebp 
    "Green backpack"  --your ammunition backpack name
    lootbp 
    "Yellow backpack"          --your backpack for loot
    goldbp 
    "Fur backpack"          --your backpack for gold coins

    maindpbp 
    "Backpack"      --backpack in depo 
    stackabledpbp 
    "Beach backpack"     --backpack for stackable loot
    nonstackabledpbp 
    "Purple backpack"     --backpack for non-stackable loot

    -------- Supplies setup -------- 

    mananame "mana potion"  --name of your mana potion
    manatobuy 
    350                  --amount of mana potion to buy
    manaprice 
    50                   --price of mana potion

    healthname 
    "great health potion"  --name of your health potion
    healthtobuy 
    40                  --amount of health potion to buy
    healthprice 
    190                   --price of health potion

    manaleave 
    80                   --amount of ammunition to leave resp
    healthleave 
    10                   --amount of mana to leave resp
    capleave 
    100                    --cap to leave resp

    ------------------------------------------------------------------- 

  4. #4
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    PHP Code:
    local mana positive((manatobuy itemcount(mananame))*(manaprice))
    local health positive((healthtobuy itemcount(healthname))*(healthprice))
    local softs itemcount("worn soft boots") * 10000
    local Total 
    = (mana health softs)

    say("hi")
    wait(1200,1700)
    npcsay("deposit all")
    wait(300,500)
    npcsay("yes")
    wait(1000,2000)
    if (
    Total 0then
          npcsay
    ("withdraw "..(Total))
          
    wait(300,500)
          
    npcsay("yes")
          
    wait(300,500)
          
    npcsay("balance")
          
    wait(300,500)
    end 

    If it still doesn't work go to Help > Debug and see if it returns any error there. If it does, please paste the error here.
    Last edited by Balbek; 12-23-2012 at 01:32 PM.

  5. #5
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    There is no error -.- Idk what is going on haha

  6. #6
    iBot User Ragekemi's Avatar
    Join Date
    Sep 2012
    Posts
    300
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    15
    Rep Power
    5
    <-------- NOT HERE
    local mana = positive(manaamount - itemcount(mananame)) * manaprice
    local health = positive(healthamount - itemcount(healthname)) * healthprice
    local softs = positive(itemcount('worn soft boots')) * 10000
    <--------------------NEITHER HERE
    local Total = mana + health + softs + gpsfortravel


    Where the hell is gpsfortravel VALUE ?????????????????????????????????????????????????? ????????????


    nvm just found out on actions setup...

  7. #7
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    There is problem with talking to npc...He is staying and going to next waypoint. Like this acition never exist :x

  8. #8
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    I've just pasted the setup and the action in my script and it works, delete the bank action and create a new one, maybe its gonna help.

  9. #9
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Ok, i've deleted and done action again, its working REP +

  10. #10
    Banned
    Join Date
    Dec 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    f Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    npcsay("Balance")
    wait(200,300)
    end it dont work

Posting Permissions

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