|
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!
Guess ur meaning this : Download rsitemicons.365.rar @ UppIT , was dumped from revision 860-870 bck then
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.
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
if u want to dump all items tradeable or not here replaceCode: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); } } } }
with thisCode:if (item.getId() == Shop.COINS || !ItemConstants.isTradeable(item) || item.getDefinitions().isNoted()) continue;
Code:if (item.getId() == Shop.COINS || item.getDefinitions().isNoted()) continue;
https://www.rune-server.ee/showthread.php?t=639869
or..
Dumpers:
OSRS:
RS3: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; } }
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; } }
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |