Jump to content
Sign in to follow this  
Boldina

[Mod] Detect all event troops and drop

Recommended Posts

[Mod] Detect all event troops and drop

		Local $iSpecialColor[4][3] = [[0xFFFDFF, 1, 0], [0xFFFDFF, 2, 0], [0xCADEF2, 0, 1], [0xCADEF2, 1, 1]]
		Local $iSpecialPixel
			
		For $clickss = 0 to 300
			$iSpecialPixel = _MultiPixelSearch(23, 632, 834, 658, 1, 1, Hex(0xFFFDFF, 6), $iSpecialColor, 15)
			If $iSpecialPixel = 0 Then ExitLoop
			SetLog("Dropping event troops" & ": " & $iSpecialPixel[0] & "/" &  $iSpecialPixel[1])
			PureClick($iSpecialPixel[0], $iSpecialPixel[1], 1, 10, "#0000")

				AttackClick(608, 168, 1, SetSleep(0), 0, "#0000")
		Next
This simple mod detects the edge of the troop and causes its release until exhaustion. It works with "El Primo" and all the troops of the events.
It can be added in "COCBot\functions\Attack\GoldElixirChangeEBO.au3" under "GoldElixirChangeEBO()"
Edited by Boldina
  • Upvote 5

Share this post


Link to post
Share on other sites
hace 35 minutos, akuros dijo:

What does this add to? or how does it work?

Discard all the troops of the events, thought not to generate problems in the training.
 

Share this post


Link to post
Share on other sites

This is awesome!!!!

Added code as mentioned, then created Quick Train with EVENT special troop as needed using electroLoon CSV, instead of loons created the special troop to fill the list

made BOT to use quick train army instead of specifying troops in BOT.

let it fly...

it completed the event for me.

This is wonderful job.

Thank you so much.

 

PS___ Recompile with autoit the .exe (instructions for that is in how to use the BOT somewhere)

Edited by tuillc
  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, tuillc said:

PS___ Recompile with autoit the .exe (instructions for that is in how to use the BOT somewhere)

 

Share this post


Link to post
Share on other sites

Можете ли вы добавить свой код в виде файла для обычных пользователей? Где скачать готов? Поблагодарить.

Edited by narik1337
некорректный перевод гугла

Share this post


Link to post
Share on other sites

I often have no CC troops in my Wall Wrecker so it's left over at the end of attacks, will this code change drop it? Just curious

thank you in advance for any help

Share this post


Link to post
Share on other sites
On 1/1/2019 at 5:58, narik1337 dijo:

Можете ли вы добавить свой код в виде файла для обычных пользователей? Где скачать готов? Поблагодарить.

Yes soon.

On 1/1/2019 at 8:25, JPC1 dijo:

I often have no CC troops in my Wall Wrecker so it's left over at the end of attacks, will this code change drop it? Just curious

thank you in advance for any help

It has to increase the tolerance.

			$iSpecialPixel = _MultiPixelSearch(23, 632, 834, 658, 1, 1, Hex(0xFFFDFF, 6), $iSpecialColor, 15

To

			$iSpecialPixel = _MultiPixelSearch(23, 632, 834, 658, 1, 1, Hex(0xFFFDFF, 6), $iSpecialColor, 50

Rest assured that I am already working on that.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...