Results 1 to 8 of 8

Thread: Problem with bank

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Problem with bank

    Hello.
    I have problem with withdraw money to supplies. Character should buy 1200 arrows. I have 348 in backpack now. I have all what I should have only not arrows.Bot withdraw only 2000 now. Script looks like :

    local mana = positive(MpToBuy - itemcount('strong mana potion')) * 80
    local gsp = positive(GspToBuy - itemcount('great spirit potion'))*190
    local ammo = positive(AmmoToBuy - item_count(AmmoID))*AmmoPrice
    local Total = mana + ammo + 2000 + gsp

    wait(1000,1500)
    say('hi')
    wait(400,500)
    npcsay("Deposit all")
    wait(300,400)
    npcsay("yes")
    wait(200,400)

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(400,500)
    npcsay("balance")
    end
    if AmmoName ~= "assassin star" then
    npcsay("withdraw "..ammo)
    wait(200,300)
    npcsay("yes")
    wait(400,500)
    npcsay("balance")
    end

  2. #2
    Normal User
    Join Date
    Aug 2012
    Location
    cali!
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    do you need a ammo price?
    i can copy you one that works but idk bout stars.
    Thanks Dogixeh for the help you gave me.

    check out my project for some cool screens.
    http://www.tibiaibot.com/forum/showt...673#post124673

    Need to world trade some cash??. try:
    http://www.tibiaibot.com/forum/showt...CK-IT-100-SAFE

    or extra services?:
    http://www.tibiaibot.com/forum/showt...rz+world+trade

  3. #3
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    local mana = positive(MpToBuy - itemcount('strong mana potion')) * 80
    local gsp = positive(GspToBuy - itemcount('great spirit potion'))*190
    local ammo = positive(AmmoToBuy - itemcount(AmmoID))*AmmoPrice
    local Total = mana + ammo + 2000 + gsp
     
    say('hi')
    wait(400,500)
    npcsay("Deposit all")
    wait(300,400)
    npcsay("yes")
    wait(200,400)
     
    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(400,500)
    npcsay("balance")
    wait(400,500)
    end

  4. #4
    Normal User
    Join Date
    Sep 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by Eldar View Post
    Lua Code:
    local mana = positive(MpToBuy - itemcount('strong mana potion')) * 80
    local gsp = positive(GspToBuy - itemcount('great spirit potion'))*190
    local ammo = positive(AmmoToBuy - itemcount(AmmoID))*AmmoPrice
    local Total = mana + ammo + 2000 + gsp
     
    say('hi')
    wait(400,500)
    npcsay("Deposit all")
    wait(300,400)
    npcsay("yes")
    wait(200,400)
     
    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(400,500)
    npcsay("balance")
    wait(400,500)
    end
    I tried with this and all time withdraw 2000 only :/

  5. #5
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Try:
    Lua Code:
    local ManaCost = positive(MpToBuy - itemcount('strong mana potion')) * 80
    local SpiritCost = positive(GspToBuy - itemcount('great spirit potion'))*190
    local AmmoCost = positive(AmmoToBuy - itemcount(AmmoID))*AmmoPrice
    local Total = ManaCost + SpiritCost + AmmoCost + 2000
     
    say('hi')
    wait(400,500)
    npcsay("Deposit all")
    wait(300,400)
    npcsay("yes")
    wait(200,400)
     
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(400,500)
    npcsay("balance")
    wait(400,500)


    also check if you have MpToBuy / GspToBuy and AmmoToBuy in setup.
    Last edited by RafiXWPT; 01-05-2014 at 07:06 PM.

  6. #6
    Normal User
    Join Date
    Sep 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Still the same :/

  7. #7
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Post here your setup.

  8. #8
    Normal User
    Join Date
    Sep 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    SoftBootsRefiller = true -- (true/false)
    PvP_Server = true -- (true/false)
    Mount = true -- (true/false)
    SreenshotOnAdvance = true -- (true/false)
    NormalBoots = 'prismatic boots' -- Name of yours normal boots

    -- Extra Settings:
    East = true -- (true/false) if False then you'll go hunting west side

    -- East Spawns:
    Floor1 = true -- (true/false)
    Floor2 = true -- (true/false)

    -- West Spawn:
    ExtraFloor2 = false -- (true/false)

    Lure = false -- Main Floors Only.
    AntyRule = true -- (true/false)
    MobsToAntyRule = 3 -- Custom
    Gate = true -- (true/false)
    Remover = true -- (true/false) //If true then set rusty remover on hotkey (use with crosshair)
    RemoversToTake = 50 -- Custom
    TakeStarsDP = false -- (true/false)
    PlayerAlert = false

    StrongCon = true -- (true/false)


    FastLooting = true -- (true/false)
    CapToDropGold = 200 -- Custom
    Haste = false -- Keep Haste At Refill
    HasteResp = false -- Keep Haste At Spawn
    HasteOnlyMonster = false -- Use Haste Only When Target.id ~= 0

    -- Customize your Backpacks Settings:

    MainBP = "camouflage Backpack" -- Backpack that you use as the main
    LootBP = "blue Backpack" -- Backpack with items (rares, stackable)
    GoldBP = "golden Backpack" -- Backapck with gold
    SuppBP = "zaoan chess box" -- Backpack with supplies

    -- Customize Depot Backpack Settings:

    MainDpBp = "green Backpack" -- Main depot backpack
    StackItems = "Grey Backpack" -- Backpacks with stack items
    LootRares = "purple Backpack" -- Backpack with rares
    ExtraItemBP = "backpack" -- Backpack with gear wheels, rusty removers, assassin stars etc.

    -- Customize your Supplies Settings:

    -- Potions
    MpToBuy = 700 -- Amount of wanted Mana Potions
    GspToBuy = 100 -- Great Spirit Potions to Buy
    AmmoName = "crystalline arrow" -- Name of Ammo
    AmmoToBuy = 1200 -- Ammoun to Buy

    MpToLeave = 100 -- Amount of Mana Potions to Leave
    AmmoToLeave = 100 -- Amount of Ammo to Leave
    GspToLeave = 10 -- Great Spirit Potion to Leave.
    StaminaCheck = 845 -- Stamina to leave.

    ----------------------------------------------------------
    ---- Do not edit anything below.-----
    AmmoID = itemid(AmmoName)
    AmmoPrice = itemcost(AmmoName)
    UseSuppBP = true

    Count = function()
    Counting = Counting + 1
    end
    Count2 = function()
    Counting = 0
    end

    function item_count(ITEM_ID)
    local ITEM_ID = ITEM_ID
    local gowno = itemcount(ITEM_ID)

    if weapon == ITEM_ID then
    gowno = weaponamount + gowno
    elseif ammo == ITEM_ID then
    gowno = ammoamount + gowno
    end
    return gowno

    end

Posting Permissions

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