Jump to content

Dropping frames when attacking


Recommended Posts

Posted

I'm having issues where the client in game begins to drop frames(probably around to 10 fps) when it searches for the npc to attack. Because of this, my script begins to slow down and the npc its fighting requires speed and timing. Does anyone know why this is happening or is this been like this for a while? BTW it stops droping frames when its fighting. Also want to note that there tons of constant graphics going on which probably makes it drop too. Also I highly doubt its my computer because i have an amd r9 270x which should be good enough to handle it.

NPC monster = npcs.closest("NPC NAME HERE");
if(!myPlayer().isMoving() && monster != null && !myPlayer().isInteracting(monster))
monster.interact("Attack");
Posted

Yes this has been an issue for quite some time now, it happens most of the time when attacking npcs larger than 1x1 tiles, the only workaround seems to be the EntityDestination method

 

EntityDestination npcDest = new EntityDestination(getBot(), npc);

 

which you can use to hover and attack with your mouse. Personally I hover it then call interact if the mouse hovers over it, and for me it has been fine.

 

However, don't worry, as the devs are working on a fix for issues like this.

 

http://osbot.org/forum/topic/68748-

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...