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:
Originally Posted by
'Tom
EDIT: Here is the batch code file.
Code:
@echo off
java -cp bin;lib/*; GrandExchangeInfo
pause