static void GO_OnCreate(EloBuddy.GameObject GO, EventArgs args) { if (GO.Name == wObj) { wPos = GO.Position; } }
static void OnCreateObj(EloBuddy.GameObject sender, EventArgs args) { if (sender.Name.ToLower().Contains("missile")) { var missile = (MissileClient)sender; if (missile == null || !missile.IsValid || missile.SpellCaster == null || !missile.SpellCaster.IsValid) { return; } var unit = (Obj_AI_Base)missile.SpellCaster; if (missile.SpellCaster.IsMe) { var name = missile.SData.Name.ToLower(); if (name.Contains("ahriorbmissile")) { _Q["Object"] = sender; _Q["IsReturning"] = false; } else if (name.Contains("ahriorbreturn")) { _Q["Object"] = sender; _Q["IsReturning"] = true; } else if (name.Contains("ahriseducemissile")) { _E["Object"] = sender; } } } }
static void GO_OnRemove(EloBuddy.GameObject GO, EventArgs args) { if (GO.Name == wObj) { wPos = default(Vector3); Wmode = WModes.NONE; } }
private static void Obj_AI_Base_OnDelete(EloBuddy.GameObject obj, EventArgs args) { var particle = obj as EloBuddy.Obj_GeneralParticleEmitter; if (particle != null) { if (particle.Name.Equals("Ekko_Base_R_TrailEnd.troy")) { Troy = null; } } }
public override void OnProcessSpellCast(EloBuddy.GameObject sender, EloBuddy.GameObjectProcessSpellCastEventArgs args) { base.OnProcessSpellCast(sender, args); if (sender is EloBuddy.AIHeroClient && sender.IsEnemy) { var objaiherosender = (EloBuddy.AIHeroClient)sender; if (!IsInvulnerable(objaiherosender) && args.SData.Name == "summonerflash" && args.End.Distance(EloBuddy.ObjectManager.Player.ServerPosition) < 350) { if (EDelaySlider > 0) { var thisEnemy = objaiherosender; LeagueSharp.SDK.Core.Utils.DelayAction.Add(EDelaySlider, () => E.CastOnUnit(thisEnemy)); return; } E.CastOnUnit(objaiherosender); } } }