I posted a link in your previous thread to the coding standards.
NPC Code:
timeout = .05;
if/while/for/whateverthehellyouuse() {
stuff;
}
You should not do that, it is not only inefficient but really really ugly. Also, if you can't problem-solve for yourself, this is the only advice I can think of giving.
DONT. SCRIPT.
Yes, the forums are here to help, but we aren't here to teach you every single thing. Walk on your own two feet, don't use us as a crutch.