Hey everyone,

so I wanted to start with 508 again and found these frames. Don't know if they are already known or not but here you go.

Info: The base I was using is rs2hd



Send chatbox configurations
It changes the settings of the chatbox based on the values you send to the client.

Code:
public void sendChatboxSettings(int val1, int val2, int val3) {//Public on/off/friends ; Trade on/off/friends ...
		player.getSession().write(new StaticPacketBuilder().setId(186)
				.addByte((byte) val1)
				.addByte((byte) val2)
				.addByte((byte) val3)
				.toPacket());
	}
Example with values sendChatboxSettings(1, 1, 1); the result is:
Attached image


Camera movement (Cutscene-like and just stiff)

Code:
//Need to figure out how to use this properly...
	//Camera rotation
	public void sendCameraMovementCutscene(int moveLocalX, int moveLocalY, int moveZ,
			int speed1, int speed2) {
		player.getSession().write(new StaticPacketBuilder().setId(193)
				.addByte((byte) moveLocalX)
				.addByte((byte)moveLocalY)
				.addShort(moveZ)
				.addByte((byte)speed1)
				.addByte((byte)speed2)
				.toPacket());
	}
I tried to match the variables with the camera movement vars of the matrix source but they do not match up so please ignore the naming of the variables.
Moves the camera in a direction, turns it, changes height etc.
It needs to be tested in order to get the correct meanings for each value. Pretty cool packet though.


Code:
//Also camera movement but this one is more direct
	//Needs to be played around with aswell
	public void moveCamera(int moveLocalX, int moveLocalY, int moveZ,
			int speed1, int speed2) {
		player.getSession().write(new StaticPacketBuilder().setId(211)
				.addByte((byte) moveLocalX)
				.addByte((byte) moveLocalY)
				.addShort(moveZ >> 2)
				.addByte((byte) speed1)
				.addByte((byte) speed2)
				
				.toPacket());
	}
This frame just moves the camera towards one direction, no turning or twisting


Code:
//Resets the camera back to normal after playing around with sendCameraPosition or moveCamera for example
	public void resetCamera() {
		player.getSession().write(new StaticPacketBuilder().setId(56)
				.toPacket());
	}
This frame just resets the camera to default so you are not stuck in the camera position you moved it to.



Reset configurations frame?

Code:
//This some configs maybe?
	//Musicplayer configs return to standard after sending this packet
	public void resetConfigs() {
		player.getSession().write(new StaticPacketBuilder().setId(108).toPacket());
	}
I did not notice this at first but I have my music system working with music list configs for unlocking tracks etc.
I found out that after I send this frame it resets the configs (Unlocked tracks go from for example 5/555 back to 0/555 and unlocked tracks are red again). When the configs are refreshed it is back to normal.
I thought that this could maybe be used for some type of configs that require a reset after not being used anymore for example worldmap maybe?



Anyways that basically it, you may keep me updated if you are testing these frames and find out anything