MephisTools / diablo2-protocol

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

finish item parser #52

Open louis030195 opened 5 years ago

louis030195 commented 5 years ago

"maximum_durability":8,"indestructible":0,"durability":64 Invalid item stat ID: 394 Cannot get 5 bit(s) from offset 198, 2 available Cannot get 17 bit(s) from offset 184, 16 available

...

Many errors

rom1504 commented 5 years ago

the problem is mainly that the txt is not complete.

For the things that are not 100% correct for the bit reader, it's impossible to fix without decompiling diablo

louis030195 commented 5 years ago

d2gsToClient : D2GS_ITEMACTIONWORLD {"action":4,"category":45,"id":47,"equipped":0,"in_socket":0,"identified":1,"switched_in":0,"switched_out":0,"broken":0,"potion":0,"has_sockets":0,"in_store":0,"not_in_a_socket":0,"ear":0,"start_item":0,"simple_item":0,"ethereal":0,"personalised":0,"gambling":0,"rune_word":0,"version":101,"ground":false,"directory":0,"x":2,"y":6,"container":2,"unspecified_directory":false,"type":"xvb","name":"Sharkskin Boots","width":"2","height":"2","throwable":"0","stackable":"0","usable":"0","is_armor":true,"is_weapon":false,"quality":13,"level":56,"has_graphic":1,"graphic":1,"has_colour":0,"defense":228,"maximum_durability":16,"indestructible":0,"durability":240,"amount":64,"properties":[{"stat":"charged","level":1,"skill":72,"charges":132,"maximum_charges":91},{"stat":"stamina_recovery_bonus","value":50},{"stat":"defense_vs_missiles","value":100},{"stat":"maximum_fire_resistance","value":5},{"stat":"faster_run_walk","value":20}]}

image

There isn't all stats ? (there wasnt broken packets above or below)