/// <summary> /// Called on afk warning. /// </summary> /// <param name="args">The <see cref="GameNotifyAwayEventArgs" /> instance containing the event data.</param> private static void OnNotifyAway(GameNotifyAwayEventArgs args) { if (Menu["antiafk"].Enabled) { args.IgnoreDialog = true; Orbwalker.Implementation.Move(ObjectManager.GetLocalPlayer().ServerPosition); } }
public void AntiAfk(GameNotifyAwayEventArgs e) { e.IgnoreDialog = true; Orbwalker.Implementation.Move(ObjectManager.GetLocalPlayer().ServerPosition); }
private static void Game_OnNotifyAway(GameNotifyAwayEventArgs e) { e.IgnoreDialog = true; Orbwalker.Implementation.Move(ObjectManager.GetLocalPlayer().ServerPosition); }