Skip to content
MSN

Trusted Owners and Hosts

A TG007 community discussion started by rumba.

Discussion 5 posts
Page 1 of 1
Open
Topic #5261 · 5 published posts · 554 views

here is the code iam using on my script to add trusted owners and hosts

trustedowner code

menu nicklist {
 .TrustedOwner
 ..Add:{ write text\regown.txt $$ial($$1 $+ *,1).addr | msg # $$1 you have been added to my (*)Trusted Owner(*) List. }
 ..Remove:{ write -ds $+ $$ial($$1 $+ *,1).addr text\regown.txt | msg # $$1 you have been removed from my :[Trusted Owner:[ List. }
 ..registered
 ...$iif($group(#trustedowner) == on,$style(2),$style(0)) On: .enable #trustedowner | echo -a 0,12Trusted Owners $+ 0,94 On | /msg # :[ Trusted Owner ON :[
 ...$iif($group(#trustedowner) == off,$style(2),$style(0)) Off: .disable #trustedowner | echo -a 0,12Trusted Owners $+ 0,4 Off | /msg # :[ Trusted Owner OFF :[
}

#trustedowner on
on ^*:owner:#:{ 
 if ($nick == $me) { .halt } 
 if ($level($address($nick,6)) == admin) { .halt } 
 if ($level($address($nick,6)) == Owner) { .halt } 
 if ($$ial($nick $+ *,1).addr == $read(text\regown.txt, w,* $+ $$ial($nick $+ *,1).addr $+ * )) halt   
 else mode # -q $nick
 msg # sorry $nick .. You're not regisered :)
}

trusted host code

menu nicklist {
 Trusted Hosts
 .Add:{ write text\reghost.txt $$ial($$1 $+ *,1).addr | msg # $$1 you have been added to my (*)Registered Host(*) List. }
 .Remove:{ write -ds $+ $$ial($$1 $+ *,1).addr text\reghost.txt | msg # $$1 you have been removed from my :[Registered Host:[ List. }
 .registered
 ..$iif($group(#reghost) == on,$style(2),$style(0)) On: .enable #reghost | echo -a 0,12Registered Hosts $+ 0,94 On | /msg # :[ Registered Host ON :[
 ..$iif($group(#reghost) == off,$style(2),$style(0)) Off: .disable #reghost | echo -a 0,12Registered Hosts $+ 0,4 Off | /msg # :[ Registered Host OFF :[
}

#reghost on
on *:OP:#:{
 if ($nick == $me) { .halt } 
 if ($level($address($nick,6)) == Host) { .halt }  
 if ($$ial($opnick $+ *,1).addr == $read(text\reghost.txt, w,* $+ $$ial($opnick $+ *,1).addr $+ * )) halt
 mode # -o $opnick
 msg # sorry $opnick .. You're not regisered :)
}

 

Mr problem is the script dont do halt on admin join or on owner join dunno why!

seconed i want to do something plz i want to make this for global and local i mean i can add trusted owner for some room and wont enter owner for other room also for the same for trusted hosts how can i make it?

also plz i need to add scanner it scan the room for any nick listed on the trust levels

thx alote

heyyyyy :oops: no one answerd me iam a biginner guys and neeeds help

global and local just add them to separate lists or someit

 

try taking the . away from halt

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

from what haggis graciously suggested :rolleyes:

on to:join:#:{ mode # +q $nick }
on th:join#:{ mode # +o $nick }

menu nicklist {
trusted lists:{
.$iif($level($address($nick,1)) == to,$styke(3)) trusted owner:{
if ($level($address($nick,1)) == to) { ruser to $address($nick,1) }
elseif ($level($address($nick,1)) != to) { auser to $address($nick,1) }
}
.$iif($level($address($nick,1)) == th,$style(3)) trusted host:{
if ($level($address($nick,1)) == th) { ruser th $address($nick,1) }
elseif ($level($address($nick,1)) != th) { auser th $address($nick,1) }
}
}

should work...

People are like slinkies; they're generally boring until you push them down stairs

Thx Angelia for ur help :) also some one helped me on rumbaar here is da link

Trusted Owners and Hosts Global and local