Ejemplo n.º 1
0
 public new static void OnInit()
 {
     ConfigAgent.AddItem(ushort.MaxValue, c => guildColor = c == ushort.MaxValue ? Color.Red : Hues.GetHue(c).GetColor(30), "ChatGuildColor");
     ConfigAgent.AddItem(ushort.MaxValue, c => partyColor = c == ushort.MaxValue ? Color.Purple : Hues.GetHue(c).GetColor(30), "ChatPartyColor");
     Command.Register("chat", args => new Chat().ShowUnlocked());
     MainFormEx.Connected += MainFormEx_Connected;
 }
Ejemplo n.º 2
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(true, e => enabled = e, "Healing");
     Event.MobileUpdated    += WorldEx_MobileUpdated;
     Event.LocalizedMessage += Event_LocalizedMessage;
     PacketHandler.RegisterClientToServerViewer(0x6C, OnClientTarget);
     PacketHandler.RegisterServerToClientViewer(0x6C, OnServerTarget);
     Command.Register("heal", args => HealTarget());
     Command.Register("healing", OnCommand);
     Core.AddHotkey("Bandage Target", HealTarget);
     PositionCheck.EnterKhaldun += () => { if (enabled)
                                           {
                                               OnCommand(null);
                                           }
     };
     PositionCheck.LeaveKhaldun += () => { if (!enabled)
                                           {
                                               OnCommand(null);
                                           }
     };
     PositionCheck.EnterHerotic += () => { if (enabled)
                                           {
                                               OnCommand(null);
                                           }
     };
     PositionCheck.LeaveHerotic += () => { if (!enabled)
                                           {
                                               OnCommand(null);
                                           }
     };
 }
Ejemplo n.º 3
0
 public static void OnInit()
 {
     Command.Register("props", args => Targeting.OneTimeTarget(OnCommand));
     Command.Register("props2", args => Targeting.OneTimeTarget(OnCommand2));
     ConfigAgent.AddItem <byte>(25, "MinDurability");
     PacketHandler.RegisterServerToClientViewer(0xD6, OnProps);
 }
Ejemplo n.º 4
0
        public static void AfterInit()
        {
            ConfigAgent.AddItem(false, "PotionStack");
            if (!ConfigEx.GetElement(false, "PotionStack"))
            {
                return;
            }

            AddFakeItem("Revitalize", 0x0F06, 0x000C, 0x0F0E, 0x000C);
            AddFakeItem("TMR", 0x0F0B, 0x012E, 0x0F0E, 0x012E);
            AddFakeItem("MR", 0x0F0B, 0x0130, 0x0F0E, 0x005F);
            AddFakeItem("GH", 0x0F0C, 0x0000, 0x0F0E, 0x0035);

            liftRequest = (ArrayList)PacketHandler.m_ClientViewers[7];
            PacketHandler.m_ClientViewers[7] = new ArrayList(new PacketViewerCallback[] { LiftRequest });
            dropRequest = (ArrayList)PacketHandler.m_ClientViewers[8];
            PacketHandler.m_ClientViewers[8] = new ArrayList(new PacketViewerCallback[] { DropRequest });
            clientDoubleClick = (ArrayList)PacketHandler.m_ClientViewers[6];
            PacketHandler.m_ClientViewers[6] = new ArrayList(new PacketViewerCallback[] { ClientDoubleClick });
            PacketHandler.RegisterClientToServerViewer(9, ClientSingleClick);
            PacketHandler.RegisterServerToClientFilter(0x25, ContainerContentUpdate);
            PacketHandler.RegisterServerToClientFilter(0x3C, ContainerContent);
            PacketHandler.RegisterClientToServerViewer(0x6C, TargetResponse);
            Event.RemoveObject += Event_RemoveObject;
        }
Ejemplo n.º 5
0
 public static void OnInit()
 {
     PacketHandler.RegisterServerToClientViewer(0x1A, WorldItem);
     ConfigAgent.AddItem <uint>(0, "LegendaryPickaxe");
     ConfigAgent.AddItem <uint>(0, "LegendaryHatchet");
     Core.AddHotkey("LegendaryTool", OnHotkey);
 }
Ejemplo n.º 6
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, e => enabled = e, "SpectralScimitar");
     PacketHandler.RegisterServerToClientViewer(0xDD, OnCompressedGump);
     PacketHandler.RegisterServerToClientViewer(0xBF, OnCloseGump);
     Command.Register("ss", args => OnCommand());
     Core.AddHotkey("Spectral Scimitar", OnCommand);
 }
Ejemplo n.º 7
0
        public static void OnInit()
        {
            TreeNode nodePets = Core.AddHotkeyNode("Pets");

            Core.AddHotkey(nodePets, "all come", () => PetCommand("AllCome", 0x164));
            Core.AddHotkey(nodePets, "all guard", () => PetCommand("AllGuard", 0x166));
            Core.AddHotkey(nodePets, "all stay", () => PetCommand("AllStay", 0x170));
            Core.AddHotkey(nodePets, "all kill", () => AllKill("AllKill", 0x168, false));
            Core.AddHotkey(nodePets, "all attack", () => AllKill("AllAttack", 0x169, false));
            Core.AddHotkey(nodePets, "all kill (last target)", () => AllKill("AllKill", 0x168, true));
            Core.AddHotkey(nodePets, "all attack (last target)", () => AllKill("AllAttack", 0x169, true));
            Core.AddHotkey(nodePets, "release", Release);

            ConfigAgent.AddItem("all come", "PetCommands", "AllCome");
            ConfigAgent.AddItem("all guard", "PetCommands", "AllGuard");
            ConfigAgent.AddItem("all stay", "PetCommands", "AllStay");
            ConfigAgent.AddItem("all kill", "PetCommands", "AllKill");
            ConfigAgent.AddItem("all attack", "PetCommands", "AllAttack");
            ConfigAgent.AddItem("release", "PetCommands", "Release");
        }
Ejemplo n.º 8
0
        public static void OnInit()
        {
            ArrayList list = (ArrayList)PacketHandler.m_ServerFilters[0xC1];

            list.Clear();
            list.Add(new PacketFilterCallback(OnLocalizedMessage));
            ConfigAgent.AddItem(false, value => enabled = value, "Filter");
            ConfigAgent.AddItem(false, OnChanged, "FilterHerbar");
            Command.Register("filter", OnCommand);

            List <int> msgs = new List <int>();

            foreach (string[] data in ConfigEx.LoadCfg("filter.cfg", 0))
            {
                int msg;
                if (int.TryParse(data[0], out msg))
                {
                    msgs.Add(msg);
                }
            }
            filter = msgs.ToArray();
        }
Ejemplo n.º 9
0
        public static void OnInit()
        {
            MacroEx neira = new MacroEx();

            neira.Insert(-1, new WaitForBone(GetNeiraBones));
            neira.Insert(-1, new DoubleClickExAction());
            neira.Insert(-1, new WaitForTargetAction(new[] { "", "1" }));
            neira.Insert(-1, new TargetBone(GetNeiraBones));
            neira.Insert(-1, new PauseAction(250));

            MacroEx df = new MacroEx();

            df.Insert(-1, new WaitForBone(GetDFBones));
            df.Insert(-1, new DoubleClickExAction());
            df.Insert(-1, new WaitForTargetAction(new[] { "", "1" }));
            df.Insert(-1, new TargetBone(GetDFBones));
            df.Insert(-1, new PauseAction(250));

            Core.AddHotkey("Neira", () => MacroManager.HotKeyPlay(neira));
            Core.AddHotkey("Dark Father", () => MacroManager.HotKeyPlay(df));
            ConfigAgent.AddItem <uint>(0, "BoneCarver");
        }
Ejemplo n.º 10
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "FishingTracking");
 }
Ejemplo n.º 11
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "ContainerPositionFix");
 }
Ejemplo n.º 12
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(TeleportType.Default, "RuneBook");
     PacketHandler.RegisterClientToServerFilter(0xB1, OnGumpResponse);
 }
Ejemplo n.º 13
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "AutoopenCorpses");
 }
Ejemplo n.º 14
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "DyeMagicalScrolls");
 }
Ejemplo n.º 15
0
 public new static void OnInit()
 {
     MainFormEx.Connected += MainFormEx_Connected;
     Command.Register("skill", OnCommand);
     ConfigAgent.AddItem <byte>(8, "SkillIconSize");
 }
Ejemplo n.º 16
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChanged, "AutoGuildParty");
 }
Ejemplo n.º 17
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "BloodOath");
     Core.AddHotkey("Attack Last", AttackLast);
 }
Ejemplo n.º 18
0
 public new static void OnInit()
 {
     ConfigAgent.AddItem(true, "RadarArcheologyGrid");
     Command.Register("radar", args => new Radar().ShowUnlocked());
     MainFormEx.Connected += MainFormEx_Connected;
 }
Ejemplo n.º 19
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "OpenGrabbedBags");
 }
Ejemplo n.º 20
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "Undead");
 }
Ejemplo n.º 21
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "AutoLogin");
 }
Ejemplo n.º 22
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "CarveSeaSerpent");
 }
Ejemplo n.º 23
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "BlockFriendlyFire");
     Command.Register("friendlyfire", OnCommand);
 }
Ejemplo n.º 24
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "StealthFix");
 }
Ejemplo n.º 25
0
 public new static void OnInit()
 {
     MainFormEx.Connected += MainFormEx_Connected;
     ConfigAgent.AddItem(false, "SmallSpellIcon");
     Command.Register("spell", OnCommand);
 }
Ejemplo n.º 26
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "WeaponMoves");
 }
Ejemplo n.º 27
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "ShrinkDMG");
 }
Ejemplo n.º 28
0
 public static void OnInit()
 {
     ConfigAgent.AddItem(false, OnChange, "AutoGrab");
     Command.Register("grab", OnCommand);
 }