Skip to content
NuClearMSN Connection

Deowner

A TG007 community discussion started by Travis.

Discussion 5 posts
Page 1 of 1
Open
Topic #2970 · 5 published posts · 1,011 views

Hey Vex, the deowner on the connection doesnt seem to work. Come to think of it, the old one didnt either. Anyways, I was trying to write a deowner code but cant figure out how to +q myself with your connection. Whats the code? Thanks

 

Ive tried pass %msn.qkey and $msn.roompas($msn.scn($3)) just poking around the connection.

Edited Feb 26, 2005 6:47 PM by Travis

Is this a really stupid question er sumthin???

 

On deowner I would need to access the passcode, not the one in the registry, but the last saved one. I cant figure out how to do that with this connection. I'll post my tries on here shortly.

you can use $msn.roompass($chan) or $msn.chan($chan).key

 

//pass $msn.roompass($chan)

//mode $me +h $msn.roompass($chan)

Edited Feb 27, 2005 3:11 PM by vexation

bfush.PNG

Thanks Vex, so much! Ok so here is what I made. Can someone do better?? Please show me.

 

#deowner on
on *:DEOWNER:#:{ 
 if (@cg isin $address($$1,1)) { halt }
 if ($opnick == $me) && ($nick != $me) {
   //mode $me +h $msn.roompass($chan) $+ $crlf $+ access $active clear owner $+ $crlf $+ access $active add owner $ial($me).addr $+ $crlf $+ access $active add deny $address($nick,1) $crlf $+ KICK # $nick $+ $crlf $+ prop $active ownerkey LucasSage $+ $rand(1,9) $+ $rand(a,Z) $+ $rand(1,9) $+ $rand(a,Z) $+ `( $+ $time(h;nn;t) $+ )
 }
}

 

I tried this by seperating all the commands and giving them their own line and it was a few seconds slower. I would like to knwow how to make it a sockwrite or sockread command though. Cheers!

Try this

Mind you its not perfect but has been tested with the Clearmsn connection (6.0 aka Nuclear) and seems to work fine.

 

#deowner on
on *:DEOWNER:#:{
 if (@cg isin $address($nick,1)) { halt }
 if ($opnick == $me) && ($nick != $me) {
   .sockwrite -tn $sockfind($chan) mode $me +h $msn.roompass($chan)
   .sockwrite -tn $sockfind($chan) access $active clear owner
   .sockwrite -tn $sockfind($chan) access $active add owner *! $+ $ial($me $+ *,1).addr
   .sockwrite -tn $sockfind($chan) access $active add deny *! $+ $ial($nick $+ *,1).addr
   .sockwrite -tn $sockfind($chan) kick $active $nick
   .sockwrite -tn $sockfind($chan) prop $active OWNERKEY LucasSage $+ $rand(1,9) $+ $rand(a,Z) $+ $rand(1,9) $+ $rand(a,Z) $+ `( $+ $time(h;nn;t) $+ )
}
}
#deowner end