Tbh, I am kind of bad with packets. However, this source may be able to help a bit with the mechanics. Not sure if it uses packets for the "dice battle" system:
[Hidden Content]
If it is programmed like I would imagine you could probably convert certain parts of that system.