<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/6284" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-12-02T04:21:58-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/6284</id>

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-02T04:21:58-04:00</updated>

		<published>2003-12-02T04:21:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30961#p30961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30961#p30961"/>
		<title type="html"><![CDATA[Requesting Tcl script for Admin Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30961#p30961"><![CDATA[
Well, I didn't read all the post, but I can give you some directions:<br>Eggdrops can bind the connection, and so perform several action.<br>Here's the script I use to initialize mine:<div class="codebox"><p>Code: </p><pre><code>set nickserv "nickserv"set chanserv "chanserv"set hostserv "hostserv"set pass "bot_pass"bind evnt - "init-server" ident:onproc ident:on { type } {    global botnick nickserv hostserv pass username    putserv "MODE $botnick +iB-ws"    putquick "PRIVMSG $nickserv :GHOST $username $pass"    putquick "PRIVMSG $nickserv :IDENTIFY $pass"    putquick "PRIVMSG $hostserv :ON"    bind notc - "*IDENTIFY*" init:ident}proc init:ident {nick uhost handle text {dest ""}} {    global botnick nickserv hostserv pass     if {$dest == ""} {set dest $botnick    }    putserv "PRIVMSG $nickserv :identify $pass"    putserv "PRIVMSG $hostserv :ON"}</code></pre></div>If you can't understand it, I'll explain:<br>I define the nickserv, chanserv and hostserv nicks, and I bind an initialisation of connection to the server.<br>When connecting, I send some commands, as mode, ghost, identify...<br>And I bind the nickserv notice for identify (usefull when regain nickname).<br><br>For the second part, you may find some scripts...<br>Just a little tip: add an user war_user like this:<br>.+user war_user *!*@*<br>.chattr war_user +o #war<br>.save<br>And everybody joining #war will be opped<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Dec 02, 2003 4:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[QTN]]></name></author>
		<updated>2003-12-01T20:07:46-04:00</updated>

		<published>2003-12-01T20:07:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30953#p30953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30953#p30953"/>
		<title type="html"><![CDATA[Requesting Tcl script for Admin Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30953#p30953"><![CDATA[
Hello everybody, <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br>I was just installed eggdrop1.6.15 last week and followed the links from <a href="http://www.egghelp.org" class="postlink">http://www.egghelp.org</a> to get in here, this forums the egghelp.org community! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> I'm so pround that i've a Registered at where are all Tcl's experts stayed on and living in it! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br>After spends the whole week read all topics in here and RTFM, included all C:\....\eggdrop\doc's documents. I'd understand that Tcl is not easy to scripting and so confused me! That's why i'm posted this topic for asking HELP from all Tcl's experts. Here we go......... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br>My server is running <a href="http://www.shadow-realm.org" class="postlink">UltimateIRCD 2.8.6</a> with Epona1.4.14 services. In my mIRC 6.12 Script Editor window contained the following which 1stPart is in Aliases tab and the rest parts are in Remote tab. I would like to request you all Dear Sir/Madam help me to build the Tcl scripts for my eggdrop with nick QTN working as same as my mIRC.<br><br><br><strong class="text-strong"><span style="text-decoration:underline">1stPart:</span></strong> When my mIRC connected to the server, it'll automaticaly identify with NickServ and auto oper-up to be a Admin with included self set extra modes, then auto joins/identify the below channels.<blockquote class="uncited"><div>F3 identify mynickpass | oper QTN myoperpass | mode $me +aBPR-fghkmnswCGMTW | join #Lobby,#Lyrics,#Poems,#Games,#FamousQuotes,#Wars | cs identify #Main mainpass | cs identify #Help helppass | cs identify #Staff staffpass | cs identify #Moderator moderatorpass | cs identify #Lobby lobbypass | cs identify #Lyrics lyricpass | cs identify #Poems poempass | cs identify #Games gamepass | cs identify #FamousQuotes flirtpass | cs identify #Wars warspass</div></blockquote>Notice: Aliases function key F3 is a Perform On Connect command, cs = msg Chanserv, | = separate stacking commands<br><br><br><strong class="text-strong"><span style="text-decoration:underline">2ndPart:</span></strong> Op whoever join #Wars. Op in #Main get forced join #Moderator and op in #Help. With bot respond the events message in #Moderator and so on.....<blockquote class="uncited"><div>on *:JOIN:#Wars:cs op $chan $nick<br>on *:OP:#Main:cs clear #Moderator bans | bs act #Main thank you $opnick | msg #Moderator *** $nick sets mode $chan : $1- | os raw svsjoin $opnick #Help,#Moderator | cs op #Help $opnick<br>on *:OP:#Help:msg #Moderator *** $nick sets mode $chan : $1- | os raw svsjoin $opnick #Moderator<br>on *:DEOP:#Main,#Help:bs say $chan uh oh $opnick | msg #Moderator *** $nick sets mode $chan : $1- | os raw svspart $opnick #Moderator | cs ban #Moderator $opnick<br>on *:OP:#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:DEOP:#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:HELP:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:DEHELP:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:VOICE:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:bs say $chan $vnick is a girl in here! Be nice and keep active guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> | msg #Moderator *** $nick sets mode $chan : $1-<br>on *:DEVOICE:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:BAN:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:UNBAN:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick sets mode $chan : $1-<br>on *:PART:#Main:os raw svsjoin $nick #Wars<br>on *:PART:#Staff,#Moderator:os raw svsjoin $nick $chan<br>on *:PART:#Wars:os raw svsjoin $nick #Main<br>on *:KICK:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $knick was kicked from $chan by $nick ( $1- ) | os raw svsjoin $knick #Wars<br>on *:MODE:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick changed $chan mode to $1-<br>on *:TOPIC:#Main,#Help,#Lobby,#Lyrics,#Poems,#Games,#FamousQuotes:msg #Moderator *** $nick changes topic channel $chan to ' $1- '<br>on *:SERVERMODE:#:msg #Moderator *** $nick changed $chan mode to $1-<br>on *:SERVEROP:#:msg #Moderator *** $nick sets mode $chan : $1-</div></blockquote>Notice: bs = msg BotServ, os = msg OperServ<br><br><br><strong class="text-strong"><span style="text-decoration:underline">3rdPart:</span></strong> When clones join #Main &amp; #Wars, then responding message in #Moderator ex: &lt;QTN&gt; Joining Clones scan for *!*@hostmask connecting by nicks: biggun, Coast_Guy, MLOVE, Womanlovely, Tommy_USA, bluesnake<blockquote class="uncited"><div>; $1 = Channel, $2 = Nick<br>alias clonecount {<br>  return $ialchan($address($2,2),$1,0)<br>}<br>; $1 = Channel, $2 = Nick<br>alias clonescan {<br>  var %count = $clonecount($1,$2)<br>  if ( %count == $null ) {<br>    echo $color(notice text) $chan Clone scan: No connections from $address($2,2)<br>  }<br>  else {<br>    var %x = 1<br>    var %clones<br>    while ( %x &lt;= %count ) {<br>      %clones = %clones $ialchan($address($2,2),$1,%x).nick<br>      inc %x<br>    }<br>    %clones = $replace(%clones,$chr(32),$chr(44) $+ $chr(32))<br>    msg #Moderator Joining Clones scan for $address($2,2) connecting by nicks $+ : %clones<br>  }<br>}<br>on *:JOIN:#Main,#Wars: {<br>  if ( $clonecount($chan,$nick) &gt; 1) clonescan $chan $nick<br>}</div></blockquote><br><strong class="text-strong"><span style="text-decoration:underline">4thPart:</span></strong> !lyrics in #Lyrics, !poems in #Poems, !fquotes in #FamousQuotes<br>!lyrics will msg private to requester !alyrics, !blyrics.....!zlyrics, !0-9lyrics<br>!alyrics msg private to requester !ab Autumn Goodbye - Britney Spears, !attwx And Then There Was X - DMX ....etc....<br>!ab bot will read the AutumnGoodbye-BritneySpears.txt in #Lyrics with 5 seconds/line<br>..<br>..<br>!wlyrics msg private !wgigo We've Got It Going On - Backstreet Boys, !omgwtf (_._)(_x_)(_!_)(_o_) - Unknow<br>..<br>...<br>..<br>!fquotes bot will read random line in FamousQuotes.txt every 5 minutes.<br><br>Thank you all for reading this topic. Any help, reply or link will be much to sincere gratitude.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4208">QTN</a> — Mon Dec 01, 2003 8:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
