View Full Version : [REQ] Prices.cfg 562/666
Corruptice
September 29th, 2011, 11:27
titles say it all ^_^
Corruptice
September 30th, 2011, 23:38
who is so friendly who can dump them for me ^_^
Sonicforce41
October 1st, 2011, 03:52
I can probably dump them. Um.. Whats the format? like
id - low alch - price - high alch?
Post a reply in this and i will do it tommorow.
Corruptice
October 1st, 2011, 04:00
just need the prices.cfg for this i think yes it is that
titandino
October 1st, 2011, 06:41
I released a dumper on Legion RS.com..
Sonicforce41
October 1st, 2011, 13:59
Never mind then :)
SkrilleX
October 1st, 2011, 14:02
Your kidding me right? i released a item price dumper.../fp
SkrilleX
October 1st, 2011, 14:02
I released a dumper on Legion RS.com..
You mean i did?
Sonicforce41
October 1st, 2011, 14:06
Idk i saw one price dumper, Let me check.
Actually, I dont see it...
SkrilleX
October 1st, 2011, 14:16
Idk i saw one price dumper, Let me check.
Actually, I dont see it...
ill get the link sec
SkrilleX
October 1st, 2011, 14:18
package tools;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import cache.Cache;
import cache.loaders.ItemDefinitions;
public class ItemDumper {
public static void main(String[] args) throws IOException {
boolean skipNull = false;
boolean printOnly = false;
for (String t : args) {
if (t.equals("-null")) {
skipNull = true;
} else if (t.equals("-print")) {
printOnly = true;
} else {
System.out.println("Usage: java ItemlistDumper [-options]");
System.out.println("");
System.out.println("Where options are:");
System.out.println("\t-null\t\tSkip items which are nulls.");
System.out.println("\t-stackable\tInclude information on whether the item is stackable or not.");
System.out.println("\t-print\t\tOnly print (will disable file-writing).");
System.out.println("");
System.out.println("Example of usage: java ItemlistDumper -null -stackable");
System.out.println("\tFormatted as: 0:Toolkit:false");
return;
}
}
long startAt = System.currentTimeMillis();
System.out.println("Starting item dump process..");
Cache.init();
System.out.println("Initiated cache in " + (System.currentTimeMillis() - startAt) + " ms.");
startAt = System.currentTimeMillis();
try {
FileWriter fWriter = null;
BufferedWriter writer = null;
// Write the formatting type:
if (!printOnly) {
fWriter = new FileWriter("itemdump.txt");
writer = new BufferedWriter(fWriter);
}
for (int i = 0; i < 25000; i++) {
ItemDefinitions def = ItemDefinitions.getItemDefinitions(i);
if (def == null)
continue;
if (def.getName().equals("null") && skipNull)
continue;
if (printOnly) {
System.out.println(+i+ " :Dumped: " +def.getName());
continue;
}
writer.write("Item = "+i+" "+getPrice(i)+" 0 0");
System.out.println(+i+ " :Dumped: " +def.getName());
writer.newLine();
writer.flush();
}
if (!printOnly)
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("DONE.");
if (!printOnly)
System.out.println("The dumped file is called itemdump.txt.");
else
System.out.println("No files were written in the process.");
}
public static int getPrice(int id) {
int price = 0;
try {
String name = ItemDefinitions.getItemDefinitions(id).getName();
URL url = new URL("Only the registered members can see the link." + name.replaceAll(" ", "_"));
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
if ((line.contains("</th><td>")) && (line.contains(" coins"))) {
String[] value = line.split(" ");
if ((value == null) || (value[1] == null))
continue;
value[1] = value[1].replace(" coins", "").replace(",", "").replaceAll(" ", "");
value[1] = value[1].replace("<small>(<a href=\"/wiki/Exchange:" + name + "\" title=\"Exchange:" + name + "\">update</a>)</small>", "");
return convertInt(value[1]);
}
}
in.close();
return price;
} catch (IOException e) {
e.printStackTrace();
}
return price;
}
public static int convertInt(String str) {
try {
int i = Integer.parseInt(str);
return i; } catch (NumberFormatException e) {
}
return 0;
}
}
That's the one i made,titan made one with alching prices.
Divine-X
October 1st, 2011, 14:22
I released a dumper on Legion RS.com..
Nononononosir, Emily's wannabe copy of Runelocus should not be mentioned. Bitches and cookies will rain upon your apple juice
Sonicforce41
October 1st, 2011, 15:18
Random...
It's not a copy of RL, Its better.
Corruptice
October 1st, 2011, 21:22
thx for it but i can't start it up in here :D always errors
Corruptice
October 2nd, 2011, 15:59
i can't start this up in here its give errors can some help my or can dump them
Corruptice
October 2nd, 2011, 20:44
package tools;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import cache.Cache;
import cache.loaders.ItemDefinitions;
public class ItemDumper {
public static void main(String[] args) throws IOException {
boolean skipNull = false;
boolean printOnly = false;
for (String t : args) {
if (t.equals("-null")) {
skipNull = true;
} else if (t.equals("-print")) {
printOnly = true;
} else {
System.out.println("Usage: java ItemlistDumper [-options]");
System.out.println("");
System.out.println("Where options are:");
System.out.println("\t-null\t\tSkip items which are nulls.");
System.out.println("\t-stackable\tInclude information on whether the item is stackable or not.");
System.out.println("\t-print\t\tOnly print (will disable file-writing).");
System.out.println("");
System.out.println("Example of usage: java ItemlistDumper -null -stackable");
System.out.println("\tFormatted as: 0:Toolkit:false");
return;
}
}
long startAt = System.currentTimeMillis();
System.out.println("Starting item dump process..");
Cache.init();
System.out.println("Initiated cache in " + (System.currentTimeMillis() - startAt) + " ms.");
startAt = System.currentTimeMillis();
try {
FileWriter fWriter = null;
BufferedWriter writer = null;
// Write the formatting type:
if (!printOnly) {
fWriter = new FileWriter("itemdump.txt");
writer = new BufferedWriter(fWriter);
}
for (int i = 0; i < 25000; i++) {
ItemDefinitions def = ItemDefinitions.getItemDefinitions(i);
if (def == null)
continue;
if (def.getName().equals("null") && skipNull)
continue;
if (printOnly) {
System.out.println(+i+ " :Dumped: " +def.getName());
continue;
}
writer.write("Item = "+i+" "+getPrice(i)+" 0 0");
System.out.println(+i+ " :Dumped: " +def.getName());
writer.newLine();
writer.flush();
}
if (!printOnly)
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("DONE.");
if (!printOnly)
System.out.println("The dumped file is called itemdump.txt.");
else
System.out.println("No files were written in the process.");
}
public static int getPrice(int id) {
int price = 0;
try {
String name = ItemDefinitions.getItemDefinitions(id).getName();
URL url = new URL("Only the registered members can see the link." + name.replaceAll(" ", "_"));
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
if ((line.contains("</th><td>")) && (line.contains("*coins"))) {
String[] value = line.split(" ");
if ((value == null) || (value[1] == null))
continue;
value[1] = value[1].replace("*coins", "").replace(",", "").replaceAll(" ", "");
value[1] = value[1].replace("<small>(<a href=\"/wiki/Exchange:" + name + "\" title=\"Exchange:" + name + "\">update</a>)</small>", "");
return convertInt(value[1]);
}
}
in.close();
return price;
} catch (IOException e) {
e.printStackTrace();
}
return price;
}
public static int convertInt(String str) {
try {
int i = Integer.parseInt(str);
return i; } catch (NumberFormatException e) {
}
return 0;
}
}
That's the one i made,titan made one with alching prices.
can anyone help to start this up please
SkrilleX
October 2nd, 2011, 21:44
can anyone help to start this up please
/fp
@echo off
title Item Dumper
java -Xms250m -Xmx1024m -cp bin;lib/*; com.rs2hd.tools.ItemDumper
pause
Intensive Tony
October 2nd, 2011, 22:10
File:
package tony.tools;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import cache.Cache;
import cache.loaders.ItemDefinitions;
public class ItemDumper {
public static void main(String[] args) throws IOException {
boolean skipNull = false;
boolean printOnly = false;
for (String t : args) {
if (t.equals("-null")) {
skipNull = true;
} else if (t.equals("-print")) {
printOnly = true;
} else {
System.out.println("Usage: java ItemlistDumper [-options]");
System.out.println("");
System.out.println("Where options are:");
System.out.println("\t-null\t\tSkip items which are nulls.");
System.out.println("\t-stackable\tInclude information on whether the item is stackable or not.");
System.out.println("\t-print\t\tOnly print (will disable file-writing).");
System.out.println("");
System.out.println("Example of usage: java ItemlistDumper -null -stackable");
System.out.println("\tFormatted as: 0:Toolkit:false");
return;
}
}
long startAt = System.currentTimeMillis();
System.out.println("Starting item dump process..");
Cache.init();
System.out.println("Initiated cache in " + (System.currentTimeMillis() - startAt) + " ms.");
startAt = System.currentTimeMillis();
try {
FileWriter fWriter = null;
BufferedWriter writer = null;
// Write the formatting type:
if (!printOnly) {
fWriter = new FileWriter("itemdump.txt");
writer = new BufferedWriter(fWriter);
}
for (int i = 0; i < 25000; i++) {
ItemDefinitions def = ItemDefinitions.getItemDefinitions(i);
if (def == null)
continue;
if (def.getName().equals("null") && skipNull)
continue;
if (printOnly) {
System.out.println(+i+ " :Dumped: " +def.getName());
continue;
}
writer.write("Item = "+i+" "+getPrice(i)+" 0 0");
System.out.println(+i+ " :Dumped: " +def.getName());
writer.newLine();
writer.flush();
}
if (!printOnly)
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("DONE.");
if (!printOnly)
System.out.println("The dumped file is called itemdump.txt.");
else
System.out.println("No files were written in the process.");
}
public static int getPrice(int id) {
int price = 0;
try {
String name = ItemDefinitions.getItemDefinitions(id).getName();
URL url = new URL("Only the registered members can see the link." + name.replaceAll(" ", "_"));
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
if ((line.contains("</th><td>")) && (line.contains(" coins"))) {
String[] value = line.split(" ");
if ((value == null) || (value[1] == null))
continue;
value[1] = value[1].replace(" coins", "").replace(",", "").replaceAll(" ", "");
value[1] = value[1].replace("<small>(<a href=\"/wiki/Exchange:" + name + "\" title=\"Exchange:" + name + "\">update</a>)</small>", "");
return convertInt(value[1]);
}
}
in.close();
return price;
} catch (IOException e) {
e.printStackTrace();
}
return price;
}
public static int convertInt(String str) {
try {
int i = Integer.parseInt(str);
return i; } catch (NumberFormatException e) {
}
return 0;
}
}
Run.bat
@echo off
title Item Dumper
java -Xms250m -Xmx1024m -cp bin;lib/*; tony.tools.ItemDumper
pause
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: tony/tools/ItemDumper
Caused by: java.lang.ClassNotFoundException: tony.tools.ItemDumper
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: tony.tools.ItemDumper. Program will exit.
Druk op een toets om door te gaan. . .
SkrilleX
October 2nd, 2011, 22:24
File:
package tony.tools;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import cache.Cache;
import cache.loaders.ItemDefinitions;
public class ItemDumper {
public static void main(String[] args) throws IOException {
boolean skipNull = false;
boolean printOnly = false;
for (String t : args) {
if (t.equals("-null")) {
skipNull = true;
} else if (t.equals("-print")) {
printOnly = true;
} else {
System.out.println("Usage: java ItemlistDumper [-options]");
System.out.println("");
System.out.println("Where options are:");
System.out.println("\t-null\t\tSkip items which are nulls.");
System.out.println("\t-stackable\tInclude information on whether the item is stackable or not.");
System.out.println("\t-print\t\tOnly print (will disable file-writing).");
System.out.println("");
System.out.println("Example of usage: java ItemlistDumper -null -stackable");
System.out.println("\tFormatted as: 0:Toolkit:false");
return;
}
}
long startAt = System.currentTimeMillis();
System.out.println("Starting item dump process..");
Cache.init();
System.out.println("Initiated cache in " + (System.currentTimeMillis() - startAt) + " ms.");
startAt = System.currentTimeMillis();
try {
FileWriter fWriter = null;
BufferedWriter writer = null;
// Write the formatting type:
if (!printOnly) {
fWriter = new FileWriter("itemdump.txt");
writer = new BufferedWriter(fWriter);
}
for (int i = 0; i < 25000; i++) {
ItemDefinitions def = ItemDefinitions.getItemDefinitions(i);
if (def == null)
continue;
if (def.getName().equals("null") && skipNull)
continue;
if (printOnly) {
System.out.println(+i+ " :Dumped: " +def.getName());
continue;
}
writer.write("Item = "+i+" "+getPrice(i)+" 0 0");
System.out.println(+i+ " :Dumped: " +def.getName());
writer.newLine();
writer.flush();
}
if (!printOnly)
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("DONE.");
if (!printOnly)
System.out.println("The dumped file is called itemdump.txt.");
else
System.out.println("No files were written in the process.");
}
public static int getPrice(int id) {
int price = 0;
try {
String name = ItemDefinitions.getItemDefinitions(id).getName();
URL url = new URL("Only the registered members can see the link." + name.replaceAll(" ", "_"));
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
if ((line.contains("</th><td>")) && (line.contains("*coins"))) {
String[] value = line.split(" ");
if ((value == null) || (value[1] == null))
continue;
value[1] = value[1].replace("*coins", "").replace(",", "").replaceAll(" ", "");
value[1] = value[1].replace("<small>(<a href=\"/wiki/Exchange:" + name + "\" title=\"Exchange:" + name + "\">update</a>)</small>", "");
return convertInt(value[1]);
}
}
in.close();
return price;
} catch (IOException e) {
e.printStackTrace();
}
return price;
}
public static int convertInt(String str) {
try {
int i = Integer.parseInt(str);
return i; } catch (NumberFormatException e) {
}
return 0;
}
}
Run.bat
@echo off
title Item Dumper
java -Xms250m -Xmx1024m -cp bin;lib/*; tony.tools.ItemDumper
pause
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: tony/tools/ItemDumper
Caused by: java.lang.ClassNotFoundException: tony.tools.ItemDumper
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: tony.tools.ItemDumper. Program will exit.
Druk op een toets om door te gaan. . .
Compile it or use eclipse....
Sonicforce41
October 2nd, 2011, 22:33
Its working for me in eclipse.
Corruptice
October 2nd, 2011, 23:42
ecplise i can get it to start haha i Fails Jeeeeez
Going to Give Up Rsps pfffff
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.