Events trigger in the order of the files they are in. If you have a list of files like this:
1. script1.mrc
2. script2.mrc
then the events in script1.mrc will trigger before the events in script2.mrc. Assuming you have the files loaded in the same order as you gave them then that is your problem, they should be the other way around. To change the order script files are in goto File -> Order... in the mIRC Editor.