egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need Random Messages Script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Ninja_Boy
Voice


Joined: 23 Jan 2013
Posts: 2
Location: Delhi

PostPosted: Wed Jan 23, 2013 3:49 am    Post subject: Need Random Messages Script Reply with quote

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 Smile
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Wed Jan 23, 2013 4:09 am    Post subject: Reply with quote

Look around here first....

http://www.egghelp.org/tclhtml/3478-4-0-0-1-advertise.htm

or maybe this forum string...

http://forum.egghelp.org/viewtopic.php?t=19179
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Ninja_Boy
Voice


Joined: 23 Jan 2013
Posts: 2
Location: Delhi

PostPosted: Wed Jan 23, 2013 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Wed Jan 23, 2013 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Wed Jan 23, 2013 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber