Skip to content
MSN

Codes Needed

A TG007 community discussion started by JamesG.

Discussion 19 posts
Page 1 of 1
Open
Topic #6657 · 19 published posts · 2,306 views

I need these admin commands, if its possible

 

`Deop (Nickname) even if there host or owner i would like it to deop them

`Ban (Nickname) and it kicks and bans them

`+o (Nickname)

`+q (Nickname

 

Somehow, I dont want to have to use the exact nickname and it will +q, +o, deop them, I've had a code like this before, example

 

A nickname could be Candy

 

and i could go `deop can and it would deop them, can this code be included in each code requested?

 

Thanks

K, these are all over the forums. Go search ..

on admin:TEXT:*`host *:#: { 
 var %n , %i , %l = 1 | while ($nick($chan,%l)) { 
   %n = $ifmatch 
   if ($2 isin %n) && (%n != $me) %i = $addtok(%i,%n,32) 
   inc %l 
 } 
 if ($numtok(%i,32) > 0) mode $chan $str(+o,$v1) %i 
 else msg $chan Sorry $nick $+ , no users have been found matching that phrase in their nickname. 
}

on admin:TEXT:*`peon *:#: { 
 var %n , %i , %l = 1 | while ($nick($chan,%l)) { 
   %n = $ifmatch 
   if ($2 isin %n) && (%n != $me) %i = $addtok(%i,%n,32) 
   inc %l 
 } 
 if ($numtok(%i,32) > 0) mode $chan $str(-o,$v1) %i 
 else msg $chan Sorry $nick $+ , no users have been found matching that phrase in their nickname. 
}

Just change the `triggers and the +o to +q and -o and -q

Partial nicks will work too.

That's way too big for op and deop o.O

look => HERE <=

Edited May 18, 2006 11:51 AM by Ronan

Pomperom

just use the $ial command thats what i use ;)

Its what I do.

That's what replied o.O

Pomperom

Hey i am wondering how would I stop the onjoin message from triggering my help menu?

 

Say the onjoin message is Welcome to HEREnorTHERE, type !help for your options.

 

Well this triggers my bot to spew the help commands, is there a way to halt the help menu from the channel?

Also need it to stop the bot from going ape crap for when a host joins. I have the hosts added to the access list as such, and the coding i am using prevents anyone from hosting up unless the actual script does it. So host joins, bot goes ballistic. I do this cause if the bot moofs hosts can still be hosts. Any help would be awesome, thanx for your time peeps.

on *:JOIN:#:{ if ($nick == $me) return | put commands here

on *:JOIN:#:{ if ($nick == $me) return | put commands here

Der me, i didnt even think of that....thanx boss.

NP, for your other command, could we see what you have right now? I'm kind of lost as to what you have.

i hope this is what you are looking for, it is called Wildcard commands

 

on admin:text:`k*:#:{ kick # $ial(* $+ $2- $+ *).nick kicked }
on admin:text:`+q*:#:{ mode # +q $ial(* $+ $2- $+ *).nick }
on admin:text:`-q*:#:{ mode # -q $ial(* $+ $2- $+ *).nick }
on admin:text:`+o*:#:{ mode # +o $ial(* $+ $2- $+ *).nick }
on admin:text:`Deop*:#:{ mode # -o $ial(* $+ $2- $+ *).nick }
on admin:text:w-v*:#:{ mode # -v $ial(* $+ $2- $+ *).nick }
on admin:text:w+v*:#:{ mode # +v $ial(* $+ $2- $+ *).nick }

 

this is my first time to post a reply for a request, i hope it is satisfying :D

alias inick { return $ial(* $+ $2- $+ *).nick }
on admin:text:*:#:{
 if ($1 == !+q) mode # $inick +q
 if ($1 == !+o) mode # $inick +o
 if ($1 == !kick) kick # $inick kicked
 if ($1 == !ban) access # add deny $inick | kick $inick banned
 else halt
}

Edited Jun 14, 2006 12:20 PM by Ronan

Pomperom

We arent talking about wildcards anymore ... scroll up and look at lostboyjoeys post.

I only looked at oosho's post , ah well doesn't matter :-)

Pomperom

may i ask why are y not talkin about wildcards anymore ^o)

Uh, cuz the subject changed?
:D ma bad

Isn't this...JamesG the "Microsoft Employee"? You'd think he would have searched first.

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

NP, for your other command, could we see what you have right now? I'm kind of lost as to what you have.

on *:OP:#:{
 if ($me isop $chan) {
   if ($opnick == $me ) halt
   if ($nick == $me) halt
   if ($level($$ial($nick)) isin admin owner) halt {
     ss mode # -o $nick | ss msg $chan Yo $nick only Golds can Host!      
     ss mode # -o $opnick | ss msg $chan Sorry $opnick but you were not Hosted by $me so umm, ... no.
     botjoin
   }
 }
}

I tried making this halt for onjoin hosts. I dont want them to be able to host others, and i want to keep the hosts in the access list incase the bot moofs. I guess i could just get rid of the msg parts, and change the onjoin.mrc file since this would de host them.