Hello!!!
I need to check out missions available in game, but I can not find the correct address for QUESTAVAILABLE, i found this code, but i can not make it work in last version PW inter.
Global $ADDRESS_BASE = 0xD22C74
Global $ADDRESS_QUESTAVAILABLE = 0x89E040
Global $QUEST_LIST_POINTER = 0xD23624
global $Player_Offset = 0x28
Func IsQuestAvailable($questId)
$processHandle = $GAME_PROCESS[1]
;Allocate memory for the return address
$returnAddress = DllCall('kernel32.dll', 'int', 'VirtualAllocEx', 'int', $processHandle, 'ptr', 0, 'int', 0x4, 'int', 0x1000, 'int', 0x40)
$questList = _MemoryRead($QUEST_LIST_POINTER, $GAME_PROCESS)
$OPcode = "60" ;60 PUSHAD
$OPcode &= "B9" & _Hex($questList) ;MOV ECX, questList
$OPcode &= "68" & _Hex($questId) ;PUSH questId
$OPcode &= "B8" & _Hex($ADDRESS_QUESTAVAILABLE) ;MOV EAX, questFunction
$OPcode &= "FFD0" ;CALL NEAR EAX
$OPcode &= "A3" & _Hex($returnAddress[0]) ;MOV DWORD PTR [returnAddress], EAX
$OPcode &= "61" ;POPAD
$OPcode &= "C3" ;RET
InjectCode($OPcode)
$retVal = _MemoryRead($returnAddress[0], $GAME_PROCESS)
;Free the previously allocated memory
DllCall('kernel32.dll', 'ptr', 'VirtualFreeEx', 'hwnd', $processHandle, 'int', $returnAddress[0], 'int', 0, 'int', 0x8000)
Return $retVal
EndFunc
How can I find the address to check quests?
Ty!