The only thing you have to integrate into your script is this:
sub OffsetClick
set %tempx %1 + #CONTPOSX
set %tempy %2 + #CONTPOSY
click %tempx %tempy f
return
Whether you write one yourself, or use that one. Just about every scripter out there has generated a sub like this to adjust for gump coordinates mapped to the screen. You start out coding all those clicks by hand, but you'll soon find that you are going to be using the same type of code a 100 times over. So that's when you just make a little click sub out of it.
The script I linked for you just help you generate the offset coordinates so you can cut/paste the resulting offset values.
A note on why we really need a sub like thisWhen you've coded enough, you might think that code like this should function:
click %tempx + 200 %tempy + 200 f
However, in EasyUO it doesn't know how to parse this. So that's why you have to do the math before you actually use the CLICK command.
At this point, I get to poke fun at the lame EasyUO parser again.. ScriptUO knows how to parse this expression.
