The authresponse packet sends 2 values that can be practically anything and the 1052 packet uses those values for decryption reasons (5017). Now I want to send the account ID with the authresponse packet, the issue here is that the authresponse packet requires an uint and the account ID is obviously a string so is there a way to convert the string to an uint and back again when needed?
When googling I came across a slightly roundabout way that didn't really work as intended, it was along the lines of string -> byte array -> uint but when converting back, it came out a bit... weird, the string ended up being halved.
//edit Posted this in the wrong section, should be moved to the pserver section or programming section.
When googling I came across a slightly roundabout way that didn't really work as intended, it was along the lines of string -> byte array -> uint but when converting back, it came out a bit... weird, the string ended up being halved.
//edit Posted this in the wrong section, should be moved to the pserver section or programming section.