This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Request of tcl script :Special User Join A Channel....

Old posts that have not been replied to for several years.
Locked
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Request of tcl script :Special User Join A Channel....

Post by TakaShi^^ »

Special Users...like ur Best friend...if he join a channel....the bot will say tis On channel for him only : The Best actor <Nick>

Got Any script for tis? =D
Im learning!!!
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Takashi.

You have requested more scripts on here in 2 weeks than 90% of every other user on here. We are not your personal script making service. If you cant be bothered to help yourself and learn something for yourself then we cant be arsed to help you. Read the tcl-commands.doc that comes with your eggdrop. look at all the resources on this forum for help on how to start scripting also there are other scripting help sites like suninet.nl and so on.

Make an effort to help yourself and we will make an effort to help you. Image
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Post by TakaShi^^ »

o sorry =) just wanna rush my bot ^_^
Im learning!!!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

A simple example of a greet script. If a user with the nickname "awyeah" (non-casesensitive) joins any of the channels the bot is on, it will be greeted by the bot.

Code: Select all


bind join - "*" do:greet

proc do:greet {nick uhost hand chan} {
 if {![isbotnick $nick] && [string equal -nocase "awyeah" $nick]} {
  putserv "PRIVMSG $chan :Hey hey awyeah! welcome man!@"
  }
}

Code: Select all

Explanation line by line:

1) We trigger to check everyone joining a channel where the bot is on
2) We start our procedure
3) Check if the joining nick is not the bot's nick and the joining nick is "awyeah"
4) Go ahead ahead and display the greet message into the channel
5) Close with the if statements and procedures ending braces

To use on a specific channel:

Code: Select all

if {[string equal -nocase "#mychannel" $chan]} {
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked