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(); }
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); }
public PacketSender(PwClient client) { _client = client; }
public Mem(PwClient client) { _processHandle = client.Handle; }
public PwInterface(PwClient client) { _client = client; }
public Keyboard(PwClient client) { _client = client; }
public Environment(PwClient client) { _client = client; }
public Additional(PwClient client) { _client = client; }
public ActionStructs(PwClient client) { _client = client; }
public PlayerInfo(PwClient client) { _client = client; }