- Yasaklandı
- #1
CSharp
Banlı Üye
Offsetlerin isimlerini ben verdim ve açıklamalarına hangi dll veya offsetler ile kullanılacağını ve bazılarının değerlerini yazdım
ORNEK VERI YAZMA
C#:
class Offsets // by Lufzys
{
public static int dwLocalPlayer = 0xDA5A84; // GameAssembly.dll
public static int dwCharacter = 0xDAF3E8; // GameAssembly.dll
public static int[] dwCharacterState = new int[] { 0x5C, 0x20, 0x34, 0x28 }; // CREW = 0, IMP = 1; GHOST = 257 | dwCharacter
public static int dwEnvironment = 0x12A86E0; // UnityPlayer.dll
public static int[] dwWallCheck = new int[] { 0x80, 0x5C, 0x0 }; // NoClip ON = 1, OFF = 2 | dwEnvironment
public static int[] dwOriginX = new int[] { 0x80, 0x5C, 0x2C}; // dwEnvironment
public static int[] dwOriginY= new int[] { 0x80, 0x5C, 0x30 }; // dwEnvironment
// Player
public static int[] dwPlayerId = new int[] { 0x5C, 0x0, 0x34, 0x8, 0x0 }; // dwLocalPlayer
public static int[] flSpeed = new int[] { 0x5C, 0x4, 0x14 }; // dwLocalPlayer
public static int[] dwColorId = new int[] { 0x5C, 0x0, 0x34, 0x10 }; // dwLocalPlayer
public static int[] btIsDead = new int[] { 0x5C, 0x0, 0x34, 0x29 }; // dwLocalPlayer
public static int[] btIsImpostor = new int[] { 0x5C, 0x0, 0x34, 0x8}; // dwLocalPlayer / buggly
public static int[] strPlayerName = new int[] { 0x5C, 0x0, 0x34, 0xC, 0xC }; // dwLocalPlayer | Unicode
public static int[] flLightRadius = new int[] { 0x5C, 0x0, 0x54, 0x1C}; // dwLocalPlayer
// Server Info
public static int dwServerManager = 0x00DA5A84; // GameAssembly.dll
public static int[] dwMaxPlayer = new int[] { 0x5C, 0x4, 0x8 }; // dwServerManager
public static int[] btMapId = new int[] { 0x5C, 0x4, 0x10 }; // dwServerManager
// Time
public static int[] dwDiscussionTime = new int[] { 0x5C, 0x4, 0x44 }; // dwLocalPlayer
public static int[] dwVotingTime = new int[] { 0x5C, 0x4, 0x48 }; // dwLocalPlayer
// Crew
public static int[] dwEmergencyCount = new int[] { 0x5C, 0x4, 0x30 }; // dwLocalPlayer
public static int[] dwRemainingEmergencyCount = new int[] { 0x5C, 0x0, 0x48 }; // dwLocalPlayer
public static int[] flCrewLightDistance = new int[] { 0x5C, 0x4, 0x18 }; // dwLocalPlayer
public static int[] dwMaxReportDistance = new int[] { 0x5C, 0x0, 0x2C }; // dwLocalPlayer
// Impostor
public static int[] dwImposterCount = new int[] { 0x5C, 0x4, 0x38 }; // dwLocalPlayer
public static int[] flImpostorLightDistance = new int[] { 0x5C, 0x4, 0x1C }; // dwLocalPlayer
public static int[] dwKillCooldown = new int[] { 0x5C, 0x4, 0x20 }; // dwLocalPlayer
public static int[] dwKillDistance = new int[] { 0x5C, 0x0, 0x40 }; // dwLocalPlayer | Short = 1, Normal = 2, Far = 3
public static int[] dwKillTimer = new int[] { 0x5C, 0x0, 0x44 }; // dwLocalPlayer
}
C#:
public static IntPtr FindDMAAddy(IntPtr ptr, int[] offsets)
{
var buffer = new byte[IntPtr.Size];
foreach (int i in offsets)
{
Imports.ReadProcessMemory((int)m_iProcessHandle, (int)ptr, buffer, buffer.Length, ref m_iBytesRead);
ptr = (IntPtr.Size == 4)
? IntPtr.Add(new IntPtr(BitConverter.ToInt32(buffer, 0)), i)
: ptr = IntPtr.Add(new IntPtr(BitConverter.ToInt64(buffer, 0)), i);
}
return ptr;
ORNEK VERI YAZMA
C#:
int speed = (int)FindDMAAddy((IntPtr)Globals.Game /*GameAssembly.dll BaseAddress*/ + Offsets.dwLocalPlayer, Offsets.flSpeed);
MemoryClass.Write<float>(speed, 5f);