Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deadbase Search
#31
Code:
GLOBAL $AdjustTolerance=0
Global $Tolerance[5][11]=[[55,55,55,80,70,    70,75,80,0,75, 65],[55,55,55,80,80,    70,75,80,0,75, 65],[55,55,55,80,80,    70,75,80,0,75, 65],[55,55,55,80,80,    60,75,75,0,75, 60],[55,55,55,80,80,    70,75,80,0,75, 65]]

Func ZombieSearch()
$ZombieCount = 0
For $i = 0 To 3 Step 1
$ZC = 0
For $s = 0 To ($ZombieFileSets - 1) Step 1
For $p = 0 + $ZSExclude To 10 Step 1
 If FileExists($E[$s][$p]) Then
$Area[$s][$p][$i] = _ImageSearchArea($E[$s][$p], 0, $Lx[$i], $Ly[$i], $Rx[$i], $Ry[$i], $IS_x[$p][$i], $IS_y[$p][$i], $Tolerance[$s][$p]+$AdjustTolerance)
If $Area[$s][$p][$i] > 0 Then
$ZC = 1
ExitLoop (2)
EndIf
 Else
$Area[$s][$p][$i]=0
 EndIf
Next
Next
$ZombieCount += $ZC
Next
If $ZombieCount > 0 Then
Return True
Else
Return False
EndIf
EndFunc   ;==>IS_Area

I'm using this one with SET B pictures for TH9. Kindly replace the two function with above code.

Note: $tolerance=55 may have disabled the imagesearch corresponding the file images. Good for collectors level 9 above, but idk for th7 below. I think you may replace those image files but I think there is no need anymore.

~~~
I'm a th9 and I'm getting ATLEAST 12m gold per day with this. When I optimize(w/o boosting), I sometimes reach 50% more but could not maintain trophy level. I believe this is already better than commercial bots in terms of performance LOL.

I would like to update the pictures but I don't see the need to do so because of its performance and the method used may not work for 32bit systems. Alternatively, we may use other algorithm for deadbase search like pixelsearch/pixelgetcolor/ memory reading.

Further suggestions for Bot: Optimization/Efficiency Logs like gold/troop, gold per hour, atk per hour, idle time per hour, etc.
Reply
 


Messages In This Thread
Deadbase Search - by AtoZ - 01-05-2015, 12:16 AM
RE: Deadbase Search - by Cocsi - 01-05-2015, 12:34 AM
RE: Deadbase Search - by AtoZ - 01-05-2015, 12:51 AM
RE: Deadbase Search - by Konloch - 01-05-2015, 01:15 AM
RE: Deadbase Search - by Cocsi - 01-05-2015, 01:47 AM
RE: Deadbase Search - by Antidote - 01-05-2015, 02:05 AM
RE: Deadbase Search - by Antidote - 01-05-2015, 02:07 AM
RE: Deadbase Search - by bushido-21 - 01-05-2015, 02:18 AM
RE: Deadbase Search - by Cocsi - 01-05-2015, 02:38 AM
RE: Deadbase Search - by Kaz - 01-05-2015, 08:45 AM
RE: Deadbase Search - by AtoZ - 01-05-2015, 08:07 PM
RE: Deadbase Search - by Kaz - 01-06-2015, 01:46 AM
RE: Deadbase Search - by missileplatypus - 01-08-2015, 01:53 PM
RE: Deadbase Search - by AtoZ - 01-08-2015, 04:50 PM
RE: Deadbase Search - by dinobot - 01-08-2015, 05:12 PM
RE: Deadbase Search - by missileplatypus - 01-09-2015, 07:42 AM
RE: Deadbase Search - by Kaz - 01-09-2015, 03:34 AM
RE: Deadbase Search - by dinobot - 01-09-2015, 04:46 AM
RE: Deadbase Search - by dinobot - 01-09-2015, 08:35 AM
RE: Deadbase Search - by t0per666 - 01-09-2015, 03:37 PM
RE: Deadbase Search - by AtoZ - 01-11-2015, 01:37 PM
RE: Deadbase Search - by AtoZ - 01-12-2015, 11:52 AM
RE: Deadbase Search - by Kaz - 01-12-2015, 12:23 PM
RE: Deadbase Search - by AtoZ - 01-12-2015, 12:39 PM
RE: Deadbase Search - by Kaz - 01-12-2015, 01:46 PM
RE: Deadbase Search - by AtoZ - 01-12-2015, 02:00 PM
RE: Deadbase Search - by Kaz - 01-12-2015, 02:55 PM
RE: Deadbase Search - by AtoZ - 01-12-2015, 05:47 PM
RE: Deadbase Search - by xVincentNiKi - 01-20-2015, 06:21 AM
RE: Deadbase Search - by dinobot - 01-20-2015, 06:57 AM
RE: Deadbase Search - by AtoZ - 01-29-2015, 03:09 PM
RE: Deadbase Search - by safar46 - 01-30-2015, 02:43 AM
RE: Deadbase Search - by AtoZ - 01-30-2015, 01:10 PM
RE: Deadbase Search - by safar46 - 01-30-2015, 02:25 PM
RE: Deadbase Search - by k3iroll - 01-30-2015, 11:03 PM
RE: Deadbase Search - by AtoZ - 01-31-2015, 12:48 PM
RE: Deadbase Search - by k3iroll - 01-31-2015, 01:05 PM
RE: Deadbase Search - by AtoZ - 01-31-2015, 02:43 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website