Ejemplo n.º 1
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket(PacketType.UPDATE, OnUpdate);
     proxy.HookPacket(PacketType.NEWTICK, OnUpdate);
     proxy.ClientConnected += (client) => _fame.Add(client, -1);
     proxy.ClientDisconnected += (client) => _fame.Remove(client);
 }
Ejemplo n.º 2
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket<HelloPacket>(OnHelloPacket);
     proxy.HookPacket<MapInfoPacket>(OnMapInfoPacket);
     proxy.HookPacket<UpdatePacket>(OnUpdatePacket);
     proxy.HookPacket<NewTickPacket>(OnNewTickPacket);
 }
Ejemplo n.º 3
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket(PacketType.UPDATE, OnUpdate);
     proxy.HookPacket(PacketType.MAPINFO, GetMapInfo);
     proxy.HookPacket(PacketType.CREATESUCCESS, OnEnterMap);
     initialized = false;
 }
Ejemplo n.º 4
0
 public void Initialize(Proxy proxy)
 {
     _proxy = proxy;
     proxy.HookPacket(PacketType.RECONNECT, OnReconnect);
     proxy.HookPacket(PacketType.CREATESUCCESS, OnCreateSuccess);
     proxy.HookCommand("connect", OnConnectCommand);
     proxy.HookCommand("recon", OnReconnectCommand);
     proxy.HookCommand("drecon", OnDReconnectCommand);
 }
Ejemplo n.º 5
0
        public void Initialize(Proxy proxy)
        {
            proxy.ClientConnected += (c) => _states.Add(c, new LootState());
            proxy.ClientDisconnected += (c) => _states.Remove(c);

            proxy.HookPacket(PacketType.MOVE, OnMove);
            proxy.HookPacket(PacketType.UPDATE, OnUpdate);
            proxy.HookPacket(PacketType.NEWTICK, OnNewTick);
            proxy.HookPacket(PacketType.QUESTOBJID, OnQuestObjId);
            proxy.HookCommand("loothelper", OnLootHelperCommand);
        }
Ejemplo n.º 6
0
        public void Attach(Proxy proxy)
        {
            _proxy = proxy;
            proxy.HookPacket<CreateSuccessPacket>(OnCreateSuccess);
            proxy.HookPacket<ReconnectPacket>(OnReconnect);
            proxy.HookPacket<HelloPacket>(OnHello);

            proxy.HookCommand("con", OnConnectCommand);
            proxy.HookCommand("connect", OnConnectCommand);
            proxy.HookCommand("server", OnConnectCommand);
            proxy.HookCommand("recon", OnReconCommand);
            proxy.HookCommand("drecon", OnDreconCommand);
        }
Ejemplo n.º 7
0
        public void Initialize(Proxy proxy)
        {
            _classes = (short[])Enum.GetValues(typeof(Classes));

            proxy.ClientConnected += (c) => _states.Add(c, new TeleportState());
            proxy.ClientDisconnected += (c) => _states.Remove(c);

            proxy.HookPacket(PacketType.NEWTICK, OnNewTick);
            proxy.HookPacket(PacketType.UPDATE, OnUpdate);
            proxy.HookPacket(PacketType.QUESTOBJID, OnQuestObjId);
            proxy.HookCommand("tq", OnTQCommand);
            proxy.HookCommand("tp", OnTPCommand);
        }
Ejemplo n.º 8
0
 public void Attach(Proxy proxy)
 {
     _proxy = proxy;
     proxy.HookPacket<CreateSuccessPacket>(OnCreateSuccess);
     proxy.HookPacket<MapInfoPacket>(OnMapInfo);
     proxy.HookPacket<UpdatePacket>(OnUpdate);
     proxy.HookPacket<NewTickPacket>(OnNewTick);
     proxy.HookPacket<PlayerShootPacket>(OnPlayerShoot);
     proxy.HookPacket<MovePacket>(OnMove);
 }
Ejemplo n.º 9
0
 public void Initialize(Proxy proxy)
 {
     proxy.ClientConnected += (client) => _incHolders.Clear();
     proxy.HookPacket(PacketType.UPDATE, OnUpdate);
     proxy.HookCommand("wc", OnWCCommand);
 }
Ejemplo n.º 10
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket(PacketType.UPDATE, OnUpdate);
     proxy.HookCommand("amispecial", OnSpecialCommand);
 }
Ejemplo n.º 11
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket(PacketType.USEITEM, OnUseItem);
     proxy.HookPacket(PacketType.UPDATEACK, OnUpdateAck);
     proxy.HookCommand("worldedit", OnWorldEditCommand);
 }
Ejemplo n.º 12
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket(PacketType.CLIENTSTAT, OnClientStat);
 }
Ejemplo n.º 13
0
 public void Initialize(Proxy proxy)
 {
     RebuildCache();
     proxy.HookPacket(PacketType.UPDATE, OnUpdate);
     proxy.HookCommand("mapfilter", OnMapFilterCommand);
 }
Ejemplo n.º 14
0
        public void Initialize(Proxy proxy)
        {
            GameData.Enemies.Map
                .ForEach(enemy => {
                    // armor piercing
                    if (enemy.Value.Projectiles.Any(p => p.ArmorPiercing)) {
                        Bullet.piercing[enemy.Value.ID] = new List<int>();
                        enemy.Value.Projectiles.ForEach(proj => {
                            if (proj.ArmorPiercing)
                                Bullet.piercing[enemy.Value.ID].Add(proj.ID);
                        });
                    }

                    // armor break
                    if (enemy.Value.Projectiles.Any(p => p.StatusEffects.ContainsKey(ConditionEffectIndex.ArmorBroken))) {
                        Bullet.breaking[enemy.Value.ID] = new List<int>();
                        enemy.Value.Projectiles.ForEach(proj => {
                            if (proj.StatusEffects.ContainsKey(ConditionEffectIndex.ArmorBroken))
                                Bullet.breaking[enemy.Value.ID].Add(proj.ID);
                        });
                    }
                });
            PluginUtils.Log("Auto Nexus", "Found {0} armor-piercing projectiles from {1} enemies.", Bullet.piercing.Sum(e => e.Value.Count), Bullet.piercing.Count);
            PluginUtils.Log("Auto Nexus", "Found {0} armor-breaking projectiles from {1} enemies.", Bullet.breaking.Sum(e => e.Value.Count), Bullet.breaking.Count);

            clients = new Dictionary<Client, ClientState>();

            proxy.HookCommand("autonexus", OnCommand);

            proxy.ClientConnected += OnConnect;
            proxy.ClientDisconnected += OnDisconnect;

            proxy.HookPacket(PacketType.UPDATE, OnPacket);
            proxy.HookPacket(PacketType.NEWTICK, OnPacket);
            proxy.HookPacket(PacketType.ENEMYSHOOT, OnPacket);
            proxy.HookPacket(PacketType.PLAYERHIT, OnPacket);
            proxy.HookPacket(PacketType.AOE, OnPacket);
            proxy.HookPacket(PacketType.MAPINFO, OnPacket);
            proxy.HookPacket(PacketType.GROUNDDAMAGE, OnPacket);
        }
Ejemplo n.º 15
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookCommand("chatassist", OnChatAssistCommand);
     proxy.HookPacket(PacketType.TEXT, OnText);
 }
Ejemplo n.º 16
0
 public void Initialize(Proxy proxy)
 {
     proxy.HookPacket<TextPacket>(OnTextPacketReceived);
 }
Ejemplo n.º 17
0
        public void Initialize(Proxy proxy)
        {
            proxy.HookCommand("/dn", OnC);
            proxy.HookPacket(PacketType.TEXT, T);


            #region Code Generated With PixelZerg's WebScraper
            #region Pirate Cave
            Data.Entries.Add(new Data.Entry
            {
                Name = "Pirate Cave",
                Difficulty = 1,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/mpQLemW.png",
                KeyWords = new string[] {
"pcave",
"pirate cave",
}
            });
            #endregion
            #region Forest Maze
            Data.Entries.Add(new Data.Entry
            {
                Name = "Forest Maze",
                Difficulty = 1,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/sb8e4YJ.png",
                KeyWords = new string[] {
"maze",
}
            });
            #endregion
            #region Spider Den
            Data.Entries.Add(new Data.Entry
            {
                Name = "Spider Den",
                Difficulty = 1,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/H88LAt4.png",
                KeyWords = new string[] {
"den",
}
            });
            #endregion
            #region Snake Pit
            Data.Entries.Add(new Data.Entry
            {
                Name = "Snake Pit",
                Difficulty = 1,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/z7KMqgq.gif",
                KeyWords = new string[] {
"snack pot",
"pit",
}
            });
            #endregion
            #region Beachzone
            Data.Entries.Add(new Data.Entry
            {
                Name = "Beachzone",
                Difficulty = 1,
                Enabled = true, //Default
                ImageURL = "http://static.drips.pw/rotmg/wiki/Environment/Portals/Beachzone%20Portal.png",
                KeyWords = new string[] {
"beach",
}
            });
            #endregion
            #region Forbidden Jungle
            Data.Entries.Add(new Data.Entry
            {
                Name = "Forbidden Jungle",
                Difficulty = 2,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/5NmNR0l.png",
                KeyWords = new string[] {
"jungle",
"forbidden",
}
            });
            #endregion
            #region Sprite World
            Data.Entries.Add(new Data.Entry
            {
                Name = "Sprite World",
                Difficulty = 2,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/tvILM8B.png",
                KeyWords = new string[] {
"sprite",
"dex world",
}
            });
            #endregion
            #region Candyland Hunting Grounds
            Data.Entries.Add(new Data.Entry
            {
                Name = "Candyland Hunting Grounds",
                Difficulty = 3,
                Enabled = true, //Default
                ImageURL = "http://static.drips.pw/rotmg/wiki/Environment/Portals/Candyland%20Portal.png",
                KeyWords = new string[] {
"cland",
"candy land",
}
            });
            #endregion
            #region Haunted Cemetery
            Data.Entries.Add(new Data.Entry
            {
                Name = "Haunted Cemetery",
                Difficulty = 3,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/8NcxYGb.png",
                KeyWords = new string[] {
"cem",
"cemetary",
"cemeterey",
}
            });
            #endregion
            #region Undead Lair
            Data.Entries.Add(new Data.Entry
            {
                Name = "Undead Lair",
                Difficulty = 3,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/qim0En4.gif",
                KeyWords = new string[] {
"udl",
}
            });
            #endregion
            #region Abyss of Demons
            Data.Entries.Add(new Data.Entry
            {
                Name = "Abyss of Demons",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/EuIPzaA.png",
                KeyWords = new string[] {
"abby",
"aby",
"abyss",
"abbyss",
}
            });
            #endregion
            #region Davy Jones's Locker
            Data.Entries.Add(new Data.Entry
            {
                Name = "Davy Jones's Locker",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "http://static.drips.pw/rotmg/wiki/Environment/Portals/Davy%20Jones's%20Locker%20Portal.png",
                KeyWords = new string[] {
"davy",
}
            });
            #endregion
            #region Lair of Draconis
            Data.Entries.Add(new Data.Entry
            {
                Name = "Lair of Draconis",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "https://www.realmeye.com/s/a/img/wiki/Lair%20of%20Draconis%20Portal.gif",
                KeyWords = new string[] {
"lod",
}
            });
            #endregion
            #region Manor of the Immortals
            Data.Entries.Add(new Data.Entry
            {
                Name = "Manor of the Immortals",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/EopMddF.png",
                KeyWords = new string[] {
"manor",
}
            });
            #endregion
            #region The Puppet Master's Theatre
            Data.Entries.Add(new Data.Entry
            {
                Name = "The Puppet Master's Theatre",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/HYyyJo7.png",
                KeyWords = new string[] {
"puppet",
"theatre",
}
            });
            #endregion
            #region The Crawling Depths
            Data.Entries.Add(new Data.Entry
            {
                Name = "The Crawling Depths",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/WCgHcTj.png",
                KeyWords = new string[] {
"cdepths",
}
            });
            #endregion
            #region Deadwater Docks
            Data.Entries.Add(new Data.Entry
            {
                Name = "Deadwater Docks",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/FXZ8JKo.png",
                KeyWords = new string[] {
"docks",
"deadwater",
}
            });
            #endregion
            #region Ice Cave
            Data.Entries.Add(new Data.Entry
            {
                Name = "Ice Cave",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "http://static.drips.pw/rotmg/wiki/Environment/Portals/Ice%20Cave%20Portal.png",
                KeyWords = new string[] {
"ice cave",
"cave",
}
            });
            #endregion
            #region Mad Lab
            Data.Entries.Add(new Data.Entry
            {
                Name = "Mad Lab",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/KgEpI5j.gif",
                KeyWords = new string[] {
"lab",
}
            });
            #endregion
            #region Ocean Trench
            Data.Entries.Add(new Data.Entry
            {
                Name = "Ocean Trench",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/81QgQXX.png",
                KeyWords = new string[] {
"trench",
" ot",
}
            });
            #endregion
            #region The Shatters
            Data.Entries.Add(new Data.Entry
            {
                Name = "The Shatters",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/xsoxbc8.png",
                KeyWords = new string[] {
"shatters",
}
            });
            #endregion
            #region Tomb of the Ancients
            Data.Entries.Add(new Data.Entry
            {
                Name = "Tomb of the Ancients",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/9ovOSx3.png",
                KeyWords = new string[] {
"tomb",
}
            });
            #endregion
            #region Woodland Labyrinth
            Data.Entries.Add(new Data.Entry
            {
                Name = "Woodland Labyrinth",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/Quf5AqP.png",
                KeyWords = new string[] {
"woodland",
}
            });
            #endregion
            #region Oryx's Castle
            Data.Entries.Add(new Data.Entry
            {
                Name = "Oryx's Castle",
                Difficulty = 4,
                Enabled = true, //Default
                ImageURL = "http://s17.postimg.org/u6ujfpxu3/mp_QLem_W.png",
                KeyWords = new string[] {
"Castle",
"o1",
"oryx1",
}
            });
            #endregion
            #region Wine Cellar
            Data.Entries.Add(new Data.Entry
            {
                Name = "Wine Cellar",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "http://static.drips.pw/rotmg/wiki/Environment/Portals/Locked%20Wine%20Cellar%20Portal.png",
                KeyWords = new string[] {
"cellar",
"o2",
"oryx2",
"wc",
}
            });
            #endregion
            #region Lair of Shaitan
            Data.Entries.Add(new Data.Entry
            {
                Name = "Lair of Shaitan",
                Difficulty = 5,
                Enabled = true, //Default
                ImageURL = "https://i.imgur.com/pUgvoRm.png",
                KeyWords = new string[] {
"shaitan",
}
            });
            #endregion
            #endregion

        }