mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-13 01:51:39 -07:00
Moved around some Static fields/methods, named LocType opcode 74
This commit is contained in:
parent
82c75b3ec9
commit
5e66d3ba01
95 changed files with 946 additions and 993 deletions
|
|
@ -15,6 +15,9 @@ import java.io.File;
|
|||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
|
||||
public class Playground extends GameShell {
|
||||
public static Playground instance;
|
||||
|
|
@ -200,6 +203,29 @@ public class Playground extends GameShell {
|
|||
|
||||
public void loadItem(int id, int count) {
|
||||
sprite = Inv.getObjectSprite(0, id, false, count, 0);
|
||||
|
||||
try {
|
||||
Files.write(
|
||||
Paths.get("items.csv"),
|
||||
"id,name,cost\n".getBytes(),
|
||||
StandardOpenOption.CREATE_NEW);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
};
|
||||
for (int i = 0; i < 14657; ++i) {
|
||||
try {
|
||||
ObjType obj = ObjTypeList.get(i);
|
||||
if (obj == null) {
|
||||
break;
|
||||
}
|
||||
Files.write(
|
||||
Paths.get("items.csv"),
|
||||
(i + "," + obj.name + "," + obj.cost + "\n").getBytes(),
|
||||
StandardOpenOption.APPEND);
|
||||
} catch (Exception ex) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void loadNpc(int id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue