Explain what the code is supposed to do so we know how to help you fix it. As far as anyone here knows, this is exactly what the code was supposed to do. "Get a certain status" is kinda vague...
After looking over it again, I might know what's causing you trouble. In your if statements, you are checking to see if the variables (i.e. %member) are equal to the integer 1. However, since you read the line from a text file and used getWord(), the value of %member is a string, which means that if will never run. Changing "==" in all of those if statements to "$=" should fix it. I haven't done TorqueScript in a while, but I believe that's correct.
Simply from a management standpoint, consider closing your file once you're done reading it. Also, why are you setting %id to the client's BLID and then almost immediately setting it to a value from the text file?