From 00820f1454264317708eea1a4e3ca6a801ac1cd9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Nov 2016 17:17:16 +0100 Subject: [PATCH] Whaaaaaaat. --- steam.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 steam.py 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