Attack Nearby Monster or Harvest by tang_67330

Description: Tested with 1 tool & 1 weapon. 1 on hand and 1 in backpack.

//tool in backpack and weapon on hand if findtype "pickaxe" backpack //if red nearby hotkey 'Target Random Murderer Player' wait 500 if insysmsg "No one matching that was found on your screen" hotkey "Target Closest Grey Monster" wait 200 if insysmsg "no one matching" // do nothing stop else attack lasttarget endif else attack lasttarget endif else // tool on hand while not insysmsg "You do not see any harvestable resources nearby" hotkey "Use Item In Hand" endwhile endif