Thread: Possible to find all item picture files?

Results 1 to 7 of 7
  1. #1 Possible to find all item picture files? 
    Registered Member
    Join Date
    Dec 2016
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hey guys is it possible to find all item picture files(the icons)? i.e all items in png or similar

    Thanks for the help lads!
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by kan2 View Post
    Hey guys is it possible to find all item picture files(the icons)? i.e all items in png or similar

    Thanks for the help lads!
    The inventory icon is the floor model resized to fit the inventory. So you would have to export the item's drop model based on the definitions and then export that model as .png (take a picture of it) somehow.
    Project thread
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    139
    Thanks given
    30
    Thanks received
    38
    Rep Power
    66
    Guess ur meaning this : Download rsitemicons.365.rar @ UppIT , was dumped from revision 860-870 bck then
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    You can only dump these icons when you are able to render the actual inventory models.

    The client is able to render the models, so you can use the client to dump it.
    link removed
    Reply With Quote  
     

  7. #5  
    Donator


    Join Date
    May 2012
    Posts
    252
    Thanks given
    95
    Thanks received
    97
    Rep Power
    78
    Quote Originally Posted by kan2 View Post
    Hey guys is it possible to find all item picture files(the icons)? i.e all items in png or similar

    Thanks for the help lads!
    size (96x96) http://services.runescape.com/m=item...gif?id=ITEM_ID
    size (32x32) http://services.runescape.com/m=item...gif?id=ITEM_ID
    change the ITEM_ID to the item id u want
    example : http://services.runescape.com/m=item...te.gif?id=2513 <--- dragon chain 2513
    i have dumped them long time ago let me find u the dumper.

    edit: here found it
    put it in the tools
    Code:
    package com.rs.tools;
    
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.MalformedURLException;
    import java.net.URL;
    
    import com.rs.cache.Cache;
    import com.rs.cache.loaders.ItemDefinitions;
    import com.rs.game.item.Item;
    import com.rs.game.player.content.ItemConstants;
    import com.rs.game.player.content.Shop;
    import com.rs.utils.Utils;
    
    public class ImagesDumper {
    
    	public static void main(String[] args) throws IOException {
    		Cache.init();
    		URL url;
    		for (int i = 0; i <= Utils.getItemDefinitionsSize(); i++) {
    			Item item = new Item(i);
    			ItemDefinitions def = item.getDefinitions();
    			if (def == null)
    				continue;
    			if (item.getId() == Shop.COINS || !ItemConstants.isTradeable(item) || item.getDefinitions().isNoted())
    				continue;
    			if (item.getDefinitions().isNoted() && item.getDefinitions().getCertId() != -1)
    				item = new Item(item.getDefinitions().getCertId());
    			url = new URL("http://services.runescape.com/m=itemdb_rs/obj_big.gif?id=" + item.getId());
    			downloadImage(url, item.getId());
    		}
    		System.out.println("done");
    	}
    
    	public static void downloadImage(URL imageUrl, int itemId)
    			throws MalformedURLException, IOException, FileNotFoundException {
    		File dir = new File("data/imagesdump/");
    		if (dir.exists()) {
    			dir.delete();
    		}
    		dir.mkdir();
    		try (InputStream imageReader = new BufferedInputStream(imageUrl.openStream());
    				OutputStream imageWriter = new BufferedOutputStream(
    						new FileOutputStream("data/imagesdump/" + itemId + ".gif"));) {
    			int readByte;
    			while ((readByte = imageReader.read()) != -1) {
    				imageWriter.write(readByte);
    			}
    		}
    	}
    }
    if u want to dump all items tradeable or not here replace
    Code:
    if (item.getId() == Shop.COINS || !ItemConstants.isTradeable(item) || item.getDefinitions().isNoted())
    				continue;
    with this
    Code:
    if (item.getId() == Shop.COINS || item.getDefinitions().isNoted())
    				continue;
    .
    Reply With Quote  
     

  8. #6  
    Registered Member
    Project's Avatar
    Join Date
    Dec 2010
    Posts
    2,669
    Thanks given
    1,043
    Thanks received
    820
    Rep Power
    1101
    https://www.rune-server.ee/showthread.php?t=639869

    or..
    Dumpers:

    OSRS:
    Code:
    package downloader;
    
    import java.io.*;
    import java.net.*;
    
    public class OSRS {
    	
    	public static void main(String[] args) {
    		for (int i = 0; i < 33859; i++) {
    			try {
    				System.out.print("Grabbing sprite item " + i + "... ");
    				if (get("http://services.runescape.com/m=itemdb_oldschool/5307_obj_sprite.gif?id=" + i,
    						"C:/Users/THE-BEAST/Desktop/osrs/" + i + ".gif"))
    					System.out.println("success");
    				else
    					System.out.println("failed");
    			} catch (Exception e) {
    				e.printStackTrace();
    				continue;
    			}
    		}
    	}
    
    	public static boolean get(String s, String saveAs) {
    		try {
    			URLConnection urlconnection = (new URL(s)).openConnection();
    			String as[] = s.split("/");
    			File file = new File(saveAs); // as[as.length - 1]
    			int i = urlconnection.getContentLength();
    			InputStream inputstream = urlconnection.getInputStream();
    			FileOutputStream fileoutputstream = new FileOutputStream(file);
    			int j = 0;
    			int k = 0;
    			while ((k = inputstream.read()) != -1) {
    				fileoutputstream.write(k);
    				j++;
    			}
    			if (i != j) {
    				inputstream.close();
    				fileoutputstream.close();
    			} else {
    				inputstream.close();
    				fileoutputstream.close();
    				return true;
    			}
    		} catch (Exception exception) {
    			return false;
    		}
    		return false;
    	}
    }
    RS3:
    Code:
    package downloader;
    
    import java.io.*;
    import java.net.*;
    
    public class Main {
    	
    	public static void main(String[] args) {
    		for (int i = 0; i < 50000; i++) {
    			try {
    				System.out.print("Grabbing sprite item " + i + "... ");
    				if (get("http://services.runescape.com/m=itemdb_rs/5304_obj_sprite.gif?id=" + i,
    						"C:/Users/THE-BEAST/Desktop/test/" + i + ".gif"))
    					System.out.println("success");
    				else
    					System.out.println("failed");
    			} catch (Exception e) {
    				e.printStackTrace();
    				continue;
    			}
    		}
    	}
    
    	public static boolean get(String s, String saveAs) {
    		try {
    			URLConnection urlconnection = (new URL(s)).openConnection();
    			String as[] = s.split("/");
    			File file = new File(saveAs); // as[as.length - 1]
    			int i = urlconnection.getContentLength();
    			InputStream inputstream = urlconnection.getInputStream();
    			FileOutputStream fileoutputstream = new FileOutputStream(file);
    			int j = 0;
    			int k = 0;
    			while ((k = inputstream.read()) != -1) {
    				fileoutputstream.write(k);
    				j++;
    			}
    			if (i != j) {
    				inputstream.close();
    				fileoutputstream.close();
    			} else {
    				inputstream.close();
    				fileoutputstream.close();
    				return true;
    			}
    		} catch (Exception exception) {
    			return false;
    		}
    		return false;
    	}
    }
    Reply With Quote  
     

  9. #7  
    Respected Member


    Polar's Avatar
    Join Date
    Sep 2015
    Age
    28
    Posts
    420
    Thanks given
    0
    Thanks received
    418
    Rep Power
    3098
    Quote Originally Posted by Project View Post
    snip
    The image locations change with every update so that will need to be changed. You can get the current one from http://services.runescape.com/m=item...json?item=4151 for osrs or http://services.runescape.com/m=item...json?item=4151 for rs3.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Code to make all items equip correctly
    By Exidia in forum Requests
    Replies: 0
    Last Post: 03-17-2014, 09:03 PM
  2. Replies: 5
    Last Post: 01-29-2012, 05:04 PM
  3. PI - How to delete all items? rep!!
    By asillybunny in forum Help
    Replies: 2
    Last Post: 12-12-2010, 08:39 AM
  4. Is it possible to load all 474 maps on 317?
    By jordan641 in forum Help
    Replies: 3
    Last Post: 05-01-2010, 09:17 PM
  5. How to find all the tuts you need!
    By stone warior in forum Tutorials
    Replies: 8
    Last Post: 06-07-2007, 12:54 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •