Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to donate other troops?
#2
Code:
Func DonateBarbs()
If $ichkDonateBarbarians = 1 Or $ichkDonateAllBarbarians = 1 Then
Click($DonatePixel[0], $DonatePixel[1] + 11)
If _Sleep(1000) Then Return
_CaptureRegion(0, 0, 725, $DonatePixel[1] + 50)
If _ColorCheck(_GetPixelColor(720, $DonatePixel[1] - 5), Hex(0x507C00, 6), 10) Or _ColorCheck(_GetPixelColor(720, $DonatePixel[1] - 10), Hex(0x507C00, 6), 10) Then
SetLog("Donating Wizards", $COLOR_BLUE)
If _Sleep(500) Then Return
Click(720, $DonatePixel[1] - 5, 5, 50)

_CaptureRegion .... 725 .... then after Getpixel is 720

In our case :

Code:
Func DonateBarbs()
If $ichkDonateBarbarians = 1 Or $ichkDonateAllBarbarians = 1 Then
Click($DonatePixel[0], $DonatePixel[1] + 11)
If _Sleep(1000) Then Return
_CaptureRegion(0, 0, 660, $DonatePixel[1] + 50)
If _ColorCheck(_GetPixelColor(657, $DonatePixel[1] - 5), Hex(0x507C00, 6), 10) Or _ColorCheck(_GetPixelColor(657, $DonatePixel[1] - 10), Hex(0x507C00, 6), 10) Then
SetLog("Donating Balons", $COLOR_BLUE)
If _Sleep(500) Then Return
Click(657, $DonatePixel[1] - 5, 5, 50)
Reply
 


Messages In This Thread
How to donate other troops? - by rozerga - 02-24-2015, 08:09 AM
RE: How to donate other troops? - by promac - 02-24-2015, 10:49 AM
RE: How to donate other troops? - by rozerga - 02-24-2015, 11:59 AM
RE: How to donate other troops? - by TREV71 - 02-24-2015, 11:33 PM
RE: How to donate other troops? - by promac - 02-25-2015, 06:18 AM

Forum Jump:


Users browsing this thread: 4 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