-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSessionInit.cs
101 lines (88 loc) · 2.26 KB
/
SessionInit.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
using System.Diagnostics;
using Client;
using Client.UI;
namespace BotFarm
{
class SessionInit //, AutomatedGame
{
public static SessionInit Instance
{
get;
private set;
}
public static string setLogonserver
{
set => Logonserver = value;
get
{
return Logonserver;
}
}
public static string setUsername
{
set => Username = value;
get
{
return Username;
}
}
public static string setPassword
{
set => Password = value;
get
{
return Password;
}
}
public static bool setAFKCheck
{
set => AFKCheck = value;
get
{
return AFKCheck;
}
}
public static int setAFKStatus
{
set => AFKStatus = value;
get
{
return AFKStatus;
}
}
private static string Logonserver;
private static string Username;
private static string Password;
private static bool AFKCheck;
private static int AFKStatus;
public static string Logging;
public AutomatedGame factoryGame;
public SessionInit()
{
Instance = this;
factoryGame = new AutomatedGame(Logonserver,
3724,
Username,
Password,
0,
0);
factoryGame.Start();
}
[Conditional("DEBUG")]
public void LogDebug(string message)
{
Log(message, LogLevel.Debug);
}
public void Log(string message, LogLevel level = LogLevel.Info)
{
#if !DEBUG_LOG
if (level > LogLevel.Debug)
#endif
{
Logging = Logging + message + "/n";
//Console.WriteLine(message);
//logger.WriteLine(message);
}
}
}
}