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 

Q Request Script

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


Joined: 25 Sep 2009
Posts: 1

PostPosted: Fri Sep 25, 2009 2:47 pm    Post subject: Q Request Script Reply with quote

Hello,

Could someone make Q Request script?

When you write on channel eg. "-Q" bot tryes to get Q...
Bot checks is there is already Q
Bot says if he have no ops..
Requester hasto have ops on requestable channel.
If there isnt enought users, then it warns...

Script checks all reqruments and then requests Q, 30min delay.
When Q coming, Bot automatically sets +mop to requester.

I tryed to make this kind script, but it didnt work, so i deleted it, and now i loved if someone could do this kind script.
Back to top
View user's profile Send private message
Getodacul
Voice


Joined: 07 Jun 2007
Posts: 20

PostPosted: Fri Oct 16, 2009 2:42 pm    Post subject: Reply with quote

You need something like:
Code:

bind pub - "request" request:q
bind pub - "!request" request:q
bind pub - "!Q" request:q

proc request:q { nick uhost hand chan text } {
global owner botnick
 if {[onchan Q $chan]} {return 0}
 if {[botisop $chan] == 0} {
 puthelp "NOTICE $nick :I dont have ops!"
 return 0
 }
 if {([matchattr $hand o|o] || [isop $nick $chan])} {
 putserv "PRIVMSG R :requestbot $chan"
 if {[onchan Q $chan]} {
 putserv "PRIVMSG Q :chanlev $chan $nick +mop"
 puthelp "NOTICE $nick :$nick, you are master on $chan now!"
 return 0
  }
 }
}

It's not tested but should work. I hope! Smile
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