Results 1 to 9 of 9

Thread: MMX1, MSX1, etc.

  1. #1
    Join Date
    Feb 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MMX1, MSX1, etc.

    Hello,

    I'm working on my first script, and I can't find how to read information from the chat box. I know that MSX1 scans the main screen, MI scans the inventory, and MM scans the minimap, but is there a way to scan the items like QuickPrayer, Stamina, HP, and chat box?

    I don't know what I should be searching for and apologize if this is something obvious.

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Use the GetMMLevels function for quickprayer/stamina/hp... Should be in GameTab.scar, in core. Look into Chat.scar in the core for chat searching functions. The chat box coords are MCX1, MCY1, MCX2, MCY2.

  3. #3
    Join Date
    Feb 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MCX and MCY, thank you much. Is using Bitmaps the most efficient way to interpret text from the chat box?

  4. #4
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by icantsing4u View Post
    MCX and MCY, thank you much. Is using Bitmaps the most efficient way to interpret text from the chat box?
    Use a simple auto responder, http://www.villavu.com/forum/showthread.php?t=39371
    if inchat('blah') then blah
    Last edited by uncfan1119; 10-18-2009 at 01:09 PM.
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  5. #5
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Isuptext is for the text at the top. Look in Chat.scar for different ways to read text from the chatbox.

    Here are some functions from Chat.scar:
    Code:
    {*******************************************************************************
    function GetChatBoxText(Line, TextCol: Integer): string;
    By: ZephyrsFury
    Description: Gets text on the line Line with colour TextCol. (Line 1 is the top,
      Line 8 is the bottom line).
    Colours:
      clMessage/clBlack - Black text messages ("Oh Dear you are dead", etc).
      clChat/clBlue     - Chat messages from you and other players.
      clTrade/clPurple  - Colour of trade request text.
      clFriend          - Colour of friend and clan chat.
      Works with other colours too.
    *******************************************************************************}
    
    {*******************************************************************************
    function FindChatBoxText(Text: string; Line: Integer; TextCol: Integer): Boolean;
    By: ZephyrsFury
    Description: Searches for Text on Line with colour TextCol. True if found.
    *******************************************************************************}
    
    {*******************************************************************************
    function IsChatBoxTextBetween(Text: string; TextCol, StartLine, EndLine: Integer): Boolean;
    By: ZephyrsFury
    Description: Returns true if Text with colour TextCol is found anywhere in the
      chat box.
    *******************************************************************************}
    
    {*******************************************************************************
    function IsChatBoxTextAnyLine(Text: string; TextCol: Integer): Boolean;
    By: ZephyrsFury
    Description: Returns true if Text with colour TextCol is found anywhere in the
      chat box.
    *******************************************************************************}
    
    {*******************************************************************************
    function ChatBoxTextArray(TextCol: Integer): TStringArray;
    By: ZephyrsFury
    Description: Gets and return a TStringArray with the contents of each line with
      the colour TextCol (see GetChatBoxText for list of colours).
      Line 1 is Result[1]
      Line 2 is Result[2]
      Line 3 is Result[3]
      Line 4 is Result[4]
      Line 5 is Result[5]
      Line 6 is Result[6]
      Line 7 is Result[7]
      Line 8 is Result[8]
    *******************************************************************************}
    
    {*******************************************************************************
    function GetBlackChatMessage: String;
    By: Wizzup?
    Description: Gets text with color 0 in last chat line.
    *******************************************************************************}
    
    {*******************************************************************************
    function FindBlackChatMessage(ChatMsg: String): Boolean;
    By: Wizzup?
    Description: Returns True if text with color 0 in last chat line is found.
    *******************************************************************************}

  6. #6
    Join Date
    Feb 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, thank you everybody. One last thing: how detectable is MMouse? It was used in a tutorial, but I *think* I remember reading that it was highly detectable. What is the recommended method of clicking and cursor control?

  7. #7
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Edit out(Thanks r!ch!e) The methods I use are: mousebox, or have integers for X & Y, and make it Mouse (x, y, blahblahblah);
    Last edited by uncfan1119; 10-18-2009 at 01:58 PM.
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  8. #8
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMouse is part of SRL so you're safe Its MoveMouse and MoveMouseSmooth you want to avoid.

  9. #9
    Join Date
    Feb 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Elroightey, thank you much again. I will most likely be back sooner or later with inquiries. I will not sleep for days.

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
  •