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 

Basic aop Script

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


Joined: 05 Nov 2005
Posts: 15

PostPosted: Tue Nov 08, 2005 4:20 am    Post subject: Basic aop Script Reply with quote

Hey i just need a basic aop script so i can do

!aop nick

and it adds them to Auto Op in that CHANNEL

and does it by ident!
Back to top
View user's profile Send private message
Linux
Halfop


Joined: 04 Apr 2004
Posts: 71
Location: Under The Sky

PostPosted: Tue Nov 08, 2005 4:51 am    Post subject: Reply with quote

Did you even bother to search at TCL Archive? Smile
_________________
I'm an idiot, At least this one [bug] took about 5 minutes to find...
Back to top
View user's profile Send private message
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Tue Nov 08, 2005 5:44 am    Post subject: Reply with quote

Or use forum search function
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Tue Nov 08, 2005 5:54 am    Post subject: Reply with quote

i cant find anything that basic...
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Nov 08, 2005 9:34 am    Post subject: Reply with quote

Code:
bind pub o|o !aop op:user

proc op:user {nick uhost hand chan arg} {
    set thenick [lindex [split [string trim $arg]] 0]
    if {![isop $thenick $chan]} { pushmode $chan +o $thenick }
}

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Wed Nov 09, 2005 2:28 am    Post subject: Reply with quote

Alchera how could i delop then Razz?
Back to top
View user's profile Send private message
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Wed Nov 09, 2005 2:33 am    Post subject: Reply with quote

the code doesent work btw Sad
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Nov 09, 2005 10:48 am    Post subject: Reply with quote

anixion wrote:
the code doesent work btw Sad

Worked for me more than once. It checks for the 'o' flag btw.

Code:
!aop <nick>

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Thu Nov 10, 2005 1:27 am    Post subject: Reply with quote

Do u just add that into a txt and save it as aop.tcl then add it to my scripts?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Nov 10, 2005 5:21 am    Post subject: Reply with quote

anixion wrote:
Do u just add that into a txt and save it as aop.tcl then add it to my scripts?

Don't forget the source line in the conf file.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Fri Nov 11, 2005 2:28 am    Post subject: Reply with quote

Ok this is what is happening..

(17:27:22) (@pES`anixion) !aop KING|coMA
(17:27:24) functionzer0 sets mode (+o KING|coMA)
(17:27:27) KING|coMA has left #hahahah (~ScottyG_@c211-28-127-199.eburwd3.vic.optusnet.com.au)
(17:27:27) KING|coMA has joined #hahahah (~ScottyG_@c211-28-127-199.eburwd3.vic.optusnet.com.au)

then it doesent reop them
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Nov 11, 2005 6:38 am    Post subject: Reply with quote

anixion, if you mean you want the bot to autoop him then use
Code:
bind pub o|o !aop op:user

proc op:user {nick uhost hand chan arg} {
    set thenick [lindex [split [string trim $arg]] 0]
    setuser autoops HOSTS $thenick![lindex [split [maskhost [getchanhost $thenick $chan]] !] 1]
}

and in dcc:
Quote:
.+user autoops
.chattr autoops +o #yourchannel
.chpass autoops kasjdsj
.chanset #yourchannel +autoop

the script will add nick!ident@*.domain.net to the autoops handle. This might be insecure, so I suggest you use some autoop script with enough security from the Tcl archive.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Nov 11, 2005 9:40 am    Post subject: Re: Basic aop Script Reply with quote

anixion wrote:
Hey i just need a basic aop script so i can do

!aop nick

and it adds them to Auto Op in that CHANNEL

and does it by ident!

You made a request. You got it!
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
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