Giter Club home page Giter Club logo

bh's People

Contributors

betweenwalls avatar canite avatar elmegaard avatar exiledagain avatar fergushev avatar genjisrevenge avatar jascen avatar muitdebos avatar theirateseagoer avatar xkanzeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bh's Issues

SlotPixelHeight Issue: INT_DIVIDEBY_ZERO crash

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

How can we see what zone is Corrupted?

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?

Is this bannable?

Your Filter update is exactly what I've wanted PD2 to release.

I want to use it, but is it safe?

%AMED% have a problam with "ED" string

the bug line is:

varString.replace(varString.find(replacements[n].key), replacements[n].key.length(), replacements[n].value);

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.