Signup Now
Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: new depots

  1. #21
    Free User
    Join Date
    Nov 2015
    Posts
    4
    Reputation
    10
    Rep Power
    0
    bps works but:
    "error in Action script wptid:10:
    [" if (gold() ~= TOTAL) then"]:Action: 10:24 attempt to call global 'gold' (a string value)"

    and wptid:10
    while (windowcount(SuppBP["name"]) == 0) do
    closewindows()
    waitping()
    openitem(MainBP["name"], 'back')
    waitping()
    resizewindows()
    waitping()
    openitem(SuppBP["name"], MainBP["name"], true)
    waitping()
    resizewindows()
    waitping()
    end


    local CASH = {
    AMMO = positive(getuseroption("MpToBuy") - itemcount("great mana potion")) * 120,
    MANA = positive(getuseroption("SdToBuy") - itemcount("sudden death rune")) * 118,
    SOFTS = getuseroption("SoftBootsRefiller") and itemcount("worn soft boots")*10000 or 0,
    TRAVEL = 5000
    }

    local TOTAL = CASH.AMMO + CASH.MANA + CASH.SOFTS + CASH.TRAVEL

    if (gold() ~= TOTAL) then
    reachcreature("Murim")
    wait(1000,1200)
    npctalk("hi", "deposit all", "yes", "withdraw " .. TOTAL, "yes", "balance")
    end

    wait(1000)

    if (gold() ~= TOTAL) then
    gotolabel($wptid-1)
    end

  2. #22
    Free User
    Join Date
    Mar 2014
    Posts
    17
    Reputation
    10
    Rep Power
    0
    Thank you so much, Ozzix

  3. #23
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    Quote Originally Posted by Nastek View Post
    bps works but:
    "error in Action script wptid:10:
    [" if (gold() ~= TOTAL) then"]:Action: 10:24 attempt to call global 'gold' (a string value)"

    and wptid:10
    while (windowcount(SuppBP["name"]) == 0) do
    closewindows()
    waitping()
    openitem(MainBP["name"], 'back')
    waitping()
    resizewindows()
    waitping()
    openitem(SuppBP["name"], MainBP["name"], true)
    waitping()
    resizewindows()
    waitping()
    end


    local CASH = {
    AMMO = positive(getuseroption("MpToBuy") - itemcount("great mana potion")) * 120,
    MANA = positive(getuseroption("SdToBuy") - itemcount("sudden death rune")) * 118,
    SOFTS = getuseroption("SoftBootsRefiller") and itemcount("worn soft boots")*10000 or 0,
    TRAVEL = 5000
    }

    local TOTAL = CASH.AMMO + CASH.MANA + CASH.SOFTS + CASH.TRAVEL

    if (gold() ~= TOTAL) then
    reachcreature("Murim")
    wait(1000,1200)
    npctalk("hi", "deposit all", "yes", "withdraw " .. TOTAL, "yes", "balance")
    end

    wait(1000)

    if (gold() ~= TOTAL) then
    gotolabel($wptid-1)
    end
    you have overwritten gold() somewhere in your script, (you seem to have a line saying gold = 'gold' somewhere) find the line where you overwrite it, remove that line, and then refreshh the libs (ctrl + r)

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  4. #24
    Free User
    Join Date
    Nov 2015
    Posts
    4
    Reputation
    10
    Rep Power
    0
    hmmm i didnt see gold = 'gold' in this scrpit ;c

  5. #25
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    Quote Originally Posted by Nastek View Post
    hmmm i didnt see gold = 'gold' in this scrpit ;c
    can be any script you're running, you have at some point over written gold with a string.

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

 

 

Posting Permissions

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