Skip to content
MSN

SafeHost

A TG007 community discussion started by Alias.

Discussion 66 posts
Page 1 of 4
Open
Topic #3736 · 66 published posts · 3,034 views

Hi all,

i have a safehost code that i use for a long time it was working great when i had mIRC 6.14 & Vincula 4.9.

But a few time ago, i have installed mIRC 6.16 and Nuclear, and it stopped working as it should work, i also now use mIRC 6.16 with Vincula NGen 1.6.2, same problem

I use it to prevent my hosts (i.e with host access added) to give hammer when i'm not there, usually, it should take off their hammer when they come in the room.

 

here is the code i use :

 #safehost on
on *:op:#: {
 if ($nick != $me) {
   sockwrite -nt msn.server.* mode $chan -o $opnick
 }
}
on *:owner:#: {
 if ($nick != $me) {
   sockwrite -nt msn.server.* mode $chan -q $opnick
 }
}
on *:Deop:#: {
 if ($nick != $me) {
   mode $chan +o $opnick
 }
}
#safehost end

 

Someone gave me this code but it doesn't change anything:

on *!:op:*: { mode # -o $opnick }
on *!:owner:*: { mode # -q $opnick }
on *!:Deop:*: { mode # +o $opnick }

 

Any idea how to fix it please ??

 

Thank you

Edited Jun 7, 2005 10:08 PM by Alias

sockwrite -nt msn.server.* .... never seen -nt before try -tn

just tried -tn it doesn't change anything, same problem

I also use 6.16, and so far the code that you provided works for me. I'm also using NGen, as well. What code do you have to turn this safehost on? It might be that the code you have to turn it on isn't turning it on.

Edited Jun 8, 2005 12:22 AM by Warrior124

in fact, it's always on

 

Just hang tight their Alias OZZY will fix it for you shortly..

Use $nick instead of $opnick

 

Cleric xtx, i have just tried what u said, same thing, it doesn't work

XþloziOn, if u say so, i'm waiting for Ozzy then

on >=1:DEOP:#mIRC:/msg $chan $nick deopped $opnick (legal)

on 1:DEOP:#mIRC:/msg $chan $nick deopped $opnick (illegal)

 

 

Looks like what they said change the $chan +o $opnick

to chan $nick deopped (+/-status) $opnick

 

Maybe, Don't quote me LoL

on *:oP:#:{
 if $nick isowner $chan return
 if ($opnick == $nick) return
 if ($nick == $me) return
 if ($opnick == $me) return
 if ($opnick !== $nick) && ($me !isop #) {
   mode $me +h %hostpass 
   mode # -o $opnick 
   mode $active -o $me 
 }
 if ($opnick !== $nick) && ($me isop #) {
   mode # -o $opnick 
   /privmsg # Safeh0$T  
     kick $chan $nick Since Whenwas yoU an  0Wn 3r 60min ban placed
     access $comchan($nick,1) add deny $address($nick,1) 60
     access $chan clear host 
 }
}
on *:DEOP:#: { 
 if ($nick == $opnick) { halt } 
 if ($nick isowner #) { halt } 
 kick # $nick Safeh0$TYouArEn0taN0wnEr 
 mode # +o $opnick 
 access # add deny $address($nick,1) 1 : host protect 
}

Edited Jun 8, 2005 8:20 PM by OZZY_10â„¢

sorry grinning_male, it doesn't deop them when they join too

okay, i have just tested same code as i pasted in the first post but this time with mIRC 6.14, it works great with both Nuclear and Vincula NGen.

It seems to be something that has changed in mIRC.

 

Anyone can help me to fix it please ??

 

Thank you

 

 

Here you go for what it's worth, This works for me

 

#antiowner off
on *:OWNER:#:{
 if ($me isowner #) {
   if ($opnick == $me ) || ($nick == $me) halt {
     mode # -q $opnick 
     access # clear OWNER
     prop # OWNERKEY $msn.pass
     access # add OWNER *! $+ $$ial($me $+ *,1).addr
     msg # Hey $replace($nick,>,Guest_) I decide who becomes owner, not you :) Don't let the power go to your head;)
   }
 }
}
#antiowner end

#antihost off
on *:OP:#:{
 if ($me isop #) {  
   if ($opnick == $me ) || ($nick == $me) halt {
     mode # -o $opnick 
     access # clear HOST
     msg # Naughty naughty $replace($nick,>,Guest_) $+ , too much power can go to your head :)
     if ($me isop #) && ($me !isowner #) { access # add HOST *! $+ $$ial($me $+ *,1).addr }
   }
 }
}
#antihost end

#deowner off
on *:DEOWNER:#: {
 if ($opnick == $me) && ($nick != $me) {
   var %p $msn.roompass(#)
   mode $me +h %p
   access # clear OWNER
   kick # $nick Don't DE-OWNER me. Bye BYE!!!
   prop # OWNERKEY $msn.pass
   access # add OWNER *! $+ $$ial($me $+ *,1).addr
   .auser shitlist *! $+ $$ial($nick $+ *,1).addr $msn.decode($nick) De-Owner
 }
}
#deowner end

#dehost off
on *:DEOP:#:{
 if ($opnick == $me) && ($nick != $me) {
   var %p $msn.roompass(#)
   mode $me +h %p
   access # clear HOST
   kick # $nick $read(text\reason.txt)
   access # add HOST *! $+ $$ial($me $+ *,1).addr
 }
}
#dehost end

Oh yeah I almost forgot, you will have to turn off to on of corce and and put your text file in right directory or change the path or and name of file, nicklist should be the same

hi Eaglenest25311,

i have just tried ur code, it works with mIRC 6.14 but not with mIRC 6.16

weard I have 6.16b vers

 

 

Wait, Hey I may know why, Duh, If you install more than the Mirc.exe 6.16

in your bot directory, it won't work right for some reason on older bots like mine, but I did just copy this alone and I had no problems with it , None that I know of.

My merc is same Sorta same as yours, Maybe download new mirc 6.16b

www.mirc.com I think if not this site has the address where I got my Mirc updated

Edited Jun 9, 2005 1:48 AM by Eaglenest25311

i don't know what u're really talking about

i went on mIRC official site www.mIRC.com the last version is 6.16

besides, i have mIRC 6.14 and mIRC 6.16 in different folders

#SafeHostz on
on @*:op:*: {
 if ($nick isowner #) { halt }
 if ($opnick == $nick) { halt }
 if ($opnick == $me) { halt }
 if ($me isowner $chan) || ($me isop $chan) {
   access $chan clear host
   kick $chan $nick Hey |[ - Only I host - ]|
   mode $chan -o $opnick
   access $chan clear host
 }
}
on @*:KICK:#: { if ($knick isop #) {
   if ($nick isowner #) { halt }
   access # add deny $address($nick,1) 1 : host protect
   kick # $nick You are a host and hosts don't have the authorization to kick other hosts!
 }
}
on @*:DEOP:#: {
 if ($nick == $opnick) { halt }
 if ($nick isowner #) { halt }
 access # add deny $address($nick,1) 1 : host protect
 kick # $nick Don't try to dehost other hosts again!
 mode # +o $opnick
}
#SafeHostz end

Try that it should work , just it comes out of my head right now..when I saw ur post lol

if you want it to work with owner as well you can add this way .

on @*:owner:#: { 
 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 OWNER *! $+ $$ial($nick) $+ *,1).addr $+ *
   .sockwrite -tn msn.server. $+ $cid mode $msn.get($cid,fullroom) -o $nick
}

but that will deop anyone even if its you so you should halt your self and ur team

 

if ($level($address($nick,1)) == Admin) { .halt }

 

 

Hi bonTy,

it doesn't work with mIRC 6.16

I believe now you have somthing wrong with your script it's not possible all those codes isn't working this code working with me in both mIRC 6.01 and 6.16

Try a fresh copy of ur script

reinstall it if it has an installtion , or unload all files and clear vars. "//unsetall"

and reload it ur scripts one by one

hope that helps you .!!