mIRC Home    About    Download    Register    News    Help

Print Thread
#153822 23/07/06 12:19 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
How do i get the bot to do a /me on a .notice?

#153823 23/07/06 12:39 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Can you explain the question a bit more ?
I dont understand.

#153824 23/07/06 03:25 PM
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
I think they want the bot to do a notice with a /me action in it, like

*Blake waves

I'm not sure how to answer that or if you can do it.

#153825 23/07/06 03:41 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
/msg, /me, /notice are mutually exclusive. You can only choose one when sending your messages.

-genius_at_work

#153826 23/07/06 04:56 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
maybe i should re-phrase the question , this is the scenarion :

How do i get my bot to do this :

me : !meow
bot :/me meow

in other words, when i type !meow how do i get the bot to send a /me saying meow?

#153827 23/07/06 05:21 PM
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
Code:
on 1:NOTICE:!meow*:*:{
if ($nick == YourName) {
describe #channel meows
}
}

Last edited by bwr30060; 23/07/06 05:21 PM.
#153828 23/07/06 05:32 PM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
This will do any action you specify.

on ON ^*:TEXT:!action:#: {
if ($nick == yourNick) {
describe $chan $2-
}
}

Change the !action bit to any trigger word you want

so like !action sighs would make your bot sigh in the channel.
You can also change the code to work for a NOTICE even or even a PM /help scripts

Last edited by HaleyJ; 23/07/06 05:42 PM.

Newbie
#153829 23/07/06 05:39 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Put a wilcard * after the text !action or nothing will happen

#153830 23/07/06 05:45 PM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Yes sorry missed that one. blush

on ON ^*:TEXT:!action*:#: {
if ($nick == yourNick) {
describe $chan $2-
}
}

TESTED

Last edited by HaleyJ; 23/07/06 05:46 PM.

Newbie
#153831 23/07/06 06:08 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
thanks so much.


I have another question , I have a feeling this one might be hard to solve.

I have a list of random words and when someone types "!<nick of someone>" then i want the bot to respond with "!<nick of someone> is a <random word>"
But i have no idea how to do this either LOL. any pointers would be appreciated ^_^

Last edited by michael99952; 23/07/06 06:11 PM.
#153832 23/07/06 07:17 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
1) Make a text file with your words in it, with one word per line
2) Put the following code into a new remote file (Alt + R, Remotes Tab)
Code:
 on *:text:!*:#:{
var %nick = $right($1,-1)
if %nick ison $chan {
describe $chan $1 is a $read(file.txt)
}
}
 

#153833 23/07/06 09:44 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
Ok two problems with that script ,

I type "!Lara" and the bot says "!Lara is a"

problem 1) it is only supposed to say Lara not !Lara
Problem 2) The bot does not call Lara a random word (Yes i put each word on a new line , and yes i input the correct file name.)

Last edited by michael99952; 23/07/06 09:57 PM.
#153834 23/07/06 10:24 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on *:text:!*:#:{
var %nick = $right($1,-1)
if %nick ison $chan {
describe $chan %nick is a $read(file.txt)
}
} 


Ensure that you have the correct filename and that the file is in your mIRC installation directory. The problem with the ! showing up was due to the fact that you indicated you wanted it showing in your original post, however, that has been altered in this post.

#153835 23/07/06 10:30 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
Ok sorry for my mistake on the ! i'm gonna retry the script again

EDIT: Works very well now , wonder why it didn't pick up the file last time :S
Thank you!

Last edited by michael99952; 23/07/06 10:39 PM.

Link Copied to Clipboard