public static void loadData(Player p, DatabaseResult result) {
		ByteBuffer profile = ByteBuffer.wrap(result.getProfile());
		p.setLocation(RSTile.locate(profile.getShort(), profile.getShort(), profile.get()));
		for(int i = 0; i < p.getLooks().getLooks().length; i++) {
			p.getLooks().getLooks()[i] = profile.get();
		}
		for(int i = 0; i < p.getLooks().getColours().length; i++) {
			p.getLooks().getColours()[i] = profile.get();
		}
		p.getLooks().setGender(profile.get());
		for(int i = 0; i < Levels.MAX_SKILLS; i++) {
			p.getLevels().getLevel()[i] = profile.get();
			p.getLevels().getXp()[i] = profile.getInt();
		}
		for(int i = 0; i < Equipment.SIZE; i++) {
			int id = profile.getShort();
			if(id == 30000) {
				p.getEquipment().getContainer().set(i, null);
			} else {
				int am = profile.getInt();
				p.getEquipment().getContainer().set(i, new Item(id, am));
			}
		}
		for(int i = 0; i < 28; i++) {
			int id = profile.getShort();
			if(id == 30000) {
				p.getInventory().set(i, null);
			} else {
				int am = profile.getInt();
				p.getInventory().set(i, new Item(id, am));
			}
		}
	}