yeha i think the getXp function hovers over the wrong area, what i would advise is basically copying the function out and changing this:
Code:
MMouse(MouseTB.X1+3,MouseTB.Y1+3, 55, 25);
to this:
Code:
MMouse((MouseTB.X1 + MouseTB.X2) / 2, (MouseTb.Y1 + MouseTB.Y2) / 2, 20, 10);
you may want to get the co-ords yourself if its just for ranged 
EDIT: to explain what that does, instead of hovering over the top left corner of the skill box (+/- 55, 25) it hovers over the centre of the skill box (+/-20, 10)
EDIT: co- ords for the range skill box ...
Code:
MMouse(574, 281, 20, 10);