Okay, I'm having a problem when I call a mask, like FaceCoords, etc.
Heres my objectOption1:
Code:
private void handleOption1(Player player, Packet packet) {
int x = packet.getLEShortA() & 0xFFFF;
int id = packet.getShort() & 0xFFFF;
int y = packet.getShort() & 0xFFFF;
System.out.println("x: " + x + " id: " + id +" y: " + y);
Location loc = Location.create(x, y, player.getLocation().getZ());
player.getUpdateFlags().reset();
player.playAnimation(Animation.create(867));
player.face(loc);
I'm still getting used to hyperion, but why doesn't this work?
Now, if I do player.face(loc); it crashes the client. But if I do player.getUpdateFlags().reset(); Then I can do player.face(loc); And that works fine. (But if I was just doing this in a command, I don't need the reset();, why?)
However, I can't get it to work with playing the animation aswell lawl. I can get the playAnimation to work if that's all I do, but if I use player.face at the same time, then the animation gets screwed up and you do something random.
Sorry if I didn't explain too well.
But can someone explain how these should be called, or would it be a problem in my actual updatemasks?
Thanks...