first, comment your code.. this is not easy to look at.. you'll be doing yourself a favor when you don't look at it for a few months and return to it.
that Wait could be a problem since it's executing the wait and in that time the player might move out of range and then the max is then set to 130.
I would think about using distance() instead of X +/- might be easier to do.
sidenote: you should do less than or equal to 100, since the way you have it, the value 100 is not being represented at all. Your character is probably moving all over the place but technically you might want to cover 100. If some how the distance is 100 and player and sluggo are stationary.. no code will be executed.