It's all good. At least you came to the right place :D
Another tip, instead of having all those on *:TEXT events. Turn it into one. e.g.
on *:TEXT:*:#: { if ($1 == !rank) { ;commands here } if ($1 == !shoot) { ;commands here } }