Example #1
0
 public DiabloIII(int procID)
 {
     if (Process.GetProcessById(procID).ProcessName.Contains("Diablo III") == false)
         throw new Exception("Not a valid diablo process");
     offsets = new Offsets();
     memory = new MemoryManager(procID);
 }
Example #2
0
        public StringList(MemoryManager reader, int id)
        {
            this.mem = reader;
            data = new Dictionary<string, string>();

            SNOReader sno = new SNOReader(mem, 0x0158C240);
            int address = sno.GetAddressFromID(id);
            int count = mem.ReadInt(address + 0xC);
            address += 0x28;

            for (int i = 0; i < count; i++)
            {
                string NLS = mem.ReadString(mem.ReadInt(address), 50).TrimEnd((char)0);
                string Real = mem.ReadString(mem.ReadInt(address + 0x10), 32).TrimEnd((char)0);
                data.Add(NLS, Real);
                address += 0x50;
            }
        }
        public SNOReader(MemoryManager reader, int address)
        {
            data = new Dictionary<int, int>();

            int ptr = reader.ReadInt(address, defptr);
            int count = reader.ReadInt(ptr + defcount);
            int curOff = reader.ReadInt(ptr + deflink) + 0xC;

            for (int i = 0; i <= 4096; i++)
            {
                int curSNOoff = reader.ReadInt(curOff);
                int curSNOid = reader.ReadInt(curSNOoff);

                if (curSNOoff == 0 && curSNOid == 0)
                    break;

                data.Add(curSNOid, curSNOoff);

                curOff += 0x10;
            }
        }
Example #4
0
 public DiabloIII()
 {
     memory = new MemoryManager("Diablo III");
 }
Example #5
0
 public ACDActor(MemoryManager reader, int address)
     : base(reader, address)
 {
     CachedACDID = ACDID;
     GetACDAddress();
 }
Example #6
0
 public Item(MemoryManager reader, int address)
     : base(reader, address)
 {
     GetItemData();
 }
Example #7
0
 public DiabloIII()
 {
     memory = new MemoryManager("Diablo III");
     offsets = new Offsets();
 }
Example #8
0
 public static bool Start(int PID = 0)
 {
     if (PID != 0)
     {
         Process d3proc = Process.GetProcessById(PID);
         if (d3proc.ProcessName.Contains("Diablo III") == false)
         {
             MessageBox.Show("Not a valid Diablo III process for selected process ID\n" +
                 "Leave this value as 0 if you are not using multiple clients");
             return false;
         }
         m = new MemoryManager(PID);
         return true;
     }
     m = new MemoryManager("Diablo III");
     return true;
 }
Example #9
0
 public Actor(Actor other)
 {
     this.address = other.address;
     this.reader = other.reader;
     CachedID = ActorID;
 }
Example #10
0
 public Actor(MemoryManager reader, int address)
 {
     this.reader = reader;
     this.address = address;
     CachedID = ActorID;
 }