So i want to make a simple bot. a iris flower farm in presearing. At first i just want to run it on one client. then multiclients.
Can someone point me in the right direction? is there current updated GWA2?
Im also looking at this
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
Bot process.
1. travel to X (random district everytime)
2. determine spawn
3. Port out
4. move towards flower
5. pick up flower
6. go to 1, repeat