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

	<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>2012-03-05T17:04:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-03-05T17:04:30-04:00</updated>

		<published>2012-03-05T17:04:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98947#p98947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98947#p98947"/>
		<title type="html"><![CDATA[Re: mIRC invite script to TCL to load with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98947#p98947"><![CDATA[
<blockquote class="uncited"><div>...<br>It need to auto-join on invite. And I want it also enables the bMotion then.<br>...</div></blockquote><br>Experiment with this:<br><div class="codebox"><p>Code: </p><pre><code># March 5, 2012# http://forum.egghelp.org/viewtopic.php?t=18870# Be sure that bmotion is loaded before this script.# This script attempts to set user defined flag +bmotion.  If bmotion does not exist first, it is a Bad Thing.bind raw - invite the341set oldinvitetime [expr [unixtime] - 60]set oldchan ""proc the341 {from key text} {global botnick oldinvitetime oldchanset chan [string trimleft [lindex [split $text] 1] :]set nick [lindex [split $from !] 0]set invitetime [unixtime]set diff [expr $invitetime - $oldinvitetime]        if {$diff &lt; 60} {putserv "privmsg $nick :I was just invited to $oldchan. Please wait [expr 60 - $diff] seconds before inviting me again."         return 0         }            set oldinvitetime $invitetime      set oldchan $chanchannel add $chan     utimer 3 [list do_check $nick $chan]}proc do_check {nick chan} {global botnickif {[isop $nick $chan] } {putserv "privmsg $chan :Hi there I'm $botnick. I was invited by $nick. Try +commands for a list of my commands and +opcom for the list of commands who only can be used by an Op." channel set $chan +bmotion          } else {putserv "privmsg $chan :I was invited by a non-op. Please try again with an opped Nick."channel remove $chan          }}</code></pre></div>Tested very briefly, on just one server.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 05, 2012 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaKevinn]]></name></author>
		<updated>2012-03-05T14:35:35-04:00</updated>

		<published>2012-03-05T14:35:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98944#p98944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98944#p98944"/>
		<title type="html"><![CDATA[mIRC invite script to TCL to load with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98944#p98944"><![CDATA[
<blockquote class="uncited"><div>Since this is a TCL and eggdrop related forum, I honestly doubt there are many people that understand much of the mIRC scripting language, so it would help you a lot if you will tell us what happens inside it.<br><br>PS: Next time please post in <a href="http://forum.egghelp.org/viewforum.php?f=10" class="postlink">Script Requests</a> section. Thank you.</div></blockquote>Sorry for the wrong section.<br><br>The script is really simple. The bot will join on /invite nick #chan.<br>Then he looks if the inviter is operator or higher in the channel. If not, the bot will leave with this message: <blockquote class="uncited"><div>I was invited by a non-op. Please try again with a opped Nick.</div></blockquote> If the inviter is a operator, it will stay wth this message:<blockquote class="uncited"><div>Hi there im Bot. I was invited by DaKevinn. Try +commands for a list of my commands and +opcom for the list of commands who only can be used by a Op.</div></blockquote>If the bot twice is invited in 60 seconds, it will says: <blockquote class="uncited"><div> I was just invited to #chan.Please wait &lt;seconds after first invite&gt; before inviting me again.</div></blockquote>I just don't want to do .+chan #chan and .chanset #chan +bmotion, it must go automatic.<br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11933">DaKevinn</a> — Mon Mar 05, 2012 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-03-05T13:27:30-04:00</updated>

		<published>2012-03-05T13:27:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98943#p98943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98943#p98943"/>
		<title type="html"><![CDATA[mIRC invite script to TCL to load with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98943#p98943"><![CDATA[
Since this is a TCL and eggdrop related forum, I honestly doubt there are many people that understand much of the mIRC scripting language, so it would help you a lot if you will tell us what happens inside it.<br><br>PS: Next time please post in <a href="http://forum.egghelp.org/viewforum.php?f=10" class="postlink">Script Requests</a> section. Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 05, 2012 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaKevinn]]></name></author>
		<updated>2012-03-05T11:25:58-04:00</updated>

		<published>2012-03-05T11:25:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98942#p98942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98942#p98942"/>
		<title type="html"><![CDATA[mIRC invite script to TCL to load with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98942#p98942"><![CDATA[
Hello,<br><br>I have a mIRC script and want to load it with Eggdrop.<br>It need to auto-join on invite. And I want it also enables the bMotion then.<br><br>This is the mIRC script:<div class="codebox"><p>Code: </p><pre><code>on *:INVITE:#: {  if (!$hget(spamcheck,$chan)) {    hadd -mz spamcheck $chan 60    hadd -mu5 invite $chan $nick    join $chan  }  else {    .notice $nick 4,1I was just invited to $chan $+ .Please wait $duration($hget(spamcheck,$chan)) before inviting me again.  }}on *:JOIN:#: {  if ($nick == $me) &amp;&amp; ($hget(invite,$chan)) {    $+(.timer_checkop_,$chan) 1 1 check_op $hget(invite,$chan) $chan  }}alias check_op {  if ($1 isop $2) || ($1 ishop $2) {    msg $2 4,1Hi there im $me $+ . I was invited by $1 $+ .Try +commands for a list of my commands and +opcom for the list of commands who only can be used by a Op.  }  else {    part $2 I was invited by a non-op. Please try again with a opped Nick.  }}</code></pre></div>I would love if someone translate it for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Greets DaKevinn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11933">DaKevinn</a> — Mon Mar 05, 2012 11:25 am</p><hr />
]]></content>
	</entry>
	</feed>
