Results 1 to 16 of 16

Thread: ChatBox

  1. #1
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question ChatBox

    Hi can someone help me?

    I need to find a way in which my script can find text in the chatbox which is written in black.

    I have tried several codes but none seem to work o.O Does anyone know a working one please?

  2. #2
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Simba Code:
    FindChatBoxText(Text , Line, TextCol);
    Is that what your looking for?

  3. #3
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy Tried

    I tried that one but in return I get,
    "Unknown identifier 'FindChatBoxText'"

  4. #4
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  5. #5
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy I think so..

    Quote Originally Posted by Ashaman88 View Post
    Are you including srl.simba in your script?
    Simba Code:
    {$i SRL\SRL.simba}
    I think so...
    I have put that at the top, is that including it? :/

  6. #6
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    try updating your srl.

  7. #7
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy o.O

    No Plugins update available.
    No SRL update available.

  8. #8
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    ^There isn't such a function, where'd you find it killer?
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  9. #9
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by litoris View Post
    ^There isn't such a function, where'd you find it killer?
    chat.simba
    edit: http://docs.villavu.com/srl-5/chat.html#findchatboxtext

  10. #10
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

  11. #11
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Red face

    Thanks I'll try it!

  12. #12
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    FindBlackChatMessage?

  13. #13
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy

    Quote Originally Posted by P1ng View Post
    FindBlackChatMessage?
    Thanks for the help, this might sound silly (newbie)
    but where would I use that? I tried,

    Simba Code:
    var
    s: string;

    ................

     S:= FindBlackChatMessage;
           If S = ('...')  then

    But that does not work
    thanks.

  14. #14
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by DionHacker View Post
    Thanks for the help, this might sound silly (newbie)
    but where would I use that? I tried,

    Simba Code:
    var
    s: string;

    ................

     S:= FindBlackChatMessage;
           If S = ('...')  then

    But that does not work
    thanks.
    Simba Code:
    If FindBlackChatMessage('Your Message'); Then
    Action

  15. #15
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot!

  16. #16
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    function Getchat(text:string):boolean;
    var
      I:integer;
    begin
      for i := 1 to 8 do
        begin
          result := findchatboxtext(text, i, clmessage);
          if result then
            break
        end;
    end;

    That will search the entire chatbox for your message. Use like this.

    Simba Code:
    if GetChat('We have died') then
      writeln('We have died!');
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

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
  •