You might be better reading from a .ini file. I used it for a few scripts and it works pretty well. I followed this
helpful tutorial and it all worked out great in the end.
Basically, all you need to do is create a .ini file and write your lines in this format:
[lines]
1=First line.
2=Second line.
3=Third line.
etc.
Then if you put something like this into your aliases section it should work. Anything after the '=' will be what you want messaged and you can name the '[lines]' whatever you want but it needs to be kept in square brackets.
/lines {
msg $chan $readini(file.ini,n,lines,1)
timer1 1 5 msg $chan $readini(file.ini,n,lines,2)
timer2 1 5 msg $chan $readini(file.ini,n,lines,3)
}
The 'lines' corresponds to whatever you have in the square brackets in the ini file and the 'file.ini' will have to be renamed to what you call the .ini file and will be the location of where you place the file. The number at the end of the lines corresponds the the text before the '=' in the .ini file, so if you put 'line1' before the '=' you will put 'line1' at the end in the script.
This will display the text in a message to the specified channel but you will have to edit it to display as a PM which I'm not too great as.
Hope this helps and if you have anything else you need, I or anyone else on the forums would be happy to help.
-Tom.