Skip to content
MSN

hmm do you think this is possible

A TG007 community discussion started by Mr_S.

Discussion 6 posts
Page 1 of 1
Open
Topic #645 · 6 published posts · 707 views

Do you think its possible for two ( or more ) scripts to have each of the nicks on a "Protect Style" list and when one gets kicked, another one hosts its self up and kicks the person who kicked you, and if that one gets kicked, another hosts itself????

 

Ideally need it to work in the comms tho...

 

blink.gif

 

If anyone can write a code for this id be EXTREMLY greatful

 

Mr_S

Yes it's possible. Ozzy's sleeper script does that if im not mistaken.

put the nick that you want to protect here.

 

alias protect { return $nick }
on .:KICK:#: {
if ($knick == $protect) && ($nick != $me) { 
/access $chan delete deny $protect
/access $chan delete deny *! $+ $$ial($protect $+ *,1).addr
/mode -o $nick
/mode +v $nick
/prop $chan ownerkey $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(a,z)
}

 

its untested but basicly it just removes the user and changes the owner key. This code only works though if you are owner. Its untested but i think it will work.

 

i advise against adding pplz to protection or any other level with $nick.

 

$ial($nick,5).addr or just $address($nick,1) wud be better and prevent so many mistakes and clone/roomtakes attempts ..

 

hope this helps

Edited Jun 15, 2004 11:27 PM by [::X-System::]

on me:*:join:#:hop #

Here is one I've worked out.

 

menu nicklist {
 -
 Protection Setup
 .Protect User $1 { 
   comopen reg WScript.Shell
   var %b = $com(reg,RegWrite,1,string,HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($1) $+ ,string, $+ $ial($1,1))
   comclose reg
   }
 .-
 .Set Sleeper Pass {
   set %sleeperpass $?*="Enter Owner Password"
   if ($me isowner $chan) { mode $chan -o $me }
   }
 .-
}  
on ^*:JOIN:#:{
 if ($nick == $me) && (%kill) {
   mode $chan +b $ial( $+ %kill $+ ,1) 5
   kick $chan %kill [Banned 5 minutes. Please don't kick protected host.]
   unset %kill
}
 if ($nick == $me) && ($me isowner $chan) && (!$msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($me,1))) {
   comopen reg WScript.Shell
   var %b = $com(reg,RegWrite,1,string,HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($me) $+ ,string,$ial($me,1))
   comclose reg
   mode $chan -o $me
}
 if ($nick == $me) && ($me isowner $chan) && ($msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($me,1))) {
   mode $chan -o $me
 }
}
on ^*:TEXT:!givepass:*:{
 if ($msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($nick))) && (%sleeperpass) {
   msg $nick !Sleeperpass %sleeperpass
 }
 if ($msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($nick))) && (!%sleeperpass) {
   msg $nick Sorry, $nick $+ , but the Sleeper Password doesn't exist, yet.
 }
 if (!$msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($nick))) {
   msg $nick Sorry, $nick $+ , but you aren't on my protect list.
}
on ^*:TEXT:!Sleeperpass*:*:{ 
 if ($msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($nick,1))) {
   set %sleeperpass $2
 }
}
on ^*:KICK:#:{ 
 if ($opnick != $me) && ($knick != $me) && ($msn.registry(HKEY_CURRENT_USER\SOFTWARE\Microsoft\MSNChat\4.0\Protect\\ $+ $ial($knick))) {
   if ($network == MSN) {
     mode $me +h %sleeperpass
     access $chan clear deny
     access $chan add deny $ial($nick,1) 5
     kick $chan $nick [Banned 5 minutes. Please don't kick protected host]
     mode $chan -o $me
   }
   if ($network != MSN) { 
     set %kill $opnick
     hop
   }
 }
}

 

What this will do will add a protection folder to your registry, and add the full address of any user you wish to protect to the registry as well. Anyone who is on your protection list will have protection, and can call for the room pass to host up. Anyone who isn't in your protect list will remain unprotected, and willnot be able to get the pass.

Edited Jun 16, 2004 6:56 PM by Warrior124

Very good warriror. thumbup.gif