steamutils 1.4.94 → 1.4.95
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +18 -8
- package/create_remote_file.js +2 -8
- package/package.json +1 -1
- package/remote.js +2 -8
package/SteamClient.js
CHANGED
@@ -485,7 +485,7 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
485
485
|
}
|
486
486
|
|
487
487
|
async function offAutoGamePlay() {
|
488
|
-
steamClient
|
488
|
+
steamClient?.gamesPlayed([]);
|
489
489
|
doClearInterval("autoGamePlay");
|
490
490
|
}
|
491
491
|
|
@@ -2739,26 +2739,36 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
2739
2739
|
return response;
|
2740
2740
|
}
|
2741
2741
|
|
2742
|
-
function redeemFreeReward(itemIds, generation_time) {
|
2742
|
+
async function redeemFreeReward(itemIds, generation_time) {
|
2743
2743
|
if (isLogOff) {
|
2744
2744
|
return;
|
2745
2745
|
}
|
2746
|
-
console.log(`Sent message to GC: AppID ${AppID}, MessageType ${ESteamProto.ECsgoGCMsg.k_EMsgGCCStrike15_v2_ClientRedeemFreeReward}`);
|
2747
|
-
|
2748
2746
|
const encodedMessages = new SteamProto(SteamProtoType.CMsgGCCstrike15_v2_ClientRedeemFreeReward).protoEncode({
|
2749
|
-
items: itemIds,
|
2747
|
+
items: itemIds.map(String),
|
2748
|
+
generation_time: generation_time, // Example
|
2749
|
+
redeemable_balance: 1, // Adjust as necessary
|
2750
2750
|
});
|
2751
2751
|
steamClient.sendToGC(
|
2752
2752
|
730,
|
2753
|
-
|
2753
|
+
9219,
|
2754
2754
|
{
|
2755
2755
|
steamid: steamClient.steamID.getSteamID64(),
|
2756
2756
|
routing_appid: 730,
|
2757
2757
|
},
|
2758
2758
|
encodedMessages,
|
2759
|
-
|
2760
|
-
|
2759
|
+
);
|
2760
|
+
|
2761
|
+
await sleep(30000);
|
2762
|
+
|
2763
|
+
steamClient._send(
|
2764
|
+
{
|
2765
|
+
msg: 9219,
|
2766
|
+
proto: {
|
2767
|
+
steamid: steamClient.steamID.getSteamID64(),
|
2768
|
+
routing_appid: 730,
|
2769
|
+
},
|
2761
2770
|
},
|
2771
|
+
encodedMessages,
|
2762
2772
|
);
|
2763
2773
|
}
|
2764
2774
|
|
package/create_remote_file.js
CHANGED
@@ -57,16 +57,10 @@ function getAppURL() {
|
|
57
57
|
RemoteSteamUser.__appIndex = 0;
|
58
58
|
}
|
59
59
|
RemoteSteamUser.__appIndex++;
|
60
|
-
|
61
|
-
if (!RemoteSteamUser.__apps__half) {
|
62
|
-
const half = Math.ceil(RemoteSteamUser.__apps.length / 2);
|
63
|
-
RemoteSteamUser.__apps__half = new Date().getDate() > 15 ? RemoteSteamUser.__apps.slice(0, half) : RemoteSteamUser.__apps.slice(half);
|
64
|
-
}
|
65
|
-
|
66
|
-
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps__half.length) {
|
60
|
+
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
67
61
|
RemoteSteamUser.__appIndex = 0;
|
68
62
|
}
|
69
|
-
return RemoteSteamUser.
|
63
|
+
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
70
64
|
}
|
71
65
|
|
72
66
|
function formatParams(__params, __cookies) {
|
package/package.json
CHANGED
package/remote.js
CHANGED
@@ -7,16 +7,10 @@ function getAppURL() {
|
|
7
7
|
RemoteSteamUser.__appIndex = 0;
|
8
8
|
}
|
9
9
|
RemoteSteamUser.__appIndex++;
|
10
|
-
|
11
|
-
if (!RemoteSteamUser.__apps__half) {
|
12
|
-
const half = Math.ceil(RemoteSteamUser.__apps.length / 2);
|
13
|
-
RemoteSteamUser.__apps__half = new Date().getDate() > 15 ? RemoteSteamUser.__apps.slice(0, half) : RemoteSteamUser.__apps.slice(half);
|
14
|
-
}
|
15
|
-
|
16
|
-
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps__half.length) {
|
10
|
+
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
17
11
|
RemoteSteamUser.__appIndex = 0;
|
18
12
|
}
|
19
|
-
return RemoteSteamUser.
|
13
|
+
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
20
14
|
}
|
21
15
|
|
22
16
|
function formatParams(__params, __cookies) {
|