Right, I'm a complete novice at scripting in mIRC, and have looked at a few websites for some help on what I want; a few of them gave some code, which I tried to use, but none of them seemed to work.
What i wanted to do is (I believe) fairly simple; to take a random line from a text file and put that into the chat. (i.e. someone says !Marco, it would reply with "Polo" - not the phrases that I'm wanting but you get the idea).
All of the places seem to say the same thing, and gave this (approximate) script (that I have edited so it will find my .txt and be activated by my phrase) -
on *:TEXT:!test:#:{
/msg $chan $read(Pinky.txt)}
}
As far as I am aware, the on* should let anyone use the script, the :TEXT: shows that it's a text thing, the :#: says it can be used in any room, and everything following that is the command (i.e. it will message the channel with one line from Pinky.txt).
Originally, I wanted to have the 'activation phrase' as 'Are you thinking what I'm thinking?' however as this didn't work, I wasn't sure if the phrase was too long, so changed it to '!test' however as it's still not working, I'm not sure if I've got something wrong.
Just as a note: I have put the .txt in the correct file (I did //echo $scriptdir to make sure), the file is called Pinky.txt, I am typing in !test, the code is in the Remote section of script editor, and it's at the top. If that makes any difference at all.
Any help would be much appreciated!
What i wanted to do is (I believe) fairly simple; to take a random line from a text file and put that into the chat. (i.e. someone says !Marco, it would reply with "Polo" - not the phrases that I'm wanting but you get the idea).
All of the places seem to say the same thing, and gave this (approximate) script (that I have edited so it will find my .txt and be activated by my phrase) -
on *:TEXT:!test:#:{
/msg $chan $read(Pinky.txt)}
}
As far as I am aware, the on* should let anyone use the script, the :TEXT: shows that it's a text thing, the :#: says it can be used in any room, and everything following that is the command (i.e. it will message the channel with one line from Pinky.txt).
Originally, I wanted to have the 'activation phrase' as 'Are you thinking what I'm thinking?' however as this didn't work, I wasn't sure if the phrase was too long, so changed it to '!test' however as it's still not working, I'm not sure if I've got something wrong.
Just as a note: I have put the .txt in the correct file (I did //echo $scriptdir to make sure), the file is called Pinky.txt, I am typing in !test, the code is in the Remote section of script editor, and it's at the top. If that makes any difference at all.
Any help would be much appreciated!