| View previous topic :: View next topic |
| Author |
Message |
Ninja_Boy Voice
Joined: 23 Jan 2013 Posts: 2 Location: Delhi
|
Posted: Wed Jan 23, 2013 3:49 am Post subject: Need Random Messages Script |
|
|
Hello Everyone
can anyone please make a small random message script for me? cuz i am not better mIRC Bot Scripter. i am learning mIRC Bot script.
i want bot script like Bot will talk automatically after 2-3 minutes
like this
| Code: | <mIRC Bot> Hello
After 3 minutes
<mIRC Bot> i am crazy |
this is possible?
thx in Advance  |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
|
| Back to top |
|
 |
Ninja_Boy Voice
Joined: 23 Jan 2013 Posts: 2 Location: Delhi
|
Posted: Wed Jan 23, 2013 8:44 am Post subject: |
|
|
thx but can u help me in this code pls?
i want like if my bot join any channel text come as "Pyscho is Back!!" And if any other player join Channel then text come as "Welcome $nick to $chan Channe.l"
but when bot my join channel both text come like this
<Psycho>Welcome Psycho to #psycho Channel.
<Psycho>Psycho is Back!!!
| Code: | on *:join:#: {
if($nick == Pyscho)
msg $chan 4Pyscho is Back
}
on *:join:#: { msg $chan Welcome $nick to $chan Channel.
} |
and how to use .tcl files for mIRC bot? |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Wed Jan 23, 2013 8:52 am Post subject: |
|
|
NOTE: This is an eggdrop/help forum not a mirc bot one. The script i wrote is for eggdrop only and will not work on mIRC (its not a .mrc its a .tcl)
We can convert .mrc to .tcl but tcl scripts cannot be loaded to mirc clients
| Code: |
bind join - * pub:join
proc pub:join {nick uhost hand chan} {
if {$nick == "Pyscho"} {
putserv "PRIVMSG $chan :\00304$nick\003 is Back"
} else {
putserv "PRIVMSG $chan :Welcome $nick to $chan Channel"
}
}
|
_________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL |
|
| Back to top |
|
 |
Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Wed Jan 23, 2013 7:47 pm Post subject: |
|
|
You can also use setchaninfo and +greet, which are both internal/core eggdrop commands. It would be much easier than adding a script just to greet a single user.
There is a script for infoline here with commands explained.
For the script to be like you asked, where it triggers ONLY when your BOT joins, then use something similar to what was posted above.
| Code: |
bind join - * pub:join
proc pub:join {nick uhost hand chan} {
global botnick
if {($chan == "#psycho") && ([isbotnick $nick])} {
puthelp "PRIVMSG $chan :Welcome $botnick to $chan Channel."
puthelp "PRIVMSG $chan :\0034$botnick is Back\003!!"
} else { puthelp "PRIVMSG $chan :Welcome $nick to $chan Channel."
}
}
|
You can even make it so you can turn this on|off, using .chanset #channel +botgreet
| Code: |
bind join - * pub:join
setudef flag botgreet
proc pub:join {nick uhost hand chan} {
global botnick
if {![channel get $chan botgreet]} {return}
if {($chan == "#psycho") && ([isbotnick $nick])} {
puthelp "PRIVMSG $chan :Welcome $botnick to $chan Channel."
puthelp "PRIVMSG $chan :\0034$botnick is Back\003!!"
} else { puthelp "PRIVMSG $chan :Welcome $nick to $chan Channel."
}
}
|
_________________ We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals. |
|
| Back to top |
|
 |
|