Finished the login for the server and started on the packets to get the world to send. I'm using the some of the packet stuff from Apollo which can be found here on Github converted to c# obv.
the login branch is the updated version of the build featuring the current updates.
here is an example of a packet used in DotNetwork
Code:
namespace DotNetwork.Oldscape.Network.Protocol.Packet.Encoder.Impl
{
/// <summary>
/// The root interface packet encoder.
/// </summary>
sealed class RootInterfaceEncoder : PacketEncoder<RootInterfaceContext>
{
/// <summary>
/// Constructs a new object.
/// </summary>
public RootInterfaceEncoder() : base(208, PacketType.FIXED) { }
/// <summary>
/// Encodes the packet.
/// </summary>
/// <param name="player"></param>
/// <param name="context"></param>
public override void Encode(Player player, RootInterfaceContext context)
{
builder.Put(DataType.SHORT, DataOrder.LITTLE, context.GetId());
}
}
}