Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Improve fight mechanics wait for npc death to loot


    btksurfjohn

    Recommended Posts

    Hello,

    I have been working on a dragon & druid killer and it works ok but I want to improve its combat mechanics. 

    Does anyone also have any suggestions on how to wait for npc loot after killing it?

     

    Update figured below out by just tracking which node was run last and updating it in a mainscript function

    Is there a way to recognize when im not fighting back (waiting for auto-retaliate to kick in) and taking hits, for instance after eating food or looting, the dragon gets a free hit on me or 2 before  the auto-retaliate kicks back in to hit it.  It seems like my  Players.getLocal().isInCombat() still thinks its in combat even when its just taking hits, I would ideally like to re-aggro the npc im interacting with immediatly after looting/eating.

    On the flip side of this is there a way i could tell if another task node with higher priortiy has activated on top of my current node. For instance my loot or eat node activates over my fight node. Is there a way i could catch this so I know to immediatly re-click the monster when the fight node re-activates?

    Edited by btksurfjohn
    Link to comment
    Share on other sites

    19 hours ago, wr80 said:

    You could get characterInteractingWithMe and after an eat, interact with them.

    Thanks for the info, Ive looked into doing this, my eat is in a different tasknode (same as loot being in a different node), so i was thinking this would be the way, do you have any suggestions to tell if another task node has been activated, so that I could know to re aggro the monster as the highest priority, or in the case of loot i may no longer be aggroed on a monster i was attacking so i would have to get the character interacting with me before leaving the node, is there a way to detect a tasknode being de-prioritized so I can grab the character interacting with me before leaving?

     

    Update: generally just started tracking task nodes by updating main script and checking which node was run last. Seems to have done exactly what i was looking for. Still curious about looting mechanics though.

    Edited by btksurfjohn
    Link to comment
    Share on other sites

    • btksurfjohn changed the title to Improve fight mechanics wait for npc death to loot

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.