project-diablo-2 / bh Goto Github PK
View Code? Open in Web Editor NEWA modified version of slashdiablo's BH for Project Diablo 2
License: GNU Affero General Public License v3.0
A modified version of slashdiablo's BH for Project Diablo 2
License: GNU Affero General Public License v3.0
I play pd2 and translate the string.tbl to chinese,but the item's name become to ???????.
other translate is ok.
and I test find out it is issues in BH.dll.
so can you fix it?
the bug line is:
BH/BH/Modules/Item/ItemDisplay.cpp
Line 1327 in 515ae38
in the loot.filter:
if write "%AMED%ED" ,the source code "ItemDisplay.cpp#L1327" will dead loop.because %AMED% will replace to "AM" and "AM" + "ED" = "AMED" too,and will loop again to replace AMED to AMED
Hi All
In your code, is there a way to display the tab that the item is currently in?
Is there a way to see what tab is active or what tab the item is in?
Hello :)
I just wanted to ask, are these Pointers correct for PD2 1.13c?
FUNCPTR(D2CLIENT, LeftClickItem, void __stdcall, (UnitAny* pPlayer, Inventory* pInventory, int x, int y, DWORD dwClickType, InventoryLayout* pLayout, DWORD Location), 0x96AA0, 0x9AFF0) // 1.12
VARPTR(D2CLIENT, InventoryLayout, InventoryLayout*, 0x10B3E0, 0x1016F0)
I'm trying to use D2CLIENT_LeftClickItem to click on an item in my Inventory, but keep getting an error INT_DIVIDEBY_ZERO crash.
When I printed the values, it looks like SlotPixelHeight is returning zero? Here are the values returned from printing:
SlotPixelWidth = 46
SlotPixelHeight = 0
Not sure what I'm doing wrong, would appreciate any help.
This how I am using the command: (coordX and coordY are both zero to try and click the very first item in the top left of inventory)
////////////////////////////////////////////////////////////
UnitAny* pUnit = D2CLIENT_GetPlayerUnit();
InventoryLayout* pLayout = (InventoryLayout*)p_D2CLIENT_InventoryLayout;
Inventory* pPlayerInventory = pUnit->pInventory;
int x = pLayout->Left + coordX * pLayout->SlotPixelWidth + 10;
int y = pLayout->Top + coordY * pLayout->SlotPixelHeight + 10;
*p_D2CLIENT_CursorHoverX = x;
*p_D2CLIENT_CursorHoverY = y;
PrintText(0, "Inventory X: %i", x);
PrintText(0, "Inventory Y: %i", y);
D2CLIENT_LeftClickItem(pUnit, pPlayerInventory, x, y, nClickType, pLayout, 0);
/////////////////////////////////////////////////////////////
I just want to be able to LeftClickItem in my Inventory.
Would really appreciate any help :)
Thanks heaps
Your Filter update is exactly what I've wanted PD2 to release.
I want to use it, but is it safe?
Hello. I saw that translation lines were added to tbl PD2. I translated PD2 into Russian. Would you like to add multilingual support to BH.dll? It was made by Aglophotis in her fork (https://github.com/Aglophotis/BH ). The only noticed problem with this fork is that Windows 7 does not support multi-languages.
I can see there is nCorruptZone in PlayerData Struct.
How can we check if we are in a Corrupted zone, or is there a way to return which map is corrupted?
I want something like this:
if (nCorruptZone == 1) {
// Corrupted
} else {
// Not corrupted
}
or
getCorruptedMapID() {
// Somehow retrieve which areaID is corrupted
return mapID;
}
Is this possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.