Results 1 to 5 of 5

Thread: Find inchat

  1. #1
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Find inchat

    how would i make my script detect like if a shop runs out stock like example it finds this "The shop has run out of stock" how would my script detect that ive tryed several things still dont work

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

    Default

    SCAR Code:
    if(InChat('Text here'))then

    There is a chance that in the time it takes for the shop to run out of that item, there'll be another item in it's place. In which case you can use the uptext every time you go to buy the item, but that might screw up. You could also make a DTM of the item, and check to see if it finds the DTM in the shop screen. If it does, it moves it's mouse there and buys.

    Your choice, good luck.

  3. #3
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ya i tryed the inchat thing ima try again then try what you said.

  4. #4
    Join Date
    Oct 2006
    Location
    Ireland
    Posts
    855
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    function FindChatText2(txt: string): Boolean; //Chat(1)
    var
    x, y: Integer;
    begin
    Result := FindText(x, y, txt, SmallChars, 16,412, 479, 433);
    end;

    A function from srl i edited. it checks the last line for the text you specify.

  5. #5
    ronny.m.p Guest

    Default

    Make a bitmap..search intermediat tut section for guides!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. InChat
    By I Am Legend in forum OSR Help
    Replies: 8
    Last Post: 08-12-2008, 07:41 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
  •