Jump to content

Dropping frames when attacking


triggamortis

Recommended Posts

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");
Link to comment
Share on other sites

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-

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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