-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMain.cs
115 lines (95 loc) · 2.83 KB
/
Main.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
using System;
using System.Windows.Forms;
using LoLSharp.Core;
using LoLSharp.Game;
using LoLSharp.Game.Objects;
using LoLSharp.GameScripts;
using LoLSharp.Modules;
namespace LoLSharp
{
class Main
{
public static void OnMain()
{
try
{
if (LocalPlayer.Vo == null)
return;
var customScriptBases = CustomScriptController.GetActiveScripts();
foreach (var scriptBase in customScriptBases)
{
scriptBase.Update();
}
if (LocalPlayer.Vo.champName == "Karthus")
{
Karthus.Update2();
}
if (LocalPlayer.Vo.champName == "Rengar")
{
AutoSmite2.Rengar();
}
if (Utils.IsKeyPressed(Keys.Space) && Utils.IsGameOnDisplay())
{
// Engine.LoadChampionsManager();
//
// var enemies = Engine.TeamDistinct.GetEnemies();
// if (enemies.Length > 0)
// {
// var enemy = enemies[0];
// var isVisible = enemy.GetIsVisible();
// var hp = enemy.GetHp();
// LogService.Log(" name: " + enemy.name + " hp: " + hp + " isVisible: " + isVisible);
// }
if (LocalPlayer.Vo.champName == "Karthus")
{
Karthus.Update();
}
if (LocalPlayer.SettingsVo.Orbwalker)
{
// Orbwalker2.Update();
}
// Orbwalker.Orbwalk();
/*Point EnemyPosition = ObjectManager.GetEnemyPosition();
if (EnemyPosition != Point.Empty)
{
SpellBook.CastSpell(SpellBook.SpellSlot.Q, EnemyPosition);
SpellBook.SpellSlot[] SpellArray = new SpellBook.SpellSlot[]
{
SpellBook.SpellSlot.Q,
SpellBook.SpellSlot.W,
SpellBook.SpellSlot.E
};
SpellBook.CastMultiSpells(SpellArray, EnemyPosition);
}
else
{
Engine.IssueOrder(Enums.GameObjectOrder.MoveTo, Cursor.Position);
}*/
}
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
public static void OnLate()
{
if (Utils.IsKeyPressed(Keys.Delete) && Utils.IsGameOnDisplay())
{
LocalPlayer.SettingsVo.SmiteAll = !LocalPlayer.SettingsVo.SmiteAll;
LogService.Log("SmiteAll: " + LocalPlayer.SettingsVo.SmiteAll);
AutoSmite2.State = AutoSmite2State.FindTarget;
}
if (Utils.IsKeyPressed(Keys.End) && Utils.IsGameOnDisplay())
{
LocalPlayer.SettingsVo.Orbwalker = !LocalPlayer.SettingsVo.Orbwalker;
LogService.Log("Orbwalker: " + LocalPlayer.SettingsVo.Orbwalker);
}
Engine.LoadMinionManager();
//
// ScriptManager.ExecuteLateUpdates();
// AutoSmite.LateUpdate();
}
}
}