private static void OnCommand(string[] args) { bool enabled = !ConfigEx.GetElement(false, "BlockFriendlyFire"); ConfigEx.SetElement(enabled, "BlockFriendlyFire"); WorldEx.SendMessage("Friendly fire " + (enabled ? "blocked." : "allowed.")); OnChange(enabled); }
private static void OnCommand(string[] args) { bool enabled = !ConfigEx.GetElement(false, "AutoGrab"); ConfigEx.SetElement(enabled, "AutoGrab"); WorldEx.SendMessage("Autograb " + (enabled ? "enabled." : "disabled.")); OnChange(enabled); }
public MainFormEx() { m_Ver = typeof(MainFormEx).Assembly.GetName().Version; Engine.m_Version = m_Ver.ToString(3); showWelcome.CheckedChanged += (s, e) => ConfigEx.SetElement(showWelcome.Checked, "ShowWelcome"); }
private static void OnCommand(string[] args) { enabled = !ConfigEx.GetElement(true, "Healing"); ConfigEx.SetElement(enabled, "Healing"); WorldEx.SendMessage("Healing " + (enabled ? "enabled." : "disabled.")); }
private static void SetPet(bool location, Serial serial, Point3D p, ushort gfxid) { ConfigEx.SetElement((int)serial, "Pet"); }
private static void OnCommand(string[] args) { ConfigEx.SetElement(enabled = !enabled, "Filter"); WorldEx.SendMessage("Filter " + (enabled ? "enabled." : "disabled.")); }