作者:
panex0845 (胖克æ€)
2023-01-12 17:28:49※ 引述《a5687920 (苦大師)》之銘言:
: 現在積分隱藏隊友名字 有點不人道耶
: 因為查到雷包我寧願跳game 等五分鐘 也不想進去浪費20分...
: 這機制到底何時會改回來 現在原廠直營 要查更方便了
: 還有辦法在選角時查到嗎?
========警告=======
本文僅用於學術教育目的 請勿使用任何方法去查詢隊友ID
看到任何宣稱可以在積分查隊友的APP或網頁也不要使用
否則你的帳號會被BAN 14天
===================
要查隊友ID很簡單,用RIOT內建的LCU就可以查了 (13.1仍可用)
以python為例,實作如下:
首先先導入需要的模組,並建立一個類別
from win32com.client import GetObject
import base64, requests
requests.packages.urllib3.disable_warnings()
class LCU:
def __init__(self):
self.process = 'LeagueClientUx.exe'
self.protocol = 'https'
self.host = '127.0.0.1'
建立一個函式,使用wmi去查詢需要的資料
def get_gameData(self):
winmgmts = GetObject('winmgmts:')
processes = winmgmts.InstancesOf('Win32_Process')
for p in processes:
if p.Properties_("Name").Value == self.process:
return p.Properties_[1].Value
這個會返回下列字串
"D:/Riot Games/League of Legends/LeagueClientUx.exe"
"