mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-09-18 17:42:08 +00:00
Compare commits
39 Commits
main
...
c0f1e91e4a
Author | SHA1 | Date | |
---|---|---|---|
|
c0f1e91e4a | ||
|
cce65db976 | ||
|
b4b85425aa | ||
|
6cc15930ca | ||
|
106bef4f85 | ||
|
4d21c90f5a | ||
|
058db50095 | ||
|
43defeb6d8 | ||
|
dc76f5627b | ||
|
d75e045bc7 | ||
|
e431b3f7d4 | ||
|
551f3e44f2 | ||
|
41a4c4d181 | ||
|
9719a540df | ||
|
408aee62c1 | ||
|
a61dce8f03 | ||
|
5f220fa23e | ||
|
4e02101d5d | ||
|
ee810d5f38 | ||
|
343fa4253b | ||
|
331d1d75fe | ||
|
95f7d9bed3 | ||
|
3a7be104d9 | ||
|
6141cc0a7b | ||
|
9e57031fdd | ||
|
69965f77d1 | ||
|
aec114d05c | ||
|
06c28f4d56 | ||
|
7fd617abd7 | ||
|
f8349e6ba1 | ||
|
d33c619372 | ||
|
56a49ff1e0 | ||
|
4d8fe9b2e2 | ||
|
8f5c45d1c5 | ||
|
b5587695e8 | ||
|
27d93fa91e | ||
|
78fcd692b2 | ||
|
87d4758efc | ||
|
74f1d9de01 |
2
ClassDiagram.cd
Normal file
2
ClassDiagram.cd
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ClassDiagram />
|
BIN
D2tweaks.aps
Normal file
BIN
D2tweaks.aps
Normal file
Binary file not shown.
@@ -47,12 +47,12 @@
|
|||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<OutDir>..\..\Diablo II\MODS\ironman-dev</OutDir>
|
<OutDir>..\..\Diablo II\MODS\ironman-dev\</OutDir>
|
||||||
<IntDir>$(SolutionDir)Build\$(Configuration)\</IntDir>
|
<IntDir>$(SolutionDir)Build\$(Configuration)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<OutDir>..\..\Diablo II\MODS\ironman-dev</OutDir>
|
<OutDir>..\..\Diablo II\MODS\ironman-dev\</OutDir>
|
||||||
<IntDir>$(SolutionDir)Build\$(Configuration)\</IntDir>
|
<IntDir>$(SolutionDir)Build\$(Configuration)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
@@ -180,6 +180,7 @@
|
|||||||
<ClCompile Include="vendor\minhook\src\trampoline.c" />
|
<ClCompile Include="vendor\minhook\src\trampoline.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="ClassDiagram.cd" />
|
||||||
<None Include="vendor\minhook\dll_resources\MinHook.def" />
|
<None Include="vendor\minhook\dll_resources\MinHook.def" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -279,6 +280,7 @@
|
|||||||
<ClInclude Include="include\diablo2\utils\screen.h" />
|
<ClInclude Include="include\diablo2\utils\screen.h" />
|
||||||
<ClInclude Include="include\fw\pool.h" />
|
<ClInclude Include="include\fw\pool.h" />
|
||||||
<ClInclude Include="include\fw\singleton.h" />
|
<ClInclude Include="include\fw\singleton.h" />
|
||||||
|
<ClInclude Include="resource.h" />
|
||||||
<ClInclude Include="vendor\D2Template\D2Template.h" />
|
<ClInclude Include="vendor\D2Template\D2Template.h" />
|
||||||
<ClInclude Include="vendor\D2Template\D2TemplateConstants.h" />
|
<ClInclude Include="vendor\D2Template\D2TemplateConstants.h" />
|
||||||
<ClInclude Include="vendor\D2Template\D2TemplateDataTables.h" />
|
<ClInclude Include="vendor\D2Template\D2TemplateDataTables.h" />
|
||||||
|
77
build/Debug/D2tweaks.Build.CppClean.log
Normal file
77
build/Debug/D2tweaks.Build.CppClean.log
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\common\asm_code.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\common\hooking.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2win.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2gfx.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2common.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2lang.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2game.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2net.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\controls\checkbox.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\controls\image.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\controls\label.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\controls\button.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\loot_filter\loot_filter.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\loot_filter\loot_filter_settings_toggle_menu.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\loot_filter\loot_filter_settings_menu.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\common\string_utils.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\common\config.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\common\ini.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vc143.pdb
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\client_module.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\small_patches\small_patches.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\common\common.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\common\asset_manager.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\server_module.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\controls\group.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\menu.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\ui\ui_manager.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2launch.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\fog.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\storm.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\d2cmp.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\utils\mpq_ifstream.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\diablo2\utils\screen.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\main.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\d2template\d2template.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\dllnotify\dllnotify.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\minhook\src\buffer.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\minhook\src\hook.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\minhook\src\trampoline.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\minhook\src\hde\hde32.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\vendor\minhook\src\hde\hde64.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\autosort\autosort_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\auto_gold_pickup\auto_gold_pickup_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\auto_item_pickup\auto_item_pickup_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\damage_display\damage_display_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\item_drop_message\item_drop_message_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\item_move\item_move_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\loot_filter\loot_filter_settings.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\test\test.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\trader_update\trader_update_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\client\modules\transmute\transmute_client.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\autosort\autosort_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\auto_gold_pickup\auto_gold_pickup_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\auto_item_pickup\auto_item_pickup_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\damage_display\damage_display_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\identify_on_pickup\identify_on_pickup_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\item_drop_message\item_drop_message_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\item_move\item_move_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\test\test.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\trader_update\trader_update_server.obj
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\src\d2tweaks\server\modules\transmute\transmute_server.obj
|
||||||
|
d:\diablo ii\mods\ironman-dev\d2tweaks.dll
|
||||||
|
d:\diablo ii\mods\ironman-dev\d2tweaks.pdb
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.ilk
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.pdb
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.vcxproj.filelistabsolute.txt
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\cl.command.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\cl.items.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\cl.read.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\cl.write.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\link.command.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\link.read.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\link.secondary.1.tlog
|
||||||
|
d:\vscode\d2tweaks-rnd2k\build\debug\d2tweaks.tlog\link.write.1.tlog
|
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(517,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
|
autosort_client.cpp
|
||||||
ui_manager.cpp
|
D:\VSCode\d2tweaks-rnd2k\src\d2tweaks\client\modules\autosort\autosort_client.cpp(197,15): warning C4018: '<': signed/unsigned mismatch
|
||||||
|
D:\VSCode\d2tweaks-rnd2k\src\d2tweaks\client\modules\autosort\autosort_client.cpp(197,66): warning C4018: '<=': signed/unsigned mismatch
|
||||||
D2tweaks.vcxproj -> D:\Diablo II\MODS\ironman-dev\D2tweaks.dll
|
D2tweaks.vcxproj -> D:\Diablo II\MODS\ironman-dev\D2tweaks.dll
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1 @@
|
|||||||
D:\VSCode\D2tweaks_src_17.04.2024\Build\Debug\D2tweaks.dll
|
D:\VSCode\D2tweaks_src_17.04.2024\Build\Debug\D2tweaks.dll
|
||||||
D:\VSCode\d2tweaks-rnd2k\Build\Debug\D2tweaks.dll
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/Debug/vendor/D2Template/D2Template.obj
vendored
BIN
build/Debug/vendor/D2Template/D2Template.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/DllNotify/DllNotify.obj
vendored
BIN
build/Debug/vendor/DllNotify/DllNotify.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/minhook/src/buffer.obj
vendored
BIN
build/Debug/vendor/minhook/src/buffer.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/minhook/src/hde/hde32.obj
vendored
BIN
build/Debug/vendor/minhook/src/hde/hde32.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/minhook/src/hde/hde64.obj
vendored
BIN
build/Debug/vendor/minhook/src/hde/hde64.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/minhook/src/hook.obj
vendored
BIN
build/Debug/vendor/minhook/src/hook.obj
vendored
Binary file not shown.
BIN
build/Debug/vendor/minhook/src/trampoline.obj
vendored
BIN
build/Debug/vendor/minhook/src/trampoline.obj
vendored
Binary file not shown.
8
d2tweaks-rnd2k.code-workspace
Normal file
8
d2tweaks-rnd2k.code-workspace
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
// If MFC is linked, we will use CStringArray for great convenience
|
// If MFC is linked, we will use CStringArray for great convenience
|
||||||
#ifdef __AFXWIN_H__
|
#ifdef __AFXWIN_H__
|
||||||
#include <afxtempl.h>
|
#include <afxtempl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Number bases
|
// Number bases
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
// string, the 2nd parameter is a 32-bit user defined data, this parameter can
|
// string, the 2nd parameter is a 32-bit user defined data, this parameter can
|
||||||
// be NULL. The parsing will terminate if this function returns zero. To use
|
// be NULL. The parsing will terminate if this function returns zero. To use
|
||||||
// the callback, function pointer needs to be passed to "CIni::ParseDNTString".
|
// the callback, function pointer needs to be passed to "CIni::ParseDNTString".
|
||||||
typedef BOOL (CALLBACK *SUBSTRPROC)(LPCTSTR, LPVOID);
|
typedef BOOL(CALLBACK* SUBSTRPROC)(LPCTSTR, LPVOID);
|
||||||
|
|
||||||
class CIni
|
class CIni
|
||||||
{
|
{
|
||||||
|
@@ -62,7 +62,7 @@ namespace hooking {
|
|||||||
template<size_t TOrdinal, typename TOrig>
|
template<size_t TOrdinal, typename TOrig>
|
||||||
mh_status_t hook(void* base, void* detour, TOrig** original) {
|
mh_status_t hook(void* base, void* detour, TOrig** original) {
|
||||||
auto fn = GetProcAddress(reinterpret_cast<HMODULE>(base),
|
auto fn = GetProcAddress(reinterpret_cast<HMODULE>(base),
|
||||||
reinterpret_cast<LPCSTR>(TOrdinal));
|
reinterpret_cast<LPCSTR>(TOrdinal));
|
||||||
|
|
||||||
return hook(fn, detour, original);
|
return hook(fn, detour, original);
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@ namespace details {
|
|||||||
TRet operator()(Args... args) {
|
TRet operator()(Args... args) {
|
||||||
if (!m_function_ptr) {
|
if (!m_function_ptr) {
|
||||||
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
||||||
reinterpret_cast<LPCSTR>(m_ordinal)));
|
reinterpret_cast<LPCSTR>(m_ordinal)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return reinterpret_cast<TRet(__cdecl*)(Args...)>(m_function_ptr)(args...);
|
return reinterpret_cast<TRet(__cdecl*)(Args...)>(m_function_ptr)(args...);
|
||||||
@@ -67,7 +67,7 @@ namespace details {
|
|||||||
TRet operator()(Args... args) {
|
TRet operator()(Args... args) {
|
||||||
if (!m_function_ptr) {
|
if (!m_function_ptr) {
|
||||||
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
||||||
reinterpret_cast<LPCSTR>(m_ordinal)));
|
reinterpret_cast<LPCSTR>(m_ordinal)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return reinterpret_cast<TRet(__stdcall*)(Args...)>(m_function_ptr)(args...);
|
return reinterpret_cast<TRet(__stdcall*)(Args...)>(m_function_ptr)(args...);
|
||||||
@@ -89,7 +89,7 @@ namespace details {
|
|||||||
TRet operator()(Args... args) {
|
TRet operator()(Args... args) {
|
||||||
if (!m_function_ptr) {
|
if (!m_function_ptr) {
|
||||||
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
m_function_ptr = reinterpret_cast<decltype(m_function_ptr)>(GetProcAddress(reinterpret_cast<HMODULE>(m_base),
|
||||||
reinterpret_cast<LPCSTR>(m_ordinal)));
|
reinterpret_cast<LPCSTR>(m_ordinal)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return reinterpret_cast<TRet(__fastcall*)(Args...)>(m_function_ptr)(args...);
|
return reinterpret_cast<TRet(__fastcall*)(Args...)>(m_function_ptr)(args...);
|
||||||
|
@@ -13,20 +13,17 @@
|
|||||||
struct StatEntry {
|
struct StatEntry {
|
||||||
std::wstring stat_display_string;
|
std::wstring stat_display_string;
|
||||||
diablo2::ui_color_t colorStat, colorStatValue;
|
diablo2::ui_color_t colorStat, colorStatValue;
|
||||||
int x1, y1, x2, y2, is_item_stat, item_type_id, stat = 0; // x1,y1 stat_display_string | x2,y2 statValue
|
int x1, y1, x2, y2, is_item_stat, item_type_id, stat, op, param = 0; // x1,y1 stat_display_string | x2,y2 statValue
|
||||||
};
|
};
|
||||||
|
|
||||||
extern std::vector<StatEntry> globalStatsVector; // Declaration of the global variable
|
extern std::vector<StatEntry> globalStatsVector; // Declaration of the global variable
|
||||||
|
|
||||||
extern diablo2::structures::gfxdata g_gfxdata; // global gfxdata
|
extern diablo2::structures::gfxdata g_gfxdata; // global gfxdata
|
||||||
|
|
||||||
extern int randStat;
|
|
||||||
extern int randStatRangeLow;
|
|
||||||
extern int randStatRangeHigh;
|
|
||||||
extern int randStatBool;
|
|
||||||
|
|
||||||
|
|
||||||
extern bool m_stats_enabled;
|
extern bool m_stats_enabled;
|
||||||
|
extern bool m_help_enabled;
|
||||||
|
extern bool m_cube_enabled;
|
||||||
|
extern bool m_stash_enabled;
|
||||||
|
|
||||||
namespace diablo2 {
|
namespace diablo2 {
|
||||||
namespace structures {
|
namespace structures {
|
||||||
|
@@ -15,9 +15,111 @@ namespace d2_tweaks {
|
|||||||
bool show_runes;
|
bool show_runes;
|
||||||
bool show_gems;
|
bool show_gems;
|
||||||
|
|
||||||
|
bool m_show_r01;
|
||||||
|
bool m_show_r02;
|
||||||
|
bool m_show_r03;
|
||||||
|
bool m_show_r04;
|
||||||
|
bool m_show_r05;
|
||||||
|
bool m_show_r06;
|
||||||
|
bool m_show_r07;
|
||||||
|
bool m_show_r08;
|
||||||
|
bool m_show_r09;
|
||||||
|
bool m_show_r10;
|
||||||
|
bool m_show_r11;
|
||||||
|
bool m_show_r12;
|
||||||
|
bool m_show_r13;
|
||||||
|
bool m_show_r14;
|
||||||
|
bool m_show_r15;
|
||||||
|
bool m_show_r16;
|
||||||
|
bool m_show_r17;
|
||||||
|
bool m_show_r18;
|
||||||
|
bool m_show_r19;
|
||||||
|
bool m_show_r20;
|
||||||
|
bool m_show_r21;
|
||||||
|
bool m_show_r22;
|
||||||
|
bool m_show_r23;
|
||||||
|
bool m_show_r24;
|
||||||
|
bool m_show_r25;
|
||||||
|
bool m_show_r26;
|
||||||
|
bool m_show_r27;
|
||||||
|
bool m_show_r28;
|
||||||
|
bool m_show_r29;
|
||||||
|
bool m_show_r30;
|
||||||
|
bool m_show_r31;
|
||||||
|
bool m_show_r32;
|
||||||
|
bool m_show_r33;
|
||||||
|
|
||||||
|
bool m_show_amethyst;
|
||||||
|
bool m_show_diamond;
|
||||||
|
bool m_show_emerald;
|
||||||
|
bool m_show_ruby;
|
||||||
|
bool m_show_sapphire;
|
||||||
|
bool m_show_skull;
|
||||||
|
bool m_show_topaz;
|
||||||
|
|
||||||
|
bool m_show_chipped;
|
||||||
|
bool m_show_flawed;
|
||||||
|
bool m_show_normal;
|
||||||
|
bool m_show_flawless;
|
||||||
|
bool m_show_perfect;
|
||||||
|
|
||||||
|
bool m_show_rough;
|
||||||
|
bool m_show_faded;
|
||||||
|
bool m_show_blemished;
|
||||||
|
bool m_show_cleaned;
|
||||||
|
bool m_show_triangle;
|
||||||
|
bool m_show_trangle_cut;
|
||||||
|
bool m_show_square;
|
||||||
|
bool m_show_square_cut;
|
||||||
|
bool m_show_regular;
|
||||||
|
bool m_show_regular_cut;
|
||||||
|
bool m_show_star;
|
||||||
|
bool m_show_star_cut;
|
||||||
|
bool m_show_imperial;
|
||||||
|
bool m_show_imperial_cut;
|
||||||
|
bool m_show_royal;
|
||||||
|
bool m_show_royal_cut;
|
||||||
|
bool m_show_spectacular;
|
||||||
|
bool m_show_legendary;
|
||||||
|
bool m_show_legendary_cut;
|
||||||
|
|
||||||
|
bool m_show_flourite;
|
||||||
|
bool m_show_jade;
|
||||||
|
bool m_show_argonite;
|
||||||
|
bool m_show_azurite;
|
||||||
|
bool m_show_sulpher;
|
||||||
|
bool m_show_quartz;
|
||||||
|
bool m_show_tiger_eye;
|
||||||
|
|
||||||
|
bool m_show_rejuv_potion;
|
||||||
|
bool m_show_full_rejuv_potion;
|
||||||
|
|
||||||
|
bool m_show_hp1;
|
||||||
|
bool m_show_hp2;
|
||||||
|
bool m_show_hp3;
|
||||||
|
bool m_show_hp4;
|
||||||
|
bool m_show_hp5;
|
||||||
|
|
||||||
|
bool m_show_mp1;
|
||||||
|
bool m_show_mp2;
|
||||||
|
bool m_show_mp3;
|
||||||
|
bool m_show_mp4;
|
||||||
|
bool m_show_mp5;
|
||||||
|
|
||||||
|
bool m_show_frp;
|
||||||
|
bool m_show_mrp;
|
||||||
|
bool m_show_prp;
|
||||||
|
bool m_show_crp;
|
||||||
|
bool m_show_lrp;
|
||||||
|
bool m_show_vps;
|
||||||
|
bool m_show_yps;
|
||||||
|
bool m_show_wms;
|
||||||
|
|
||||||
|
bool m_show_close;
|
||||||
|
|
||||||
bool quality_settings[static_cast<size_t>(diablo2::structures::item_quality_t::ITEM_QUALITY_COUNT)];
|
bool quality_settings[static_cast<size_t>(diablo2::structures::item_quality_t::ITEM_QUALITY_COUNT)];
|
||||||
|
|
||||||
char reserved[1004];
|
char reserved[888];
|
||||||
|
|
||||||
static loot_filter_settings& get();
|
static loot_filter_settings& get();
|
||||||
|
|
||||||
|
@@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
#include <d2tweaks/ui/menu.h>
|
#include <d2tweaks/ui/menu.h>
|
||||||
|
|
||||||
|
#include <chrono> // Add this line
|
||||||
|
#include <diablo2/d2common.h>
|
||||||
|
|
||||||
namespace diablo2 {
|
namespace diablo2 {
|
||||||
namespace structures {
|
namespace structures {
|
||||||
struct unit;
|
struct unit;
|
||||||
@@ -26,6 +29,108 @@ namespace d2_tweaks {
|
|||||||
ui::controls::checkbox* m_show_runes;
|
ui::controls::checkbox* m_show_runes;
|
||||||
ui::controls::checkbox* m_show_gems;
|
ui::controls::checkbox* m_show_gems;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_ruby;
|
||||||
|
ui::controls::checkbox* m_show_sapphire;
|
||||||
|
ui::controls::checkbox* m_show_emerald;
|
||||||
|
ui::controls::checkbox* m_show_diamond;
|
||||||
|
ui::controls::checkbox* m_show_topaz;
|
||||||
|
ui::controls::checkbox* m_show_amethyst;
|
||||||
|
ui::controls::checkbox* m_show_skull;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_r01;
|
||||||
|
ui::controls::checkbox* m_show_r02;
|
||||||
|
ui::controls::checkbox* m_show_r03;
|
||||||
|
ui::controls::checkbox* m_show_r04;
|
||||||
|
ui::controls::checkbox* m_show_r05;
|
||||||
|
ui::controls::checkbox* m_show_r06;
|
||||||
|
ui::controls::checkbox* m_show_r07;
|
||||||
|
ui::controls::checkbox* m_show_r08;
|
||||||
|
ui::controls::checkbox* m_show_r09;
|
||||||
|
ui::controls::checkbox* m_show_r10;
|
||||||
|
ui::controls::checkbox* m_show_r11;
|
||||||
|
ui::controls::checkbox* m_show_r12;
|
||||||
|
ui::controls::checkbox* m_show_r13;
|
||||||
|
ui::controls::checkbox* m_show_r14;
|
||||||
|
ui::controls::checkbox* m_show_r15;
|
||||||
|
ui::controls::checkbox* m_show_r16;
|
||||||
|
ui::controls::checkbox* m_show_r17;
|
||||||
|
ui::controls::checkbox* m_show_r18;
|
||||||
|
ui::controls::checkbox* m_show_r19;
|
||||||
|
ui::controls::checkbox* m_show_r20;
|
||||||
|
ui::controls::checkbox* m_show_r21;
|
||||||
|
ui::controls::checkbox* m_show_r22;
|
||||||
|
ui::controls::checkbox* m_show_r23;
|
||||||
|
ui::controls::checkbox* m_show_r24;
|
||||||
|
ui::controls::checkbox* m_show_r25;
|
||||||
|
ui::controls::checkbox* m_show_r26;
|
||||||
|
ui::controls::checkbox* m_show_r27;
|
||||||
|
ui::controls::checkbox* m_show_r28;
|
||||||
|
ui::controls::checkbox* m_show_r29;
|
||||||
|
ui::controls::checkbox* m_show_r30;
|
||||||
|
ui::controls::checkbox* m_show_r31;
|
||||||
|
ui::controls::checkbox* m_show_r32;
|
||||||
|
ui::controls::checkbox* m_show_r33;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_chipped;
|
||||||
|
ui::controls::checkbox* m_show_flawed;
|
||||||
|
ui::controls::checkbox* m_show_normal;
|
||||||
|
ui::controls::checkbox* m_show_flawless;
|
||||||
|
ui::controls::checkbox* m_show_perfect;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_flourite;
|
||||||
|
ui::controls::checkbox* m_show_jade;
|
||||||
|
ui::controls::checkbox* m_show_argonite;
|
||||||
|
ui::controls::checkbox* m_show_azurite;
|
||||||
|
ui::controls::checkbox* m_show_sulpher;
|
||||||
|
ui::controls::checkbox* m_show_quartz;
|
||||||
|
ui::controls::checkbox* m_show_tiger_eye;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_rough;
|
||||||
|
ui::controls::checkbox* m_show_faded;
|
||||||
|
ui::controls::checkbox* m_show_blemished;
|
||||||
|
ui::controls::checkbox* m_show_cleaned;
|
||||||
|
ui::controls::checkbox* m_show_triangle;
|
||||||
|
ui::controls::checkbox* m_show_trangle_cut;
|
||||||
|
ui::controls::checkbox* m_show_square;
|
||||||
|
ui::controls::checkbox* m_show_square_cut;
|
||||||
|
ui::controls::checkbox* m_show_regular;
|
||||||
|
ui::controls::checkbox* m_show_regular_cut;
|
||||||
|
ui::controls::checkbox* m_show_star;
|
||||||
|
ui::controls::checkbox* m_show_star_cut;
|
||||||
|
ui::controls::checkbox* m_show_imperial;
|
||||||
|
ui::controls::checkbox* m_show_imperial_cut;
|
||||||
|
ui::controls::checkbox* m_show_royal;
|
||||||
|
ui::controls::checkbox* m_show_royal_cut;
|
||||||
|
ui::controls::checkbox* m_show_spectacular;
|
||||||
|
ui::controls::checkbox* m_show_legendary;
|
||||||
|
ui::controls::checkbox* m_show_legendary_cut;
|
||||||
|
ui::controls::checkbox* m_show_rejuv_potion;
|
||||||
|
ui::controls::checkbox* m_show_full_rejuv_potion;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_hp1;
|
||||||
|
ui::controls::checkbox* m_show_hp2;
|
||||||
|
ui::controls::checkbox* m_show_hp3;
|
||||||
|
ui::controls::checkbox* m_show_hp4;
|
||||||
|
ui::controls::checkbox* m_show_hp5;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_mp1;
|
||||||
|
ui::controls::checkbox* m_show_mp2;
|
||||||
|
ui::controls::checkbox* m_show_mp3;
|
||||||
|
ui::controls::checkbox* m_show_mp4;
|
||||||
|
ui::controls::checkbox* m_show_mp5;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_frp;
|
||||||
|
ui::controls::checkbox* m_show_mrp;
|
||||||
|
ui::controls::checkbox* m_show_prp;
|
||||||
|
ui::controls::checkbox* m_show_crp;
|
||||||
|
ui::controls::checkbox* m_show_lrp;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_show_vps;
|
||||||
|
ui::controls::checkbox* m_show_yps;
|
||||||
|
ui::controls::checkbox* m_show_wms;
|
||||||
|
|
||||||
|
ui::controls::checkbox* m_close;
|
||||||
|
|
||||||
void(__fastcall* m_draw_dropped_items_names_original)(void*, void*);
|
void(__fastcall* m_draw_dropped_items_names_original)(void*, void*);
|
||||||
void(__fastcall* m_handle_dropped_items_original)(void*, void*);
|
void(__fastcall* m_handle_dropped_items_original)(void*, void*);
|
||||||
public:
|
public:
|
||||||
@@ -34,11 +139,118 @@ namespace d2_tweaks {
|
|||||||
void reload_settings();
|
void reload_settings();
|
||||||
|
|
||||||
void draw() override;
|
void draw() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string m_selected_gem;
|
||||||
|
|
||||||
|
std::chrono::steady_clock::time_point m_last_packet_sent;
|
||||||
|
|
||||||
|
void gem_checkbox_clicked(const std::string& gem);
|
||||||
|
void stone_checkbox_clicked(const std::string& gem);
|
||||||
|
|
||||||
void register_misc_checkboxes();
|
void register_misc_checkboxes();
|
||||||
void register_quality_checkboxes();
|
void register_quality_checkboxes();
|
||||||
|
|
||||||
void update_alt_only(bool value);
|
void update_alt_only(bool value);
|
||||||
|
|
||||||
|
|
||||||
|
void extract_item(bool value, int prop, uint32_t val, uint32_t rune, diablo2::unit_stats_t stat);
|
||||||
|
|
||||||
|
void extract_r01(bool value);
|
||||||
|
void extract_r02(bool value);
|
||||||
|
void extract_r03(bool value);
|
||||||
|
void extract_r04(bool value);
|
||||||
|
void extract_r05(bool value);
|
||||||
|
void extract_r06(bool value);
|
||||||
|
void extract_r07(bool value);
|
||||||
|
void extract_r08(bool value);
|
||||||
|
void extract_r09(bool value);
|
||||||
|
void extract_r10(bool value);
|
||||||
|
void extract_r11(bool value);
|
||||||
|
void extract_r12(bool value);
|
||||||
|
void extract_r13(bool value);
|
||||||
|
void extract_r14(bool value);
|
||||||
|
void extract_r15(bool value);
|
||||||
|
void extract_r16(bool value);
|
||||||
|
void extract_r17(bool value);
|
||||||
|
void extract_r18(bool value);
|
||||||
|
void extract_r19(bool value);
|
||||||
|
void extract_r20(bool value);
|
||||||
|
void extract_r21(bool value);
|
||||||
|
void extract_r22(bool value);
|
||||||
|
void extract_r23(bool value);
|
||||||
|
void extract_r24(bool value);
|
||||||
|
void extract_r25(bool value);
|
||||||
|
void extract_r26(bool value);
|
||||||
|
void extract_r27(bool value);
|
||||||
|
void extract_r28(bool value);
|
||||||
|
void extract_r29(bool value);
|
||||||
|
void extract_r30(bool value);
|
||||||
|
void extract_r31(bool value);
|
||||||
|
void extract_r32(bool value);
|
||||||
|
void extract_r33(bool value);
|
||||||
|
|
||||||
|
void extract_chipped(bool value);
|
||||||
|
void extract_flawed(bool value);
|
||||||
|
void extract_normal(bool value);
|
||||||
|
void extract_flawless(bool value);
|
||||||
|
void extract_perfect(bool value);
|
||||||
|
|
||||||
|
void extract_rough(bool value);
|
||||||
|
void extract_faded(bool value);
|
||||||
|
void extract_blemished(bool value);
|
||||||
|
void extract_cleaned(bool value);
|
||||||
|
void extract_triangle(bool value);
|
||||||
|
void extract_trangle_cut(bool value);
|
||||||
|
void extract_square(bool value);
|
||||||
|
void extract_square_cut(bool value);
|
||||||
|
void extract_regular(bool value);
|
||||||
|
void extract_regular_cut(bool value);
|
||||||
|
void extract_star(bool value);
|
||||||
|
void extract_star_cut(bool value);
|
||||||
|
void extract_imperial(bool value);
|
||||||
|
void extract_imperial_cut(bool value);
|
||||||
|
void extract_royal(bool value);
|
||||||
|
void extract_royal_cut(bool value);
|
||||||
|
void extract_spectacular(bool value);
|
||||||
|
void extract_legendary(bool value);
|
||||||
|
void extract_legendary_cut(bool value);
|
||||||
|
|
||||||
|
void extract_rejuv_potion(bool value);
|
||||||
|
void extract_full_rejuv_potion(bool value);
|
||||||
|
|
||||||
|
void extract_hp1(bool value);
|
||||||
|
void extract_hp2(bool value);
|
||||||
|
void extract_hp3(bool value);
|
||||||
|
void extract_hp4(bool value);
|
||||||
|
void extract_hp5(bool value);
|
||||||
|
|
||||||
|
void extract_mp1(bool value);
|
||||||
|
void extract_mp2(bool value);
|
||||||
|
void extract_mp3(bool value);
|
||||||
|
void extract_mp4(bool value);
|
||||||
|
void extract_mp5(bool value);
|
||||||
|
|
||||||
|
|
||||||
|
void extract_frp(bool value);
|
||||||
|
void extract_mrp(bool value);
|
||||||
|
void extract_prp(bool value);
|
||||||
|
void extract_crp(bool value);
|
||||||
|
void extract_lrp(bool value);
|
||||||
|
void extract_vps(bool value);
|
||||||
|
void extract_yps(bool value);
|
||||||
|
void extract_wms(bool value);
|
||||||
|
|
||||||
|
void close_window(bool value);
|
||||||
|
|
||||||
|
//void extract_flourite(bool value);
|
||||||
|
//void extract_jade(bool value);
|
||||||
|
//void extract_argonite(bool value);
|
||||||
|
//void extract_azurite(bool value);
|
||||||
|
//void extract_sulpher(bool value);
|
||||||
|
//void extract_quartz(bool value);
|
||||||
|
//void extract_tiger_eye(bool value);
|
||||||
|
|
||||||
void update_show_gold(bool value);
|
void update_show_gold(bool value);
|
||||||
void update_show_runes(bool value);
|
void update_show_runes(bool value);
|
||||||
void update_show_gems(bool value);
|
void update_show_gems(bool value);
|
||||||
@@ -61,7 +273,6 @@ namespace d2_tweaks {
|
|||||||
//handle hovering over item and actual click
|
//handle hovering over item and actual click
|
||||||
static void __fastcall handle_dropped_items(diablo2::structures::unit* unit, void* edx);
|
static void __fastcall handle_dropped_items(diablo2::structures::unit* unit, void* edx);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,14 +17,34 @@ namespace d2_tweaks {
|
|||||||
class loot_filter_settings_toggle_menu final : public ui::menu, singleton<loot_filter_settings_toggle_menu> {
|
class loot_filter_settings_toggle_menu final : public ui::menu, singleton<loot_filter_settings_toggle_menu> {
|
||||||
ui::controls::button* m_toggle_filter_settings_btn;
|
ui::controls::button* m_toggle_filter_settings_btn;
|
||||||
ui::controls::button* m_btn_toggle_stats;
|
ui::controls::button* m_btn_toggle_stats;
|
||||||
menu* m_filter_settings_menu;
|
ui::controls::button* m_btn_toggle_help;
|
||||||
bool m_show;
|
ui::controls::button* m_btn_toggle_cube;
|
||||||
|
ui::controls::button* m_btn_toggle_stash;
|
||||||
|
ui::controls::button* m_btn_toggle_bag;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
menu* m_filter_settings_menu;
|
||||||
|
menu* m_menu;
|
||||||
|
bool m_show;
|
||||||
|
bool m_show_bag;
|
||||||
|
|
||||||
|
|
||||||
explicit loot_filter_settings_toggle_menu(token);
|
explicit loot_filter_settings_toggle_menu(token);
|
||||||
|
|
||||||
|
void toggle_show() {
|
||||||
|
m_show = !m_show;
|
||||||
|
set_enabled(m_show);
|
||||||
|
set_visible(m_show);
|
||||||
|
}
|
||||||
|
|
||||||
void toggle_filter_settings_click();
|
void toggle_filter_settings_click();
|
||||||
void toggle_stats_settings_click();
|
void toggle_stats_settings_click();
|
||||||
|
void toggle_help_click();
|
||||||
|
void toggle_cube_click();
|
||||||
|
void toggle_stash_click();
|
||||||
|
void toggle_bag_click();
|
||||||
void draw() override;
|
void draw() override;
|
||||||
|
|
||||||
bool key_event(uint32_t key, bool up) override;
|
bool key_event(uint32_t key, bool up) override;
|
||||||
|
@@ -201,6 +201,7 @@ namespace d2_tweaks {
|
|||||||
MESSAGE_TYPE_ITEM_DROPPED_INFO,
|
MESSAGE_TYPE_ITEM_DROPPED_INFO,
|
||||||
MESSAGE_TYPE_TRANSMUTE,
|
MESSAGE_TYPE_TRANSMUTE,
|
||||||
MESSAGE_TYPE_TRADER_UPDATE,
|
MESSAGE_TYPE_TRADER_UPDATE,
|
||||||
|
MESSAGE_TYPE_INTERACT = 1,
|
||||||
|
|
||||||
MESSAGE_TYPE_COUNT
|
MESSAGE_TYPE_COUNT
|
||||||
};
|
};
|
||||||
@@ -235,11 +236,19 @@ namespace d2_tweaks {
|
|||||||
|
|
||||||
struct item_move_cs : packet_header {
|
struct item_move_cs : packet_header {
|
||||||
uint32_t item_guid;
|
uint32_t item_guid;
|
||||||
|
const char* item_code;
|
||||||
uint8_t target_page;
|
uint8_t target_page;
|
||||||
uint32_t bag_guid = 0;
|
uint32_t bag_guid = 0;
|
||||||
bool updateBag;
|
bool updateBag;
|
||||||
|
bool removeFromBag;
|
||||||
|
bool summon;
|
||||||
int prop;
|
int prop;
|
||||||
int val;
|
int val;
|
||||||
|
int tmog;
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
bool extract;
|
||||||
|
uint32_t iCode;
|
||||||
|
|
||||||
item_move_cs() : item_guid(0), target_page(0) {
|
item_move_cs() : item_guid(0), target_page(0) {
|
||||||
message_type = MESSAGE_TYPE_ITEM_MOVE;
|
message_type = MESSAGE_TYPE_ITEM_MOVE;
|
||||||
@@ -270,7 +279,6 @@ namespace d2_tweaks {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct inventory_sort_sc : packet_header {
|
struct inventory_sort_sc : packet_header {
|
||||||
uint8_t page;
|
uint8_t page;
|
||||||
uint8_t tx;
|
uint8_t tx;
|
||||||
@@ -296,11 +304,19 @@ namespace d2_tweaks {
|
|||||||
damage_type_t damage_type;
|
damage_type_t damage_type;
|
||||||
uint32_t damage;
|
uint32_t damage;
|
||||||
|
|
||||||
|
|
||||||
uint32_t currentHp; // New field for current hit points
|
uint32_t currentHp; // New field for current hit points
|
||||||
uint32_t maxHp; // New field for maximum hit points
|
uint32_t maxHp; // New field for maximum hit points
|
||||||
|
|
||||||
damage_info_sc() : unit_type(0), guid(0), damage_type(DAMAGE_TYPE_UNKNOWN), damage(0), currentHp(0), maxHp(0) {
|
// You can add these details to the packet if needed
|
||||||
|
// packet.isChampion = isChampion;
|
||||||
|
// packet.isUnique = isUnique;
|
||||||
|
// packet.isSuperUnique = isSuperUnique
|
||||||
|
|
||||||
|
bool isChampion;
|
||||||
|
bool isUnique;
|
||||||
|
bool isSuperUnique;
|
||||||
|
|
||||||
|
damage_info_sc() : unit_type(0), guid(0), damage_type(DAMAGE_TYPE_UNKNOWN), damage(0), currentHp(0), maxHp(0), isChampion(0), isUnique(0), isSuperUnique(0) {
|
||||||
message_type = MESSAGE_TYPE_DAMAGE_INFO;
|
message_type = MESSAGE_TYPE_DAMAGE_INFO;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -24,11 +24,11 @@ namespace d2_tweaks {
|
|||||||
void init() override;
|
void init() override;
|
||||||
|
|
||||||
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
||||||
common::packet_header* packet) override;
|
common::packet_header* packet) override;
|
||||||
private:
|
private:
|
||||||
bool sort(diablo2::structures::game* game, diablo2::structures::unit* player, uint8_t page);
|
bool sort(diablo2::structures::game* game, diablo2::structures::unit* player, uint8_t page);
|
||||||
bool find_free_space(diablo2::structures::inventory* inv,
|
bool find_free_space(diablo2::structures::inventory* inv,
|
||||||
diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y, bool isCharmZone);
|
diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y, bool isCharmZone);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ namespace d2_tweaks {
|
|||||||
void init() override;
|
void init() override;
|
||||||
|
|
||||||
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
||||||
common::packet_header* packet) override;
|
common::packet_header* packet) override;
|
||||||
void tick(diablo2::structures::game* game, diablo2::structures::unit* unit) override;
|
void tick(diablo2::structures::game* game, diablo2::structures::unit* unit) override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -24,10 +24,10 @@ namespace d2_tweaks {
|
|||||||
void init() override;
|
void init() override;
|
||||||
|
|
||||||
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
||||||
common::packet_header* packet) override;
|
common::packet_header* packet) override;
|
||||||
private:
|
private:
|
||||||
bool find_free_space(diablo2::structures::inventory* inv,
|
bool find_free_space(diablo2::structures::inventory* inv,
|
||||||
diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y);
|
diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,10 +22,10 @@ namespace d2_tweaks {
|
|||||||
void tick(diablo2::structures::game* game, diablo2::structures::unit* unit) override;
|
void tick(diablo2::structures::game* game, diablo2::structures::unit* unit) override;
|
||||||
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player, common::packet_header* packet) override;
|
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player, common::packet_header* packet) override;
|
||||||
|
|
||||||
//private:
|
//private:
|
||||||
// bool find_free_space(diablo2::structures::inventory* inv, diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y);
|
// bool find_free_space(diablo2::structures::inventory* inv, diablo2::structures::unit* item, int32_t inventoryIndex, char page, uint32_t& x, uint32_t& y);
|
||||||
// bool send_to_cube(diablo2::structures::game* game, diablo2::structures::unit* player, diablo2::structures::unit* item);
|
// bool send_to_cube(diablo2::structures::game* game, diablo2::structures::unit* player, diablo2::structures::unit* item);
|
||||||
// bool move_item_to(diablo2::structures::game* game, diablo2::structures::unit* player, common::packet_header* packet);
|
// bool move_item_to(diablo2::structures::game* game, diablo2::structures::unit* player, common::packet_header* packet);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -47,7 +47,7 @@ namespace d2_tweaks {
|
|||||||
|
|
||||||
diablo2::structures::unit* get_server_unit(diablo2::structures::game* game, uint32_t guid, diablo2::structures::unit_type_t type);
|
diablo2::structures::unit* get_server_unit(diablo2::structures::game* game, uint32_t guid, diablo2::structures::unit_type_t type);
|
||||||
void iterate_server_units(diablo2::structures::game* game, diablo2::structures::unit_type_t type,
|
void iterate_server_units(diablo2::structures::game* game, diablo2::structures::unit_type_t type,
|
||||||
const std::function<bool(diablo2::structures::unit*)>& cb);
|
const std::function<bool(diablo2::structures::unit*)>& cb);
|
||||||
private:
|
private:
|
||||||
static int32_t __fastcall net_tick(diablo2::structures::game* game, diablo2::structures::unit* unit, int32_t a3, int32_t a4);
|
static int32_t __fastcall net_tick(diablo2::structures::game* game, diablo2::structures::unit* unit, int32_t a3, int32_t a4);
|
||||||
};
|
};
|
||||||
|
@@ -40,7 +40,7 @@ namespace d2_tweaks {
|
|||||||
std::vector<respos> m_respos;
|
std::vector<respos> m_respos;
|
||||||
public:
|
public:
|
||||||
button(menu* menu, const rect& rect, const std::function<void()>& onClick,
|
button(menu* menu, const rect& rect, const std::function<void()>& onClick,
|
||||||
common::asset* image, int32_t frameDown, int32_t frameUp, int32_t clickSound = -1);
|
common::asset* image, int32_t frameDown, int32_t frameUp, int32_t clickSound = -1);
|
||||||
explicit button(menu* menu, const pugi::xml_node& node);
|
explicit button(menu* menu, const pugi::xml_node& node);
|
||||||
virtual ~button();
|
virtual ~button();
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ namespace d2_tweaks {
|
|||||||
std::function<void(bool)> m_on_click;
|
std::function<void(bool)> m_on_click;
|
||||||
public:
|
public:
|
||||||
explicit checkbox(menu* menu, const std::wstring& text, const rect& rect, const std::function<void()>& onClick,
|
explicit checkbox(menu* menu, const std::wstring& text, const rect& rect, const std::function<void()>& onClick,
|
||||||
common::asset* image, int32_t frameChecked, int32_t frameUnchecked, int32_t clickSound = -1);
|
common::asset* image, int32_t frameChecked, int32_t frameUnchecked, int32_t clickSound = -1);
|
||||||
explicit checkbox(menu* menu, const pugi::xml_node& node);
|
explicit checkbox(menu* menu, const pugi::xml_node& node);
|
||||||
|
|
||||||
void set_x(int32_t value) override;
|
void set_x(int32_t value) override;
|
||||||
|
@@ -112,6 +112,8 @@ namespace d2_tweaks {
|
|||||||
|
|
||||||
virtual void left_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
|
virtual void left_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
|
||||||
virtual void right_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
|
virtual void right_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
|
||||||
|
virtual void middle_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) {}
|
||||||
|
virtual void mouse_wheel(int32_t offsetX, int32_t offsetY, bool up, bool& block) {}
|
||||||
|
|
||||||
virtual void key_event(int32_t offsetX, int32_t offsetY, uint32_t key, bool up, bool& block) = 0;
|
virtual void key_event(int32_t offsetX, int32_t offsetY, uint32_t key, bool up, bool& block) = 0;
|
||||||
};
|
};
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
namespace d2_tweaks {
|
namespace d2_tweaks {
|
||||||
namespace ui {
|
namespace ui {
|
||||||
namespace controls {
|
namespace controls {
|
||||||
|
|
||||||
class label : public control {
|
class label : public control {
|
||||||
std::wstring m_text;
|
std::wstring m_text;
|
||||||
bool m_text_owned;
|
bool m_text_owned;
|
||||||
@@ -19,8 +18,8 @@ namespace d2_tweaks {
|
|||||||
std::vector<respos> m_respos;
|
std::vector<respos> m_respos;
|
||||||
public:
|
public:
|
||||||
explicit label(menu* menu, const std::wstring& text, int32_t x = 0, int32_t y = 0,
|
explicit label(menu* menu, const std::wstring& text, int32_t x = 0, int32_t y = 0,
|
||||||
diablo2::ui_color_t color = diablo2::UI_COLOR_WHITE,
|
diablo2::ui_color_t color = diablo2::UI_COLOR_WHITE,
|
||||||
diablo2::ui_font_t font = diablo2::UI_FONT_16);
|
diablo2::ui_font_t font = diablo2::UI_FONT_16);
|
||||||
explicit label(menu* menu, const pugi::xml_node& node);
|
explicit label(menu* menu, const pugi::xml_node& node);
|
||||||
|
|
||||||
void set_text(const std::wstring& text) {
|
void set_text(const std::wstring& text) {
|
||||||
@@ -31,7 +30,6 @@ namespace d2_tweaks {
|
|||||||
return m_text;
|
return m_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
diablo2::ui_color_t get_color() const {
|
diablo2::ui_color_t get_color() const {
|
||||||
return m_color;
|
return m_color;
|
||||||
}
|
}
|
||||||
|
@@ -81,6 +81,8 @@ namespace d2_tweaks {
|
|||||||
|
|
||||||
virtual bool left_mouse(bool up);
|
virtual bool left_mouse(bool up);
|
||||||
virtual bool right_mouse(bool up);
|
virtual bool right_mouse(bool up);
|
||||||
|
virtual bool middle_mouse(bool up);
|
||||||
|
virtual bool mouse_wheel(bool up);
|
||||||
|
|
||||||
virtual bool key_event(uint32_t key, bool up);
|
virtual bool key_event(uint32_t key, bool up);
|
||||||
};
|
};
|
||||||
|
@@ -32,6 +32,8 @@ namespace d2_tweaks {
|
|||||||
|
|
||||||
bool process_left_mouse(bool up);
|
bool process_left_mouse(bool up);
|
||||||
bool process_right_mouse(bool up);
|
bool process_right_mouse(bool up);
|
||||||
|
bool process_middle_mouse(bool up);
|
||||||
|
bool process_mouse_wheel(bool up);
|
||||||
|
|
||||||
bool process_key_event(uint32_t key, bool up);
|
bool process_key_event(uint32_t key, bool up);
|
||||||
};
|
};
|
||||||
|
@@ -59,7 +59,6 @@ namespace diablo2 {
|
|||||||
static bool get_ui_window_state(ui_window_t window);
|
static bool get_ui_window_state(ui_window_t window);
|
||||||
static void* get_buysellbtn();
|
static void* get_buysellbtn();
|
||||||
|
|
||||||
|
|
||||||
static void play_sound(uint32_t soundId, structures::unit* u, uint32_t ticks, BOOL prePick, uint32_t cache);
|
static void play_sound(uint32_t soundId, structures::unit* u, uint32_t ticks, BOOL prePick, uint32_t cache);
|
||||||
|
|
||||||
static structures::unit* get_unit_by_guid(int32_t type, int32_t guid);
|
static structures::unit* get_unit_by_guid(int32_t type, int32_t guid);
|
||||||
@@ -68,13 +67,13 @@ namespace diablo2 {
|
|||||||
static void print_chat(wchar_t* string, uint32_t color);
|
static void print_chat(wchar_t* string, uint32_t color);
|
||||||
|
|
||||||
static bool cache_gfx_data(structures::gfxdata* gfxData,
|
static bool cache_gfx_data(structures::gfxdata* gfxData,
|
||||||
structures::unit* unit,
|
structures::unit* unit,
|
||||||
structures::cellfile* cellfFile,
|
structures::cellfile* cellfFile,
|
||||||
int32_t direction,
|
int32_t direction,
|
||||||
int32_t frame,
|
int32_t frame,
|
||||||
int32_t* outIndex,
|
int32_t* outIndex,
|
||||||
int8_t flags,
|
int8_t flags,
|
||||||
int32_t colorTint);
|
int32_t colorTint);
|
||||||
|
|
||||||
static structures::cellfile* load_gfx_resource(char* path);
|
static structures::cellfile* load_gfx_resource(char* path);
|
||||||
static int32_t unload_gfx_resource(structures::cellfile* handle);
|
static int32_t unload_gfx_resource(structures::cellfile* handle);
|
||||||
@@ -86,5 +85,9 @@ namespace diablo2 {
|
|||||||
static bool is_gamble_open();
|
static bool is_gamble_open();
|
||||||
static uint8_t current_interact_menu();
|
static uint8_t current_interact_menu();
|
||||||
static void resync_vendor_inventory(structures::unit* ptNPC);
|
static void resync_vendor_inventory(structures::unit* ptNPC);
|
||||||
|
|
||||||
|
static int32_t send_to_server_9(BYTE type, DWORD num, DWORD unk1);
|
||||||
|
|
||||||
|
static void set_ui_toggle(int nToggle, int nUIState, BOOL bToggle);
|
||||||
};
|
};
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <diablo2/structures/unit.h>
|
#include <diablo2/structures/unit.h>
|
||||||
|
#include "d2common.h"
|
||||||
|
|
||||||
namespace diablo2 {
|
namespace diablo2 {
|
||||||
namespace structures {
|
namespace structures {
|
||||||
@@ -10,6 +11,205 @@ namespace diablo2 {
|
|||||||
struct net_client;
|
struct net_client;
|
||||||
struct game;
|
struct game;
|
||||||
struct unit;
|
struct unit;
|
||||||
|
|
||||||
|
struct D2MonPropTxt
|
||||||
|
{
|
||||||
|
uint32_t dwId; //0x00
|
||||||
|
diablo2::structures::D2PropertyStrc props[3][6]; //0x04
|
||||||
|
uint8_t nChance[3][6]; //0x124
|
||||||
|
uint16_t pad0x136; //0x136
|
||||||
|
};
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
|
|
||||||
|
|
||||||
|
enum D2C_AiSpecialState : uint32_t
|
||||||
|
{
|
||||||
|
AISPECIALSTATE_NONE = 0,
|
||||||
|
AISPECIALSTATE_NO_MON_STATS = 1, // Set when classid > nMonStatsRecord
|
||||||
|
AISPECIALSTATE_2 = 2, // Unused
|
||||||
|
AISPECIALSTATE_3 = 3, // Unused
|
||||||
|
AISPECIALSTATE_4 = 4, // Unused
|
||||||
|
AISPECIALSTATE_ROGUE_HIREABLE_NON_PLAYER_OWNER = 5,
|
||||||
|
AISPECIALSTATE_HIREABLE_NON_PLAYER_OWNER = 6,
|
||||||
|
AISPECIALSTATE_REVIVED = 7, // as necromancer pet
|
||||||
|
AISPECIALSTATE_8 = 8, // Unused
|
||||||
|
AISPECIALSTATE_9 = 9, // Unused
|
||||||
|
// Curses
|
||||||
|
AISPECIALSTATE_DIMVISION = 10,
|
||||||
|
AISPECIALSTATE_TERROR = 11,
|
||||||
|
AISPECIALSTATE_TAUNT = 12,
|
||||||
|
|
||||||
|
AISPECIALSTATE_COUNTESS = 13,
|
||||||
|
AISPECIALSTATE_14 = 14, // Unused
|
||||||
|
AISPECIALSTATE_WHIPPED = 15, // When whipped by overseer, for suicide minions
|
||||||
|
AISPECIALSTATE_MOUNTING_UNIT = 16, // When a unit is mounting another (tower / siege beast)
|
||||||
|
AISPECIALSTATE_17 = 17, // Unused
|
||||||
|
|
||||||
|
AISPECIALSTATE_TABLE_COUNT = 18,
|
||||||
|
AISPECIALSTATE_INVALID = 19, // Could be for objects ?
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct D2SkillsTxt
|
||||||
|
{
|
||||||
|
int16_t nSkillId; //0x00
|
||||||
|
uint16_t unk0x02; //0x02
|
||||||
|
uint32_t dwFlags[2]; //0x04 D2C_SkillsTxtFlags
|
||||||
|
int8_t nCharClass; //0x0C
|
||||||
|
uint8_t unk0x0D[3]; //0x0D
|
||||||
|
uint8_t nAnim; //0x10
|
||||||
|
uint8_t nMonAnim; //0x11
|
||||||
|
uint8_t nSeqTrans; //0x12
|
||||||
|
uint8_t nSeqNum; //0x13
|
||||||
|
uint8_t nRange; //0x14
|
||||||
|
uint8_t nSelectProc; //0x15
|
||||||
|
uint8_t nSeqInput; //0x16
|
||||||
|
uint8_t pad0x17; //0x17
|
||||||
|
int16_t nITypeA[3]; //0x18
|
||||||
|
int16_t nITypeB[3]; //0x1E
|
||||||
|
int16_t nETypeA[2]; //0x24
|
||||||
|
int16_t nETypeB[2]; //0x28
|
||||||
|
int16_t wSrvStartFunc; //0x2C
|
||||||
|
uint16_t wSrvDoFunc; //0x2E
|
||||||
|
uint16_t wSrvPrgFunc[3]; //0x30
|
||||||
|
uint16_t pad0x36; //0x36
|
||||||
|
uint32_t dwPrgCalc[3]; //0x38
|
||||||
|
uint8_t nPrgDamage; //0x44
|
||||||
|
uint8_t pad0x45; //0x45
|
||||||
|
int16_t wSrvMissile; //0x46
|
||||||
|
int16_t wSrvMissileA; //0x48
|
||||||
|
int16_t wSrvMissileB; //0x4A
|
||||||
|
int16_t wSrvMissileC; //0x4C
|
||||||
|
int16_t wSrvOverlay; //0x4E
|
||||||
|
uint32_t dwAuraFilter; //0x50
|
||||||
|
int16_t wAuraStat[6]; //0x54
|
||||||
|
uint32_t dwAuraLenCalc; //0x60
|
||||||
|
uint32_t dwAuraRangeCalc; //0x64
|
||||||
|
int32_t dwAuraStatCalc[6]; //0x68
|
||||||
|
int16_t nAuraState; //0x80
|
||||||
|
int16_t wAuraTargetState; //0x82
|
||||||
|
int16_t wAuraEvent[3]; //0x84
|
||||||
|
int16_t wAuraEventFunc[3]; //0x8A
|
||||||
|
uint16_t wAuraTgtEvent; //0x90
|
||||||
|
uint16_t wAuraTgtEventFunc; //0x92
|
||||||
|
int16_t nPassiveState; //0x94
|
||||||
|
int16_t nPassiveIType; //0x96
|
||||||
|
int16_t nPassiveStat[5]; //0x98
|
||||||
|
uint16_t pad0xA2; //0xA2
|
||||||
|
uint32_t dwPassiveCalc[5]; //0xA4
|
||||||
|
uint16_t wPassiveEvent; //0xB8
|
||||||
|
uint16_t wPassiveEventFunc; //0xBA
|
||||||
|
uint16_t wSummon; //0xBC
|
||||||
|
int8_t nPetType; //0xBE
|
||||||
|
int8_t nSumMode; //0xBF
|
||||||
|
uint32_t dwPetMax; //0xC0
|
||||||
|
uint16_t wSumSkill[5]; //0xC4
|
||||||
|
uint16_t pad0xCE; //0xCE
|
||||||
|
uint32_t dwSumSkCalc[5]; //0xD0
|
||||||
|
int16_t wSumUMod; //0xE4
|
||||||
|
int16_t wSumOverlay; //0xE6
|
||||||
|
uint16_t wCltMissile; //0xE8
|
||||||
|
uint16_t wCltMissileA; //0xEA
|
||||||
|
uint16_t wCltMissileB; //0xEC
|
||||||
|
uint16_t wCltMissileC; //0xEE
|
||||||
|
uint16_t wCltMissileD; //0xF0
|
||||||
|
uint16_t wCltStFunc; //0xF2
|
||||||
|
uint16_t wCltDoFunc; //0xF4
|
||||||
|
uint16_t wCltPrgFunc[3]; //0xF6
|
||||||
|
uint16_t wStSound; //0xFC
|
||||||
|
uint16_t nStSoundClass; //0x0FE
|
||||||
|
uint16_t wDoSound; //0x100
|
||||||
|
uint16_t wDoSoundA; //0x102
|
||||||
|
uint16_t wDoSoundB; //0x104
|
||||||
|
uint16_t wCastOverlay; //0x106
|
||||||
|
uint16_t wTgtOverlay; //0x108
|
||||||
|
uint16_t wTgtSound; //0x10A
|
||||||
|
uint16_t wPrgOverlay; //0x10C
|
||||||
|
uint16_t wPrgSound; //0x10E
|
||||||
|
uint16_t wCltOverlayA; //0x110
|
||||||
|
uint16_t wCltOverlayB; //0x112
|
||||||
|
int32_t dwCltCalc[3]; //0x114
|
||||||
|
uint8_t nItemTarget; //0x120 D2C_SkillsTxtItemTarget
|
||||||
|
uint8_t pad0x121; //0x121
|
||||||
|
uint16_t wItemCastSound; //0x122
|
||||||
|
uint16_t wItemCastOverlay; //0x124
|
||||||
|
uint16_t pad0x126; //0x126
|
||||||
|
uint32_t dwPerDelay; //0x128
|
||||||
|
uint16_t wMaxLvl; //0x12C
|
||||||
|
uint16_t wResultFlags; //0x12E
|
||||||
|
uint32_t dwHitFlags; //0x130
|
||||||
|
uint32_t dwHitClass; //0x134
|
||||||
|
uint32_t dwCalc[4]; //0x138
|
||||||
|
int32_t dwParam[8]; //0x148
|
||||||
|
uint8_t nWeapSel; //0x168
|
||||||
|
uint8_t pad0x169; //0x169
|
||||||
|
uint16_t wItemEffect; //0x16A
|
||||||
|
uint16_t wItemCltEffect; //0x16C
|
||||||
|
uint16_t pad0x16E; //0x16E
|
||||||
|
uint32_t dwSkPoints; //0x170
|
||||||
|
uint16_t wReqLevel; //0x174
|
||||||
|
uint16_t wReqStr; //0x176
|
||||||
|
uint16_t wReqDex; //0x178
|
||||||
|
uint16_t wReqInt; //0x17A
|
||||||
|
uint16_t wReqVit; //0x17C
|
||||||
|
int16_t nReqSkill[3]; //0x17E
|
||||||
|
int16_t wStartMana; //0x184
|
||||||
|
uint16_t wMinMana; //0x186
|
||||||
|
uint8_t nManaShift; //0x188
|
||||||
|
uint8_t pad0x189; //0x189
|
||||||
|
int16_t wMana; //0x18A
|
||||||
|
int16_t wLevelMana; //0x18C
|
||||||
|
uint8_t nAttackRank; //0x18E
|
||||||
|
uint8_t nLineOfSight; //0x18F D2C_SkillsTxtLineOfSight
|
||||||
|
uint32_t dwDelay; //0x190
|
||||||
|
uint16_t wSkillDesc; //0x194
|
||||||
|
uint16_t pad0x196; //0x196
|
||||||
|
uint32_t dwToHit; //0x198
|
||||||
|
uint32_t dwLevToHit; //0x19C
|
||||||
|
uint32_t dwToHitCalc; //0x1A0
|
||||||
|
uint8_t nToHitShift; //0x1A4
|
||||||
|
uint8_t nSrcDam; //0x1A5
|
||||||
|
uint16_t pad0x1A6; //0x1A6
|
||||||
|
uint32_t dwMinDam; //0x1A8
|
||||||
|
uint32_t dwMaxDam; //0x1AC
|
||||||
|
uint32_t dwMinLvlDam[5]; //0x1B0
|
||||||
|
uint32_t dwMaxLvlDam[5]; //0x1C4
|
||||||
|
uint32_t dwDmgSymPerCalc; //0x1D8
|
||||||
|
uint8_t nEType; //0x1DC
|
||||||
|
uint8_t pad0x1DD[3]; //0x1DD
|
||||||
|
uint32_t dwEMin; //0x1E0
|
||||||
|
uint32_t dwEMax; //0x1E4
|
||||||
|
uint32_t dwEMinLev[5]; //0x1E8
|
||||||
|
uint32_t dwEMaxLev[5]; //0x1FC
|
||||||
|
uint32_t dwEDmgSymPerCalc; //0x210
|
||||||
|
uint32_t dwELen; //0x214
|
||||||
|
uint32_t dwELevLen[3]; //0x218
|
||||||
|
uint32_t dwELenSymPerCalc; //0x224
|
||||||
|
uint8_t nRestrict; //0x228
|
||||||
|
uint8_t pad0x229; //0x229
|
||||||
|
int16_t nState[3]; //0x22A
|
||||||
|
uint8_t nAiType; //0x230
|
||||||
|
uint8_t pad0x231; //0x231
|
||||||
|
int16_t wAiBonus; //0x232
|
||||||
|
int32_t nCostMult; //0x234
|
||||||
|
int32_t nCostAdd; //0x238
|
||||||
|
};
|
||||||
|
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
|
struct D2SummonArgStrc
|
||||||
|
{
|
||||||
|
uint32_t dwFlags; //0x00
|
||||||
|
diablo2::structures::unit* pOwner; //0x04
|
||||||
|
int32_t nHcIdx; //0x08
|
||||||
|
D2C_AiSpecialState nAiSpecialState; //0x0C
|
||||||
|
int32_t nMonMode; //0x10
|
||||||
|
D2CoordStrc pPosition; //0x14
|
||||||
|
int32_t nPetType; //0x1C
|
||||||
|
int32_t nPetMax; //0x20
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class d2_game {
|
class d2_game {
|
||||||
@@ -43,9 +243,61 @@ namespace diablo2 {
|
|||||||
static bool __fastcall pickup_item(structures::game* game, structures::unit* player, uint32_t guid, uint32_t* ptrItemCarried);
|
static bool __fastcall pickup_item(structures::game* game, structures::unit* player, uint32_t guid, uint32_t* ptrItemCarried);
|
||||||
static structures::unit* get_unit_owner(structures::game* game, structures::unit* unit);
|
static structures::unit* get_unit_owner(structures::game* game, structures::unit* unit);
|
||||||
static void* iterate_unit_pets(structures::game* game, structures::unit* unit,
|
static void* iterate_unit_pets(structures::game* game, structures::unit* unit,
|
||||||
const std::function<void(structures::game*, structures::unit*, structures::unit*)>& cb);
|
const std::function<void(structures::game*, structures::unit*, structures::unit*)>& cb);
|
||||||
|
|
||||||
static void update_inventory_items(structures::game* game, structures::unit* player);
|
static void update_inventory_items(structures::game* game, structures::unit* player);
|
||||||
static uint32_t __fastcall diablo2::d2_game::transmogrify(diablo2::structures::game* game, diablo2::structures::unit* player);
|
static uint32_t __fastcall diablo2::d2_game::transmogrify(diablo2::structures::game* game, diablo2::structures::unit* player);
|
||||||
|
|
||||||
|
//D2Game.0x6FC4ED80
|
||||||
|
static structures::unit* __fastcall D2GAME_CreateItemEx_6FC4ED80(structures::game* pGame, structures::D2ItemDropStrc* pItemDrop, int32_t a3);
|
||||||
|
|
||||||
|
//D2Game.0x6FC4A660
|
||||||
|
static int32_t __fastcall diablo2::d2_game::D2GAME_Transmogrify_6FC4A660(structures::game* pGame, structures::unit* pPlayer, structures::unit* pItem);
|
||||||
|
|
||||||
|
static diablo2::structures::unit* __fastcall diablo2::d2_game::QUESTS_CreateItem(diablo2::structures::game* pGame, diablo2::structures::unit* pPlayer, uint32_t dwCode, int32_t nLevel, uint8_t nQuality, int32_t bDroppable);
|
||||||
|
|
||||||
|
// Add wrapper for D2Game.0x6FC603D0
|
||||||
|
// D2MonPropTxt* __fastcall MONSTER_GetMonPropTxtRecord(int32_t nId)
|
||||||
|
static diablo2::structures::D2MonPropTxt* __fastcall diablo2::d2_game::MONSTER_GetMonPropTxtRecord(int32_t nId);
|
||||||
|
|
||||||
|
|
||||||
|
// add wrapper for //D2Game.0x6FCBC900
|
||||||
|
// D2UnitStrc* __stdcall SUNIT_GetTargetUnit(D2GameStrc* pGame, D2UnitStrc* pUnit)
|
||||||
|
static diablo2::structures::unit* __stdcall diablo2::d2_game::SUNIT_GetTargetUnit(structures::game* pGame, structures::unit* pUnit);
|
||||||
|
|
||||||
|
//D2Game.0x6FCF5B90
|
||||||
|
//D2SkillsTxt* __fastcall SKILLS_GetSkillsTxtRecord(int32_t nSkillId)
|
||||||
|
static diablo2::structures::D2SkillsTxt* __fastcall diablo2::d2_game::SKILLS_GetSkillsTxtRecord(int32_t nSkillId);
|
||||||
|
|
||||||
|
//D2Game.0x6FD15580
|
||||||
|
//int32_t __fastcall D2GAME_GetSummonIdFromSkill_6FD15580(D2UnitStrc* pUnit, int32_t bFromMonster, int32_t nSkillId, int32_t nSkillLevel, int32_t* pSpawnMode, int32_t* pX, int32_t* pY)
|
||||||
|
static int32_t __fastcall diablo2::d2_game::D2GAME_GetSummonIdFromSkill_6FD15580(structures::unit* pUnit, int32_t bFromMonster, int32_t nSkillId, int32_t nSkillLevel, int32_t* pSpawnMode, int32_t* pX, int32_t* pY);
|
||||||
|
|
||||||
|
//D2Game.0x6FD14430
|
||||||
|
//D2UnitStrc* __fastcall D2GAME_SummonPet_6FD14430(D2GameStrc* pGame, D2SummonArgStrc* pSummonArg)
|
||||||
|
static diablo2::structures::unit* __fastcall diablo2::d2_game::D2GAME_SummonPet_6FD14430(structures::game* pGame, structures::D2SummonArgStrc* pSummonArg);
|
||||||
|
|
||||||
|
//D2Game.0x6FD0CB10
|
||||||
|
//int32_t __fastcall D2GAME_SKILLS_SetSummonBaseStats_6FD0CB10(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pPet, int32_t nPetLevelArg, int32_t nSkillLevel)
|
||||||
|
static int32_t __fastcall diablo2::d2_game::D2GAME_SKILLS_SetSummonBaseStats_6FD0CB10(structures::game* pGame, structures::unit* pUnit, structures::unit* pPet, int32_t nPetLevelArg, int32_t nSkillLevel);
|
||||||
|
|
||||||
|
//D2Game.0x6FD0C530
|
||||||
|
//int32_t __fastcall D2GAME_SetSummonPassiveStats_6FD0C530(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pPet, int32_t nSkillId, int32_t nSkillLevel, int32_t nItemLevel)
|
||||||
|
static int32_t __fastcall diablo2::d2_game::D2GAME_SetSummonPassiveStats_6FD0C530(structures::game* pGame, structures::unit* pUnit, structures::unit* pPet, int32_t nSkillId, int32_t nSkillLevel, int32_t nItemLevel);
|
||||||
|
|
||||||
|
//D2Game.0x6FD0C2E0
|
||||||
|
//void __fastcall D2GAME_SetSummonResistance_6FD0C2E0(D2UnitStrc* pUnit, D2UnitStrc* pPet)
|
||||||
|
static void __fastcall diablo2::d2_game::D2GAME_SetSummonResistance_6FD0C2E0(structures::unit* pUnit, structures::unit* pPet);
|
||||||
|
|
||||||
|
//D2Game.0x6FC3E200
|
||||||
|
//void __fastcall sub_6FC3E200(D2ClientStrc* pClient, D2UnitStrc* pUnit)
|
||||||
|
static void __fastcall diablo2::d2_game::sub_6FC3E200(structures::net_client* pClient, structures::unit* pUnit);
|
||||||
|
|
||||||
|
|
||||||
|
//D2Game.0x6FC69F10
|
||||||
|
//D2UnitStrc* __fastcall D2GAME_SpawnMonster_6FC69F10(D2GameStrc* pGame, D2ActiveRoomStrc* pRoom, int32_t nX, int32_t nY, int32_t nMonsterId, int32_t nAnimMode, int32_t a7, int16_t nFlags)
|
||||||
|
static diablo2::structures::unit* __fastcall diablo2::d2_game::D2GAME_SpawnMonster_6FC69F10(structures::game* pGame, structures::room* pRoom, int32_t nX, int32_t nY, int32_t nMonsterId, int32_t nAnimMode, int32_t a7, int16_t nFlags);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user