Results 1 to 6 of 6

Thread: Detecting a Trade or Duel Challenge (RS3)

  1. #1
    Join Date
    Apr 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Detecting a Trade or Duel Challenge (RS3)

    I'm trying to create a sound alert which will play when I am given a challenge. I've got the sound part figured out, all that's left is something to read the chat and know if it is a trade/duel challenge.

    if chatBox.findText(['wishes to duel', 'staked']) then
    PlaySound('sound.wav');

    This is one of the things I have tried. It didn't work, needless to say.

    I think I need a chat-reading function, but perhaps it is more complicated. I'd like to hear anyone's thoughts about this.

  2. #2
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    You could use another include to do this, the ogl library by Obscurity can pull fonts/text right off the screen with no problem.
    Tsunami

  3. #3
    Join Date
    Apr 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Well my next question would be where to find this include and the items within - I'll send you a private message as well as look around on my own.

  4. #4
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by seventh_sky View Post
    Well my next question would be where to find this include and the items within - I'll send you a private message as well as look around on my own.
    Literally can just copy/paste the test from @Lucidity;'s post.. Here
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  5. #5
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Not sure what the duel challenge color looks like but what you can do is have a loop repeatedly check an area in the chatbox for duel requests.

    First, create a TBox, and then use Tesseract (search for it on the forums) to find keywords.

    [SIMBA]
    Tesseract_GetText(intToBox(582, 467, 770, 550), TESS_FILTER_SMALL_CHARS)
    [SIMBA]

    If you need more specifics, let me know. Otherwise, I think this is a pretty simple solution.

  6. #6
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default

    If it's just that then find & count the colors. No real reason to read it

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
  •