Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



FireFall hard to find pointers for AutoIt script

Discussion on FireFall hard to find pointers for AutoIt script within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
EviLcLoWnS™'s Avatar
 
elite*gold: 20
Join Date: Nov 2006
Posts: 1,073
Received Thanks: 440
FireFall hard to find pointers for AutoIt script

PHP Code:
#include <NomadMemory.au3>
   #include <GUIConstants.au3>
   #include <Misc.au3>
   #include <Array.au3>

   
$talk ObjCreate("SAPI.SpVoice")

HotKeySet('{ESC}','_exit')
HotKeySet('{PAUSE}','pause')
HotKeySet('{HOME}','play')

SeDebugPrivilege()
$sExecutable 'FirefallClient.exe'
$hProcess OpenProcess(ProcessExists($sExecutable))
$lol ProcessModuleGetBaseAddress($hProcess$sExecutable)
CloseHandle($hProcess)

$stupid_offset1 0x01336750
$stupid_offset2 
0x4
$stupid_offset3 
0x10
$stupid_offset4 
0x50
$stupid_offset5 
0x4
$stupid_offset6 
0x2bd

$ID
=_MemoryOpen(ProcessExists("FirefallClient.exe"))

if (
$ID then
        $talk
.Speak("Firefall Client not found, please start the game first!")
        
_MemoryClose($ID)
        Exit
    EndIf
$talk.Speak("Rubysh's Firefall Autotrigger is now online, Checking pointers...")


$lol2 _MemoryRead($lol+$stupid_offset1$ID"int[32]")
$lol3 _MemoryRead($lol2+$stupid_offset2$ID"int[32]")
$lol4 _MemoryRead($lol3+$stupid_offset3$ID"int[32]")
$lol5 _MemoryRead($lol4+$stupid_offset4$ID"int[32]")
$lol6 _MemoryRead($lol5+$stupid_offset5$ID"int[32]")
$fucking_address _MemoryRead($lol6+$stupid_offset6$ID"BYTE")

$talk.Speak("All pointers found, the bot is ready, Have fun!")

$talk.Speak("Use the end button to close the bot while in the game, the bot will automaticly close it self if the client isn't running.")

autoshoot()

func autoshoot()
While 
1
    $idcheck 
ProcessExists("FirefallClient.exe")
    
$fucking_address _MemoryRead($lol6+$stupid_offset6$ID"BYTE")

    if (
$fucking_address then
    MouseDown
("left")

        While (
$fucking_address )

           
$fucking_address _MemoryRead($lol6+$stupid_offset6$ID"BYTE")
        
Wend
    MouseUp
("left")
    else
    
sleep(1)
        endIf

    if (
$idcheck then
        $talk
.Speak("Firefall Client has been closed, The Autotrigger will now shutdown. Thank you for using Rauven's Firefall Autotrigger.")
        
_MemoryClose($ID)
        Exit
    EndIf


Wend

endfunc


Func SeDebugPrivilege
()
Local $iTokenIndex 1
Local $Struct 
DllStructCreate('DWORD;int')
Local $TOKEN_PRIVILEGES DllStructCreate('DWORD;DWORD[' & (1) & ']')
DllStructSetData($TOKEN_PRIVILEGES11)
While 
$iTokenIndex <= 1
  Local $bPrivilegeValue 
DllCall('advapi32.dll'_
    
'BOOL''LookupPrivilegeValue'_
    
'str'''_
    
'str''SeDebugPrivilege';SE_DEBUG_NAME
    
'ptr'DllStructGetPtr($Struct))
  If 
$bPrivilegeValue[0Then
   DllStructSetData
($TOKEN_PRIVILEGES20x00000002, ($iTokenIndex)) ;SE_PRIVILEGE_ENABLED
   DllStructSetData
($TOKEN_PRIVILEGES2DllStructGetData($Struct1), (* ($iTokenIndex 1)) + 1)
   
DllStructSetData($TOKEN_PRIVILEGES2DllStructGetData($Struct2), (* ($iTokenIndex 1)) + 2)
   
DllStructSetData($Struct10)
   
DllStructSetData($Struct20)
  EndIf
  
$iTokenIndex += 1
WEnd
Local $hCurrentProcess 
DllCall('kernel32.dll'_
   
'HANDLE''GetCurrentProcess')
Local $hProcessToken DllCall('advapi32.dll'_
   
'BOOL''OpenProcessToken'_
   
'HANDLE'$hCurrentProcess[0], _
   
'DWORD'0x00000020 0x00000008;TOKEN_ADJUST_PRIVILEGES TOKEN_QUERY
   
'HANDLE*''')
Local $NEWTOKEN_PRIVILEGES DllStructCreate('DWORD;DWORD[' & (1) & ']')
DllCall('advapi32.dll'_
   
'BOOL''AdjustTokenPrivileges'_
   
'HANDLE'$hProcessToken[3], _
   
'BOOL'False_
   
'ptr'DllStructGetPtr($TOKEN_PRIVILEGES), _
   
'DWORD'DllStructGetSize($NEWTOKEN_PRIVILEGES), _
   
'ptr'''_
   
'DWORD*''')
DllCall('kernel32.dll'_
   
'BOOL''CloseHandle'_
   
'HANDLE'$hProcessToken[3])
EndFunc
Func OpenProcess
($iProcessID)
Local $hProcess DllCall('kernel32.dll'_
   
'HANDLE''OpenProcess'_
   
'DWORD'0x1F0FFF;DesiredAccess PROCESS_ALL_ACCESS
   
'BOOL'True;InheritHandle True
   
'DWORD'$iProcessID)
Return 
$hProcess[0]
EndFunc
Func ProcessModuleGetBaseAddress
($hProcess$sModuleName)
Local $ModulesMax DllStructCreate('ptr[1024]')
Local $iProcessModules DllCall('psapi.dll'_
   
'BOOL''EnumProcessModules'_
   
'HANDLE'$hProcess_
   
'ptr'DllStructGetPtr($ModulesMax), _
   
'DWORD'DllStructGetSize($ModulesMax), _
   
'DWORD*''')
Local $sModuleBaseName
For $i 1 To $iProcessModules[4] / 4
  $sModuleBaseName 
DllCall('psapi.dll'_
    
'DWORD''GetModuleBaseNameW'_
    
'HANDLE'$hProcess_
    
'ptr'DllStructGetData($ModulesMax1$i), _
    
'wstr'''_
    
'DWORD'256)
  If 
$sModuleBaseName[3] = $sModuleName Then Return DllStructGetData($ModulesMax1$i)
Next
EndFunc
Func CloseHandle
($hProcess)
Local $bResult DllCall('kernel32.dll'_
   
'BOOL''CloseHandle'_
   
'HANDLE'$hProcess)
Return 
$bResult[0]
EndFunc 
I need help trying to find the pointer, that is needed to make this all work. The full thread is Im using a 64bit computer, and i can use the DBVM. Dont have access to all kernal tools, because im not using 32bit computer. New cheat engine with DBVM activate, i dont crash, but the right address is not popping up. Wondering if anyone with more adv pointer skill, can try. If you can pm me, or write in this thread, i will tell you, what you need to look for. Rubyshdj Kind of explained to me. All idea and methods go to him of course. Ty very much Rubyshdj. He did state that he could not find the pointer threw the typical method. If i remember he said a while back that i think he used structure dissect to find the pointer.
EviLcLoWnS™ is offline  
Thanks
1 User
Old 08/03/2013, 03:22   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Quote:
Originally Posted by EviLcLoWnS™ View Post
Im using a 64bit computer
That's one of your problems. The functions from the NomadMemory.au3 uses the wrong types. Because of that the functions won't work for 64 bit applications.

I can tell you two easy ways to fix that problem:
  • add the following line in your script:
    Code:
    #AutoIt3Wrapper_UseX64=n

The script is crap, I can't believe that this should work. Rubyshdj didn't know what he was doing.

This should be better:

It won't work, but I think it's a good base.
KDeluxe is offline  
Thanks
1 User
Old 08/20/2013, 17:30   #3
 
EviLcLoWnS™'s Avatar
 
elite*gold: 20
Join Date: Nov 2006
Posts: 1,073
Received Thanks: 440
Sorry i didn't respond, trying really hard to get people interested in Firefall. Might start one last thread, not in autoit forums, would be off topic. Some things i found people might be interested in. The script..

Quote:
$stupid_offset1 = 0x01336750
$stupid_offset2 = 0x4
$stupid_offset3 = 0x10
$stupid_offset4 = 0x50
$stupid_offset5 = 0x4
$stupid_offset6 = 0x2bd
First of all, when nothing is targeted, the pointer is 0, thus not pushing mouse button. When the target is in cross hairs, the pointer reaches 1, causing mouse button to be pushed. So from what he told me, that's what it does. Im going to keep working on trying to find the pointer. Ty KDeluxe
EviLcLoWnS™ is offline  
Thanks
1 User
Old 09/09/2013, 13:20   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 9
Received Thanks: 3
Im Play in FireFall, but i dont know how to use the pointers :/
But I edited that AutoIt script for FireFall

Code:
; Variable Declarations
Global $dl = DllOpen("user32.dll")
Global $o = 0
Global $bgColor = 0x333333
Global Const $WS_POPUP = -2147483648
Global Const $WS_BORDER = 8388608
Global Const $WS_EX_TOPMOST = 8
Global Const $gui_event_close = -3
Global $bnX = 3		; Bono negativo para correr la mira X
Global $bnY = 13	; Bono negativo para correr la mira Y

$gui = GUICreate("FireFall ShotBOT", 223, 50, 324, 25, BitOr($WS_BORDER, $WS_POPUP), $WS_EX_TOPMOST)
GUISetBkColor($bgColor)
GUICtrlSetDefColor(0xfc862e)


If WinExists("[CLASS:R5ENGINE]") Then
	Local $winSize = WinGetClientSize("[CLASS:R5ENGINE]")
	Local $winPos = WinGetPos("[CLASS:R5ENGINE]")
	
	Local $PL = ($winSize[0] / 2 + $winPos[0]) - $bnX
	Local $PT = ($winSize[1] / 2 + $winPos[1]) - $bnY
	
   Global $wid = $PL
   Global $hei = $PT
   $label1 = GUICtrlCreateLabel("FireFall : " & $winSize[0] & "x" & $winSize[1] & " / "& @OSVersion, 5, 30, 271, 17)
Else
   MsgBox(0, "", "FireFall No Found!")
   Global $wid = @DesktopWidth / 2, $hei = @DesktopHeight / 2
   $label1 = GUICtrlCreateLabel("FF No Found - Restart Bot ", 5, 30, 271, 17)
   DllClose($dl)
   Exit
EndIf




$label13 = GUICtrlCreateLabel("OFF", 5, 3, 63, 23)
GUICtrlSetFont ($label13, 18)

$label5 = GUICtrlCreateLabel("©", 60, 5, 20, 17)
GUICtrlSetFont ($label5, 14)
GUICtrlSetColor($label5, $bgColor)

;$label3 = GUICtrlCreateLabel("Sleep :", 90, 6, 40, 17)
;$slp = GUICtrlCreateInput("3", 134, 3, 39, 21)

$exit = GUICtrlCreateButton("Exit", 182, 3, 36, 23)
GUICtrlSetColor($exit, 0x000000)


GUISetState(@SW_SHOW, $gui)
; -------------------------------------------------------------------------------------------------------------
While 1
	$eve = GUIGetMsg()
	Switch $eve
		Case $exit
				DllClose($dl)
				GUIDelete()
				Exit
		Case $eve - 3
				DllClose($dl)
				GUIDelete()
				Exit
	EndSwitch
	
	
	If WinActive("[CLASS:R5ENGINE]") Then
		If _pressedon() Then
			Sleep(100)
			PonerOnOff(1)
		EndIf
		If _pressedoff() Then
			Sleep(100)
			PonerOnOff(0)
		EndIf
	
		If $o = 1 Then
			_search()
		Endif
		
	Else
		if $o = 1 Then
			PonerOnOff(0)
		EndIf
	EndIf
WEnd



; -------------------------------------------------------------------------------------------------------------
Func _pressedleft()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x01")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func PonerOnOff($t)
	If $t = 0 then
		GUICtrlSetData ($label13, "OFF")
		TrayTip("AIM Bot", "OFF", 5, 1)
		Global $o = 0
		GUICtrlSetColor($label13, 0xfc862e)
	else
		GUICtrlSetData ($label13, "ON")
		TrayTip("AIM Bot", "ON", 5, 1)
		Global $o = 1
		GUICtrlSetColor($label13, 0x00EE00)
	EndIf
	
	If WinExists("[CLASS:R5ENGINE]") Then
		Global $winSize = WinGetClientSize("[CLASS:R5ENGINE]")
		Local $winPos = WinGetPos("[CLASS:R5ENGINE]")
		Local $PL = ($winSize[0] / 2 + $winPos[0]) - $bnX
		Local $PT = ($winSize[1] / 2 + $winPos[1]) - $bnY
		Global $wid = $PL
		Global $hei = $PT
		GUICtrlSetData ($label1, "FireFall: " & $winSize[0] & "x" & $winSize[1] & " / "& @OSVersion)
	Else
		Global $wid = @DesktopWidth / 2, $hei = @DesktopHeight / 2
		GUICtrlSetData ($label1, "FireFall Found - " & $wid & "x" & $hei & " / "& @OSVersion)
	EndIf
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _pressedon()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x12")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _pressedoff()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x11")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _search()
	local $X2 = $wid + 5
	local $Y2 = $hei + 25
	;PixelSearch($wid, $hei, $X2, $Y2, 16711680, 10)
	PixelSearch($wid, $hei, $X2, $Y2, 0XEA0000, 10)
	If NOT @error Then 
		GUICtrlSetColor($label5, 0xFF0000)
		MouseDown("left")
		Sleep(10)
		MouseUp("left")
		;Beep(900, 80)
		;Sleep(200)
		GUICtrlSetColor($label5, $bgColor)
	Endif
EndFunc
Its not perfect, but some times work >.<

Do U can share a Enemy Detection in CrossAir?
neowi is offline  
Thanks
1 User
Old 09/09/2013, 20:29   #5
 
elite*gold: 0
Join Date: Jan 2010
Posts: 5
Received Thanks: 0
Quote:
Originally Posted by neowi View Post
Im Play in FireFall, but i dont know how to use the pointers :/
But I edited that AutoIt script for FireFall

Code:
; Variable Declarations
Global $dl = DllOpen("user32.dll")
Global $o = 0
Global $bgColor = 0x333333
Global Const $WS_POPUP = -2147483648
Global Const $WS_BORDER = 8388608
Global Const $WS_EX_TOPMOST = 8
Global Const $gui_event_close = -3
Global $bnX = 3		; Bono negativo para correr la mira X
Global $bnY = 13	; Bono negativo para correr la mira Y

$gui = GUICreate("FireFall ShotBOT", 223, 50, 324, 25, BitOr($WS_BORDER, $WS_POPUP), $WS_EX_TOPMOST)
GUISetBkColor($bgColor)
GUICtrlSetDefColor(0xfc862e)


If WinExists("[CLASS:R5ENGINE]") Then
	Local $winSize = WinGetClientSize("[CLASS:R5ENGINE]")
	Local $winPos = WinGetPos("[CLASS:R5ENGINE]")
	
	Local $PL = ($winSize[0] / 2 + $winPos[0]) - $bnX
	Local $PT = ($winSize[1] / 2 + $winPos[1]) - $bnY
	
   Global $wid = $PL
   Global $hei = $PT
   $label1 = GUICtrlCreateLabel("FireFall : " & $winSize[0] & "x" & $winSize[1] & " / "& @OSVersion, 5, 30, 271, 17)
Else
   MsgBox(0, "", "FireFall No Found!")
   Global $wid = @DesktopWidth / 2, $hei = @DesktopHeight / 2
   $label1 = GUICtrlCreateLabel("FF No Found - Restart Bot ", 5, 30, 271, 17)
   DllClose($dl)
   Exit
EndIf




$label13 = GUICtrlCreateLabel("OFF", 5, 3, 63, 23)
GUICtrlSetFont ($label13, 18)

$label5 = GUICtrlCreateLabel("©", 60, 5, 20, 17)
GUICtrlSetFont ($label5, 14)
GUICtrlSetColor($label5, $bgColor)

;$label3 = GUICtrlCreateLabel("Sleep :", 90, 6, 40, 17)
;$slp = GUICtrlCreateInput("3", 134, 3, 39, 21)

$exit = GUICtrlCreateButton("Exit", 182, 3, 36, 23)
GUICtrlSetColor($exit, 0x000000)


GUISetState(@SW_SHOW, $gui)
; -------------------------------------------------------------------------------------------------------------
While 1
	$eve = GUIGetMsg()
	Switch $eve
		Case $exit
				DllClose($dl)
				GUIDelete()
				Exit
		Case $eve - 3
				DllClose($dl)
				GUIDelete()
				Exit
	EndSwitch
	
	
	If WinActive("[CLASS:R5ENGINE]") Then
		If _pressedon() Then
			Sleep(100)
			PonerOnOff(1)
		EndIf
		If _pressedoff() Then
			Sleep(100)
			PonerOnOff(0)
		EndIf
	
		If $o = 1 Then
			_search()
		Endif
		
	Else
		if $o = 1 Then
			PonerOnOff(0)
		EndIf
	EndIf
WEnd



; -------------------------------------------------------------------------------------------------------------
Func _pressedleft()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x01")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func PonerOnOff($t)
	If $t = 0 then
		GUICtrlSetData ($label13, "OFF")
		TrayTip("AIM Bot", "OFF", 5, 1)
		Global $o = 0
		GUICtrlSetColor($label13, 0xfc862e)
	else
		GUICtrlSetData ($label13, "ON")
		TrayTip("AIM Bot", "ON", 5, 1)
		Global $o = 1
		GUICtrlSetColor($label13, 0x00EE00)
	EndIf
	
	If WinExists("[CLASS:R5ENGINE]") Then
		Global $winSize = WinGetClientSize("[CLASS:R5ENGINE]")
		Local $winPos = WinGetPos("[CLASS:R5ENGINE]")
		Local $PL = ($winSize[0] / 2 + $winPos[0]) - $bnX
		Local $PT = ($winSize[1] / 2 + $winPos[1]) - $bnY
		Global $wid = $PL
		Global $hei = $PT
		GUICtrlSetData ($label1, "FireFall: " & $winSize[0] & "x" & $winSize[1] & " / "& @OSVersion)
	Else
		Global $wid = @DesktopWidth / 2, $hei = @DesktopHeight / 2
		GUICtrlSetData ($label1, "FireFall Found - " & $wid & "x" & $hei & " / "& @OSVersion)
	EndIf
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _pressedon()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x12")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _pressedoff()
	Local $a_r = DllCall($dl, "short", "GetAsyncKeyState", "int", "0x11")
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_r[0], 32768) <> 0
EndFunc
; -------------------------------------------------------------------------------------------------------------
Func _search()
	local $X2 = $wid + 5
	local $Y2 = $hei + 25
	;PixelSearch($wid, $hei, $X2, $Y2, 16711680, 10)
	PixelSearch($wid, $hei, $X2, $Y2, 0XEA0000, 10)
	If NOT @error Then 
		GUICtrlSetColor($label5, 0xFF0000)
		MouseDown("left")
		Sleep(10)
		MouseUp("left")
		;Beep(900, 80)
		;Sleep(200)
		GUICtrlSetColor($label5, $bgColor)
	Endif
EndFunc
Its not perfect, but some times work >.<

Do U can share a Enemy Detection in CrossAir?

Giving this a try If you need any help testing ingame, just add me :> I got all the frames unlocked.
fire99966 is offline  
Old 09/11/2013, 17:19   #6
 
elite*gold: 0
Join Date: Jan 2010
Posts: 5
Received Thanks: 0
It detects my game and adjusts its screen resolution accordingly. Cool layout of the box, but I can't seem to get it to do anything
fire99966 is offline  
Reply


Similar Threads Similar Threads
how to find GF pointers
02/21/2010 - AutoIt - 14 Replies
everytime i try to get "what writes to it" the game crashes... any help?
Need help! How to make pointers on mle, cause its hard to do sd all over again
08/05/2009 - Grand Chase Philippines - 9 Replies
In need, how to make pointers, plz help me, its hard to do sd all over again, help po, panu po un
How do i make my script use this pointers? :( (AutoIT)
05/24/2009 - General Coding - 5 Replies
Hello! I finaly found the Base Pointer, i was looking for, but now i dont know exactly, how i can make my script go tought alle these pointers, to the value i need. :\ So what i need to know exactly is, how can i make AutoIT get the next pointer, using the current pointer + offset? :\ First of all, here is a screenshot of the pointers: http://www3.pic-upload.de/23.05.09/a9ppe.jpg The Script should walk the same way, as it is shown in the screenshot, using this code:
help with Pointers find.
07/06/2008 - Kal Online - 12 Replies
hey Guys can someone give me full tut how to find the pointers cuz in zogga tut there is alot of things dont understanded thx
How to find Pointers
06/09/2008 - Kal Online - 12 Replies
--- OK lets go ^^ --- Step 1 : Start game ;) and Start UCE ( i use Ghost killer ) Step 2 : Search you value we use speed... Step 3 : Ok my Speed Address is 01F6D7DC no we make Right click on it and click on find out what acces to this address Step 4 : Run a bit ingame ^^ Step 5 : Now we See thinks like 00403d23 83 b8 .......... we click on them and see on the Right Corner Compare Twor Operands or other... go down and look where is "Copy memory" Step 6 : Click on more informations Step...



All times are GMT +1. The time now is 04:38.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.