SHARE
TWEET

Untitled

a guest Jul 24th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top