Character should stand to the east of a tree with dagger in hand.
Code: Select all
Exec: Use Item in Hand
Wait for Target
Target RelLoc (-1,0)
Pause 1,00sec
If (SysMessage "There's not enough wood here to harvest." )
Say: move
If ("Kindlings count" >= 25 )
For (1 to 25 )
Double Click (kindling (0DE1))
Pause 1,50sec
End For
End If
End If
Code: Select all
!Loop
Assistant.Macros.HotKeyAction|1305|
Assistant.Macros.WaitForTargetAction|5
Assistant.Macros.TargetRelLocAction|-1|0
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.IfAction|4|0|there's not enough wood here to harvest.
Assistant.Macros.SpeechAction|0|52|3|RUS|2|16|157|move
Assistant.Macros.IfAction|50|1|20|Kindlings
Assistant.Macros.ForAction|20
Assistant.Macros.DoubleClickTypeAction|3553|True
Assistant.Macros.PauseAction|00:00:01.5000000
Assistant.Macros.EndForAction
Assistant.Macros.EndIfAction
Assistant.Macros.EndIfAction