Jump to content

Formula 3D Game


Fi0da
 Share

Recommended Posts

Although my English is not very good, I use a translator to express my doubts:

My bot search a color on the screen of 3D game, the move to that location, the screen moves up and the character of the game remains at the center of the screen (200,150) (3D Game). Thus, when the character moves to the point to get the item color, the new point will be (200,150).

While 1
Sleep(30)
$coord = PixelSearch(58, 83, 435, 585, 0xFF0000)
If Not @error Then
MouseClick($coord[0], $coord[1], 0, 0)
EndIf
WEnd

I need a formula to check the distance traveled by the mouse and pick up after the race, return to starting point.

Any help is welcome

I read ... I update ... I learn ...
Link to comment
Share on other sites

Can you tell us which game, or post a screenshot so we can see what you mean?

If the character is always at (200, 150) then the distance moved is (200- $coord[0] , 150 - $coord[1] ).

If you are trying to get back to the position you started from, try:

MouseClick(400 - $coord[0], 300 - $coord[1], 0, 0)

Example:

If the pixel check returned (210, 150) then your character moves 10 to the right

clicking at 400 - 210 = 190 will move to the left by 10

Link to comment
Share on other sites

Although my English is not very good, I use a translator to express my doubts:

My bot search a color on the screen of 3D game, the move to that location, the screen moves up and the character of the game remains at the center of the screen (200,150) (3D Game). Thus, when the character moves to the point to get the item color, the new point will be (200,150).

While 1
Sleep(30)
$coord = PixelSearch(58, 83, 435, 585, 0xFF0000)
If Not @error Then
MouseClick($coord[0], $coord[1], 0, 0)
EndIf
WEnd

I need a formula to check the distance traveled by the mouse and pick up after the race, return to starting point.

Any help is welcome

Step[1]

Find game.exe+0xffff <= meaning pointer

Step[2]

Read about your Character's X/Y/Z position from that pointer.

So, you needs this;

>Memory Search/Find

>Knowridge about Memory Pointer

Example[1]

: 0x0108C460 +0xF9450 float [233] MAP POS X [F] 1107 [D] 1149919232 (0x448A6000) [L] 24576:17546 ▶ [D] (0x00000000) [F]

: 0x0108C464 +0xF9454 float [234] MAP POS Y [F] 945 [D] 1147944960 (0x446C4000) [L] 16384:17516 ▶ [D] (0x00000000) [F]

: 0x0108C468 +0xF9458 float [235] MAP POS Z [F] 160.74479675293 [D] 1126219435 (0x4320BEAB) [T] ゾ_C ▶ [D] (0x00000000) [F]

: 0x0108C46C +0xF945C float [236] MAP POS A [F] 0 [D] 0 (0x00000000)

Example[2]

[2009-02-15(Sun) 00:54:05.734] -162> POS[?] X1107/1107 Y0945/0945 Z0160/0160 D455 R000 Z000 V+090 S15 T+19.9 46s82 45s52 45s52 20m02 20m02 L000 HP00000 L000 HP00000 INET=LAN|RAS_INSTALLED WS32=0 PING=7ms

Example[3]

http://www.cheatengine.org/

Example[4]

;BOOL WINAPI ReadProcessMemory(

; __in HANDLE hProcess,

; __in LPCVOID lpBaseAddress,

; __out LPVOID lpBuffer,

; __in SIZE_T nSize,

; __out SIZE_T *lpNumberOfBytesRead

; );

Edited by Korean
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...