Results 1 to 5 of 5

Thread: is there a better way to check for gold left in inventory?

  1. #1
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default is there a better way to check for gold left in inventory?

    Hey, i been using this code in my script for sometime and although it usually works, sometimes for whatever reason the amount received is 0 and then the script closes.

    is there a better way to detect the amount of gold left in the inventory?

    Simba Code:
    if (GetAmountBox(InvBox(1)) < 15000) then
      begin;
      writeln('Less than 15k left ending script');
      logout();
      writeln('Logged Out.');
      end;

    please help if possible!

    seany

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    If you're returning zero, mouse over the slot and check the mouseovertext as a failsafe?

    Use a DTM, a BMP? Coin stacks change visually depending on how many geepees you have
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    If you're returning zero, mouse over the slot and check the mouseovertext as a failsafe?

    Use a DTM, a BMP? Coin stacks change visually depending on how many geepees you have
    After the stack is 10k it doesn't change on osrs afaik
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Harrier View Post
    After the stack is 10k it doesn't change on osrs afaik
    true dat, but that'd only be 5k less than op's current condition
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  5. #5
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Harrier View Post
    After the stack is 10k it doesn't change on osrs afaik
    ah that could help because i never want the cash to drop below 10-15k anyway so i could use the cash dtm or bmp not sure how to get it to work with inv items though.

    seany

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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