Skip to content
MSN

Dont know how or why...

A TG007 community discussion started by lostboyjoey.

Discussion 11 posts
Page 1 of 1
Open
Topic #4638 · 11 published posts · 1,257 views

I DELETED THIS CODING, cause I was toying with it somemore and if you messed with the -v (moved it or deleted it) it wrecks the room with modes. I had +mnutliwWk and a few others the status window said ?? is an unknown something.

Edited Aug 29, 2005 4:46 PM by lostboyjoey

Voice Code:

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

 

Spec Code:

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

 

Hope this does what your asking.

Edited Aug 30, 2005 5:27 AM by The Gate Keeper

Here's an alternative:

on admin:text:!spec*:#:{
 var %a = $ial(* $+ $2 $+ *,0).nick, %b = 1
 if (%a == 0) { msg # There are no nicknames matching your parameters | halt }
 while (%a >= %b) { mode # -v $ial(* $+ $2 $+ *,%b).nick | inc %b }
}

 

TGK your spec code does not work with this error:

* Too few parameters: $matchtok (line 19, TEST.mrc)

 

Clerix you code works. Ty both for helping.

 

remodified my code, try it.

i dont understand this hehe

Gate I think it might be me cause I cant get it to work and I know more often then not your coding works.

 

Clerix good coding but holy crap if ya mess up putting a nic in like I got smartass and tried !spec all it went ballistic specing peeps on and off even the bot.

arr i worked out the problem, my code should work fine now.

Awesome work boss!!!
I got smartass and tried !spec all it went ballistic specing peeps on and off even the bot.

Serves you right for being a smartass

Maybe I should've put a warning underneath it saying not moron-proof?

 

I take being called a moron a compliment, I have been called far worse. Its just when I get a new piece of coding I do everything insanely possible to try and mess it up. Just short of toying with the coding itself. I like to find bugs before someone else does and exploits them against me. Crap ask anyone that has EVER helped me...prolly tell ya I am a pain in the ass with "UT OH guess what I found". I am sorry if I offended ya in anyway, but I do thank you again for your help.