02-22-2015, 01:47 AM
(This post was last modified: 02-22-2015, 01:55 AM by LiquidBacon.)
Not meaning to ninja this, but im already seeing alot of code redundancy in this bot,
so Im offering a very simple alternative:
Just pop this somewhere in COCBot.au3, open a camp and press shift+alt+f
You don't even have to know the max. capacity for this..
so Im offering a very simple alternative:
Code:
HotKeySet("+!f", "_checkFullArmy")
Func _checkFullArmy()
$greenBar = _PixelSearch(426, 211, 708, 213, Hex(0x34A800,6), 0)
If isArray($greenBar) Then
SetLog("Camp "&Ceiling(($greenBar[0]-426)/280*100)&"% full.")
Else
SetLog("Camp is empty")
EndIf
EndFunc
Just pop this somewhere in COCBot.au3, open a camp and press shift+alt+f
You don't even have to know the max. capacity for this..