mIRC Home    About    Download    Register    News    Help

Print Thread
#110274 06/02/05 12:14 AM
A
alhammer
alhammer
A
Access Levels
.Add
..Level 1 - Regular: /auser 1 $address($1,1)
..Level 5 - Asst. Operator: /auser 5 $address($1,1)
..Level 10 - Operator: /auser 10 $address($1,1)
.Remove: /rauser $address($1,1)

I want to be able to have 1 remove button, insted of making one for each level. Can you make a button that will remove any user with that address?

#110275 06/02/05 04:43 AM
A
alhammer
alhammer
A
Hello again. I hope i'm not bugging anybody. By the way, all of you that have replied with solutions to my problems, i have logged your name, and if for any STRANGE :tongue: reason my script goes public, your names will be in it. If you object to this please let me know. I just dont want anybody to feel like im ripping their code. Although, I assume if you post it you are agreeing to share it.

I have yet another question. Does anyone know of how to be able to clear the access (bans, ect.) with a command. I got this code but it doesn't work:
Code:
 on +10:TEXT:!clear access*:#:/access $chan clear  
Any ideas? Also, if anyone have an answer to my first post on this thread, let me know. THNAKS AGAIN! grin

#110276 06/02/05 06:35 AM
R
ricky_knuckles
ricky_knuckles
R
there is no catch all clear
you can do /access #channel clear host,owner,etc
but nothing that does it all you have to specify the type
what you may want to consider doing is writing an alias that combines all of these commands
Code:
alias clear {
/access # clear host
/access # clear owner
etc.
}

if u want to clear all
if u want to clear a paticular one
an are just grappling with how to do it with a text event thats different
im going to use !clear just to be nice to the user
Code:
on *:text:!clear *:#:{
if ($ulevel == 10) {
access $chan clear $$2- 
}
}

$$2- takes anything they say after !clear and they have to say something or it halts
so they say !clear deny
and it clears the denys

@:your first post
you had the right idea
just the wrong command
its /ruser not /rauser or whatever the hell you had
apart from that change your all intensive purposes remove button should work

p.s. I script under the name ReIgN wink

Last edited by ricky_knuckles; 06/02/05 06:56 AM.
#110277 06/02/05 02:26 PM
A
alhammer
alhammer
A
I feel stupid about that remove btton. Didn't look it over well enough. However, the code you gave me...
Code:
 on *:text:!clear *:#:{
  if ($ulevel == 10) {
    access $chan clear $$2- 
  }
} 

...doesn't work. I recive this error: *** #test: Cannot send to channel. (I am in channel #test) <-- You probably could have figured that out :P Any ides? confused

#110278 06/02/05 07:26 PM
R
ricky_knuckles
ricky_knuckles
R
umm yes
well a couple things
you get that if a channel is moderated and your going to want to test this where you and your bot are ops obviously
thats all i can think of try mode #test -m
and just know in case you didnt that you cant trigger text on yourself.
you will need to run 2 copies of mirc to test this
goodluck
if u need more help i dont know how much ill be around but im on
chat.ircx-city.net
#sensei, #mirc,#funzone
if u want swing by and ill try and help you there


Link Copied to Clipboard