Ty for the answer its working now! Ty vm.
Now im trying to find if myself have a certain buff but im not beeing able to do it!
Code:
#Include <NomadMemory.au3>
#Include <Misc.au3>
#Include <GUIConstantsEx.au3>
#include <Math.au3>
;Globals Here
Global $PlayerBaseStatic = 0x010B65F4 ;Static Offset
SetPrivilege('SeDebugPrivilege', 1)
$DllInformation = _memoryopen(WinGetProcess("World of Warcraft")) ;Open WoW
If @error = 1 then ;WoW Open
MsgBox(0, 'Error', 'World of Warcraft Process not found, closing program...')
Exit
EndIf
;Gets base addresses
$lvl1Pointer = _MemoryRead('0x' & hex($PlayerBaseStatic), $DllInformation , 'uint')
$lvl2Pointer = _MemoryRead('0x' & hex($lvl1Pointer + 0x34), $DllInformation , 'uint')
$PlayerBase = _MemoryRead('0x' & hex($lvl2Pointer + 0x24), $DllInformation , 'uint')
$p1 = 0x8
$pchp = (0x17 * 4) ;Curreent HP
$pmhp = (0x1F * 4) ;Max HP
#cs
$hp = _MemoryRead('0x' & hex($PlayerBase + $p1), $DllInformation , 'uint')
$chp = _MemoryRead(($hp + $pchp), $DllInformation, 'uint') ; Current HP
$mhp = _MemoryRead(($hp + $pmhp), $DllInformation, 'uint') ; Max HP
MsgBox(0, 'Current HP & Max HP', $chp &" :: "& $mhp)
#ce
$bufftocheck = 0x4F97 ;This is Seal Of Command
$buff = _MemoryRead('0x' & hex($PlayerBase + $p1), $DllInformation , 'uint')
$cbuff = _MemoryRead(($PlayerBase + $bufftocheck), $DllInformation , 'uint')
MsgBox(0, 'Buff', $cbuff)
The green part is commented out so not active atm, so what im trying to do is to check if my char have a certain buff and if it have return true if it dont have return false. I will keep trying to get this to work, but if any1 could point me what im doing wrong, i would apreciate.
Its not a loop function yet. i just want to run the script one time and the return value atm is 24 with buff or witout it.