diff --git a/steam.py b/steam.py new file mode 100644 index 00000000..be68b1a2 --- /dev/null +++ b/steam.py @@ -0,0 +1,9 @@ +def convert_sid_1_3(steamid: int, group=False): + """Convert SteamID1 to SteamID3""" + accuniverse = steamid % 2 + if group: + acctype = 0x0170000000000000 + else: + acctype = 0x0110000100000000 + accid = (steamid - acctype - accuniverse) / 2 + return accid