Thread: GrandExchange Item Dumper

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 GrandExchange Item Dumper 
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    Simple can be useful. Make sure you make a root directory called "dumps" in there it will save all of the dumps by the id of the item, but that can simple be edited to save by the name, Im not going to put it into a download as all it requires is one simple class, Also this skips the null items and it also skips the noted items.

    You will also need the RSBuddy JAR.
    UppIT - Free File Sharing - RSBuddy-147.jar

    Code:
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    
    import com.rsbuddy.script.methods.GrandExchange;
    import com.rsbuddy.script.methods.GrandExchange.Item;
    
    @SuppressWarnings("deprecation")
    public class GrandExchangeInfo {
    
    	private static BufferedWriter itemFile;
    
    	public static void main(String... args) throws Exception {
    		for (int i = 0; i <= 20000; i++) {
    			Item item = GrandExchange.lookup(i);
    			if (item == null || item.getName() == null
    					|| item.getName().equalsIgnoreCase(""))
    				continue;
    			else
    				itemFile = new BufferedWriter(new FileWriter("./dumps/"
    						+ item.getName() + ".txt"));
    			writeToFile(item);
    		}
    	}
    
    	private static void writeToFile(Item item) throws Exception {
    		System.out.println("Wrote data for item: " + item.getName());
    		String[] data = { "Item name: " + item.getName(),
    				"ItemID: " + item.getID(),
    				"Item Desc: " + item.getDescription(),
    				"Min Price: " + item.getMinPrice(),
    				"Max Price: " + item.getMaxPrice() };
    		for (int i = 0; i < data.length; i++) {
    			itemFile.write(data[i]);
    			itemFile.newLine();
    		}
    		itemFile.flush();
    		itemFile.close();
    	}
    }
    Here is an example of how it would dump and item.

    File name: 40.txt

    Code:
    Item Name: Iron arrowtips
    Item ID: 40
    Item Description: I can make some arrows with these.
    Minimum Price: 8
    Maximum Price: 8
    Quick Screenshot:


    Quote Originally Posted by 'Tom View Post

    EDIT: Here is the batch code file.

    Code:
    @echo off
    java -cp bin;lib/*; GrandExchangeInfo
    pause

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Teemuzz's Avatar
    Join Date
    Oct 2009
    Posts
    2,755
    Thanks given
    1,212
    Thanks received
    422
    Rep Power
    934

    You could've always used nikki's one
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    I like mine and I made it specificly for you because urs didnt work

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

  4. #4  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    Thanks will use
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    Any time ;P

    EDIT: Here is the batch code file.

    Code:
    @echo off
    java -cp bin;lib/*; GrandExchangeInfo
    pause

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

  6. #6  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    Thank you how long does it take to dump all
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    Does take a lil depending on how fast internet is because it has to lookup the item then save it.

    EDIT:

    This only dumps up to 200 items but that can be changed there are about 20000 items in GE?

    to change:

    Find:
    Code:
    for(int i = 0; i <= 200; i++) {
    Change to
    Code:
    for(int i = 0; i < 20000; i++) {
    Now you can change the value to whatever u need.

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

  8. #8  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    So if i use my vps download speed is 350MB upload 1GB how long would it take?
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  9. #9  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    Probably fast add me on msn:

    [email protected]

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

  10. #10  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    27
    Posts
    4,351
    Thanks given
    826
    Thanks received
    1,239
    Rep Power
    1781
    Made a modification to it as now using an array so less lines for the saving method, also now it says by the name of the item as the ID of the item is contained in the txt file.

    You can find my GitHub here, for what I'm currently working on.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. Replies: 33
    Last Post: 08-18-2009, 03:20 AM
  2. My Item Dumper
    By Vastiko in forum Snippets
    Replies: 7
    Last Post: 06-19-2009, 02:05 PM
  3. My URL Item Dumper
    By Vastiko in forum Show-off
    Replies: 2
    Last Post: 06-15-2009, 10:11 PM
  4. My item.cfg dumper
    By Pkitten in forum Tutorials
    Replies: 8
    Last Post: 02-05-2008, 07:16 PM
  5. [REQ] Item dumper [REQ]
    By jesuschrist in forum Tutorials
    Replies: 7
    Last Post: 12-24-2007, 06:12 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
  •