Ejemplo n.º 1
0
        private void LoadItemData()
        {
            SNOReader snoReader = new SNOReader(reader, 0x18817C8); //GameBalance SNOGroup

            GBData = new Dictionary <int, int>();

            ReadItemData(snoReader.GetAddressFromID(19750));  //Items_Armor
            ReadItemData(snoReader.GetAddressFromID(19753));  //Items_Other
            ReadItemData(snoReader.GetAddressFromID(19754));  //Items_Weapon
            ReadItemData(snoReader.GetAddressFromID(1189));   //Items_Legendary_Other
            ReadItemData(snoReader.GetAddressFromID(19752));  //Items_Legendary_Weapons
            ReadItemData(snoReader.GetAddressFromID(170627)); //Items_Legendary
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
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;
            }
        }
Ejemplo n.º 4
0
        private void GetItemData()
        {
            if (GBData == null)
            {
                SNOReader snoReader = new SNOReader(reader, 0x1548FB8); //GameBalance SNOGroup
                GBData = new Dictionary <int, int>();

                int armor  = snoReader.GetAddressFromID(19750);
                int other  = snoReader.GetAddressFromID(19753);
                int weapon = snoReader.GetAddressFromID(19754);

                ReadItemData(armor);
                ReadItemData(other);
                ReadItemData(weapon);
            }

            if (GBData.ContainsKey(GBID))
            {
                int data = GBData[GBID];
                ItemLevel = reader.ReadInt(data + 0x114);
                ItemName  = reader.ReadString(data + 0x4, 100);
            }
        }
Ejemplo n.º 5
0
Archivo: Item.cs Proyecto: usuket/Works
        private void LoadItemData()
        {
            SNOReader snoReader = new SNOReader(d3, d3.offsets[Offset.GameBalance]); //GameBalance SNOGroup
            GBData = new Dictionary<int, int>();

            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Armor])); //Items_Armor
            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Other])); //Items_Other
            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Weapon])); //Items_Weapon
            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Legendary_Other])); //Items_Legendary_Other
            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Legendary_Weapons])); //Items_Legendary_Weapons
            ReadItemData(snoReader.GetAddressFromID(d3.offsets[Offset.GBItems_Legendary])); //Items_Legendary
        }
Ejemplo n.º 6
0
        private void LoadItemData()
        {
            SNOReader snoReader = new SNOReader(reader, 0x18817C8); //GameBalance SNOGroup
            GBData = new Dictionary<int, int>();

            ReadItemData(snoReader.GetAddressFromID(19750)); //Items_Armor
            ReadItemData(snoReader.GetAddressFromID(19753)); //Items_Other
            ReadItemData(snoReader.GetAddressFromID(19754)); //Items_Weapon
            ReadItemData(snoReader.GetAddressFromID(1189)); //Items_Legendary_Other
            ReadItemData(snoReader.GetAddressFromID(19752)); //Items_Legendary_Weapons
            ReadItemData(snoReader.GetAddressFromID(170627)); //Items_Legendary
        }
Ejemplo n.º 7
0
        private void GetItemData()
        {
            if (GBData == null)
            {
                SNOReader snoReader = new SNOReader(reader, 0x1548FB8); //GameBalance SNOGroup
                GBData = new Dictionary<int, int>();

                int armor = snoReader.GetAddressFromID(19750);
                int other = snoReader.GetAddressFromID(19753);
                int weapon = snoReader.GetAddressFromID(19754);

                ReadItemData(armor);
                ReadItemData(other);
                ReadItemData(weapon);
            }

            if (GBData.ContainsKey(GBID))
            {
                int data = GBData[GBID];
                ItemLevel = reader.ReadInt(data + 0x114);
                ItemName = reader.ReadString(data + 0x4, 100);
            }
        }