<?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/4941" />

	<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-07-11T11:09:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-11T11:09:51-04:00</updated>

		<published>2003-07-11T11:09:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23312#p23312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23312#p23312"/>
		<title type="html"><![CDATA[On Join Greet + Counter!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23312#p23312"><![CDATA[
oh, well that I think need alot of brain power, I'm not in the mood for it right now, anyway try to make it your self. Since u need it so bad.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 11, 2003 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-11T08:32:26-04:00</updated>

		<published>2003-07-11T08:32:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23311#p23311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23311#p23311"/>
		<title type="html"><![CDATA[On Join Greet + Counter!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23311#p23311"><![CDATA[
Its not Working<br><br>I guess You didn't get me.. Right now its showing me Notice in 2 lines. Like this<br><div class="codebox"><p>Code: </p><pre><code>[17:14] -Pareshan- Gen|us_Away You are the 4179th person to join us since March 23, 2003 . Gen|us-BaWT  0.01a[17:14] -Pareshan- Welcome to Official Channel of DCS,KU! Please Follow the Rules on http://www.ku-dcs.rules.it , And Remember We will not tolerate any Sort of Political Discussions on Channel.</code></pre></div>But i want it to show me All this in Single NOtice... Like this<br><div class="codebox"><p>Code: </p><pre><code>-Pareshan- Welcome to Official Channel of DCS,KU! Please Follow the Rules on http://www.ku-dcs.rules.it , And Remember We will not tolerate any Sort of Political Discussions on Channel. Gen|us_Away You are the 4179th person to join us since March 23, 2003 . Gen|us-BaWT  0.01a</code></pre></div><p>Statistics: Posted by Guest — Fri Jul 11, 2003 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-11T06:51:38-04:00</updated>

		<published>2003-07-11T06:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23307#p23307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23307#p23307"/>
		<title type="html"><![CDATA[On Join Greet + Counter!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23307#p23307"><![CDATA[
ok, mixing the two scripts together (in a neat way :p):<div class="codebox"><p>Code: </p><pre><code>###configurations###set ojcham { {#ku-dcs} {Welcome to Official Channel of DCS,KU! Please Follow the Rules on http://www.ku-dcs.rules.it , And Remember We will not tolerate any Sort of Political Discussions on Channel.} } # Do you want to use notices, or private messages - 0=notice - anything else=private message # Notices goto the user, while private messages goto the channel set ojtom 0###code starts here###if {![info exists userinfover] } { putlog "*** Can't load Greet&amp;Counter2.0 -- Userinfo v1.01 required" return 0 }bind join - "*" oj:chan:message bind pub o|o !totaljoins pub:totaljoins bind dcc o|o totaljoins dcc:totaljoins bind join -|- * joincounter bind pub o|o !totalkicks pub:totalkicks bind dcc o|o totalkicks dcc:totalkicks bind kick -|- * kickcounter proc oj:chan:message {nick uh hand chan} { global ojcham ojtom if {[set id [lsearch -exact [string tolower $ojcham] [string tolower $chan]]] != -1} { if {$ojtom == "0"} { putserv "NOTICE $nick :[lindex $ojcham [expr $id + 1]]" } { putserv "PRIVMSG $chan :[lindex $ojcham [expr $id + 1]]" } } }set khits 0 set jhits 0 proc convert {number} { set one st set two nd set three rd set others th set numlength [string length $number] incr numlength -2 set num2ndchar [string index $number $numlength] switch $num2ndchar { 1 { set number $number$others } default { incr numlength set numchar [string index $number $numlength] switch $numchar { 1 { set number $number$one } 2 { set number $number$two } 3 { set number $number$three } default { set number $number$others } } } } return $number } proc dcc:totaljoins {hand idx arg} { global ojkdate if {$arg == ""} { set temp 0 set chan [lindex [console $idx] 0] set rchan [string tolower $chan] if {[file exists $rchan.jcount.txt]} { set o_fid [open "$rchan.jcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putdcc $idx "$temp people have visited $rchan $ojkdate" return 0 } else { putdcc $idx "Sorry, no one has visited $rchan yet" } } else { set temp 0 set rchan [string tolower $arg] if {[file exists $rchan.jcount.txt]} { set o_fid [open "$rchan.jcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putdcc $idx "$temp people have visited $rchan since ojkdate" return 0 } else { putdcc $idx "Sorry, no one has visited $rchan yet" } } } proc pub:totaljoins {nick host hand chan arg} { global ojkdate cccversion if { $arg == "" } { set temp 0 set rchan [string tolower $chan] if {[file exists $rchan.jcount.txt]} { set o_fid [open "$rchan.jcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putserv "PRIVMSG $chan :$temp people have visited $chan since $ojkdate $cccversion StaTs" return 0 } else { putserv "PRIVMSG $chan :Sorry, no one has visited $rchan yet" } } else { set temp 0 set rchan [string tolower $arg] if {[file exists $rchan.jcount.txt]} { set o_fid [open "$rchan.jcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putserv "PRIVMSG $chan :$temp people have visited $rchan since $ojkdate $cccversion StaTs" return 0 } else { putserv "PRIVMSG $chan :Sorry, no one has visited $rchan yet" } } } proc joincounter {nick host hand chan} { global jhits ojkdate ojswitch cccversion onjoin_chans botnick set temp 0 set rchan [string tolower $chan] if {[file exists $rchan.jcount.txt]} { set o_fid [open "$rchan.jcount.txt" "RDONLY"] gets $o_fid temp close $o_fid } else { set o_fid [open "$rchan.jcount.txt" "CREAT RDWR"] puts $o_fid temp close $o_fid } set jhits $temp incr jhits if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} { if {$ojswitch == "on"} {putserv "NOTICE $nick : $nick  You are the [convert $jhits] person to join us since $ojkdate . $cccversion "} } set o_id [open "$rchan.jcount.txt" "WRONLY"] puts $o_id $jhits close $o_id } proc dcc:totalkicks {hand idx arg} { global ojkdate cccversion if {$arg == ""} { set temp 0 set chan [lindex [console $idx] 0] set rchan [string tolower $chan] if {[file exists $rchan.kcount.txt]} { set o_fid [open "$rchan.kcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putdcc $idx "$temp people have been kicked from $rchan since $ojkdate $cccversion STaTs" return 0 } else { putdcc $idx "Sorry, no one has been kicked from $rchan yet" } } else { set temp 0 set nick [string tolower $arg] if {[validuser $nick]} { if {[getuser $nick XTRA KICKS] == ""} { putdcc $idx "$arg hasn't kicked anyone yet" } else { set tkicks [getuser $nick XTRA KICKS] putdcc $idx "$arg has kicked $tkicks lamers since $ojkdate $cccversion STaTs" } } else { putdcc $idx "I do not know who $arg is" } } } proc pub:totalkicks {nick host hand chan arg} { global ojkdate cccversion if {$arg == ""} { set temp 0 set rchan [string tolower $chan] if {[file exists $rchan.kcount.txt]} { set o_fid [open "$rchan.kcount.txt" "RDONLY"] gets $o_fid temp close $o_fid putserv "PRIVMSG $chan :$temp people have been kicked from $rchan since $ojkdate $cccversion STaTs" return 0 } else { putserv "PRIVMSG $chan :Sorry, no one has been kicked from $rchan yet" } } else { set temp 0 set nick [string tolower $arg] if {[validuser $nick]} { if {[getuser $nick XTRA KICKS] == ""} { putserv "PRIVMSG $chan :$arg hasn't kicked anyone yet $cccversion StaTs" } else { set tkicks [getuser $nick XTRA KICKS] putserv "PRIVMSG $chan :$arg has kicked $tkicks lamers since $ojkdate $cccversion StaTs" } } else { putserv "PRIVMSG $chan :I do not know who $arg is" } } } proc kickcounter {nick host hand chan knick reason} { global khits cccversion set temp 0 set rchan [string tolower $chan] if {[file exists $rchan.kcount.txt]} { set o_fid [open "$rchan.kcount.txt" "RDONLY"] gets $o_fid temp close $o_fid } else { set o_fid [open "$rchan.kcount.txt" "CREAT RDWR"] puts $o_fid temp close $o_fid } set khits $temp incr khits if {[validuser [nick2hand $nick $chan]]} { if {[getuser $hand XTRA KICKS] == ""} { setuser $hand XTRA KICKS 0 } set tkicks [getuser $hand XTRA KICKS] incr tkicks setuser $hand XTRA KICKS $tkicks } set o_id [open "$rchan.kcount.txt" "WRONLY"] puts $o_id $khits close $o_id }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 11, 2003 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-10T17:37:55-04:00</updated>

		<published>2003-07-10T17:37:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23283#p23283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23283#p23283"/>
		<title type="html"><![CDATA[On Join Greet + Counter!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23283#p23283"><![CDATA[
Hello All <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>i don't know how to script tcl.. isliye i need little help From you guyz or galz.... I need a Script on Which I can Set a on join Channel notice message for each Channel.. and at the end of message append the Join Count of that Channel...  <br><br>so if any one have such script then gimme... Or else i am attaching Code of 2 different Scriptss.. One is On join Noticer.. and other is kcick/join Counter... please merge them in the way I described...<br><br>Waiting for Positive Response...<br><br><strong class="text-strong">.:: Asad ul-Islam ::.</strong><br>=================================<br>on join message Script<br>=================================<br># Multi Onjoin Messages<br><br>set ojcham {<br>{#ku-dcs} {Welcome to Official Channel of DCS,KU! Please Follow the Rules on <a href="http://www.ku-dcs.rules.it" class="postlink">http://www.ku-dcs.rules.it</a> , And Remember We will not tolerate any Sort of Political Discussions on Channel.}<br>}<br><br># Do you want to use notices, or private messages - 0=notice - anything else=private message<br># Notices goto the user, while private messages goto the channel<br>set ojtom 0<br><br># THIS IS THE SCRIPT, SURE YA WANNA TOUCH<br><br>bind join - "*" oj:chan:message<br>proc oj:chan:message {nick uh hand chan} {<br>  global ojcham ojtom<br>  if {[set id [lsearch -exact [string tolower $ojcham] [string tolower $chan]]] != -1} {<br>    if {$ojtom == "0"} {<br>      putserv "NOTICE $nick :[lindex $ojcham [expr $id + 1]]"<br>    } {<br>      putserv "PRIVMSG $chan :[lindex $ojcham [expr $id + 1]]"<br>    }<br>  }<br>}<br><br><br>===============================<br>Counter Script<br>===============================<br>#Counter script<br><br>if {![info exists userinfover] } {<br> putlog "*** Can't load Counter 2.0 -- Userinfo v1.01 required"<br> return 0<br>}<br><br>bind pub o|o !totaljoins pub:totaljoins<br>bind dcc o|o totaljoins dcc:totaljoins<br>bind join -|- * joincounter<br>bind pub o|o !totalkicks pub:totalkicks<br>bind dcc o|o totalkicks dcc:totalkicks<br>bind kick -|- * kickcounter<br>set khits 0<br>set jhits 0<br><br>proc convert {number} {<br> set one st<br> set two nd<br> set three rd<br> set others th<br> set numlength [string length $number]<br> incr numlength -2<br> set num2ndchar [string index $number $numlength]<br> switch $num2ndchar {<br>  1 { set number $number$others }<br>  default {<br>   incr numlength<br>   set numchar [string index $number $numlength]<br>   switch $numchar {<br>    1 { set number $number$one }<br>    2 { set number $number$two }<br>    3 { set number $number$three }<br>    default { set number $number$others }<br>   }<br>  }<br> }<br> return $number<br>}<br><br>proc dcc:totaljoins {hand idx arg} {<br>  global ojkdate<br> if {$arg == ""} {<br>  set temp 0<br>  set chan [lindex [console $idx] 0]<br>  set rchan [string tolower $chan]<br>  if {[file exists $rchan.jcount.txt]} {<br>   set o_fid [open "$rchan.jcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putdcc $idx "$temp people have visited $rchan $ojkdate"<br>   return 0<br>  } else {<br>   putdcc $idx "Sorry, no one has visited $rchan yet"<br>  }<br> } else {<br>  set temp 0<br>  set rchan [string tolower $arg]<br>  if {[file exists $rchan.jcount.txt]} {<br>   set o_fid [open "$rchan.jcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putdcc $idx "$temp people have visited $rchan since ojkdate"<br>   return 0<br>  } else {<br>   putdcc $idx "Sorry, no one has visited $rchan yet"<br>  }<br> }<br>}<br><br>proc pub:totaljoins {nick host hand chan arg} {<br>global ojkdate cccversion<br> if { $arg == "" } {<br>  set temp 0<br>  set rchan [string tolower $chan]<br>  if {[file exists $rchan.jcount.txt]} {<br>   set o_fid [open "$rchan.jcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putserv "PRIVMSG $chan :$temp people have visited $chan since $ojkdate $cccversion StaTs"<br>   return 0<br>  } else {<br>   putserv "PRIVMSG $chan :Sorry, no one has visited $rchan yet"<br>  }<br> } else {<br>  set temp 0<br>  set rchan [string tolower $arg]<br>  if {[file exists $rchan.jcount.txt]} {<br>   set o_fid [open "$rchan.jcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putserv "PRIVMSG $chan :$temp people have visited $rchan since $ojkdate $cccversion StaTs"<br>   return 0<br>  } else {<br>   putserv "PRIVMSG $chan :Sorry, no one has visited $rchan yet"<br>  }<br> }<br>} <br>proc joincounter {nick host hand chan} {<br> global jhits ojkdate ojswitch cccversion onjoin_chans botnick<br> set temp 0<br> set rchan [string tolower $chan]<br> if {[file exists $rchan.jcount.txt]} {<br>  set o_fid [open "$rchan.jcount.txt" "RDONLY"]<br>  gets $o_fid temp<br>  close $o_fid<br> } else {<br>  set o_fid [open "$rchan.jcount.txt" "CREAT RDWR"]<br>  puts $o_fid temp<br>  close $o_fid<br> }<br> set jhits $temp<br> incr jhits<br>if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {<br> if {$ojswitch == "on"} {putserv "NOTICE $nick : $nick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  You are the [convert $jhits] person to join us since $ojkdate . $cccversion "}<br>  }<br> set o_id [open "$rchan.jcount.txt" "WRONLY"]<br> puts $o_id $jhits<br> close $o_id<br>}<br><br><br>proc dcc:totalkicks {hand idx arg} {<br>  global ojkdate cccversion<br>  if {$arg == ""} {<br>  set temp 0<br>  set chan [lindex [console $idx] 0]<br>  set rchan [string tolower $chan]<br>  if {[file exists $rchan.kcount.txt]} {<br>   set o_fid [open "$rchan.kcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putdcc $idx "$temp people have been kicked from $rchan since $ojkdate $cccversion STaTs"<br>   return 0<br>  } else {<br>   putdcc $idx "Sorry, no one has been kicked from $rchan yet"<br>  }<br> } else {<br>  set temp 0<br>  set nick [string tolower $arg]<br>  if {[validuser $nick]} {<br>   if {[getuser $nick XTRA KICKS] == ""} {<br>    putdcc $idx "$arg hasn't kicked anyone yet"<br>   } else {<br>    set tkicks [getuser $nick XTRA KICKS]<br>    putdcc $idx "$arg has kicked $tkicks lamers since $ojkdate $cccversion STaTs"<br>   }<br>  } else {<br>   putdcc $idx "I do not know who $arg is"<br>  }<br> }<br>}        <br><br>proc pub:totalkicks {nick host hand chan arg} {<br>  global ojkdate cccversion<br> if {$arg == ""} {<br>  set temp 0<br>  set rchan [string tolower $chan]<br>  if {[file exists $rchan.kcount.txt]} {<br>   set o_fid [open "$rchan.kcount.txt" "RDONLY"]<br>   gets $o_fid temp<br>   close $o_fid<br>   putserv "PRIVMSG $chan :$temp people have been kicked from $rchan since $ojkdate $cccversion STaTs"<br>   return 0<br>  } else {<br>   putserv "PRIVMSG $chan :Sorry, no one has been kicked from $rchan yet"<br>  }<br> } else {<br>  set temp 0<br>  set nick [string tolower $arg]<br>  if {[validuser $nick]} {<br>   if {[getuser $nick XTRA KICKS] == ""} {<br>    putserv "PRIVMSG $chan :$arg hasn't kicked anyone yet $cccversion StaTs"<br>   } else {<br>    set tkicks [getuser $nick XTRA KICKS]<br>    putserv "PRIVMSG $chan :$arg has kicked $tkicks lamers since $ojkdate $cccversion StaTs"<br>   }<br>  } else {<br>   putserv "PRIVMSG $chan :I do not know who $arg is"<br>  }<br> }<br>}<br><br>proc kickcounter {nick host hand chan knick reason} {<br> global khits cccversion<br> set temp 0<br> set rchan [string tolower $chan]<br> if {[file exists $rchan.kcount.txt]} {<br>  set o_fid [open "$rchan.kcount.txt" "RDONLY"]<br>  gets $o_fid temp<br>  close $o_fid<br> } else {<br>  set o_fid [open "$rchan.kcount.txt" "CREAT RDWR"]<br>  puts $o_fid temp<br>  close $o_fid<br> }<br> set khits $temp<br> incr khits<br> if {[validuser [nick2hand $nick $chan]]} {<br>  if {[getuser $hand XTRA KICKS] == ""} {<br>   setuser $hand XTRA KICKS 0 <br>  }<br>  set tkicks [getuser $hand XTRA KICKS]<br>  incr tkicks<br>  setuser $hand XTRA KICKS $tkicks<br> }<br> set o_id [open "$rchan.kcount.txt" "WRONLY"]<br> puts $o_id $khits<br> close $o_id<br>}<p>Statistics: Posted by Guest — Thu Jul 10, 2003 5:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
