Results 1 to 11 of 11

Thread: or Maybe just a minor change

  1. #1
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default or Maybe just a minor change

    I used the following to pick up a full helm off the ground for my Animation Room bot.
    Simba Code:
    If(ChooseOption('full helm'))
    Now when I run the bot after right clicking the item it just sits their unable to find the text. Not sure if it is because it is a different color now or something but I know for sure it was working about a week ago.
    Mostly Inactive, School

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Because if u are experiencing slight lag, the option is not going to appear right after u right click, hence it will not choose the option (since the option does not exist when it is called).

    Always use WaitOption('helm',1500);

  3. #3
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Because if u are experiencing slight lag, the option is not going to appear right after u right click, hence it will not choose the option (since the option does not exist when it is called).

    Always use WaitOption('helm',1500);
    I will try that but the window was open the entire time
    (Script loops through it ~5 times before exiting to go get armour from the bank)

    Edit: Still not picking up the text
    Last edited by Based Lord; 06-30-2012 at 07:10 AM.
    Mostly Inactive, School

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Took a look at ur script:
    Simba Code:
    Mouse(x, y, 2, 2, False);
    If(ChooseOption('full helm')) Then
    So basically what its going to do is to right click, then right after u right click, it will search for the option, BUT due to lag, the option window will not appear immediately after u right click, so it will fail to find.

    Even if u loops it multiple times the option is still not going to appear immediately after u right click.

    Try adding a wait before ChooseOption (~1-2sec) will solve the problem too, WaitOption is a better solution though.
    Also maybe shorten ur string, like just 'elm' or 'ull'.

    Add debugs if u still cant figure out the problem

  5. #5
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Took a look at ur script:
    Simba Code:
    Mouse(x, y, 2, 2, False);
    If(ChooseOption('full helm')) Then
    So basically what its going to do is to right click, then right after u right click, it will search for the option, BUT due to lag, the option window will not appear immediately after u right click, so it will fail to find.

    Even if u loops it multiple times the option is still not going to appear immediately after u right click.

    Try adding a wait before ChooseOption (~1-2sec) will solve the problem too, WaitOption is a better solution though.
    Also maybe shorten ur string, like just 'elm' or 'ull'.

    Add debugs if u still cant figure out the problem
    I have a newer version of the script. Currently I have it using the WaitOption you suggested I will pm you the script if you would like to see. I ran my script for 6 hours and now it won't work even once out of the 10 times i've tried? I think something has to have been changed
    Mostly Inactive, School

  6. #6
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe it reads the text wrongly. Try other texts like 'l h', 'ful'.

  7. #7
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    If(WaitOptionMulti(['helm','ull','elm'],500)) Then



    Didn't work with the code above, attaching a picture of what it looks like after I right click.
    Also, I'm going to bed enough scripting for the day
    Mostly Inactive, School

  8. #8
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just bought a mith full helm and tried it. Works for me.

    Simba Code:
    Procedure takeupitem;
    begin
      Mouse(262, 212, 0, 0, mouse_Right);
      if WaitOption('ull', 2000) then
        writeln('Found')
      else
        writeln('Not found');
    end;

  9. #9
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help, I realized that my code was incorrect and illogical for this function. Human Error
    Mostly Inactive, School

  10. #10
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    Just for future reference, anytime you have trouble with choose options, do writeln(getchooseoptions) to debug and it will tell you exactly what options it is detecting

  11. #11
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    Just for future reference, anytime you have trouble with choose options, do writeln(getchooseoptions) to debug and it will tell you exactly what options it is detecting
    Good to know, Thanks
    Mostly Inactive, School

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
  •