So I'm trying to bring my bot to next level and implement cooperation with another instance of my bot. For starters I tried to get all players. Best way I found so far is get PlayerData at index 0, 1, 2 and 3. From player data we can extract hero name (which btw starts at offset 0x9180 instead of x9188 currently defined in Enigma.D3), and location (x9644_LevelAreaSnoId). Interesting thing is that location remains unchanged when player has entered rift. It looks like its location to be displayed on map not an actual location. I'm also having trouble getting other player position when he is too far (Actor nor ActorCommonData does not exist then for given PlayerData - both x0004_AcdId and x0008_ActorId are -1). I tried getting coordinates from PlayerData.xA160_X/xA164_Y/xA168_Z and PlayerData.x91FC_X/x9200_Y/x9204_Z but those remain 0 or NaN. I suppose offsets to player position in PlayerData has changed thats why I'm not getting proper values. Anyone can help me with that (getting proper player location and/or coordinates)? There should also be flag for being party leader somewhere in PlayerData. There is attribute Leader, but this can be checked only for players for whom ACD exists.
↧