Пример #1
0
        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);
        }
Пример #2
0
        private static void OnCommand(string[] args)
        {
            bool enabled = !ConfigEx.GetElement(false, "AutoGrab");

            ConfigEx.SetElement(enabled, "AutoGrab");
            WorldEx.SendMessage("Autograb " + (enabled ? "enabled." : "disabled."));
            OnChange(enabled);
        }
Пример #3
0
 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");
 }
Пример #4
0
 private static void OnCommand(string[] args)
 {
     enabled = !ConfigEx.GetElement(true, "Healing");
     ConfigEx.SetElement(enabled, "Healing");
     WorldEx.SendMessage("Healing " + (enabled ? "enabled." : "disabled."));
 }
Пример #5
0
 private static void SetPet(bool location, Serial serial, Point3D p, ushort gfxid)
 {
     ConfigEx.SetElement((int)serial, "Pet");
 }
Пример #6
0
 private static void OnCommand(string[] args)
 {
     ConfigEx.SetElement(enabled = !enabled, "Filter");
     WorldEx.SendMessage("Filter " + (enabled ? "enabled." : "disabled."));
 }