egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need a simple script to can give op on join and on text

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Thu Jan 10, 2008 11:27 am    Post subject: need a simple script to can give op on join and on text Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Thu Jan 10, 2008 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Thu Jan 10, 2008 3:16 pm    Post subject: thanks Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Thu Jan 10, 2008 10:23 pm    Post subject: Reply with quote

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 Smile
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Fri Jan 11, 2008 8:56 am    Post subject: ok Reply with quote

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
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri Jan 11, 2008 10:11 am    Post subject: Reply with quote

seems like a pretty senseless script, since eggdrop already has an autoop function built-in with the +a flag Rolling Eyes
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Fri Jan 11, 2008 3:35 pm    Post subject: ive been reading Reply with quote

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. Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber