Results 1 to 13 of 13

Thread: In Fight Problems?

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default In Fight Problems?

    Ok, I have tried both Reflection and Colour methods to get this working. The problem is, sometimes the monster I'm fighting is fighting someone else, but I'm still attacking it. As I do not have the health bar, or the animation loop (or whatever causes the reflection way to work), it doesn't catch it.

    I've tried solving it using a loop to check my animation over and over, but that didn't work either.

    Any ideas? :/.

    ~Sandstorm

  2. #2
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, I have it set up so that it will continually attack monsters until it reaches a certain point (death, in this case), so it will continually click the same monster until it dies, then move to the next one.

    In case you're wondering, this is for a Soul Wars script.

    ~Sandstorm

  4. #4
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Have you tried using GetMe to check if in fight?

    Also, have you tried AreWeInteracting which checks if we are interacting with anyone?

  5. #5
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've tried GetMe, yes. Because the monster is not attacking me, it doesn't work. I haven't tried AreWeInteracting, but I'll try it and post here with the results.

    ~Sandstorm

  6. #6
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    AreWeInteracting has been the most reliable for me. The GetMe.infight only works when hp bar appears over your head. Also I've used a animation method in my reflection fighter - but you have to do it just right or it doesn't work correctly.

    The best color infight detection I've made is in Nautilus. Which coming up soon I'll be importing over to NAF in the next update due to its higher accuracy.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  7. #7
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How do I use the AreWeInteracting function?

    SCAR Code:
    While AreWeInteracting(Var) Do
      If Not (Var = MonsterId) Then
        Break;

    Something like that?

    ~Sandstorm

    Edit:

    Alright, tried AreWeInteracting. It doesn't work if you're fighting but not under attack either :/.

  8. #8
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Only thing I can think of besides all the other things you tried, is to get the animations for combat(i think there is more than one), and do an animation check... not very reliable imo.

  9. #9
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried that with a While..Do loop, checking the animation over and over to see if it was higher or lower then -1. Didn't work though :/.

    ~Sandstorm

  10. #10
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Ok I'll give you my current Echo fighter function:
    SCAR Code:
    Function r_InFight: Boolean;
    Var
      T: Integer;
      Me: TMe;
    Begin
      T := GetSystemTime;
      Repeat
        If Not LoggedIn Then Exit;
        Wait(67);
        Me := GetMe;
        Result := Me.Animation > 0;
        r_HpCheck;
      Until (Result) or (GetSystemTime - T > 2667);
    End;
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  11. #11
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could check the NPC's infight aswell, using indexes.

    Then do Narcle's method

  12. #12
    Join Date
    Aug 2007
    Location
    Where do you live?
    Posts
    934
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    So is the only Accurate/Efficient way to check if InFight with color by checking for the hp bar above your own head?

  13. #13
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you Narcle, that method works perfectly, even for range!

    ~Sandstorm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fight caves
    By Kave in forum RuneScape News and General
    Replies: 1
    Last Post: 12-06-2008, 03:38 PM
  2. hlp wit fight
    By Lt Mays in forum OSR Help
    Replies: 4
    Last Post: 01-27-2008, 02:28 AM
  3. Fight me on cs 1.6 if u dare :P
    By yanix in forum Gaming
    Replies: 2
    Last Post: 01-24-2008, 05:21 PM
  4. Fight Cave
    By craz7 hav3n in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 08-29-2007, 11:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •