Exemplo n.º 1
0
        public PwClient(IntPtr descript)
        {
            this.Descrypt = descript;
            Int32 processID;

            WinApi.GetWindowThreadProcessId(descript, out processID);
            ProcessID = processID;
            handle    = WinApi.OpenProcess(WinApi.ProcessAccessFlags.All, false, ProcessID);
            Name      = CalcMethods.ReadString(handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Name+0x0"));
            Money     = CalcMethods.ReadInt(handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Money"));
        }
Exemplo n.º 2
0
 public static void CheckMoney(PwClient pw)
 {
     pw.Money = CalcMethods.ReadInt(pw.Handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Money"));
 }