okay, maybe not as easy as that. Where do I paste it TO? How does it work in the sub?

feels so newbish.
Did I post this in the right place?
Here is what i have so far. I broke the script trying to get this to work. Good learning opportunity. I know that usually, you would set two variables, then combine them in savepix. (thanks to MW in chat for helping, so I included code from his miner here).
This for a health bar (pet gump).
CONTSIZE 432_184
CONTKIND GLF
CONTNAME status_gump
CONTID LYWEPB
CONTTYPE LZ
default location 0 0
set %xclick #contposx + 220
set %yclick #contposy + 110
savepix %clickx %clicky 1
These are my locations, from the generator. They will be used savepix later in script. Old locations are commented below offset click. I had it working at 0 0. %PetgumpX and %petgumpY are set as #contposX and #contposy. As far as I can tell, I should have been able to move it around. But as soon as it was moved from 0 0, it would constantly cast.
set %Pet_heal_now gosub OffsetClick 118 44 ; heal start
;set %PetHealthPixX ( %PetgumpX + 118 )
;set %PetHealthPixY ( %PetgumpY + 44 )
set %Pet_poisoned gosub OffsetClick 47 44 ;while loop
;set %PetPoisonpixX ( %PetgumpX + 47 )
;set %PetPoisonpixY ( %PetgumpY + 44 )
set %pet_dead gosub OffsetClick 38 44 ;res sub
;set %PetDeadpixX ( %PetgumpX + 38 )
;set %PetDeadpixY ( %PetgumpY + 44 )
sub at end of code:
sub OffsetClick
set %tempx %1 + #CONTPOSX
set %tempy %2 + #CONTPOSY
click %tempx %tempy f
return