Module: MiscCommands::Misc_ClassMethods

Defined in:
lib/Misc.rb

Instance Method Summary collapse

Instance Method Details

#partner_id_to_steam_id(account_id) ⇒ Object



117
118
119
120
121
122
123
# File 'lib/Misc.rb', line 117

def partner_id_to_steam_id()
      unknown_constant = 17825793 # or 0x1100001 idk wtf is this but ....

      first_bytes = [.to_i].pack('i>')
      last_bytes = [unknown_constant].pack('i>')
      collect = last_bytes + first_bytes
      return collect.unpack('Q>')[0].to_s
end