Hey.
I'm constructing a script at the moment, well, at least trying to and I have a few questions for it.
1: I want to make a script, that when unloaded deletes the files created. Fx. I make a .mrc file which when loaded makes and writes to eg. file.ini and file.txt. What I need it to do is deleteing the mentioned files when unloaded. Is this possible?...and if so, how?
2: I have had difficulties with getting the syntax of the code written to a file right. E.g. if I write following in a .mrc:
on *:load:{
write -a file.txt slaps $nick with a Nike size 15
}
Then "slaps "nick" with a Nike size 15" is written to the .txt, here "nick" being the primary nick of the client the script is loaded into. This is no good if the script is supposed to read from the .txt including variables. How can I make the script write "slaps $nick with a Nike size 15" to the .txt instead?
Any ideas, anyone?