Example #1
0
        public Addresses(PwClient client)
        {
            _client = client;

            var searcher = new AddressSearcher(_client.Process.MainModule.FileName);

            BaseAddress        = searcher.Search(@"\x66\x8B\x4C\x24\x1C\x66\x89\x46\x1C\x66\x89\x4E\x1F\x8B\x15(?<val>.{4})\x6A\x21\x56\x8B\x4A\x20\xE8");
            SendPacketFunction = searcher.Search(@"\x6A\x21\x56\x8B\x4A\x20\xE8(?<val>.{4})\x56\xE8.{4}\x83\xC4\x04\x5E\xC3", (val, ind) => ind + val + 0x400004);
            OffsetUnfreeze     = searcher.Search(@"\x0F\x95\xC0\x84\xC0\x88\x85(?<val>.{2}\x00\x00)\x75\x51\x8B\x94");
            UnfreezeFunction   = (int)(_client.Process.MainModule.BaseAddress + searcher.Search(@"\x0F\x95\xC0\x84\xC0(?<val>\x88\x85.{2})\x00\x00\x75\x51\x8B\x94", (val, ind) => ind));
            //SearchAddresses();
        }
Example #2
0
        public Chat(PwClient client)
        {
            _client = client;

            _lastMessages = new List <ChatMessage>();
            var timer = new Timer(s =>
            {
                if (NewMessage == null)
                {
                    return;
                }

                var newMessages = GetMessages();
                foreach (var chatMessage in newMessages.Except(_lastMessages))
                {
                    NewMessage(chatMessage);
                }
                _lastMessages = newMessages;
            });

            timer.Change(500, 500);
        }
Example #3
0
 public PacketSender(PwClient client)
 {
     _client = client;
 }
Example #4
0
 public Mem(PwClient client)
 {
     _processHandle = client.Handle;
 }
Example #5
0
 public PwInterface(PwClient client)
 {
     _client = client;
 }
Example #6
0
 public Keyboard(PwClient client)
 {
     _client = client;
 }
Example #7
0
 public Environment(PwClient client)
 {
     _client = client;
 }
Example #8
0
 public Additional(PwClient client)
 {
     _client = client;
 }
Example #9
0
 public ActionStructs(PwClient client)
 {
     _client = client;
 }
Example #10
0
 public PlayerInfo(PwClient client)
 {
     _client = client;
 }