1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Whaaaaaaat.

This commit is contained in:
Steffo 2016-11-08 17:17:16 +01:00
parent 4f5f868ed1
commit 00820f1454

9
steam.py Normal file
View file

@ -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