[request] OP if no Q or nobody has

Do you have script in mind but no ability to make it, type in what it should do, and you might be lucky.

[request] OP if no Q or nobody has

Postby jonlar » Wed Jul 23, 2008 1:50 am

Hi everybody.
I would like to request a script for Quakenet, that checks every X Minute if Q is in Channel or somebody has OP in a channel and if no Q is in Channel or nobody got op, it request it for, well, itself or somebody that also stays in chan.
I hope everybody understands what i mean.
Thx and good Night
jonlar
 

Re: [request] OP if no Q or nobody has

Postby vodkaplayer » Wed Jul 23, 2008 1:24 pm

it is pretty useless jonlar
if you don't know, there is something called 'TOP5' on quakenet

only people being in the top5 list may be opped
a maximum of 5 OPs may be opped...
regardless who type the requestop cmds.
you may type /msg R requestop #chan
and see the server op other people than you
because they are in the TOP5 and not you.

but if you rly want to do it.
you must know all R's reply and catch them in

on *:notice:*:?: {
if ($nick === R) && ($address == request@request.quakenet.org) {
do stuff...

instead using a on join event, you could use

raw 366:*: {
;to check if there are no ops and no Q bot
if (!$nick($2,0,o)) && (Q !ison $2) {
.msg R REQUESTOP $2
}
}


well try your self to make it before asking someone to write you a whole script :(
vodkaplayer
 

Re: [request] OP if no Q or nobody has

Postby jonlar » Wed Jul 23, 2008 3:38 pm

vodkaplayer wrote:it is pretty useless jonlar
if you don't know, there is something called 'TOP5' on quakenet

only people being in the top5 list may be opped
a maximum of 5 OPs may be opped...
regardless who type the requestop cmds.
you may type /msg R requestop #chan
and see the server op other people than you
because they are in the TOP5 and not you.

but if you rly want to do it.
you must know all R's reply and catch them in

on *:notice:*:?: {
if ($nick === R) && ($address == request@request.quakenet.org) {
do stuff...

instead using a on join event, you could use

raw 366:*: {
;to check if there are no ops and no Q bot
if (!$nick($2,0,o)) && (Q !ison $2) {
.msg R REQUESTOP $2
}
}


well try your self to make it before asking someone to write you a whole script :(
#


Well maybe i worte it wong. my english isnt the best. but at least i try. The Prob is, that i have a chan with q in. I would like to get this chan but with me there are 7 more persons waiting for leaving q. So i would JUST get a real chance to get OP after q left to reqeust Q again.
Thats why i want to request!!!! (thats what i thought this Part of the Forum is called so - NON Scripter can ask for) a script that checks the status and give the request command. Well anyway. Thx for the Help :|
jonlar
 

Re: [request] OP if no Q or nobody has

Postby vodkaplayer » Wed Jul 23, 2008 4:14 pm

well you could try this code
it will check evey 30 secondes
if there are no op and no Q bot
if so, /msg R REQUESTOP #chan

so you will not flood your self or R bot even if you check every 1 sec ^^

Code: Select all
on *:JOIN:#chan: {
  if ($nick == $me) {
    if (!$timer(reqop)) { timerreqop 0 30 /requestop $chan }
  }
}
on *:PART:#chan: {
  if ($nick == $me) {
    if ($timer(reqop)) { timerreqop off }
  }
}   
alias requestop {
  if (!$nick($1,0,o)) && (Q !ison $1) {
    msg R REQUESTOP $1
  }
}
on *:SERVEROP:#chan: {
  if ($opnick == $me) { echo # WHOOHOO I got OP | /beep 50 }
  else { echo # HOLLY FUCK :( }
}



havn't tested it, but it should work fine...
vodkaplayer
 

Re: [request] OP if no Q or nobody has

Postby jonlar » Wed Jul 23, 2008 4:22 pm

Thank you very very much
jonlar
 

Re: [request] OP if no Q or nobody has

Postby vodkaplayer » Wed Jul 23, 2008 4:25 pm

YOU'R WELCOME xD
vodkaplayer
 

Re: [request] OP if no Q or nobody has

Postby jonlar » Wed Jul 23, 2008 4:57 pm

One more question. is it possible to make a trigger like !requestop #requestchan - So u dont need to insert the chan direktly in the script
jonlar
 

Re: [request] OP if no Q or nobody has

Postby vodkaplayer » Wed Jul 23, 2008 5:03 pm

yes...
basically joinig the channel should be enough
another way is

Code: Select all
alias requestop {
  if (!$timer(reqop)) { timerreqop 0 30 requestop $iif($1,$1,$active) }
  if (!$nick($1,0,o)) && (Q !ison $1) {
    msg R REQUESTOP $1
  }
}


so the trigger is /requestop #chan

that's all.
vodkaplayer
 


Return to Mirc Scripting Request

Who is online

Users browsing this forum: No registered users and 0 guests