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
  • get npc attack animation?


    oh okay

    Recommended Posts

    On 7/20/2019 at 11:31 PM, henrique190 said:
    
    NPC x = getNpcs().closest(i -> i != null && i.getName().equals("NPCNAMEEEEE"));
    x.getAnimation();

    thanks for the effort bro but this will get ANY animation not just solely the attack animation, is there a foolproof method?

    Link to comment
    Share on other sites

    On 7/22/2019 at 11:41 PM, NovaGTX said:

    If you just need to know its anim id use entity hover. If you plan on using it in the script the above answer works.

     

    thanks for the effort bro but this will get ANY animation not just solely the attack animation, is there a foolproof method?

    Link to comment
    Share on other sites

    
    Tell me what you need to do, maybe you can help
    Maybe you can use a condition to do what you need
    ex, if(x.getAnimation == 358)
    { do
    }
    
    Link to comment
    Share on other sites

    What is your end goal with this? Prayer flicking?

    There's no cut out implementation for this. f you want to determine an attack animation on the fly, you'd have to be checking for any animations other than the idle one each tick. The animation that reoccurs is the attack animation.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • 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.