예제 #1
0
 public static void OnInit()
 {
     MacroEx macro = new MacroEx();
     macro.Insert(-1, new GumpWait());
     macro.Insert(-1, new Clean());
     Command.Register("sud", args => MacroManager.HotKeyPlay(macro));
 }
예제 #2
0
        public static void OnInit()
        {
            MacroEx macro = new MacroEx();
            WaitForMsg wait = new WaitForMsg(1042635, 1008124, 1008125, 1043297, 1055086, 1055087, 503172, 503171);
            macro.Insert(-1, new UseFishingPole(wait));
            macro.Insert(-1, new WaitForTargetAction(new[] { "", "2" }));
            macro.Insert(-1, new TargetRelLocAction(0, 0));
            macro.Insert(-1, new AttackClosestAction());
            macro.Insert(-1, new Clean());
            Track track = new Track();
            macro.Insert(-1, track);
            macro.Insert(-1, new WaitForTrack(track));
            macro.Insert(-1, new TrackResponse(track));
            macro.Insert(-1, wait);
            macro.Insert(-1, new SailAction(wait));
            Command.Register("fish", args => MacroManager.HotKeyPlay(macro));
            Core.AddHotkey("Fishing", () => MacroManager.HotKeyPlay(macro));

            MacroEx sos = new MacroEx();
            WaitForMsg waitSos = new WaitForMsg(1042635, 1008124, 1008125, 1043297, 1055086, 1055087, 503172, 503171, 501747);
            sos.Insert(-1, new UseFishingPole(waitSos));
            sos.Insert(-1, new WaitForTargetAction(new[] { "", "2" }));
            sos.Insert(-1, new TargetRelLocAction(0, 0));
            sos.Insert(-1, waitSos);
            sos.Insert(-1, new FoundSOSAction(waitSos));
            Command.Register("sos", args => MacroManager.HotKeyPlay(sos));
            Core.AddHotkey("SOS", () => MacroManager.HotKeyPlay(sos));
            Command.Register("sit", OnCommand);
        }
예제 #3
0
파일: Spells.cs 프로젝트: WildGenie/RazorEx
        private static void AddMacro(string name, int spellID)
        {
            MacroEx macro = new MacroEx();

            macro.Insert(-1, new MacroCastSpellAction(spellID));
            macro.Insert(-1, new SpellTarget());
            Core.AddHotkey(node, name, () => Cast(macro));
        }
예제 #4
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");
        }
예제 #5
0
파일: Spells.cs 프로젝트: WildGenie/RazorEx
        public static void OnInit()
        {
            node = Core.AddHotkeyNode("Spells");
            AddMacro("Fireball", 18);
            AddMacro("Lightning", 30);
            AddMacro("Energy Bolt", 42);
            AddMacro("Flamestrike", 51);
            AddMacro("Chain Lightning", 49);
            AddMacro("Meteor Swarm", 55);

            MacroEx macro = new MacroEx();

            macro.Insert(-1, new MacroHealPet());
            macro.Insert(-1, new MacroTargetPet());

            Core.AddHotkey(node, "HealPet", () => Cast(macro));
            Core.AddHotkey(node, "SetPet", () => Targeting.OneTimeTarget(SetPet));
            Command.Register("setpet", args => Targeting.OneTimeTarget(SetPet));

            HotKey.Get((int)LocString.HealOrCureSelf).m_Callback = HealOrCureSelf;
            HotKey.Get(Spell.Get(22).Name).m_Callback            = () => Cast(22); // Teleport
            HotKey.Get(Spell.Get(23).Name).m_Callback            = () => Cast(23); // Unlock
            HotKey.Get(Spell.Get(24).Name).m_Callback            = () => Cast(24); // Wall of Stone
            HotKey.Get(Spell.Get(33).Name).m_Callback            = () => Cast(33); // Blade Spirits
            HotKey.Get(Spell.Get(44).Name).m_Callback            = () => Cast(44); // Invisibility
            HotKey.Get(Spell.Get(58).Name).m_Callback            = () => Cast(58); // Energy Vortex
            HotKey.Get(Spell.Get(59).Name).m_Callback            = () => Cast(59); // Resurrection

            MacroEx invis = new MacroEx {
                Loop = false
            };

            invis.Insert(-1, new MacroCastSpellAction(44));
            invis.Insert(-1, new TargetSelf());
            invis.Insert(-1, new ResetWarmode());
            Core.AddHotkey(node, "Invisibility", () => Cast(invis));
        }
예제 #6
0
        public static void OnInit()
        {
            MacroEx mirroring = new MacroEx();

            mirroring.Insert(-1, new WaitForSlot(2));
            mirroring.Insert(-1, new MacroCastSpellAction(508));
            mirroring.Insert(-1, new PauseAction(500));

            MacroEx naturesking = new MacroEx();

            naturesking.Insert(-1, new WaitForSlot(1));
            naturesking.Insert(-1, new MacroCastSpellAction(606));
            naturesking.Insert(-1, new TargetSelf());

            Core.AddHotkey("Naturesking", () => MacroManager.HotKeyPlay(naturesking));
            Core.AddHotkey("Mirroring", () =>
            {
                if (World.Player != null && World.Player.GetItemOnLayer(Layer.Mount) != null)
                {
                    WorldEx.SendToServer(new DoubleClick(World.Player.Serial));
                }
                MacroManager.HotKeyPlay(mirroring);
            });
        }