Results 1 to 7 of 7

Thread: Combat Help Please

  1. #1
    Join Date
    May 2012
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Combat Help Please

    Hi ive made a script for a RSPS for combat that is working really well for me but i cant seem to figure something out.

    At the moment it attacks and uses pixelshift to detect infight then moves onto next NPC when not infight and clicks a dot on minimap to walk to next NPC if colour not found. That all works fine.

    What i cant do is stop it attacking an NPC already in combat.

    Is there a way i can make a box at x y to check for pixelshift or hp bar and if NPC infight then skip that NPC?

    Some of the SRL codes wont work like othersinfight or isfightat because of the graphics being different.

    I just need a code that checks if the NPC if infight and if it is skip to next NPC.

    Can someone help me out with this? And can it be done?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Moved to scripting help.
    Tutorial section is for tutorials that tech people things.

  3. #3
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    If I'm correct this should form a box (technically rectangle) around x and y which you could then use for something like pixelshift.

    Simba Code:
    IntToBox(x - 30, y - 60, x + 30, y + 60);

  4. #4
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    We have an others in fight, also in the YA (yak attack) script it checks for other yaks that are in combat and doesn't click them, you're welcome to learn from and try anything in the script
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  5. #5
    Join Date
    May 2012
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I will have a look at it and see if I can make something from it
    Thanks

  6. #6
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    I haven't done much combat oriented things, but I would try checking for the hp bar above the monster.

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

    Default

    Try having a look at the SRL include for isfightat etc and then perhaps edit those to suit your RSPS? Not on the computer so unfortunately I cannot check and see of this would be easy to do, but it can't be too hard

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
  •