Page 2 of 2 FirstFirst 12
Results 26 to 45 of 45

Thread: ChooseOption bugs (official)

  1. #26
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    function WithdrawItem(Ident: integer; IdentType: string; Amount: integer; UpText: String; Tol: TIntegerArray): boolean;

    Can be used like:

    WithdrawItem(DTMHere, 'dtm', 10, 'potion', [10]); and that lags bad.

    Its rare to get the chooseoption thing so I can't catch it all the time for a screenshot but I'll try.
    I am Ggzz..
    Hackintosher

  2. #27
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    function WithdrawItem(Ident: integer; IdentType: string; Amount: integer; UpText: String; Tol: TIntegerArray): boolean;

    Can be used like:

    WithdrawItem(DTMHere, 'dtm', 10, 'potion', [10]); and that lags bad.

    Its rare to get the chooseoption thing so I can't catch it all the time for a screenshot but I'll try.
    Oh wow, didn't know there was a function like that, but I only looked in bank.simba. You'd think that's where all the banking functions would be.

    So, you're saying using that function it doesn't always find the DTM, but when you use your function, it always works? Can you post the code you're using to test?

  3. #28
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Oh wow, didn't know there was a function like that, but I only looked in bank.simba. You'd think that's where all the banking functions would be.

    So, you're saying using that function it doesn't always find the DTM, but when you use your function, it always works? Can you post the code you're using to test?


    Picture of the bug.. See.. It refuses to climb even when the options are there..

    I'm using ChooseOptionMulti(['adder', 'up Lad', 'limb-up', 'dder', 'limb', 'mb-up']);

    I actually caught it this time.. The thing is, ChooseOption is working 99% of the time.. the other 1% of the time, it gets in an infinite loop where it right clicks, sees the options, n then does nothing.. gets stuck in an infini loops until the menu goes away.. Now for that particular screenie, when it doesn't find the option, it moves the mouse away so that the menu disappears.. then tries again.. and fails for an infinite amount of times until I help it.

    This bug is extremely rare and that's why it took me soo long to catch it doing that in a screenie.

    For the inventory one with the banking and the lag, if I use:

    FindDTM(DTMInteger, X, Y, .............) it'll find the dtm's 100% of the time.. but when I use it in combination with withdrawex, a massive lag happens which might be causing it to fail:

    Simba Code:
    Pouch := DTMFromString('m1gAAAHic42JgYDjIxMBwjAlC70PCIP4RKD4JxJyMDAxcQMwLxSA+GxIGiXEAcWFJPENxeSKDv78tGOcXxzIUlMQxFJUlMGSkhYDFyqqSGbiAdhODGYnECAAAECwT5g==');        


      NOBC:= ItemAmount('inv', 'dtm', Pouch, []);
      while ((NOBC < NOB) or (Tries < 5)) do
      begin
        if (NOBC < NOB) then
          if FindDTM(Pouch, X, Y, MBX1, MBY1, MBX2, MBY2) then
          begin
            MMouse(X, Y, 0, 0);
            if (WaitUptextMulti(['yip pouch', 'unyip', 'Bunyip pouch', 'yip po'], 1200)) then
            begin
              BP:= MSTPointToBankPoint(Point(X, Y));
              WithdrawEx(BP.X, BP.Y, NOB, ['yip pouch', 'unyip', 'Bunyip pouch', 'yip po']);
            end;
          end;
        Inc(Tries);
        T:= 0;
        MarkTime(T);
        while (TimeFromMark(T) < 2000) and (ItemAmount('inv', 'dtm', Pouch, []) < NOB) do
          wait(1);

        NOBC:= ItemAmount('inv', 'dtm', Pouch, []);
        if (NOBC >= NOB) then
          break;
      end;

      Tries:= 0;

    It finds it like 80% of the time and lags extremely hard!! Lags so bad that sometimes I have to restart Simba or my computer.. I get this white outline of smart to the upper left of my screen when it does that.

    So instead I just use my own custom functions for withdrawing.

    EDIT: I finally caught it with the summoning potion..


    That right there is one infinite loop in chooseoptionmulti.. it will not move until i get rid of the menu.. then when the menu is gone, it will right click and drink.. Which it did. It drank after I made menu go away (it right clicked and drank perfectly fine because the option was found :S)
    I am Ggzz..
    Hackintosher

  4. #29
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Getting the same problem.



    ^^

  5. #30
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default ChooseOption Broken again?

    Here This is Mine Working:

    This is my friends not working:

    His Looks Darker and bolder.
    I'm picking up on All.
    Mat



    ^^

  6. #31
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Why make 2 threads?

    Edit: Use Multi?
    Hi

  7. #32
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    I deleted the other one I put it here as It more appropriate here, I tried that :/.



    ^^

  8. #33
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Have you tried using WaitOption?
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  9. #34
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    I had it is a repeat
    Simba Code:
    Repeat
    Wait(50+random(10));
    Until(ChooseOption('All');
    Just ends up logging out.



    ^^

  10. #35
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    That's weird. Can you try WaitOption('All', RandomRange(850, 1250)); please?
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  11. #36
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Nope :/



    ^^

  12. #37
    Join Date
    Feb 2012
    Posts
    386
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Is your friend playing in low graphics? Maybe, if you want to know if it is really ChooseOption that isn't working. Ask your friend to Change his X value for something like 4500 and Change your Chooseoption for the number 4500.

    Simba Code:
    2: ChooseOption('4500');

    If it doesn't work after that, I can't think about a solution.

  13. #38
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    So its moving the mouse away but the menu doesn't disappear? Or does it disappear but clicks again?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  14. #39
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    What happens is that for the first screenshot, it will move the mouse away and the menu disappears but when it tries again, it will never choose the option to climb.. It'll do this an infinite amount of times.

    For the second screenshot, it never moves the mouse away so the menu never disappears.. when I have to disable and re-enable smart.. When that is done, it tries again and chooses the right option. If I don't disable/re-enable smart, it'll stay there for an infinite amount of time with the menu open.
    I am Ggzz..
    Hackintosher

  15. #40
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    @ggzz: For that banking function you posted, try increasing the wait(1) to something like wait(100).

  16. #41
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Same problem for me.

  17. #42
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    I don't understand, it's working for me o.o
    I just had a 6 hour proggy with my Astral Crafter.

  18. #43
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    I don't understand, it's working for me o.o
    I just had a 6 hour proggy with my Astral Crafter.
    Completely broken in Zanaris. Same with Uptext.
    I am Ggzz..
    Hackintosher

  19. #44
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    I'm having an issue when trying to teleport with gloves, it worked once and now it's just failing every time when I use text other than 'ort' as the option. Here's an image of the options:

    All of these fail
    Simba Code:
    ChooseOption('Teleport');
    ChooseOption('eleport');
    ChooseOption('leport');
    ChooseOption('eport');
    ChooseOption('port');

    This works
    Simba Code:
    ChooseOption('ort');

    Last edited by Kyle Undefined; 03-04-2012 at 06:30 AM.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  20. #45
    Join Date
    Feb 2012
    Posts
    386
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    I'm having an issue when trying to teleport with gloves, it worked once and now it's just failing every time when I use text other than 'ort' as the option. Here's an image of the options:

    All of these fail
    Simba Code:
    ChooseOption('Teleport');
    ChooseOption('eleport');
    ChooseOption('leport');
    ChooseOption('eport');
    ChooseOption('port');

    This works
    Simba Code:
    ChooseOption('ort');


    I did had problem with Teleport option too. Mine is
    Simba Code:
    Chooseoption('rt');
    that's the only string that work for teleport

Page 2 of 2 FirstFirst 12

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
  •