phpua:
http://phpua.sourceforge.net/
random example:
http://www.texasfraggers.com/phpua/i...watch&server=0
one somewhat related thing that i'm thinking of doing is creating a cmd line tool or cheap gui that lets you control either a smart/dumb bot or a non player