Skip to content
MSN

Help in owner pro code

A TG007 community discussion started by bonTy.

Discussion 9 posts
Page 1 of 1
Open
Topic #3672 · 9 published posts · 1,008 views

#TrustedOwners on 
on @*:owner:#: { 
 if ($read(~script.trust.txt,s,$msngkshort($nick)) || ($nick == $me)) halt 
 if ($level($address($nick,1)) == Admin) { .halt } 
 if ($level($address($nick,6)) == Leader) { .halt } 
 if ($level($address($nick,1)) == Leader) { .halt } 
 if (bio !isin $chan) { .halt } 
 if ($nick == $opnick) { 
   .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Unknown owner! not in my safe list! 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD DENY address($nick,1) 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) Clear Access 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD OWNER address($nick,1) 
 } 
} 
#TrustedOwners end 

Guys I wrote a small code as an owners protection

but somthing is wrong with the code..

It kicks yes..

but when it comes to the access adding or deleting its not working !!

(Owner-Action)  °»Ã‰onty«°    Has Made  °»Ã‰onty«°    An Owner

(Kick) Host  Leopard  kicked  °»Ã‰onty«°  *!*89B2C59A0@GateKeeperPassport out of the chat room at 06:42:12 pm 31/05/2005 : Unknown owner! not in my safe list!

* Couldn't add access, Access is not a valid level

* Couldn't do the command, duplicate access entry

* Couldn't do the command, duplicate access entry

you can not add deny $nick after kicking it because the bot will not be able to find the $nick after the kick.

 

you can do one of two: 1- add deny then kick, 2- set variavle for the $nick and $address then use the variable to deny after the kick.

 

EDIT: how you kick the nick then try to add owner [ .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD OWNER address($nick,1) ] for it ????????????? do you mean $address($me,1) ????

 

and why you add deny [ .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD DENY address($nick,1) ] then clear access ?

 

steps should be like this:

1- clear access

2- add deny nick

3- add owner access $address($me,1) before kicking him because maybe he has kick revenge

4- kick nick

might help if u add a $ in address

true seph I am blind lool but still can it deny after the kick? i do not think so and sure replace:

.sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) Clear Access

by

.sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) clear

Edited May 31, 2005 5:40 PM by DreaM

it can deny after the kick, but i wouldnt kick first though, sometimes they will rejoin to fast before it denys

Seph yes it happened with me once, you reminded me of it yes

guy could back before even the bot denys the address rofl (Fast connection really)

anyway removing clear access and replace it by clear should fix it bonty + add $ as seph said

lol yeah i use to kick first then deny when i first started scripting, learned my lesson , when u ban u always wanna add deny first, then kick.. umm im not sure what hes tring to clear, is it owners?

If the other person is an Owner already in the room you will need it to clear access, deny, kick and change password.....

 

Take

Thanks you so much guys..

Dream U were right about the clearing access I didn't notice it at all lol..

I use this code in groups not msn paid chat so no need for password change lol

here is the code if anyone interested

 

#TrustedOwners off 
on @*:owner:#: { 
 if ($read(~script.trust.txt,s,$msngkshort($nick)) || ($nick == $me)) halt 
 if ($level($address($nick,1)) == Admin) { .halt } 
 if ($level($address($nick,6)) == Leader) { .halt } 
 if ($level($address($nick,1)) == Leader) { .halt } 
 if ($nick == $opnick) { 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) Clear 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD DENY $nick 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD DENY *! $+ $$ial($nick) $+ *,1).addr 
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) ADD OWNER $address($me,1) 
   .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Unknown owner! not in my safe list! 
 } 
}