Page 3 of 3 FirstFirst 123
Results 51 to 63 of 63

Thread: FindText

  1. #51
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Lol, except that some of the SRL errors can be pretty tricky to solve...I've spent hours on ones like this before
    Interested in C# and Electrical Engineering? This might interest you.

  2. #52
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
     var
     wclvl : integer;
    begin
     wclvl := GetSkillLevel('woodcutting');
     writeln(IntToStr(wclvl) + '');
    end.

  3. #53
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    tsk tsk

    You forgot SetupSRL;
    Interested in C# and Electrical Engineering? This might interest you.

  4. #54
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Heh, thanks =)

    How important is SetupSRL;? What does it have? I thought
    SCAR Code:
    {.include SRL/SRL.scar}
    contains SetupSRL;

  5. #55
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    And why is sendtext better than typesend?

  6. #56
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    because that sendtext will send the text humanly, unlike typesend (as far as i know) when just sends it all at once
    Interested in C# and Electrical Engineering? This might interest you.

  7. #57
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Setupsrl; loads the fonts (amongst other things) which are needed for text finding, getting levels, etc. It's good practice to put it in evey RS script. See the end of my FAQ (link in sig) for a way to make it so that setupsrl is automatically in the script.

  8. #58
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank's boreas

  9. #59
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    [offtopic]
    Quote Originally Posted by Boreas View Post
    ...evey...
    !!!!!
    Boreas made a typo!!!

    Administrator's Warning:
    obviously he isn't using the latest firefox with built in spellchecking. Or he just disregarded the squiggly red lines...

    ^^^^^I wont get in trouble for using that will I?^^^^^
    [/offtopic]
    Interested in C# and Electrical Engineering? This might interest you.

  10. #60
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol Smartz =P

  11. #61
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol, I do have firefox with squigglys. First I made the typo 'evety', I saw the red line, deleted the 't', but didn't replace it with an 'r', having seen the red line the first time, my brain assumed I fixed it and moved on hehe.

    Anyways... yea follow freddys tut, I haven't had that problem in a long time thanks to that trick.

  12. #62
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure you test the responder ingame before you use it in any scripts though. The first time I tried mine, It kept finding the same statement for a while so it responded a bunch of times to one thing. I fixed, but I think I made it more complicated than it has to be.

  13. #63
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Ohh true...Maybe put in a variable, like when it responds to phrase #1, it sets the variable lastphrase to 1; while lastphrase is 1, the script won't respond to phrase #1, because it knows it allready has

    I don't know how confusing that was, if you showed me a script, I could show you an example of what I mean
    Interested in C# and Electrical Engineering? This might interest you.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Function FindText??
    By King of the Nites in forum OSR Help
    Replies: 6
    Last Post: 05-25-2008, 11:57 PM
  2. FindText and Error?
    By 3Garrett3 in forum OSR Help
    Replies: 2
    Last Post: 04-29-2007, 10:26 PM

Posting Permissions

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