| View previous topic :: View next topic |
| Author |
Message |
noobman Voice
Joined: 23 Nov 2007 Posts: 29
|
Posted: Thu Jan 10, 2008 11:27 am Post subject: need a simple script to can give op on join and on text |
|
|
| Hi, i'd need a simple script that new players that join my channel get +o, and all who text in the channel or action in the channel (/ame) and still dont have +o, then get a notice or a privmsg with a greeting and telling them they if they rejoin, they can get +o. Thanks. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Thu Jan 10, 2008 2:17 pm Post subject: |
|
|
Sounds like you want a channel where anyone can take it over..
| Code: | bind JOIN * "#mychannel *" lame:op
proc lame:op {n u h c} {
pushmode $c +o $n
} |
|
|
| Back to top |
|
 |
noobman Voice
Joined: 23 Nov 2007 Posts: 29
|
Posted: Thu Jan 10, 2008 3:16 pm Post subject: thanks |
|
|
| no, because i have secure tcl bots, but i need the on text and on action, to privmsg them and remember them they can get +o making /hop and that ignore to opers because they already have @ . thanks |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Thu Jan 10, 2008 10:23 pm Post subject: |
|
|
use wasop | Code: | bind JOIN * "#mychannel *" lame:op
proc lame:op {n u h c} {
if {[wasop $n $c]} {return}
pushmode $c +o $n
} | That was if someone rejoins after being op'ed it wont reop them. But this also wont reop anyone that was an op. untill wait split is over. pretty tricky, but simple solution  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
noobman Voice
Joined: 23 Nov 2007 Posts: 29
|
Posted: Fri Jan 11, 2008 8:56 am Post subject: ok |
|
|
yes , but that scripts are not what i request.
i need a script that :
1) on join = give +o (and have an option to can give +o only to authed users, like ?autoop on , ?autoop auth on , and to can turn it off ?autoop off , ?autoop auth off.
2) on text = give a notice that says : Remember that if you rejoin the channel you can get +o and ignores him for 1800 seconds (but only for non op users, i mean that ignores the text of opers because they already have +o.
3) on action = the same as the option > 2) < but with actions "/ame".
it must not notice to who has already +o.
its for quakenet network.
Thanks a lot. |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri Jan 11, 2008 10:11 am Post subject: |
|
|
seems like a pretty senseless script, since eggdrop already has an autoop function built-in with the +a flag  _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
noobman Voice
Joined: 23 Nov 2007 Posts: 29
|
Posted: Fri Jan 11, 2008 3:35 pm Post subject: ive been reading |
|
|
its a good manual, its dificult for me, because i know how to modify and to set eggdrops with tcl, but i dont understand what they say but now i think im learning a bit about tcl.
Then i want to ask if what is think is good. Im trying to make that the bot ignores to users whose have +o and only notice to persons who text in channel and still dont have +o :
if {[isop $chan] == 1} {
} else {
bind pubm - * pubm:*
proc pubm:* {nick host handle chan text} {
putserv "NOTICE $nick : Hello, remember that if you still dont have +o, just rejoin the channel and get it, thanks to join us! "
}
}
i dont know if what ive made is a good script, if you could modify my script to make it perfectly, thanks. I'd want that after the notice, then the bot ignores the nick for 3200 seconds, but i still dont know how to set that.  |
|
| Back to top |
|
 |
|