Results 1 to 10 of 10

Thread: Find text in game chat.

  1. #1
    Join Date
    Jan 2008
    Location
    Norway
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Find text in game chat.

    Hello.

    I am working on my Wood chopper and instead of using Wait and assume that the tree is cutted down I want to check it in the game chat.


    When you click chop you get the message:
    "You swing your aze a the tree."

    And when you get a log you get this message:
    "You get some logs."

    This would work greatly on regular trees. So what is the function that finds this type of text?

    On oak logs it will be nearly the same. Just find the second text then check if the tree is still on the screen.

    I think this method will be less detectabel.

    And in what file is RunAwayDirection and RunBack in?

    Thanks for help

  2. #2
    Join Date
    Dec 2007
    Posts
    193
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think thats really good idea! Im not a expert on SCAR so i can't really help :S
    ~ Rs-Gp-4U
    _____________________________________________

    Bux.To! Sign Up Easy Money!

  3. #3
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    FindBlackChatMessage('find this text')

    maybe somthing for you chop loop;
    SCAR Code:
    repeat
      SleepAndMoveMouse(200 + random(1000));
      Antirandoms;
    Until Not FindBlackChatMessage('wing')

  4. #4
    Join Date
    Dec 2006
    Location
    UK!!
    Posts
    910
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    find BlackChatMsg('ut some logs');

    no caps

    ~Spaz

    EDIT Damn MK beat me =]

  5. #5
    Join Date
    Jun 2007
    Location
    Mianus
    Posts
    863
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im using this myself and ill post in a min hold on

    Ok this is from my chest theiver :

    SCAR Code:
    If FindBlackChatMessage('It looks like this chest has already been looted.') then

    Ok.. to use for u do like this

    SCAR Code:
    If FindBlackChatMessage('You get some logs.') then

    and after the then just put in something like a writeln, example

    SCAR Code:
    If FindBlackChatMessage('You get some logs.') then
    Writeln ('We got 1 more log :)')

    if u whant more stuff just tell me

  6. #6
    Join Date
    Jan 2008
    Location
    Norway
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks alot guys!

    My WoodChoppper will be out soon(Hopefully this week)

    Someone who know what file RunBack and RunAwayDirection is in?

  7. #7
    Join Date
    Jun 2007
    Location
    Mianus
    Posts
    863
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no sry.. but

    {.include SRL\SRL.scar}

    should let u use that

    Edit: if those are ur own procedures then add them to the loop

  8. #8
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't need RunBack if you do 'RunTo.' It's in mapwalk in the core folder.
    Active only during the Summer...

  9. #9
    Join Date
    Jan 2008
    Location
    Norway
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks again

  10. #10
    Join Date
    Jun 2007
    Location
    Mianus
    Posts
    863
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ow.. ok good that u got help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. what is the best way to find chat text
    By jhildy in forum OSR Help
    Replies: 7
    Last Post: 05-20-2007, 09:57 PM
  3. Find text in chat window... How do I do this?
    By solarwind in forum OSR Help
    Replies: 4
    Last Post: 10-21-2006, 12:22 AM

Posting Permissions

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