File tree 2 files changed +39
-6
lines changed
2 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 1
- # LOL12thBalloon
2
- LOL週年活動搶氣球程式
1
+ # LOL12thBalloon - LOL週年活動搶氣球程式
2
+
3
+ ## balloon.exe
4
+ 仰賴圖片辨識,會因使用者顯示設定而需個別設定
5
+
6
+ ### 環境
7
+ - LOL大廳解析度:** 1280* 720**
8
+ - Windows顯示比例:** 125%**
9
+ - 需以** 管理員** 身分執行
10
+
11
+ ### 功能
12
+ - 爬取Garena新聞下方的最新評論,並輸入序號
13
+ - 搶完60顆氣球後自動兌換獎勵(需圖資支持)
14
+ - 完成後自動停止並播放通知,大約10分鐘可以搶完60顆氣球
15
+
16
+ ### 個人化
17
+ - 若使用者無法和開發環境相同,可自行截圖並替換以下檔案
18
+ - confirm.png
19
+ - inBox1.png
20
+ - inBox2.png
21
+ - submit1.png
22
+ - submit2.png
23
+
24
+ ## balloonCMD.exe
25
+ 使用token執行,需自行取得token
26
+
27
+ ### 使用說明
28
+ 1 . 開啟LOL主程式並進入活動頁面
29
+ 2 . 開啟 ` C:\Garena\Games\32775\Game\Logs\LeagueClient Logs ` 資料夾(請自行依安裝路徑調整)
30
+ 3 . 使用記事本打開最新的_LeagueClient.log文件
31
+ ![ ] ( https://i.imgur.com/B8p9Tp2.png )
32
+ 4 . 在其中搜尋 ` https://bargain.lol.garena.tw/?token= `
33
+ ![ ] ( https://i.imgur.com/09ndWug.png )
34
+ 5 . 複製網址貼上到程式中
Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ def getBalloon(token):
75
75
time .sleep (0.5 )
76
76
return True
77
77
print ("錯誤!{}" .format (errDic [res ['error' ]]))
78
- time .sleep (0.1 )
78
+ time .sleep (0.25 )
79
79
else :
80
80
allAmount = res ["enter_code_amount" ]
81
81
curAmount = res ["current_token_amount" ]
82
82
print ("成功!已兌換{}顆氣球,當前擁有{}顆氣球" .format (allAmount ,curAmount ))
83
83
countSuccess += 1
84
- time .sleep (0.4 )
84
+ time .sleep (1 )
85
85
countSubmit += 1
86
86
def redeemBalloon (token ,item_id ):
87
87
url = "https://bargain.lol.garena.tw/api/redeem"
@@ -94,6 +94,7 @@ def redeemBalloon(token,item_id):
94
94
resJson = json .loads (res .text )
95
95
if 'reward' in resJson .keys ():
96
96
print ("已兌換獎勵:{}" .format (resJson ['reward' ]['name' ]))
97
+ time .sleep (0.5 )
97
98
#else:
98
99
# print(resJson)
99
100
def Balloon (token ):
@@ -106,8 +107,8 @@ def Balloon(token):
106
107
if __name__ == '__main__' :
107
108
token = ""
108
109
while (not token ):
109
- url = input ("請輸入token,或貼上活動頁面「個人數據回顧」中包含token的網址 :" )
110
- reUrl = re .match (r'https://datareview \.lol\.garena\.tw/.+?token=(.+)' , url )
110
+ url = input ("請輸入token,或貼上包含token的網址 :" )
111
+ reUrl = re .match (r'https://.+? \.lol\.garena\.tw/.+?token=(.+)' , url )
111
112
token = reUrl .group (1 ) if reUrl else (url if len (url ) == 64 else token )
112
113
if token : Balloon (token )
113
114
You can’t perform that action at this time.
0 commit comments