Is it possible to Send the Datapacket /RemoteCommand (116)/ to the Client To open a Box wif custom text in it?
That's how I did it, experiment with it and I'm sure you nail it.Quote:
public static void HandleCraftingPacket(BasePacket Packet, GameClient Client)
{
Int32[] item;
uint reward = 0;
for (int i = 0; i < BitConverter.ToInt16(Packet.Buffer, 10); i++)
{
item = new Int32[BitConverter.ToInt16(Packet.Buffer, 10)];
item[i] = BitConverter.ToInt32(Packet.Buffer, 12 + (i * 4));
ItemDataPacket Item = Client.GetInventoryItemByUID((uint)item[i]);
if (Item.ID != 0)
{
reward += Kernel.ItemData[Item.ID].GoldPrice / 3;
Client.RemoveInventory((uint)item[i]);
}
}
Client.Send(new ChatPacket("You've sold items for " + reward + " silvers!", ChatType.TopLeft));
Client.Money += reward;
}