Results 1 to 3 of 3

Thread: P07_ChooseOptionMulti and P07_Getuptext not working why?

  1. #1
    Join Date
    Mar 2013
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default P07_ChooseOptionMulti and P07_Getuptext not working why?

    Can someone help me get these 2 to work.

    Simba Code:
    program new;


    {$I SRL-OSR/SRL.Simba}
    {$I P07Include.Simba}

    var
      BalancingRopeColor1, BalancingRopeColor2, BalancingRopeColor3, BalancingRopeColor4 : integer;

    procedure BalancingRope;

    var
      x, y : integer;
      aFound : extended;

    begin
    if  FindColorSpiralTolerance( x, y, BalancingRopeColor1, 397, 106, 455, 257, 5) or
        FindColorSpiralTolerance( x, y, BalancingRopeColor2, 397, 106, 455, 257, 5) or
        FindColorSpiralTolerance( x, y, BalancingRopeColor3, 397, 106, 455, 257, 5) or
        FindColorSpiralTolerance( x, y, BalancingRopeColor3, 397, 106, 455, 257, 5) then
        begin
          Wait(1000);
          P07_GetUpText(['on','balan','cing','ope'],100);
          Wait(1000);
          P07_ChooseOptionMulti('walk');
          Wait(1000);
          writeln('Found Obstacle Net 2');
          Mouse( x, y, 1, 1, True);
        end else
        begin
          Writeln('Balancing Rope NOT found... Attempting to retry...');
          Wait(1000);
          BalancingRope;
        end;
    end;

    begin
      DeclarePlayers;
      SetupSRL;
      LoadColor;
      SetAngle(SRL_ANGLE_HIGH);
      MouseSpeed:= 20;
      MakeCompass('n');
      BalancingRope;
    end;

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    U don't have to use p07include(it is not up to date anymore) , just the osrs include.

    replace following:

    Simba Code:
    P07_GetUpText(['on','balan','cing','ope'],100);

    P07_ChooseOptionMulti('walk');

    //With

    WaitUptextMulti(['on','balan','cing','ope'],600);
    WaitOption('walk', 600);
    Last edited by Sjoe; 05-24-2013 at 06:00 PM.

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    i think for the P07_GetUpText you have to use the full dialog. Try using P07_IsUpTextMultiCuston();

    and you need to right click what ever it is before you can choose an option for your P07_ChooseOption:P

    and yes, making your script OSR will be better. But if your doing this for practice or a free public version nbd

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

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
  •