1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/steam.py

10 lines
282 B
Python
Raw Normal View History

2016-11-08 17:17:16 +01:00
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