RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendChatBoxInterface.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.net.codec.ByteOrder;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.net.packet.OutgoingPacket;
6
25
26public class SendChatBoxInterface extends OutgoingPacket {
27
28 private final int interfaceId;
29
30 public SendChatBoxInterface(int interfaceId) {
31 super(164, 2);
32 this.interfaceId = interfaceId;
33 }
34
35 @Override
36 public boolean encode(Player player) {
37 player.interfaceManager.setDialogue(1);
38 builder.writeShort(interfaceId, ByteOrder.LE);
39 return true;
40 }
41}