This is for hyperion of coruse
Well anyways it's kinda weird when I light a fire and walk east it spawns the object behind me about 10 squares. But if I'm standing still or going any other direction it spawns it on the right coords.
The frame should be right.
Code:
public ActionSender sendNewObject(Location loc, int id, int face, int type) {
player.write(new PacketBuilder(85)
.putByteC(loc.getY() - 8 * loc.getRegionY())
.putByteC(loc.getX() - 8 * loc.getRegionX())
.toPacket());
player.write(new PacketBuilder(151)
.putByteA(0)
.putLEShort(id)
.putByteS((byte)((type << 2) + (face & 3)))
.toPacket());
return this;
}
usage
Code:
player.getActionSender().sendNewObject(player.getLocation(), NORMAL_FIRE, -1, 10);
Any idea's whats wrong?