Page 1 of 2 12 LastLast
Results 1 to 25 of 27

Thread: ChooseOption!

  1. #1
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default ChooseOption!

    Why will it not work on 2speced? is it a new chooseoption or something? can I still get the old one somehow?

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Can you better explain what you mean?
    What is the text you are trying to click?
    Got a screenshot of it or can you just tell us what it says?

  3. #3
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Can you better explain what you mean?
    What is the text you are trying to click?
    Got a screenshot of it or can you just tell us what it says?
    here is the section of my script

    Code:
    if(FindColorTolerance(x,y,Bank,0,1,516,340,2)) then
    Mouse(x,y,1,1,False);
    Wait(300)
    ChooseOption('quickly');
    and it moves the mouse and right clicks the bank, but it just says script succedfully compiled and stops. it doesnt choose quickly.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Try using ChooseOptionMultiEx
    SCAR Code:
    ChooseOptionMultiEx(['xami'],'player',ClickLeft);

    function ChooseOptionMultiEx(Texts: TStringArray; TextType: String; Action: fnct_ActionOptions): Boolean;
    By: Wizzup?, Nava2, and N1ke!
    Description: Finds Popup menu, then clicks on it.
    Will look for the first string first and so on.
    It will search for the Text Type you input valid arguments are
    'action', 'player': The white text
    'npc': The yellow text
    'object': The cyan text
    'all': Searches for all colors of text.
    Will default to 'all'.

  5. #5
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Try using ChooseOptionMultiEx
    SCAR Code:
    ChooseOptionMultiEx(['xami'],'player',ClickLeft);

    function ChooseOptionMultiEx(Texts: TStringArray; TextType: String; Action: fnct_ActionOptions): Boolean;
    By: Wizzup?, Nava2, and N1ke!
    Description: Finds Popup menu, then clicks on it.
    Will look for the first string first and so on.
    It will search for the Text Type you input valid arguments are
    'action', 'player': The white text
    'npc': The yellow text
    'object': The cyan text
    'all': Searches for all colors of text.
    Will default to 'all'.
    Code:
    if(FindColorTolerance(x,y,Bank,0,1,516,340,2)) then
    Mouse(x,y,1,1,False);
    Wait(300)
    ChooseOptionMultiEx(['quickly'],'bank',ClickLeft);
    I probably did it wrong cuz it didnt click anything. =/
    is that wrong?

  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    bank is wrong. Needs to be one of these:
    action', 'player': The white text
    'npc': The yellow text
    'object': The cyan text
    'all': Searches for all colors of text.
    Depends on color of the text

  7. #7
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol don't confuse people YoHoJo

    Just don't use the whole word quickly and/or use regular multi

    ChooseOption('uick');

    ChooseOptionMulti(['quick', 'uick', 'uic']);

  8. #8
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Lol don't confuse people YoHoJo

    Just don't use the whole word quickly and/or use regular multi

    ChooseOption('uick');

    ChooseOptionMulti(['quick', 'uick', 'uic']);
    I tried all of em. =/ It didn't find any

  9. #9
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Wink

    Quote Originally Posted by YoHoJo View Post
    bank is wrong. Needs to be one of these:


    Depends on color of the text
    Code:
    if(FindColorTolerance(x,y,Bank,0,1,516,340,2)) then
    Mouse(x,y,1,1,False);
    Wait(300)
    ChooseOptionMultiEx(['quickly'],'object',ClickLeft);
    Tried that too. Still didn't work =/

  10. #10
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You're not running SCAR 3.23 latest rev and/or SRL open dev are you? -.-

  11. #11
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    You're not running SCAR 3.23 latest rev and/or SRL open dev are you? -.-
    He's trying to run this on a private server from an older RuneScape revision (probably at least 50 client revisions out-of-date). He'll probably need an older ChooseOption if any are laying around anywhere.
    :-)

  12. #12
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If that's so, then he'll need the old fonts as well...
    Which I doubt he found.

  13. #13
    Join Date
    Apr 2006
    Location
    The Netherlands
    Posts
    106
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If he's on a private server, then why doesn't he make a bitmap of the 'quickly' and use FindBitmap(); That's backwards compatible right?.. I think that would be the only usable option.. PM me if you need help making that bitmap .
    Back to scripting.

  14. #14
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Method View Post
    He's trying to run this on a private server from an older RuneScape revision (probably at least 50 client revisions out-of-date). He'll probably need an older ChooseOption if any are laying around anywhere.
    Yeah it is 2speced. I think you are right. Idk how I could get an older version... :/ I might have one lying around somewhere.

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

    Default

    Quote Originally Posted by ownedlikenoob View Post
    Yeah it is 2speced. I think you are right. Idk how I could get an older version... :/ I might have one lying around somewhere.
    You would have to get the older fonts, not just an older version of the function. I have no idea if anyone keeps them lying around. You're best bet would be to do what Dub said, and make a bitmap. That would save you a lot of hassle.

  16. #16
    Join Date
    Apr 2006
    Location
    The Netherlands
    Posts
    106
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program Crafting2speced;
    {.include srl/srl.scar}

    Const
    Bank = 5863813;
    Login= 5464393;

    var
    x,y,optionbmp : integer;  // Declared optionbmp to use later on.

    // You should follow the tutorial and go to the part where bitmaps are explained
    // here: [url]http://www.villavu.com/forum/showthread.php?t=49089[/url]. Then declare

    procedure AccessBank;

    // Declare your bitmap here and name it optionbmp.
    // This will not compile, but it will look like this:

    optionbmp:= BitmapFromString(15, 12, 'beNpTl9FWJwEd2zGVJ' +
           'MXEq6ebYggX0wRMQWQuVjZBBbhsRBbB6hc8ppHkQUwbSYhuAG8mot' +
           '0=');
    // Try making the bitmap as small as possible to reduce loading time.

    begin                 // with FindBitmap to make it backwards compatible
      if(FindColorTolerance(x,y,Bank,0,1,516,340,2)) then
        Mouse(x,y,1,1,False);
        Wait(300+random(200))
        if FindBitmapTolerance(optionbmp,x,y,10) then   // This will look for your
          Mouse(x,y,0,0,true);                            // bitmap on the rs screen
          wait(400+random(500))
          writeln('Succesfully quickly opened your bank!');
      end else
        writeln('Couldnt find a banker, stopping.)'
    End;


    begin       // IDK what you do in your mainloop, but I'm assuming that
      SetupSRL;   // it does what you want it to do :P.
      Mouse(259, 13,1,1,true)
      wait(300)
      Mouse(676, 535,1,1,true)
      Wait(300)
      Mouse(706, 276,1,1,true)
      AccessBank;
    end.

    Follow the instructions on http://www.villavu.com/forum/showthread.php?t=49089 regarding bitmaps and replace my bitmap code with the one you get dropped in your debug box. Then compile and run. It should work unless you messed something up :P.

    Good luck
    Back to scripting.

  17. #17
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Just make a small dtm of a part of that text .

  18. #18
    Join Date
    Apr 2006
    Location
    The Netherlands
    Posts
    106
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Just make a small dtm of a part of that text .
    Whether you use DTM or bitmap, doesn't really matter. Bitmaps is slightly faster anyway, at least when I quit scripting that was :P. Correct me if I'm wrong .
    Back to scripting.

  19. #19
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Dub View Post
    Whether you use DTM or bitmap, doesn't really matter. Bitmaps is slightly faster anyway, at least when I quit scripting that was :P. Correct me if I'm wrong .
    I think you are wrong since DTMs are lighter in memory than bitmaps .

  20. #20
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Actually bitmaps are faster since a scar release(dunno which).
    As far as I know.

  21. #21
    Join Date
    Apr 2006
    Location
    The Netherlands
    Posts
    106
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sabzi View Post
    Actually bitmaps are faster since a scar release(dunno which).
    As far as I know.
    Muhaha I'm not that rusty after all haha. Anyways, this kid isn't responding. Too bad, I put 2 minutes of my life into that..
    Back to scripting.

  22. #22
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Sabzi View Post
    Actually bitmaps are faster since a scar release(dunno which).
    As far as I know.
    I don't think so you see :

    DTMs are simply x amount of points from a determined point (main point) at specefic locations of specefic colors.

    Example :

    x = main point
    y = subpoints

    Code:
     y
    
     y                                y
                     x  
                                          y
         y
    
                        y
    While DTMs are just that, which is light since its only a few points, DTMs are manymanymany points :


    yyyyyyyyyyyyyyyy
    yyyyyyxxxxyyyyyy
    yyyyxxyyyyxxyyyy
    yyyxxxyyyyxxxyyy
    yyyyxxyyyyxxyyyy
    yyyyyyxxxxyyyyyy
    yyyyyyyyyyyyyyyy

    And all can be of different colors to specificate and locations.

  23. #23
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's not about how big they are.
    And I know how they look like/work but thx for the explanation.
    Also it really depends on how many points(for dtm)/how big bitmap you are using.
    But usually bitmaps are faster if they are well made.
    Someone how is sure please enlighten me!
    Last edited by Sabzi; 12-17-2009 at 08:35 PM.

  24. #24
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    2Speced is a private server .
    Woot woot.

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

    Default

    Bitmaps are no more than 2-4 milliseconds faster than DTM's. I had a script that tested the difference.

    ~Camo
    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.


Page 1 of 2 12 LastLast

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
  •