mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2004
Posts: 2
P
phrack Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Dec 2004
Posts: 2
I'm making a bot, and I want certain commands that i give to generate a response in a certain color, only for those specific commands.

I can't find a way to specify color in the remotes script....any way to do this?

Also, I want to be able to write to a .txt file and read from a .txt file (using my own variation of ignore with variables). How could I do this?

Last edited by phrack; 10/12/04 12:35 AM.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
I'm making a bot, and I want certain commands that i give to generate a response in a certain color, only for those specific commands.

I can't find a way to specify color in the remotes script....any way to do this?


You just use the same ^KNN (13) as you would in an editbox.
Code:
on *:text:!whatever:*:{
  if $nick == YOUR_NICK {
    msg $iif(#,#,$nick) 04Here is an example
    msg $nick 12Another example, with a 00,04background colour as well.
  }
}


Also, I want to be able to write to a .txt file and read from a .txt file (using my own variation of ignore with variables). How could I do this?
See /help /write and /help $read
  • /write textfile.txt <text to write>
    //echo -a $read(textfile.txt) <- random line
    //echo -a $read(textfile.txt,1) <- specific line (line 1 in the example)

Joined: Dec 2004
Posts: 2
P
phrack Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Dec 2004
Posts: 2
Thank you for responding, it was very helpful.


My only problem is that now, I am trying to use the "write" command to search a file for text, defined by a variable, and delete it.

I've used among other things:

write -ds%var

I dont know how to do this.

BTW this IS in a script file, remotes.

Last edited by phrack; 10/12/04 02:25 AM.
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
/write -ds" $+ %var $+ " File.txt


- Relinsquish

Link Copied to Clipboard