I use openEUO, and I have a script that you may be interested in. It's the bones of an unattended I plan to make... eventually.
It will cast in a radius around you hitting all 4 resource tiles if you know how to find the node

It basically works like this:
If you want to make your own, I dig, I do that all the time.
What you want to do is this sort of idea:
Cast 2 tiles away from yourself in a direction. I go with matrix
X-----X
--------
---M---
--------
X-----X
That equates to my position with a +2,+2,|| -2,+2,|| -2,-2,|| +2,-2 offset.
in euox, for the first node:
set #ltargetx #charposx + 2
set #ltargety #charposy + 2
set #ltargetz #charposz
set #ltargetkind 2
event macro 22 0