Results 1 to 9 of 9

Thread: Need to know what procedure to use

  1. #1
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need to know what procedure to use

    I need to know what preocedure to use to find the amount of coins something costs....... So the number between the words... costs and coins

    i was told it before i think it was something like...

    SCAR Code:
    Between('costs ',' coins')

    But i used that and it did not work... any help would be appreciated.. Thanks

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

    Default

    SCAR Code:
    Between('costs ', ' coins', GetBlackChatMessage);

    Should work.
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright Thanks Alot

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    hah! i ahve it

    text := GetNumbers(GetTextAtEx(18, 415, 7, SmallChars, False, False, 0, 0, 0, 50, False, tr_allChars));

    text as a var:integer
    and {.include SRL/SRL/Misc/Amount.Scar}
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dan cardin View Post
    hah! i ahve it

    text := GetNumbers(GetTextAtEx(18, 415, 7, SmallChars, False, False, 0, 0, 0, 50, False, tr_allChars));

    text as a var:integer
    and {.include SRL/SRL/Misc/Amount.Scar}
    Mind I ask what was the point in posting that?

  6. #6
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey Dan it gives me this message '[Error] (18128:76): Type mismatch in script'

  7. #7
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    358
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by tim46 View Post
    Mind I ask what was the point in posting that?
    Trying to help out incase the other one doesnt work?
    I belive that is what this section on the forum is all about.

    So now i ask you, what was the point in posting what you posted.

  8. #8
    Join Date
    Apr 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am trying to make a script that buys runes... before it buys them it clicks on them,, and i want it to make sure that they do not cost more then 5 gp ea

  9. #9
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In that case FindBlackChatMessage('') will come in handy. Basically check for the text in the last line of the chat box, and if it finds what you tell it to search for returns as true. So like FindBlackChatMessage('5 gp') (or however it's written) would check if the text '5 gp' was written on the last line of the chatbox. You'd have to add more things though to make it do certain things depending on the result, but i figured explaining the function might help you out later.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure?
    By shadowrec0n in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 09:04 PM
  2. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  3. Help with Procedure
    By Esteban in forum OSR Help
    Replies: 8
    Last Post: 07-06-2007, 03:45 AM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •