mIRC Home    About    Download    Register    News    Help

Print Thread
#106901 05/01/05 09:52 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok well this is my first time making a bot so I was wondering If I could get some help, I made this here for random comments. For other users to use ect.

on *:TEXT:!Stab :#:{ /describe $chan Grabs a knife and stabs $nick in the eye! }

What would that write out to be if I wanted to do this?

!Stab Jhonny , then my bot would follow the command.

Also what should I write out for this, if somone pcs my bot and says !help they'd get a pc saying what I typed out.

Thanks. confused


Do the monkey!
#106902 05/01/05 10:26 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Text:!stab*:#: {
  if ($2) && ($2 ison $chan) { 
    describe $chan Grabs a knife and stabs $2 in the eye! 
  }
  else { 
    describe $chan Grabs a knife and stabs $nick in the eye! 
  }
}


I don't fully understand what you mean with the !help.

Code:
on *:Text:!help:?: {
  msg $nick How can I help...
}


That maybe?

#106903 05/01/05 10:31 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
2. Make a file called help.txt in your mirc directory with the "!help" info in it.
Code:
on *:text:!help:?:.play -nq5m1 $nick help.txt 1500

#106904 05/01/05 10:53 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Thanks alot it works good, but now what if I wanted it to notice them when they come in?


Do the monkey!
#106905 05/01/05 10:59 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on !*:Join:#: {
  notice $nick <Your greet>
}

#106906 06/01/05 12:29 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
while it is above my abilities i think he mentioned that he wanted random comments so he would mostlikely have to make a hash table containing all the comments he wants and then making it select randiomly i dont know how to go about
umm
i have a good hash tutorial but i dont remember the addy
if u your feeling dangerous i can send it to you


The Kodokan will move you, one way or another.
#106907 06/01/05 06:38 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
no need for hash tables, just add the greetings onto seperate lines of a txt file and do $read(text.file.txt).

#106908 07/01/05 11:49 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Thanks guys.


Do the monkey!

Link Copied to Clipboard