-
Notifications
You must be signed in to change notification settings - Fork 7
/
Mods.hpp
77 lines (66 loc) · 1.65 KB
/
Mods.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#pragma once
#include "Entity.hpp"
using namespace std;
namespace Mods
{
enum ItemRarities
{
Normal = 0,
Magic,
Rare,
Unique,
Gem,
Currency,
Quest,
Prophecy
};
struct ItemMod
{
string DisplayName;
string Group; //?
int Level;
string PrettiedName;
string Name;
int Values[4];
};
const int ItemModStructSize = 0x38;
const int ItemNameOffset = 0x04;
const int ItemNameStructSize = 0x10;
const int StatStructSize = 0x20;
namespace Offsets
{
const UINT64 UniqueName = 0x38;
const UINT64 IsIdentified = 0xA8; //use this in scriping func to skip items not needed
const UINT64 Rarity = 0xAC;
const UINT64 ImplicitMods = 0xB8;
const UINT64 ExplicitMods = 0xD0;
const UINT64 EnchantMods = 0xE8;
const UINT64 ItemLevel = 0x220;
const UINT64 RequiredLevel = ItemLevel + 4;
const UINT64 PtrToIncubatorObject = 0x228;
const UINT64 IncubatorKillCount = 0x238;
const UINT64 IsMirrored = 0x23D;
const UINT64 IsSplit = 0x23E;
const UINT64 IsUsable = 0x23F;
const UINT64 IsSynthesized = 0x241;
}
namespace ExtendedInfo
{
namespace Offsets
{
const UINT64 ImplicitStatsArray = 0x08;
const UINT64 EnchantedStatsArray = 0x48;
const UINT64 ScourgeStatsArray = 0x88;
const UINT64 ExplicitStatsArray = 0xC8;
const UINT64 CraftedStatsArray = 0x108;
const UINT64 FracturedStatsArray = 0x148;
}
}
bool IsIdentified(Entity* e);
bool IsMirrored(Entity* e);
bool IsSynthesized(Entity* e);
ItemRarities GetItemRarity(Entity* e);
int GetItemLevel(Entity* e);
int GetRequiredLevel(Entity* e);
std::wstring GetUniqueName(Entity* e);
}