private void morphBox_OnValueChanged(object sender, EventArgs e) { IntPtr zero = IntPtr.Zero; IntPtr address = (IntPtr)(BitConverter.ToInt32( MemoryTool.ReadAddress( InformationCollecter.Instance.ProcessHandle, (IntPtr)BasePointer.CharacterBase, 4), 0) + (int)Offset.Morph); if (InformationCollecter.Instance.Threads.ContainsKey("Morph")) { InformationCollecter.Instance.Threads["Morph"].Abort(); } InformationCollecter.Instance.Threads.Remove("Morph"); InformationCollecter.Instance.Threads.Add("Morph", new Thread(new ThreadStart( () => { while (true) { WriteMemory((int)address, BitConverter.GetBytes((int)numericUpDown1.Value)); Thread.Sleep(100); } }))); InformationCollecter.Instance.Threads["Morph"].Start(); }
public void Teleport(int x, int y) { int CharacterBase = BitConverter.ToInt32( MemoryTool.ReadAddress( InformationCollecter.Instance.ProcessHandle, (IntPtr)BasePointer.CharacterBase, 4), 0); int teleport = CharacterBase + (int)Offset.Teleport; int teleportX = CharacterBase + (int)Offset.TeleportX; int teleportY = CharacterBase + (int)Offset.TeleportY; WriteMemory(teleportX, BitConverter.GetBytes(x)); WriteMemory(teleportY, BitConverter.GetBytes(y)); WriteMemory(teleport, BitConverter.GetBytes(true)); }
public void UpdateGeneralInformation() { int ServerBase = (int)BasePointer.ServerBase; while (true) { GeneralInfo.DamageCap = BitConverter.ToDouble( MemoryTool.ReadAddress(ProcessHandle, (IntPtr)Address.DamageCap, 8), 0); GeneralInfo.WorldID = ReadInt32Pointer(ServerBase, (int)Offset.WorldID); GeneralInfo.Channel = ReadInt32Pointer(ServerBase, (int)Offset.ChannelID); UpdateInformation(); Thread.Sleep(2000); } }