Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Made a function to get exact amount of troops in camp
#15
Not meaning to ninja this, but im already seeing alot of code redundancy in this bot,
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..
Reply
 


Messages In This Thread
RE: Made a function to get exact amount of troops in camp - by LiquidBacon - 02-22-2015, 01:47 AM

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