The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Developing Bot

Started by Antidote · Dec 5, 2014

1,033 replies21,297,466 viewsLocked
Dec 30, 2014#741

do we need to use rooted bluestack?

Dec 30, 2014#742

@bushido-21 No you do not need a rooted bluestacks for the bot

Dec 30, 2014#743

@GkevinOD ok thank you 🙂 btw i just delete "dir" on program filedir and replace with (x86) and au3toexe convertion dont have any error and im try it now i post if any problem exist... thanks again 🙂

Dec 30, 2014#744

Its not attacking again...
Check out the timing between preparing to attack and finished attacking.

Dec 30, 2014#745

@Antidote and @GkevinOD

I have been playing around with imagesearch and pixelsearch. I found out it very unreliable especially on the following condition:

  1. Level of zoom changed the pixel color.
  2. Placement of the building/item changed the pixel color.

I have written a short imagesearch for loot collector. So far it been working well even i changed of the collector location.
http://s000.tinyupload.com/?file_id=21700194837896152937

Global $WinPos = WinGetPos ("BlueStacks App Player")

Func CollectResources()
   Local $Search

	If $isDLL =-1 Then
		MsgBox(48, "Error", "Missing ImageSearchDLL.dll." & @LF & "Place the ImageSearchDLL.dll in same folder.")
		Exit
	EndIf

	while $i < 10
		$Search = _ImageSearchArea('Images\Bubble.BMP', 0, $WinPos[0], $WinPos[1], $WinPos[0]+$WinPos[2], $WinPos[1]+$WinPos[3], $x, $y, $i)
		If $Search = 1 Then
			ControlClick ("", "", "", "left", 1, $x-$WinPos[0], $y-$WinPos[1])
			;MouseClick("left", $x + 6, $y + 15, 1, 10)	screen.
		EndIf
		$i += 1
		Sleep(200)
	WEnd
EndFunc
Dec 30, 2014#746

Again

Dec 30, 2014#747

@zealous Read the Read Me.txt and you can find out why

Dec 30, 2014#748

@zealous Have you tried Pre-Alpha v005?

@zealous Read the Read Me.txt and you can find out why

isit the attack from all side thing ? yeah i tried that. now im trying the 2 side to see if it might work.

Dec 30, 2014#749

@zealous Next update, both 2 side and 3 side will be implemented, along with improvement on timing and speed

Dec 30, 2014#750

@GkevinOD after skip base around 260+ still running and spoted dead base and attacking the bot working fine and not hang thanks 🙂

This discussion is closed.