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
A TG007 community discussion started by bonTy.
mmm im not great with txt, but ill try... ca u post how u add owners
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!
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
}
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.
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
}
}
}
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 .. ?
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.
"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..
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
}
}
}
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
Will ya do it for me ?
start a code and i'll help u ....
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
Sign in to reply or start a new topic where your account has permission.