Func FlowerRun()
Sleep(2000)
RndSlp(1600)
logFile("Starting Flower farm.")
Move(-11934, -13346, 50)
Local $tDeadlock = TimerInit()
Local $Looted = False
While $Looted = False
If TimerDiff($tDeadlock) > 45000 Then ExitLoop
If GetMaxAgents() <> 0 Then
Local $a = DllStructGetData(GetNearestItemToAgent(-2),'ID')
Local $aMID = DllStructGetData(GetItemByAgentID($a), 'ModelID')
If $aMID == 2994 Then ;Item matches
logFile("Flower found, picking it up.")
PickUpItem($a)
$tDeadlock2 = TimerInit()
Do
Sleep(500)
If TimerDiff($tDeadlock2) > 5000 Then ContinueLoop 2
Until DllStructGetData(GetItemByAgentID($a), 'ID') == 0 ; Or TimerDiff($tDeadlock2) > 15000
logFile("Flower collected")
$Looted = True
EndIf
EndIf
WEnd
EndFunc
The func item pickup is not working? im trying to look into this omni farmer and fix it but have 0 knowledge....all its doing is running the path not searching for tthe item or picking item up