You need to know where you are. Then add/subtract to get to where you want to cast or target.
When testing try this... stand where you want to be and note your #charposX and #charposY. Then move to where you want to target and note the NEW #charposX and #charposY. Now look at the relationship between the sets of numbers. You'll see what you have to do....
And have a loot at ltargetKIND over at easyuo documentation.
since i want to be moving in this script is there a way to do this
set %Water #Charposx +2 #Charposy -1 #Charposz -7
so that as i change location it will keep choising the target infront my feet in the water?