"on 1" means that on the user level of 1 trigger the event JOIN.
It doesn't really matter which line mIRC script is placed in a file, but remember that mIRC reads each file line-by-line, so the less lines mIRC has to sort through, the quicker the script will be.