[ASK] about memory address

09/30/2010 02:22 kulas2k2#46
hi smurfin, i hope you dont mind if im posting your code here., i need help from you guys =P , anyone knows how to make smurfit attack assist to work again? it would still select the mob targeted by the leader but it doesnt show the HP of the mob, so it wont attack, same with the priest support when targeting other characters, it doesnt show the hp..

Quote:
Func AIMLEADERTARGET()
Global $PID_LEADER = WinGetProcess(IniRead("SmurfIT.ini", "Settings", "Leader Window Name", ""))
Global $PINFO_LEADER = _MEMORYOPEN($PID_LEADER)
$LEADERWINTITLE = IniRead("SmurfIT.ini", "Settings", "Leader Window Name", "")
$CHECKLEADERTARGETID = _MEMORYPOINTERREAD($APP_BASE_ADDRESS, $PINFO_LEADER, $OFFSET_TARGET)
$LASTCHECKLEADERTARGETID = $CHECKLEADERTARGETID[1]
If $LASTCHECKLEADERTARGETID <> 0 Then
If WinExists(IniRead("SmurfIT.ini", "Settings", "Window Name1", "")) And BitAND(GUICtrlRead($AAWIN1_CBOX), $GUI_CHECKED) Then
$CURRENTTARGET1 = _MEMORYPOINTERREAD($APP_BASE_ADDRESS, $PINFOH1, $OFFSET_TARGET)
If $CURRENTTARGET1[1] <> $LASTCHECKLEADERTARGETID Then _MEMORYPOINTERWRITE($APP_BASE_ADDRESS, $PINFOH1, $OFFSET_TARGET, $LASTCHECKLEADERTARGETID)
EndIf
09/30/2010 08:19 Interest07#47
I don't believe that method of targeting works anymore, have to use code inject now (either for the select function or the sendpacket function)