Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Client Lagging from this snippet, can't figure out why

Featured Replies

the client lags when trying to attack an npc with this script, i have narrowed it down to this from my AIO fighter

import org.osbot.rs07.api.filter.Filter;
import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.Area;

@ScriptManifest(author = "novak", info = "test fighter", logo = "", name = "Test Fighter", version = 1.0D)
public class Fighter extends Script{

	
	private Area fightArea;
	private String npcName = "Cow";
	private int fightAreaRadius = 15;
	
	@Override
	public void onStart() throws InterruptedException {
		fightArea = new Area(myPlayer().getX() + fightAreaRadius, myPlayer().getY() + fightAreaRadius, myPlayer().getX() - fightAreaRadius, myPlayer().getY() - fightAreaRadius);
	}
	
	@Override
	public int onLoop() throws InterruptedException {
		NPC npc = npcs.closest(npcName);
		if(npc != null && !inCombat() && !myPlayer().isMoving() && !inventory.isFull())
			if(npc.interact("Attack"))
				sleep(random(1000, 3000));
		return 50;
	}
	
	private boolean inCombat() {
		return myPlayer().isUnderAttack() || myPlayer().getInteracting() != null;
	}

}

as i said, right before attacking the npc it lags the whole client, making fps drop to like 10

 

if someone would test this and confirm/reproduce it that would be great

 

newest version .22 btw

 

oh and its still spam clicking tiles near the npc infinitely too after like 2 minutes

 

EDIT:  i have pretty much narrowed it down to either the interacting or the closest call

Edited by Novak

the client lags when trying to attack an npc with this script, i have narrowed it down to this from my AIO fighter


oh and its still spam clicking tiles near the npc infinitely too after like 2 minutes

^ have noticed both these things happening for no particular reason for me.

1. the lagging for me only happens in cow field.

2. yea the random spam clicking on a tile happens but nobody seems to have acknowledged it

  • Author

^ have noticed both these things happening for no particular reason for me.

1. the lagging for me only happens in cow field.

2. yea the random spam clicking on a tile happens but nobody seems to have acknowledged it

hmm super weird, i went to the chickens and no lag...weird AF.  

  • Author

Same thing here, some people claim it only happens to npcs which take up more than 1x1 square, but for me it's happening whenever I interact..

are you talking about the lagging or the spam clicking?

The lagging

I don't think i get lag on anything but cows but i get the clicking on everything

  • Author

well it seems this isn't an @Isolated incident. (dat pun)

 

hopefully master @Alek will fix it

 

happens at flesh crawlers too, seems like the problem is bigger than the cows (lagging and spam clicking)

Edited by Novak

Yea spam click still happens. It's when the client tries to interact with anything. I think it was you that posted the spam inventory interactions? I tested that and had the same result. Also still spam clicks tiles when trying to interact with stuff. It's as though it thinks the object is on a tile that it's not, and it doesn't stop clicking until it has a successful interaction with the non existent object. Which will never happen since it has the wrong tile.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.