Search the database
Search forum topics
Search members
Search for trades
diablo2.io is supported by ads
diablo2.io is supported by ads
102 replies   6696 views
2

Description

Description by Teebling
5

Can be used to make Runewords:

7
User avatar

Schnorki 4110Moderator

PC
ShadowHeart wrote: 2 hours ago
Tornado_OLO wrote: 2 hours ago
ShadowHeart wrote: 2 hours ago
As far as I know, a stack of items is in fact one item
Once the items are stacked, the stack could become an array filled with items.
So an array filled with IDs.
Are you speaking from actual knowledge of how the game engine works, from having read the reversed engineered code? Or are you just throwing around programming lingo? It might be like you say, but I'm curious.
Well, he did say "could" so likely not intimate knowledge of the engine.

But realistically, that (or some way close to it) is how it would have to work if it were to be implemented in D2:R for the exact reason you already brought up: item IDs.

If they didn't need the unique IDs for their anti-dupe or if the anti-dupe were instant, you could simply attach a "quantity" value to items to simulate a stack and basically have them work exactly the same way
Arrows
already do. But doing so means you're turning multiple items into a single one and losing the extra data for them, meaning unique item IDs would be lost on stacking.

To counter that, since their anti-dupe requires those IDs to be preserved, you would have to end up with some form of array(-like) stacking where you don't necessarily need to preserve everything about each stacked item but would at minimum have to add an array/list property to the item to fill with all of the unique IDs in the stack. De-stacking could then pick one from that list, remove it and attach it to the de-stacked item.
Plus the entire anti-dupe would then also need to be adjusted so it searches said list/array to specifically remove only the duped ID in it, rather than the entire stack.

Or you do an active dupe-check on every 'stack' action after which you could remove the ID and merely generate a new one on each un-stack. But that's probably not too performant of an approach.

_____
Please don't add me without reaching out here first. Random friend requests will be declined.
7
Schnorki wrote: 1 hour ago
Well, he did say "could" so likely not intimate knowledge of the engine.
Thank you.

You can fill any informations in the array with the ID as a
Key
.

The only "change" - I'm getting scared, I will be again charged for not knowing the D2R programming code - is the stack is no more an item but an array.
Once you remove the item from the the stack and place it elsewhere, it becomes the item with the characteristics that they have.

My timezone is CET/UTC+1.
7
The day is today.
The day is today.
The day is today.
The day is today.
9

Advertisment

Hide ads
999

Greetings stranger!

You don't appear to be logged in...

No matches
 

 

 

 

You haven't specified which diablo2.io user you completed this trade with. This means that you will not be able to exchange trust.

Are you sure you want to continue?

Yes, continue without username
No, I will specify a username
Choose which dclone tracking options you want to see in this widget:
Value:
Hide ads forever by supporting the site with a donation.

Greetings adblocker...

Warriv asks that you consider disabling your adblocker when using diablo2.io

Ad revenue helps keep the servers going and supports me, the site's creator :)

A one-time donation hides all ads, forever:
Make a donation