Results 1 to 6 of 6

Thread: Detect When In Combat

  1. #1
    Join Date
    Jan 2013
    Location
    United kingdom
    Posts
    102
    Mentioned
    4 Post(s)
    Quoted
    34 Post(s)

    Default Detect When In Combat

    What is the best way to detect when the player is in combat?

    Can i use TPA to do this? By maybe locating the health bar?

    I have seen people use 'PixelShift'.

    What is the best way?

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    I have always liked this post of bonsai's for a quick cheat sheet on how to detect combat in RS3 (they made it really easy) https://villavu.com/forum/showthread...23#post1271523

    You could absolutely use TPAs for a lot of the methods mentioned.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Jan 2013
    Location
    United kingdom
    Posts
    102
    Mentioned
    4 Post(s)
    Quoted
    34 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    I have always liked this post of bonsai's for a quick cheat sheet on how to detect combat in RS3 (they made it really easy) https://villavu.com/forum/showthread...23#post1271523

    You could absolutely use TPAs for a lot of the methods mentioned.
    Thank you, that was extremely helpful. I will try and implement some of those.

  4. #4
    Join Date
    Jan 2013
    Location
    United kingdom
    Posts
    102
    Mentioned
    4 Post(s)
    Quoted
    34 Post(s)

    Default



    Was able to get some pretty good colors for the lock

  5. #5
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by beefman View Post
    Was able to get some pretty good colors for the lock
    I'd recommend using a bitmap or DTM of the lock. I think it will make what you're trying to do a lot easier. IIRC I used a DTM in my RS3 scripts.

  6. #6
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    According to @Thomas; SRL-6 already has it.

    Look here: https://github.com/SRL/SRL-6/blob/73...nfo.simba#L295

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
  •