Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold
Sign in to follow this  
Illuminati666

Complete item list (paying)

Recommended Posts

Array
1 minute ago, Genka said:

What does it need to include? Names, ID's? Tradeable or both tradeable and untradeable?

ah that's how they get ya. First you think your gonna be making a simple list then bam you gotta also list every quest it's used in,  the text displayed when right clicking etc

Edited by lets be friends

Share this post


Link to post
Share on other sites

I can do it, give me some time 

EDIT: yes the script is working. Now need to go trough the items.

2:Cannonball:true
6:Cannon base:true
8:Cannon stand:true
10:Cannon barrels:true
12:Cannon furnace:true
28:Insect repellent:true
30:Bucket of wax:true
36:Candle:true
39:Bronze arrowtips:true

 

Edited by Genka

Share this post


Link to post
Share on other sites
17 minutes ago, Genka said:

I can do it, give me some time 

EDIT: yes the script is working. Now need to go trough the items.

2:Cannonball:true
6:Cannon base:true
8:Cannon stand:true
10:Cannon barrels:true
12:Cannon furnace:true
28:Insect repellent:true
30:Bucket of wax:true
36:Candle:true
39:Bronze arrowtips:true

 

perfect, thank you

Share this post


Link to post
Share on other sites
25 minutes ago, Genka said:

I can do it, give me some time 

EDIT: yes the script is working. Now need to go trough the items.

2:Cannonball:true
6:Cannon base:true
8:Cannon stand:true
10:Cannon barrels:true
12:Cannon furnace:true
28:Insect repellent:true
30:Bucket of wax:true
36:Candle:true
39:Bronze arrowtips:true

 

alphabetical order>numerical id order btw 

Share this post


Link to post
Share on other sites
PrintWriter writer = null;
		try {
			writer = new PrintWriter("items.txt", "UTF-8");
		for(int i = 0; i < 40000; i++) {
	        try (BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("http://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + i).openStream()))) {
	           String line = reader.readLine();
	           if(line != null && line.length() > 0) {
	           String name = line.substring(line.indexOf("name") + 7, line.indexOf("description")-3);
	           String members = line.substring(line.indexOf("members") + 10, line.indexOf("day30")-3);
	           	writer.println("" + i + ":" + name + ":" + members);        	  
	           }
	        } catch (IOException e) {
	        }
	        if(i % 100 == 0) {
	        	System.out.println(i + "parsed");
	        }
		}

		} catch (FileNotFoundException | UnsupportedEncodingException e1) {
		}
		writer.close();

 

This is what I came up with but it seems that the ge api is limited. I think its 1 request per 5 seconds so dumpng all the items takes over 50 hours with this.

 

Didnt have problem dumping the item sprites when I was at it tho.

Edited by Genka

Share this post


Link to post
Share on other sites
1 minute ago, lets be friends said:

Pretty sure what hes saying is that he doesn't want to spend 50 hours waiting for all the items to complete but the code he posted will do it so you can do it yourself kinda thing. I dno I might have misunderstood.

yeah, other people are already working on it

Share this post


Link to post
Share on other sites
2 hours ago, Genka said:
PrintWriter writer = null;
		try {
			writer = new PrintWriter("items.txt", "UTF-8");
		for(int i = 0; i < 40000; i++) {
	        try (BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("http://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + i).openStream()))) {
	           String line = reader.readLine();
	           if(line != null && line.length() > 0) {
	           String name = line.substring(line.indexOf("name") + 7, line.indexOf("description")-3);
	           String members = line.substring(line.indexOf("members") + 10, line.indexOf("day30")-3);
	           	writer.println("" + i + ":" + name + ":" + members);        	  
	           }
	        } catch (IOException e) {
	        }
	        if(i % 100 == 0) {
	        	System.out.println(i + "parsed");
	        }
		}

		} catch (FileNotFoundException | UnsupportedEncodingException e1) {
		}
		writer.close();

 

This is what I came up with but it seems that the ge api is limited. I think its 1 request per 5 seconds so dumpng all the items takes over 50 hours with this.

 

Didnt have problem dumping the item sprites when I was at it tho.

You're doing it the hard way. All the items are in the cache, you can grab them using RSItemDefinition#get

https://tribot.org/doc/org/tribot/api2007/types/RSItemDefinition.html

It contains members only, name, id, and so much more methods. Check it out

  • Like 1

Share this post


Link to post
Share on other sites
14 hours ago, erickho123 said:

You're doing it the hard way. All the items are in the cache, you can grab them using RSItemDefinition#get

https://tribot.org/doc/org/tribot/api2007/types/RSItemDefinition.html

It contains members only, name, id, and so much more methods. Check it out

 

Fantastic. I will defo check it out :)

Share this post


Link to post
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.

Sign in to follow this  

  • Our picks

    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 49 replies
    • Come give us feedback on the next version of TRiBot!
      • 86 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
      • 25 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
      • 90 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...