Ok, something is fucking up and i beleive its the projectile or the location. As if you move and the projectile shoots it fucks it up and the projectile shoots from a diff location than your standing.
Code:
public void createProjectile(Location source, int offsetX, int offsetY, int angle, int speed, int gfxMoving, int startHeight, int endHeight, int lockon,int slope) {
PacketBuilder playerCoord = new PacketBuilder(85, Type.FIXED).putByteC((source.getY() - (player.getLocation().getRegionY() * 8)) - 2).putByteC((source.getX() - (player.getLocation().getRegionX() * 8)) - 3);
PacketBuilder projectile = new PacketBuilder(117, Type.FIXED).put((byte)angle).put((byte)offsetY).put((byte)offsetX).putShort(lockon).putShort(gfxMoving).put((byte)startHeight).put((byte)endHeight).putShort(51/*delay*/).putShort(speed).put((byte)slope/*slope*/).put((byte)64/*offset value on player tile*/);
player.write(playerCoord.toPacket());
player.write(projectile.toPacket());
}
Code:
[2272,4697,0]//normal spot
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]//slightly different spot (over a few distances)
[2272,4697,0]//continues...
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]
[2272,4697,0]