Sign in to follow this  
Followers 0

keep scanning memory address

8 posts in this topic

Posted (edited)

This script basically is an aimbot that requires no toggle between teams ..it uses a memory address of the game which is 1 for reds and 2 for blues..My problem is that which ever color I start on ,It wont change when the memory value changes from 1 to 2 ...

If I start on memory value 1 it goes for reds and if I start on memory value 2 it goes for blues...If I change during the game it doesnt recognize the memory change and still goes for the initial starting color...

So Im presuming that it needs to be looping the memory scan for changes or something along them lines ....

Any ideas guys??

This is probably a bit scrapping but I am new to this...but enjoying a challenge!

#include <GUIConstants.au3>
#include <GUIListBox.au3>
#include <Misc.au3>
#include <Array.au3>
#include <NomadMemory.au3>
Global $on = 0;On/Off Variable
Global $coords;Coords needed to click
Hotkeyset("{F1}", "_power");On/Off Key
Global $colorswitch = 0
$ID=_MemoryOpen(ProcessExists("game.exe"))
$Address=0x01000146
$team=_MemoryRead($Address,$ID)


Func _power();On/Off Function
If $on = 1 Then
	$on = 0
Else
	$on = 1
EndIf
EndFunc

While 1;Start Loop
	Sleep(50);Pause
		If $team = 01 then
	  $BrightMDLS = "0xBB0000"; T
	  $shadowMDLS = "0xFE0000"
  Elseif $team = 02 then
	  $shadowMDLS = "0x080A32"; CTS
	  $BrightMDLS = "0x0000FE"		  
   EndIf
	If $on = 1 Then
	If $colorswitch = 0 Then
		$colorswitch = 1
		$coords = PixelSearch(60, 40, 800, 600, $shadowMDLS, 5, 3);Search for cts in shadows
	If IsArray($coords) Then;Check if we found any
		MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
		$colorswitch = 0
	EndIf
EndIf
EndIf
		Sleep(100);Pause
	If $team = 01 then
	  $BrightMDLS = "0xBB0000"; T
	  $shadowMDLS = "0xFE0000"
  Elseif $team = 02 then
	  $shadowMDLS = "0x080A32"; CTS
	  $BrightMDLS = "0x0000FE"		  
   EndIf
		If $colorswitch = 1 Then
	If $on = 1 Then;Only search if its on.
		$colorswitch = 0
	$coords = PixelSearch(60, 40, 800, 600, $BrightMDLS, 70, 3);Search for cts
	If IsArray($coords) Then;Check if we found any
		MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
		$colorswitch = 1
	EndIf
EndIf
EndIf
Wend

regards bluerein

Edited by bluerein

Share this post


Link to post
Share on other sites



Posted

This script basically is an aimbot that requires no toggle between teams ..it uses a memory address of the game which is 1 for reds and 2 for blues..My problem is that which ever color I start on ,It wont change when the memory value changes from 1 to 2 ...

If I start on memory value 1 it goes for reds and if I start on memory value 2 it goes for blues...If I change during the game it doesnt recognize the memory change and still goes for the initial starting color...

So Im presuming that it needs to be looping the memory scan for changes or something along them lines ....

Any ideas guys??

This is probably a bit scrapping but I am new to this...but enjoying a challenge!

#include <GUIConstants.au3>
#include <GUIListBox.au3>
#include <Misc.au3>
#include <Array.au3>
#include <NomadMemory.au3>
Global $on = 0;On/Off Variable
Global $coords;Coords needed to click
Hotkeyset("{F1}", "_power");On/Off Key
Global $colorswitch = 0
$ID=_MemoryOpen(ProcessExists("game.exe"))
$Address=0x01000146
$team=_MemoryRead($Address,$ID)


Func _power();On/Off Function
If $on = 1 Then
	$on = 0
Else
	$on = 1
EndIf
EndFunc

While 1;Start Loop
	Sleep(50);Pause
		If $team = 01 then
	  $BrightMDLS = "0xBB0000"; T
	  $shadowMDLS = "0xFE0000"
  Elseif $team = 02 then
	  $shadowMDLS = "0x080A32"; CTS
	  $BrightMDLS = "0x0000FE"		  
   EndIf
	If $on = 1 Then
	If $colorswitch = 0 Then
		$colorswitch = 1
		$coords = PixelSearch(60, 40, 800, 600, $shadowMDLS, 5, 3);Search for cts in shadows
	If IsArray($coords) Then;Check if we found any
		MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
		$colorswitch = 0
	EndIf
EndIf
EndIf
		Sleep(100);Pause
	If $team = 01 then
	  $BrightMDLS = "0xBB0000"; T
	  $shadowMDLS = "0xFE0000"
  Elseif $team = 02 then
	  $shadowMDLS = "0x080A32"; CTS
	  $BrightMDLS = "0x0000FE"		  
   EndIf
		If $colorswitch = 1 Then
	If $on = 1 Then;Only search if its on.
		$colorswitch = 0
	$coords = PixelSearch(60, 40, 800, 600, $BrightMDLS, 70, 3);Search for cts
	If IsArray($coords) Then;Check if we found any
		MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
		$colorswitch = 1
	EndIf
EndIf
EndIf
Wend

regards bluerein

Yep. Try this:

#include <GUIConstants.au3>
#include <GUIListBox.au3>
#include <Misc.au3>
#include <Array.au3>
#include <NomadMemory.au3>
Global $on = 0;On/Off Variable
Global $coords;Coords needed to click
HotKeySet("{F1}", "_power");On/Off Key
Global $colorswitch = 0
$ID = _MemoryOpen(ProcessExists("game.exe"))
$Address = 0x01000146
$team = _MemoryRead($Address, $ID)

AdlibEnable("TeamCheck", 1000) ; Runs this every second.

Func _power();On/Off Function
    If $on = 1 Then
        $on = 0
    Else
        $on = 1
    EndIf
EndFunc   ;==>_power

While 1;Start Loop
    Sleep(50);Pause
    If $team = 01 Then
        $BrightMDLS = "0xBB0000"; T
        $shadowMDLS = "0xFE0000"
    ElseIf $team = 02 Then
        $shadowMDLS = "0x080A32"; CTS
        $BrightMDLS = "0x0000FE"
    EndIf
    If $on = 1 Then
        If $colorswitch = 0 Then
            $colorswitch = 1
            $coords = PixelSearch(60, 40, 800, 600, $shadowMDLS, 5, 3);Search for cts in shadows
            If IsArray($coords) Then;Check if we found any
                MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
                $colorswitch = 0
            EndIf
        EndIf
    EndIf
    Sleep(100);Pause
    If $team = 01 Then
        $BrightMDLS = "0xBB0000"; T
        $shadowMDLS = "0xFE0000"
    ElseIf $team = 02 Then
        $shadowMDLS = "0x080A32"; CTS
        $BrightMDLS = "0x0000FE"
    EndIf
    If $colorswitch = 1 Then
        If $on = 1 Then;Only search if its on.
            $colorswitch = 0
            $coords = PixelSearch(60, 40, 800, 600, $BrightMDLS, 70, 3);Search for cts
            If IsArray($coords) Then;Check if we found any
                MouseClick("Left", $coords[0], $coords[1] + 2, 2, 1);SHOOT!
                $colorswitch = 1
            EndIf
        EndIf
    EndIf
WEnd


Func TeamCheck()
    
    $team = _MemoryRead($Address, $ID)
    
EndFunc

Also if you decide to get fancy I have a critical component to this memory stuff in my sig(Point down)... :)

Share this post


Link to post
Share on other sites

Posted (edited)

thanks ...I'll check it out!!

EDIT!!!

Hmm not working for some reason....

Doesnt change teh color!!??

Edited by bluerein

Share this post


Link to post
Share on other sites

Posted

sorry Szhlopp ...its works fine....I altered something and forgot to put it back!!

Once again thanks and the udf thread will be exactly what I need next ..

Regards bluerein

Share this post


Link to post
Share on other sites

Posted

sorry Szhlopp ...its works fine....I altered something and forgot to put it back!!

Once again thanks and the udf thread will be exactly what I need next ..

Regards bluerein

Welcome! Enjoy memory hacking!! :)

Share this post


Link to post
Share on other sites

Posted

on topic: is above script work for fps game (first person shooter)?

just curious... does autoit could make an aimbot in fps? if yes, i'm maybe start to study autoit script.

Share this post


Link to post
Share on other sites

Posted

The Above Script won't work for FPS Games,

it won't swap youf rom CT to terrorist without losing your weapon ;P

if u want to cheat use CheatEngine

Share this post


Link to post
Share on other sites

Posted (edited)

@helo ..yes its for cs:s and is working fine atm ....needs alot more tweeking yet..the code in post one was just an example .its not the actual script im using ...I use MouseGetPos() for the pixel search so there no messing with res sizes and ive added a fov(field of view) so its quiete nice atm!!

@Ahmed .. What are you on about?? No ones swapping teams ..merely swapping what "COLOR" to shoot at via scanning memory address to see which team your on...And why do i need to use cheat engine to cheat ...I'll just use my very own cs:S multi hack (coconup)!!

Edited by bluerein

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0