Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.37 KB | None | 0 0
  1. ;~ Description: Returns agent ID of a hero.
  2. Func GetHeroID($aHeroNumber)
  3.     If $aHeroNumber == 0 Then Return GetMyID()
  4.     Local $lOffset[6]
  5.     $lOffset[0] = 0
  6.     $lOffset[1] = 0x18
  7.     $lOffset[2] = 0x4C
  8.     $lOffset[3] = 0x54
  9.     $lOffset[4] = 0x24
  10.     $lOffset[5] = 0x18 * ($aHeroNumber - 1)
  11.     Local $lAgentID = MemoryReadPtr($mBasePointer, $lOffset)
  12.     Return $lAgentID[1]
  13. EndFunc   ;==>GetHeroID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement