MephisTools / diablo2-protocol

Diablo 2 network protocol
MIT License
73 stars 19 forks source link

item parsing #23

Closed rom1504 closed 5 years ago

rom1504 commented 5 years ago

started at https://github.com/louis030195/diablo2-protocol/blob/master/examples/tools/parseItem.js and https://github.com/louis030195/diablo2-protocol/blob/master/examples/tools/item.json

based on https://github.com/epicvrvs/heroin_glands/blob/aab6873a1a76abbb18c6421e4c8064ce0a472946/heroin/item_action.cpp

and https://github.com/dkuwahara/OmegaBot/blob/398128b4cbc96194065da510a7482c521ecf6f90/Items/Parser.cs

Big problems :

Solution : rewrite it in js.

Required : a bit reader, see :

Then just translate the c++ or c# code to js (manually)

rom1504 commented 5 years ago

done

rom1504 commented 5 years ago

might be some more to add from https://github.com/epicvrvs/heroin_glands/blob/aab6873a1a76abbb18c6421e4c8064ce0a472946/heroin/item_action.cpp#L347 to check

rom1504 commented 5 years ago

^ indeed, heroin glands has item stats => to add

rom1504 commented 5 years ago

done for good