Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding WBs
#1
So I'm trying to add WBs into the mix. I know this will be an option down the road, but I'm impatient, and wanted to try adding myself Wink

I'm trying to figure out logistically how this would work. From looking at the code, these cases click the troop selection until the color changes/dims, correct? Smile

Code:
Switch $barrackTroop[$i]
Case 0
While _ColorCheckVariation(Hex(PixelGetColor($BSpos[0] + 329, $BSpos[1] + 297), 6), Hex(0xDC3F70, 6), 20)
If $RunState = False Then ExitLoop (2)
Click(220, 320) ;Barbarian
WEnd
Case 1
While _ColorCheckVariation(Hex(PixelGetColor($BSpos[0] + 217, $BSpos[1] + 297), 6), Hex(0xF8AD20, 6), 20)
If $RunState = False Then ExitLoop (2)
Click(331, 320) ;Archer
WEnd
Case 2
While _ColorCheckVariation(Hex(PixelGetColor($BSpos[0] + 217, $BSpos[1] + 297), 6), Hex(0xF8AD20, 6), 20)
If $RunState = False Then ExitLoop (2)
Click(432, 320) ;Giant
WEnd
Case 3
While _ColorCheckVariation(Hex(PixelGetColor($BSpos[0] + 217, $BSpos[1] + 297), 6), Hex(0xF8AD20, 6), 20)
If $RunState = False Then ExitLoop (2)
Click(546, 320) ;Goblins
WEnd
Case 4
While _ColorCheckVariation(Hex(PixelGetColor($BSpos[0] + 217, $BSpos[1] + 297), 6), Hex(0xF8AD20, 6), 20)
If $RunState = False Then ExitLoop (2)
Click(648, 320) ;Wallbreakers
WEnd
EndSwitch

I've added Case 4 as wallbreakers with the correct coords, but I can't figure out where this comes into play.

Could I just modify the Click() in the Giant case & have it click each 4 times?

Any tips would be great!
Reply
 


Messages In This Thread
Adding WBs - by barracoda - 01-16-2015, 10:20 AM
RE: Adding WBs - by barracoda - 01-17-2015, 06:33 AM
RE: Adding WBs - by bushido-21 - 01-17-2015, 07:14 AM
RE: Adding WBs - by bushido-21 - 01-17-2015, 08:51 AM
RE: Adding WBs - by barracoda - 01-17-2015, 11:43 PM
RE: Adding WBs - by bushido-21 - 01-18-2015, 01:24 AM
RE: Adding WBs - by mine214 - 01-18-2015, 04:38 AM
RE: Adding WBs - by barracoda - 01-18-2015, 06:52 AM
RE: Adding WBs - by mine214 - 01-20-2015, 08:46 AM
RE: Adding WBs - by k3iroll - 01-20-2015, 12:48 PM
RE: Adding WBs - by barracoda - 01-20-2015, 12:24 PM
RE: Adding WBs - by barracoda - 01-21-2015, 10:17 AM
RE: Adding WBs - by SAIPER - 01-21-2015, 01:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community 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