01-03-2015, 01:00 AM
(01-03-2015, 12:55 AM)bushido-21 Wrote: how to disable dropping trophy?
Try to play with this function :
Code:
#Region ### Village Functions ###
Func DropTrophy()
Local $TrophyCount = getOther($BSpos[0] + 50, $BSpos[1] + 74, "Trophy")
While $TrophyCount > $itxtMaxTrophy
getBSPos()
$TrophyCount = getOther($BSpos[0] + 50, $BSpos[1] + 74, "Trophy")
SetLog("Trophy Count : " & $TrophyCount)
If $TrophyCount > $itxtMaxTrophy Then
SetLog("Dropping Trophies")
getBSPos()
If _Sleep(2000) Or $RunState = False Then ExitLoop(
ZoomOut()
PrepareSearch()
If _Sleep(5000) Or $RunState = False Then ExitLoop
Click(34, 310) ;Drop one troop
If _Sleep(1000) Or $RunState = False Then ExitLoop
ReturnHome(False, False) ;Return home no screenshot
Else
SetLog("Trophy Drop Complete")
EndIf
WEnd
EndFunc
i don't test it yet to remove this script from bot. it will be great if some ppl can make on/off function for this script. so we can choose manually to activated this function or not.