Results 1 to 3 of 3

Thread: InFight

  1. #1
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default InFight

    I'm basically trying to make a fighting script. So far I can recognize the monsters but as soon as I click on a monster I need it to find out that it is in a fight (haven't gotten as far as too see if someone else is fighting it). There are a couple of built-in methods like 'InFight' and 'IsFightAt' but I've tried using InFight and everytime my account is in combat it still returns false.
    IsFightAt might still work but it's not really ideal because as it finds the monster it clicks on it and moves and therefore the coordinates IsFightAt needs as parameters would change. I haven't had either of them to return true yet.

    Is there a smarter way to check if your account is in combat and is InFight just outdated? Or would I have to look into the animation library?

  2. #2
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    I think the original InFight is outdated, try using srl_InFight? I will edit this post if that's not the right one.

  3. #3
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    srl_InFight will check to make sure you are not fighting anything

    Another function is called IsFightAt
    And this will check for hp bar at (x, y) coordinates. So if you find the npc you are trying to fight, you can use this function to check if it is already in fight.

    E: To clarify, for IsFightAt, you just use your fighting function and move mouse over the next npc, then call isfightAt, if it returns true then the npc is in fight, else you then click them to fight
    Last edited by Recursive; 05-31-2012 at 07:40 PM.

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
  •