Returns POH location found in config 738. My cons is quite low so I've only tested this for rimmington/taverly/pollniveach, unless they do some weird shit it should work for other locations as well. Note: positions for brimhaven/yanille are missing atm.
public class POH {
private static final int POH_CONFIG = 738;
public static POHLocation getLocation(MethodProvider api) {
int c = api.configs.get(POH_CONFIG) & 0x7; // clear other bits
return POHLocation.values()[c];
}
public enum POHLocation {
None(0x0, new Position(0,0,0)),
RIMMINGTON(0x1, new Position(2953,3224,0)),
TAVERLY(0x2, new Position(2893,3465,0)),
POLLNIVEACH(0x3, new Position(3340,3003,0)),
RELLEKKA(0x4, new Position(2670,3631,0)),
BRIMHAVEN(0x5, new Position(0,0,0)),
YANILLE(0x6, new Position(0,0,0));
public final int mask;
public final Position position;
POHLocation(int mask, Position position) {
this.mask = mask;
this.position = position;
}
}
}