i realy need the mapdata packer thing... the one used for espeon i cant find it iv spent like 2 hours looking does anyone have it?
this is the java file in espeon
Code:
package net.com.espeon.world.mapdata;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
import net.com.espeon.util.*;
public class MapData {
private static HashMap<Integer, int[]> mapRegions;
private static int mapId;
public int mapData[] = new int[4];
public int[] getMapData(int region) {
return mapRegions.get(region);
}
public void loadRegions()
{
try {
DataInputStream in = new DataInputStream(new FileInputStream("./data/mapdata/1.dat"));
do {
int i = in.readInt();
if(i == 0) {
break;
} else
if(i != 0) {
mapId = in.readInt();
for(int data = 0; data < 4; data++) {
mapData[data] = in.readInt();
}
}
mapRegions.put(mapId, new int[]{ mapData[0], mapData[1], mapData[2], mapData[3]});
} while(true);
}
catch(IOException ioe) { ioe.printStackTrace(); }
}
static {
mapId = 0;
mapRegions = new HashMap<Integer, int[]>();
}
}
so does anyone have it?