-
Notifications
You must be signed in to change notification settings - Fork 1
/
Funcs.cs
59 lines (54 loc) · 1.72 KB
/
Funcs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Fortnite
{
internal class Funcs
{
public static string ParseToken(string content, string leftString, string rightString)
{
var returnThis = content.Split(new string[] { leftString }, StringSplitOptions.None)[1];
returnThis = returnThis.Split(new string[] { rightString }, StringSplitOptions.None)[0];
return returnThis;
}
/// <summary>
/// IGNORE THIS I WILL FIX LATER JUST TEMP FOR NOW ;)
/// </summary>
public static void CalcCPM()
{
for (; ; )
{
Tools.Cpm_Builder = 0;
Thread.Sleep(1000);
Tools.Cpm_Final = Tools.Cpm_Builder;
Tools.Cpm_Final *= 60;
}
}
///
// IF YOU WANT TO USE DISCORD RPC HERE I MADE THIS. YOU CODE THE REST
///
/*public static void RPCUpdater()
{
Thread.Sleep(500);
for (; ; )
{
string Status = Tools.RunningThreads > 0 ? "Running" : "Paused";
string Details = string.Format("Hits: {0} - Free: {1} - Bads: {2} - CPM: {3} - {4}", new object[]
{
Tools.Hits,
Tools.Frees,
Tools.Bads,
Tools.Cpm_Final,
Status,
});
string status = $"Checking: {Tool.Toolname}";
RPC.Handler.UpdatePresence(Details, status);
Thread.Sleep(5000);
}
}*/
}
}