Here's something I wrote, please consult the mIRC help file for commands you are not familiar with. You can customize it to your needs.

https://forums.mirc.com/ubbthreads.php/topics/256203/Re:_Point_system_lag#Post256203