mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Whaaaaaaat.
This commit is contained in:
parent
4f5f868ed1
commit
00820f1454
1 changed files with 9 additions and 0 deletions
9
steam.py
Normal file
9
steam.py
Normal 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
|
Loading…
Reference in a new issue