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:
http://runeleak.com/forum/topic/770-sireps-argus-leaked-enjoy/
If it is programmed like I would imagine you could probably convert certain parts of that system.
So all of your images seem to be broken. Question, why use packets for gambling? Is it some kind of secure player-to-player gambling you are trying to add?