Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Eric on December 06, 2003, 03:37 PM

Title: D2 Stats String
Post by: Eric on December 06, 2003, 03:37 PM
Where exactly is the Act in the Diablo II/Diablo II: Lord of Destruction stats string?
Title: Re:D2 Stats String
Post by: iago on December 06, 2003, 04:51 PM
It would help if you defined p.

Is it the first character in the statstring?  Or the first after the name/realm?
Title: Minor nit to UserLoser's explanation
Post by: Kp on December 06, 2003, 07:01 PM
Quote from: UserLoser. on December 06, 2003, 04:37 PM
examples:
if it returns 2, they're in act 3 normal
if it returns 13, they're in act 5 hell

Note that the difficulty is actscompleted / total_acts, and the act in that difficulty is actscompleted % total_acts, where total_acts is 4 for D2DV and 5 for D2XP.  Assuming either 4 or 5 for all cases will result in wrong output for one of the two products.