Jump to content

Listing all worlds without the world list loaded in the client results in tribot making request to jagex every time


Naton

Recommended Posts

Looks like tribot actually makes a call to download the world list every time, even if it's already cached the worlds. This results in a massive amount of requests.

 

For example, run the following script

		super.setLoginBotState(false);
		long l = Timing.currentTimeMillis();
		WorldHopper.getServers();
		println(Timing.timeFromMark(l));
		WorldHopper.getServers();
		println(Timing.timeFromMark(l));
		WorldHopper.getServers();
		println(Timing.timeFromMark(l));

Gives

  • [19:45:18] Script Started: Test.
  • [19:45:18] 145
  • [19:45:18] 230
  • [19:45:18] 327

 

Showing that its taking a large amount of time, so it's clearly downloading the world list. If you open the world list in-game, it gives:

  • [19:51:10] Script Started: Test.
  • [19:51:10] 3
  • [19:51:10] 3
  • [19:51:10] 4

 

It's unnecessary to make a request every time, and adds a massive amount of time/load. It could be a flag as well since it downloads from the official runescape website. Realistically, if the world list has already been downloaded once, just continue to use that. Could add a time check to invalidate if necessary. Otherwise every Query.worlds() will always make a network request.

View all my bots on the TRiBot store! (premium) (free)

Need assistance with any of my bots? Join the nScript support discord (link below).

nScripting.com    nScript Support Discord     Refund Policy

Automate your bot management through nRestocker and the TRiBot Bulk Launcher

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...