public EQmemory() { processes = Process.GetProcessesByName("EverQuest2"); eqproc = processes[0]; pPlayer = new MemoryLoc(eqproc, addrbase + 0xFC6CC); pPlocation = new MemoryLoc(eqproc, addrbase + 0x165DE0); }
public int maxHp() { MemoryLoc max_hp = new MemoryLoc(eqproc, pPlayer.GetInt32() + 0x8C); return max_hp.GetInt32(); }
public float getZPos() { MemoryLoc cur_zaxis = new MemoryLoc(eqproc, pPlocation.GetInt32() + 0x78); return cur_zaxis.GetFloat(); }
public float getHeading() { MemoryLoc heading = new MemoryLoc(eqproc, pPlocation.GetInt32() + 0x8); return heading.GetFloat(); }
public int currentHp() { MemoryLoc cur_hp = new MemoryLoc(eqproc, pPlayer.GetInt32() + 0x88); return cur_hp.GetInt32(); }