01-04-2015, 02:54 AM
I hope, somebody will help me write attack algorithm.
After loot value meets requirements, check the TH level, and locate half/full Storage's positions. If it is TH9 or TH10, then is not god idea to attack then loot is less 150k, if more 150k, then is not god idea to attack if Storages are half/full and in the middle of the base.
In VillageSearch()
***
GetResources() ;Reads Resource Values
If $Restart = True Then ExitLoop (2)
If CompareResources() Then
if _TH9() or _TH10() Then ;Find TH level
if _LocateStorage1() Then ;Locate half/full storages positions
If $iradAttackMode = 0 Then
After loot value meets requirements, check the TH level, and locate half/full Storage's positions. If it is TH9 or TH10, then is not god idea to attack then loot is less 150k, if more 150k, then is not god idea to attack if Storages are half/full and in the middle of the base.
In VillageSearch()
***
GetResources() ;Reads Resource Values
If $Restart = True Then ExitLoop (2)
If CompareResources() Then
if _TH9() or _TH10() Then ;Find TH level
if _LocateStorage1() Then ;Locate half/full storages positions
If $iradAttackMode = 0 Then