Skip to content
MSN Addons

one $m Join Scan trusted owners

A TG007 community discussion started by bonTy.

Discussion 32 posts
Page 1 of 2
Open
Topic #7057 · 32 published posts · 5,635 views

Hey guys,

If someone can help, I want a code which is on $me join scan the current owners if there is an owner not in my trusted text file

I want my script to kick him , I m using vincula neo and am in msn groups

thanks in advance

Edited Jul 22, 2006 11:51 AM by bonTy

mmm im not great with txt, but ill try... ca u post how u add owners

I add trusted bots in text file

and I add owners and admins $nick,1 in $ulist

here is the halt formate I use and that am going to use in the code I am requesting here

if ($read(~script.trust.txt,s,$msngkshort($nick))) halt

if ($findtok(Admin Leader Adminleader,$level($address($opnick,1)),32)) halt

Hey Warrior,

Thanks for your code mate, I took your code added the 2 halt lines and it didn't work

alias scanowners {
  var %s = 1
  :next
  if ($nick(#,%s) isowner #) {

    if (!$read($ial($nick(#,%s)).addr) {
      if ($read(~script.trust.txt,s,$msngkshort($nick))) halt
      if ($findtok(Admin Leader Adminleader,$level($address($opnick,1)),32)) halt
      access # add deny $ial($nick(#,%s)).addr 5
      access # clear owner
      access # add owner $ial($me).addr 0
      kick # $nick(#,%s) [No unauthorized owners!!]
    }
  }
  inc %s
  if (%s <= $nick(#,0)) goto next
}

on *:JOIN:#: {
  if ($nick == $me) scanowners
}

 

and I m getting this error in status window

%#G_egyptionlobby No such nick/channel

Thanks in advance!

Edited Jul 22, 2006 2:10 PM by bonTy

That is because a piece of the code was missing, lol. Sorry about that.

alias scanowners {
  var %s = 1
  :next
  if ($nick(#,%s) isowner #) {
    if (!$read(accessowners.txt,s,$ial($nick(#,%s)).addr)) {
      access # add deny $ial($nick(#,%s)).addr 5
      access # clear owner
      access # add owner $ial($me).addr 0
      kick # $nick(#,%s) [No unauthorized owners!!]
    }
  }
  inc %s
  if (%s <= $nick(#,0)) goto next
}

on *:JOIN:#: {
  if ($nick == $me) scanowners
}

Edited Jul 22, 2006 2:12 PM by Warrior124

Not working :(

and I want to add those lines in the code

if ($read(~script.trust.txt,s,$msngkshort($nick))) halt

if ($findtok(Admin Leader Adminleader,$level($address($opnick,1)),32)) halt

the ~script.trust.txt for bots the others for lvls

 

alias scanowners {
  var %s = 1
  :next
  if ($nick(#,%s) isowner #) {
    if (!$read((~script.trust.txt.txt,s,$ial($nick(#,%s)).addr)) {
      access # add deny $ial($nick(#,%s)).addr 5
      access # clear owner
      access # add owner $ial($me).addr 0
      kick # $nick(#,%s) [No unauthorized owners!!]
    }
  }
  inc %s
  if (%s <= $nick(#,0)) goto next
}

on *:JOIN:#: {
  if ($nick == $me) scanowners
}

I dunno why you would want to add a $findtok to a read .. your just making things way more complicated then they have to be. $findtok is actually pretty useless in a read, unless your reading through a real mulitple txt file, or a completely gianormous list. Just use $ulist. /help $ulist.

Didn't work too I edited the code Removed the extra .txt and still didn't work

on *^@:JOIN:#:{

if ($nick = $mnick) {

var %x = 1

while (%x <= $nick(#,0,q)) {

if (!$read(Filename.txt,w,$ial($nick(#,%x,q).addr)) {

.raw access # clear owner $lf access # clear host $lf access # clear voice

.raw access # add deny $ial($nick(#,%x,q)).addr $lf access # add owner $ial($mnick).addr

.raw kick # $nick(#,%x,q) $+(:,Not Listed!)

}

inc %x

}

}

}

:notworking::(

ok i'm sure u could of checked for Brackets missing etc.. lol .. i pointed u in the right way ..

 

on *^@:JOIN:#:{
  if ($nick = $mnick) {
    var %x = 1
    while (%x <= $nick(#,0,q)) {
      if (!$read(Filename.txt,w,$ial($nick(#,%x,q).addr))) {
        .raw access # clear owner $lf access # clear host $lf access # clear voice
        .raw access # add deny $ial($nick(#,%x,q)).addr $lf access # add owner $ial($mnick).addr
        .raw kick # $nick(#,%x,q) $+(:,Not Listed!)
      }
      inc %x
    }
  }
}

 

try that .. cant see why it wouldnt work..

 

and please tell me u did remember to change the Filename.txt to what ever yours is .. ?

Edited Jul 22, 2006 9:11 PM by Entox&#124;cated

The first link will take you to an auto lister I made.

 

http://www.tg007.net/downloadsmsn/pafiledb...id=944&idP=

 

The second link will take you to a scanner for that particular auto lister.

 

http://www.tg007.net/downloadsmsn/pafiledb...id=954&idP=

 

I could take a few and modify it to kick anyone not on the owner or host lists as it doesnt do that right now.

Edited Jul 22, 2006 9:52 PM by Mail

 

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock".-Will Rogers

Hey Entox|cated,

Thanks for your code..yes sure I changed the file name lol..but its not working still..:(

 

Hey MAIL..

your code is pretty nice man..but it's so complicated for what I want and has too much option I won't use it..Thanks MAIL

I am just looking for a simple code when I join my room and if I am owner I want to check the owners and kick who is not in my admin lvl and not in my trusted file

maybe its the way how I add ppl in txt file ?

here it is..

96C951AD885D2831 - nickname

Thanks in advance guys..

Edited Jul 23, 2006 7:58 AM by bonTy

from the look of it u dont use $ial($nick).addr u use $ial($nick).user .. which could be why mine wasn't working..

 

on *^@:JOIN:#:{
  if ($nick = $mnick) {
    var %x = 1
    while (%x <= $nick(#,0,q)) {
      if (!$read(Filename.txt,w,$ial($nick(#,%x,q)).user)) {
        .raw access # clear owner $lf access # clear host $lf access # clear voice
        .raw access # add deny $ial($nick(#,%x,q)).addr $lf access # add owner $ial($mnick).addr
        .raw kick # $nick(#,%x,q) $+(:,Not Listed!)
      }
      inc %x
    }
  }
}

Edited Jul 23, 2006 12:14 PM by Entox&#124;cated

not working :(

not working :(

 

Why don't u use simply %var

 

like

set %op. $nick blah blah

 

and on *:join:if ($nick isop $chan) && (!%op) { kick # $nick | echo -a $nick isn't in list }

 

that just for example, u have to perform it :)

 

but like that it's simple and should work

Edited Jul 23, 2006 2:18 PM by Orus

Will ya do it for me ?

Will ya do it for me ?

 

start a code and i'll help u ....

 

 

 

Wow, why would you use a variable for multiple people? That'd make your variables look messy, most likely incomplete, and it's a waste of space isnt it? You'd be better off making a txt or ini file .. but, if some of the code doesnt work, check your status window for error messages, and post em here. The code Entox|cated posted works fine.
Edited Jul 23, 2006 4:22 PM by X-Fusion

Hey X-Fusion,

About Entox|cated Code Its not working and not giving any errors

I removed the perfix *^ tried and I got this error

%#G_egyptionlobby No such nick/channel

played again with the when I use the *^@ I get nothing when I remove 1 on those three perfixed I get the same error

%#G_egyptionlobby No such nick/channel

I tried .addr no error I try .user I get sam error

Edited Jul 23, 2006 5:05 PM by bonTy