本文整理汇总了C#中LeagueSharp.Common.Orbwalking.Orbwalker类的典型用法代码示例。如果您正苦于以下问题:C# Orbwalking.Orbwalker类的具体用法?C# Orbwalking.Orbwalker怎么用?C# Orbwalking.Orbwalker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Orbwalking.Orbwalker类属于LeagueSharp.Common命名空间,在下文中一共展示了Orbwalking.Orbwalker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
EQDrawList = new List<Vector3>();
Player = ObjectManager.Player;
if (Player.ChampionName != ChampionName) return;
Q = new Spell(SpellSlot.Q, 700f);
Q.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotLine);
W = new Spell(SpellSlot.W, 300f);
E = new Spell(SpellSlot.E, 830f);
E.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotCircle);
Config = new Menu("J4Helper", "J4Helper", true);
//Orbwalker
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
//Misc
Config.AddSubMenu(new Menu("Keys", "Keys"));
Config.SubMenu("Keys")
.AddItem(
new MenuItem("EQMouse", "EQ to Mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
Config.AddToMainMenu();
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Game.PrintChat("J4Helper Loaded.");
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
}
示例2: OnMenu
public override void OnMenu()
{
menu.AddToMainMenu();
menu.SubMenu(name).SubMenu("Combo").AddItem(new MenuItem("ComboQ", "UseQ", true).SetValue(true));
menu.SubMenu(name).SubMenu("Combo").AddItem(new MenuItem("ComboW", "UseW", true).SetValue(false));
menu.SubMenu(name).SubMenu("Combo").AddItem(new MenuItem("ComboE", "UseE", true).SetValue(true));
menu.SubMenu(name).SubMenu("Combo").AddItem(new MenuItem("ComboR", "UseR", true).SetValue(true));
menu.SubMenu(name).SubMenu("Harass").AddItem(new MenuItem("HarassQ", "UseQ", true).SetValue(true));
menu.SubMenu(name).SubMenu("Harass").AddItem(new MenuItem("HarassE", "UseE", true).SetValue(true));
menu.SubMenu(name).SubMenu("LaneClear").AddItem(new MenuItem("LaneClearQ", "UseQ", true).SetValue(false));
menu.SubMenu(name).SubMenu("LaneClear").AddItem(new MenuItem("LaneClearE", "UseE", true).SetValue(false));
menu.SubMenu(name).SubMenu("JungleClear").AddItem(new MenuItem("JungleClearQ", "UseQ", true).SetValue(true));
menu.SubMenu(name).SubMenu("JungleClear").AddItem(new MenuItem("JungleClearE", "UseE", true).SetValue(true));
menu.SubMenu(name).SubMenu("Creadits : kywooo");
var movingMenu = new Menu("OrbWalker", "orbWalker", true);
moving = new Orbwalking.Orbwalker(movingMenu);
menu.SubMenu(name).AddSubMenu(movingMenu);
var TargetMenu = new Menu("TargetSelector", "targetselector", true);
TargetSelector.AddToMenu(TargetMenu);
menu.SubMenu(name).AddSubMenu(TargetMenu);
}
示例3: OnGameLoad
private static void OnGameLoad(EventArgs e)
{
if (Player.ChampionName != "Kalista")
{
return;
}
Q = new Spell(SpellSlot.Q, 1130);
W = new Spell(SpellSlot.W, 5200);
E = new Spell(SpellSlot.E, 1000);
R = new Spell(SpellSlot.R, 1400f);
Q.SetSkillshot(0.25f, 30f, 1700f, true, SkillshotType.SkillshotLine);
Text = new Font(Drawing.Direct3DDevice, new FontDescription { FaceName = "Arial", Height = 35, Width = 12, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default });
root = new Menu("HastaKalistaBaby", "hkalista", true);
draw = new Menu("Drawings Settings", "drawing");
Orbwalker = new Orbwalking.Orbwalker(root.SubMenu("Orbwalker Settings"));
MenuManager.Create();
DamageIndicator.Init(Damage.GetEdamage);
ee = new EarlyEvade();
AutoLevel.Init();
Game.OnUpdate += OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Obj_AI_Base.OnProcessSpellCast += Helper.OnProcessSpellCast;
Spellbook.OnCastSpell += Helper.OnCastSpell;
}
示例4: Load
internal static void Load()
{
//Menu principal
Menu = new Menu("[Fenix] AIO", "By: Maskov", true);
Orbwalker = new Orbwalking.Orbwalker(Menu.AddSubMenu(new Menu(Player.ChampionName + ": Orbwalker", "Orbwalker")));
TargetSelector.AddToMenu(Menu.AddSubMenu(new Menu(Player.ChampionName + ": Target Selector", "Target Selector")));
Menu.AddSubMenu(new Menu(Player.ChampionName + ": Drawings", "Drawings"));
Menu.SubMenu("Drawings").AddItem(new MenuItem("drawingTarget", "AA Target").SetValue(true));
Menu.AddToMainMenu();
//Menu - FIM
Utilidades.Autolevelup.Load();
Utilidades.SharedExperience.Load();
Utilidades.HbTracker.Load();
Utilidades.MActivator.Load();
Utilidades.Evade.Evade.Load();
if (Player.ChampionName == "Vayne")
{
Champions.Vayne.Load();
}
if (Player.ChampionName == "Kalista")
{
Champions.Kalista.Load();
}
}
示例5: CreateMenu
public void CreateMenu()
{
Config = new Menu("Vicroious Blitzcrank", "menu", true).SetFontStyle(System.Drawing.FontStyle.Regular, SharpDX.Color.GreenYellow);
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
Config.SubMenu("Q option").AddItem(new MenuItem("minGrab", "Min range grab", true).SetValue(new Slider(450, 125, (int)Q.Range)));
Config.SubMenu("Q option").AddItem(new MenuItem("maxGrab", "Max range grab", true).SetValue(new Slider((int)Q.Range, 125, (int)Q.Range)));
Config.SubMenu("Q option").AddItem(new MenuItem("qTur", "Auto Q under turret", true).SetValue(false));
foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.Team != Player.Team))
Config.SubMenu("Q option").SubMenu("Grab").AddItem(new MenuItem("grab" + enemy.ChampionName, enemy.ChampionName).SetValue(true));
Config.SubMenu("R option").AddItem(new MenuItem("rCount", "Auto R if enemies in range", true).SetValue(new Slider(3, 0, 5)));
Config.SubMenu("R option").AddItem(new MenuItem("afterGrab", "Auto R after grab", true).SetValue(true));
Config.SubMenu("R option").AddItem(new MenuItem("afterAA", "Auto R befor AA", true).SetValue(true));
Config.SubMenu("R option").AddItem(new MenuItem("inter", "OnPossibleToInterrupt", true)).SetValue(true);
Config.SubMenu("R option").AddItem(new MenuItem("Gap", "OnEnemyGapcloser", true)).SetValue(true);
Config.SubMenu("Draw").AddItem(new MenuItem("qRange", "Q range", true).SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("rRange", "R range", true).SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw when skill rdy", true).SetValue(true));
Config.AddItem(new MenuItem("autoW", "Auto W", true).SetValue(true));
Config.AddItem(new MenuItem("autoE", "Auto E", true).SetValue(true));
Config.AddToMainMenu();
Game.OnUpdate += Game_OnGameUpdate;
Orbwalking.BeforeAttack += BeforeAttack;
Orbwalking.AfterAttack += afterAttack;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
Drawing.OnDraw += Drawing_OnDraw;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
}
示例6: Game_OnGameLoad
static void Game_OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Heimerdinger")
{
return;
}
Q = new Spell(SpellSlot.Q, 50);
W = new Spell(SpellSlot.W, 1075);
E = new Spell(SpellSlot.E, 920);
R = new Spell(SpellSlot.R);
W.SetSkillshot(.25f, 40, 2500, true, SkillshotType.SkillshotLine);
E.SetSkillshot(.25f, 120, 1000, false, SkillshotType.SkillshotCircle);
Config = new Menu("HeisenDonger", "HeisenDonger", true);
var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(targetSelectorMenu);
Config.AddSubMenu(targetSelectorMenu);
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
Config.AddSubMenu(new Menu("Logic+Spacebar=win :^)", "kappa"));
Config.AddToMainMenu(); //who needs a menu when you're busy memeing :^)
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Game.OnUpdate += Game_OnUpdate;
}
示例7: LoadAssembly
public void LoadAssembly()
{
//Initilize Menus
Menus.HumanizerMenu _HumanizerMenu = new Menus.HumanizerMenu();
Menus.MinonsMenu _MinonsMenu = new Menus.MinonsMenu();
Menus.ItemsMenu _ItemsMenu = new Menus.ItemsMenu();
Menus.TrinketMenu _TrinketMenu = new Menus.TrinketMenu();
Menus.LevelMenu _LevelMenu = new Menus.LevelMenu();
Menus.ChampionMenu _ChampMenu = new Menus.ChampionMenu();
//Load Data
_Champion.Player = ObjectManager.Player;
//Load Menus into SMenu
_HumanizerMenu.Load();
_MinonsMenu.Load();
_ItemsMenu.Load();
_TrinketMenu.Load();
_LevelMenu.Load();
_ChampMenu.Load();
//_Assembly.CheckVersion();
//Load Menus + Events
//Add Orbwalker to menu
//SMenu.AddSubMenu(new Menu(".Orbwalker", ".Orbwalker"));
CommonOrbwalker = new Orbwalking.Orbwalker(SMenu.SubMenu(".CommonOrbwalker"));
//Add SMenu to main menu
SMenu.AddToMainMenu();
}
示例8: Load
public static void Load()
{
_MainMenu = new Menu("FreshBooster (" + ObjectManager.Player.ChampionName + ")", "FreshBooster", true).SetFontStyle(System.Drawing.FontStyle.Regular, SharpDX.Color.Aqua);
_MainMenu.AddToMainMenu();
Menu orbwalkerMenu = new Menu("OrbWalker", "OrbWalker");
_OrbWalker = new Orbwalking.Orbwalker(orbwalkerMenu);
_MainMenu.AddSubMenu(orbwalkerMenu);
var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
TargetSelector.AddToMenu(targetSelectorMenu);
_MainMenu.AddSubMenu(targetSelectorMenu);
Type t = Type.GetType("FreshBooster.Champion." + ObjectManager.Player.ChampionName);
if (t != null)
{
//Object obj = Activator.CreateInstance(t);
var target = t.GetConstructor(Type.EmptyTypes);
var dynamic = new DynamicMethod(string.Empty, t, new Type[0], target.DeclaringType);
var il = dynamic.GetILGenerator();
il.DeclareLocal(target.DeclaringType);
il.Emit(OpCodes.Newobj, target);
il.Emit(OpCodes.Stloc_0);
il.Emit(OpCodes.Ldloc_0);
il.Emit(OpCodes.Ret);
var method = (Func<object>)dynamic.CreateDelegate(typeof(Func<object>));
method();
}
else
{
Game.PrintChat("Can't Load FreshBooster. Please send Message to KorFresh, Error Code 99");
}
}
示例9: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
Q = new Spell(SpellSlot.Q, 340);
W = new Spell(SpellSlot.W, 800);
E = new Spell(SpellSlot.E, 500);
R = new Spell(SpellSlot.R, 550);
Config = new Menu("Kindred - Yin Yang", "Kindred - Yin Yang", true);
{
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu(":: Orbwalker Settings"));
Config.AddItem(new MenuItem("language.supx", "Language").SetValue(new StringList(new[] { "English", "Korean", "Türkçe", "Portuguese","French" }, 0)));
Language.MenuInit();
Config.AddToMainMenu();
}
Game.PrintChat("<font color='#ff3232'>Kindred - Yin Yang: </font> <font color='#d4d4d4'>If you like this assembly feel free to upvote on Assembly DB</font>");
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Game.OnUpdate += Game_OnGameUpdate;
GameObject.OnCreate += GameObject_OnCreate;
Drawing.OnDraw += Drawing_OnDraw;
Obj_AI_Base.OnDoCast += OnDoCast;
}
示例10: MenuWrapper
/// <summary>
/// Initializes a new instance of the <see cref="MenuWrapper"/> class.
/// </summary>
/// <param name="menuName">Name of the menu.</param>
/// <param name="addTargetSelector">if set to <c>true</c> [add target selector].</param>
/// <param name="addOrbwalker">if set to <c>true</c> [add orbwalker].</param>
public MenuWrapper(string menuName, bool addTargetSelector = true, bool addOrbwalker = true)
{
// Create menu
_menu = new Menu(menuName, Regex.Replace(menuName.ToLower(), @"\s+", ""), true);
if (addTargetSelector)
{
// Target selector
_targetSelectorMenu = new Menu("Target Selector", "ts");
TargetSelector.AddToMenu(_targetSelectorMenu);
_menu.AddSubMenu(_targetSelectorMenu);
}
if (addOrbwalker)
{
// Orbwalker
_orbwalkerMenu = new Menu("Orbwalker", "orbwalker");
_orbwalker = new Orbwalking.Orbwalker(_orbwalkerMenu);
_menu.AddSubMenu(_orbwalkerMenu);
}
// Create main menu wrapper
_mainMenu = new SubMenu(_menu);
// Finalize menu
_menu.AddToMainMenu();
}
示例11: OnGameLoad
private static void OnGameLoad(EventArgs args)
{
if (ObjectManager.Player.ChampionName != ChampionName)
{
return;
}
Q = new Spell(SpellSlot.Q, 650f);
W = new Spell(SpellSlot.W, 900f);
E = new Spell(SpellSlot.E, 525f);
R = new Spell(SpellSlot.R, 900f);
SpellList.Add(Q);
SpellList.Add(W);
SpellList.Add(E);
SpellList.Add(R);
Config = new Menu(ChampionName, ChampionName, true);
var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(targetSelectorMenu);
Config.AddSubMenu(targetSelectorMenu);
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
Config.AddSubMenu(new Menu("Combo", "Combo"));
Config.SubMenu("Combo").AddItem(new MenuItem("UseQCombo", "Use Q").SetValue(true));
Config.SubMenu("Combo").AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
Config.SubMenu("Combo").AddItem(new MenuItem("UseECombo", "Use E").SetValue(true));
Config.SubMenu("Combo").AddItem(new MenuItem("UseRCombo", "Use R").SetValue(true));
Config.SubMenu("Combo")
.AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));
Config.AddToMainMenu();
Game.OnUpdate += OnGameUpdate;
}
示例12: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
Player = ObjectManager.Player;
if (Player.BaseSkinName != ChampionName) return;
Q = new Spell(SpellSlot.Q, float.MaxValue);
W = new Spell(SpellSlot.W, 1500f);
E = new Spell(SpellSlot.E, 900f);
R = new Spell(SpellSlot.R, 2500f);
R1 = new Spell(SpellSlot.R, 2500f);
W.SetSkillshot(0.6f, 70f, 3300f, true, SkillshotType.SkillshotLine);
E.SetSkillshot(1.2f, 1f, 1750f, false, SkillshotType.SkillshotCircle);
R.SetSkillshot(0.7f, 140f, 1500f, false, SkillshotType.SkillshotLine);
R1.SetSkillshot(0.7f, 200f, 1500f, false, SkillshotType.SkillshotCircle);
SpellList.Add(Q);
SpellList.Add(W);
SpellList.Add(E);
SpellList.Add(R);
SpellList.Add(R1);
Config = new Menu(ChampionName, ChampionName, true);
var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(targetSelectorMenu);
Config.AddSubMenu(targetSelectorMenu);
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
Config.AddToMainMenu();
#region E
Config.SubMenu("E Config").AddItem(new MenuItem("autoE", "Auto E").SetValue(true));
Config.SubMenu("E Config").AddItem(new MenuItem("comboE", "Auto E in Combo BETA").SetValue(true));
Config.SubMenu("E Config").AddItem(new MenuItem("AGC", "AntiGapcloserE").SetValue(true));
Config.SubMenu("E Config").AddItem(new MenuItem("opsE", "OnProcessSpellCastE").SetValue(true));
Config.SubMenu("E Config").AddItem(new MenuItem("telE", "Auto E teleport").SetValue(true));
#endregion
#region R
Config.SubMenu("R Config").AddItem(new MenuItem("autoR", "Auto R").SetValue(true));
Config.SubMenu("R Config").AddItem(new MenuItem("hitchanceR", "VeryHighHitChanceR").SetValue(true));
Config.SubMenu("R Config").AddItem(new MenuItem("useR", "Semi-manual cast R key").SetValue(new KeyBind('t', KeyBindType.Press))); //32 == space
#endregion
Config.SubMenu("Draw").AddItem(new MenuItem("noti", "Show notification").SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("wRange", "W range").SetValue(false));
Config.SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw when skill rdy").SetValue(true));
Config.SubMenu("Draw").AddItem(new MenuItem("orb", "Orbwalker target").SetValue(true));
Config.SubMenu("Draw").AddItem(new MenuItem("wTarget", "W Target").SetValue(true));
Config.SubMenu("Draw").AddItem(new MenuItem("semi", "Semi-manual R target").SetValue(false));
Config.AddItem(new MenuItem("pots", "Use pots").SetValue(true));
Config.AddItem(new MenuItem("Hit", "Hit Chance W").SetValue(new Slider(2, 3, 0)));
Config.AddItem(new MenuItem("debug", "Debug").SetValue(false));
Drawing.OnDraw += Drawing_OnDraw;
Game.OnGameUpdate += Game_OnGameUpdate;
Orbwalking.BeforeAttack += BeforeAttack;
Orbwalking.AfterAttack += afterAttack;
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Game.PrintChat("<font color=\"#ff00d8\">J</font>inx full automatic AI ver 2.7 <font color=\"#000000\">by sebastiank1</font> - <font color=\"#00BFFF\">Loaded</font>");
}
示例13: Ahri
public Ahri()
{
if (ObjectManager.Player.ChampionName != "Ahri")
return;
(_menu = new Menu("AhriSharp", "AhriSharp", true)).AddToMainMenu();
var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
TargetSelector.AddToMenu(targetSelectorMenu);
_menu.AddSubMenu(targetSelectorMenu);
_orbwalker = new Orbwalking.Orbwalker(_menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")));
var comboMenu = _menu.AddSubMenu(new Menu("Combo", "Combo"));
comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
comboMenu.AddItem(new MenuItem("comboROnlyUserInitiate", "Use R only if user initiated").SetValue(false));
var harassMenu = _menu.AddSubMenu(new Menu("Harass", "Harass"));
harassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
harassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
harassMenu.AddItem(new MenuItem("harassPercent", "Skills until Mana %").SetValue(new Slider(20)));
var farmMenu = _menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
farmMenu.AddItem(new MenuItem("farmQ", "Use Q").SetValue(true));
farmMenu.AddItem(new MenuItem("farmW", "Use W").SetValue(false));
farmMenu.AddItem(new MenuItem("farmPercent", "Skills until Mana %").SetValue(new Slider(20)));
farmMenu.AddItem(new MenuItem("farmStartAtLevel", "Only AA until Level").SetValue(new Slider(8, 1, 18)));
var drawMenu = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));
drawMenu.AddItem(new MenuItem("drawQE", "Draw Q, E range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(125, 0, 255, 0))));
drawMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(125, 0, 0, 255))));
var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true); //copied from esk0r Syndra
drawMenu.AddItem(dmgAfterComboItem);
var miscMenu = _menu.AddSubMenu(new Menu("Misc", "Misc"));
miscMenu.AddItem(new MenuItem("packetCast", "Packet Cast").SetValue(true));
_itemDFG = Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline ? new Items.Item(3188, 750) : new Items.Item(3128, 750);
_spellQ = new Spell(SpellSlot.Q, 990);
_spellW = new Spell(SpellSlot.W, 795 - 95);
_spellE = new Spell(SpellSlot.E, 1000 - 10);
_spellR = new Spell(SpellSlot.R, 1000 - 100);
_spellQ.SetSkillshot(.215f, 100, 1600f, false, SkillshotType.SkillshotLine);
_spellW.SetSkillshot(.71f, _spellW.Range, float.MaxValue, false, SkillshotType.SkillshotLine);
_spellE.SetSkillshot(.23f, 60, 1500f, true, SkillshotType.SkillshotLine);
Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); };
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnUpdate;
Game.PrintChat("<font color=\"#1eff00\">AhriSharp by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
}
示例14: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
if (ObjectManager.Player.ChampionName != "Lucian")
return;
_q = new Spell(SpellSlot.Q, 700);
_q2 = new Spell(SpellSlot.Q, 1200);
_w = new Spell(SpellSlot.W, 700);
_w2 = new Spell(SpellSlot.W, 1100);
_q2.SetSkillshot(0.25f, 70, 3000, false, SkillshotType.SkillshotLine);
_w.SetSkillshot(0.25f, 70, 1500, false, SkillshotType.SkillshotLine);
_w2.SetSkillshot(0.25f, 70, 1500, true, SkillshotType.SkillshotLine);
_config = new Menu("Lucian", "Lucian", true);
_orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
TargetSelector.AddToMenu(targetSelectorMenu);
_config.AddSubMenu(targetSelectorMenu);
_config.AddItem(new MenuItem("qexk", "Q ex in combo only if killable").SetValue(true));
_config.AddItem(new MenuItem("qexk2", "Q ex in combo only selected champion in harass menu").SetValue(true));
foreach (var hero in HeroManager.Enemies)
{
_config.SubMenu("Harass").AddItem(new MenuItem("auto" + hero.ChampionName, hero.ChampionName).SetValue(select.Contains(hero.ChampionName)));
}
_config.SubMenu("Harass").AddItem(new MenuItem("manah", "%mana").SetValue(new Slider(33, 100, 0)));
_config.AddToMainMenu();
Obj_AI_Base.OnProcessSpellCast += oncast;
Orbwalking.AfterAttack += Orbwalking_AfterAttack;
Game.OnUpdate += Game_OnUpdate;
}
示例15: CommonForceUltimate
public CommonForceUltimate(ZedMenu zedMenu, ZedSpells zedSpells, Orbwalking.Orbwalker orbwalker)
{
player = ObjectManager.Player;
this.zedMenu = zedMenu;
r = zedSpells.R;
zedOrbwalker = orbwalker;
mouseImage1 = new Render.Sprite(Resources.mouse1, new Vector2(0, 0));
mouseImage1.Scale = new Vector2(0.50f, 0.50f);
mouseImage1.Add();
mouseImage2 = new Render.Sprite(Resources.mouse2, new Vector2(0, 0));
mouseImage2.Scale = new Vector2(0.50f, 0.50f);
mouseImage2.Add();
denyMouseImage = new Render.Sprite(Resources.denymouse, new Vector2(0, 0));
denyMouseImage.Scale = new Vector2(0.50f, 0.50f);
denyMouseImage.Add();
denyMouseImage.Visible = false;
Text.Add();
Text.Visible = false;
Game.OnWndProc += CheckMouseButtons;
Game.OnUpdate += ShowAnimation;
}