Jump to content

help


Murda

Recommended Posts

hey guys

 

need some real help here. im not the best of scripters but i need some help on an auto host. the thing is, i was wondering if it was possible to do a little code which worked when the person who's hostmask is added to the userlist in mirc, when he joins, he types the correct password in a whisper to get his +h. now ive asked round but no one seems to reall know so i thought id ask here see if anyone had the code or had any idea's oops.gif

Link to comment
Share on other sites

i'll have a crack at this. Haven't actually been around IRCD but it should be the same thing.

 

replace the things in brackets with what you want it as

 

on <level>:TEXT:*:?: { var %t $strip($1-) | if (%t == %roompass) { /mode +h $nick } }

 

remember to put that into remotes, and to set %roompass in your variables as what you want the speicial code to be. so in the variables, it would be something like %roompass 12345

 

it seems very basic, but from what i can, it does answer your question.

 

Link to comment
Share on other sites

  • 4 weeks later...

on *:text:*:?:{
 if ($strip($1-) == <password>) {
   var %i = 1
   while (%i <= $comchan($nick,0)) {
     if ($comchan($nick,%i).op) { mode $comchan($nick,%i) +o $nick }
     inc %i
   }
 }
}

 

I presume you wanted to give them an @ (+o, operator)

Edited by tidy trax
Link to comment
Share on other sites

on thiernick:TEXT:thierpass:?:{ /mode $comchan($nick,1) +o $nick | closemsg $nick }

this would make it so they can also each have thier own pass. that way you can ramove one person without having to change the pass for the whole room. just add a new line for each user

Edited by Rudeboy
Link to comment
Share on other sites

on *:text:*:?:{
 if ($strip($1-) == <password>) {
   var %i = 1
   while (%i <= $comchan($nick,0)) {
     if ($comchan($nick,%i).op) { mode $comchan($nick,%i) +o $nick }
     inc %i
   }
 }
}

only problem with the code tidy gave , is if you were in say 2 rooms and the other person was too, it would host them in both rooms

 

apart from that the code should work

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...