Skip to content
MSN

mode change msgs in main

A TG007 community discussion started by JeremyStCyr.

Discussion 11 posts
Page 1 of 1
Open
Topic #642 · 11 published posts · 1,041 views

hello am trying to get my script to say all modes in main like sudsie does in the computer room !!!!!!botz on msn

 

#saymodes on
on ^*:QUIT:{ privmsg $msn.get($cid,room) $msn.decode($nick) $+ $address($nick,1) Quit-( $replace($1-,Flooding,Flooded Out) ) }
on ^*:QUIT:{ privmsg $msn.get($cid,room) $msn.decode($nick) $+ $address($nick,1) Quit-( $replace($1-,Flooding,Flooded Out) ) }
#saymodes end

i have this so far can someone help me with the rest please mellow.gif

on ^*:QUIT: { { privmsg $msn.get($cid,room) $msn.decode($nick) $+ $address($nick,1) Quit-( $replace($1-,Flooding,Flooded Out) ) } /msg # $nick gone for a swim }
on ^*:QUIT:{ { privmsg $msn.get($cid,room) $msn.decode($nick) $+ $address($nick,1) Quit-( $replace($1-,Flooding,Flooded Out) ) }  /msg # $nick gone for a swim }

 

even tho im sure im missing a bit - like a $replace reason command

 

 

i mean how can i do what she does in botz for example i join the room this is what Hex did

	_Xx_Hex_xX_ :  4 [ 14∞ŇįģħťmÃ¥ŗě∞ 4]  14has changed the mode to  4[ 14+l 13 4]

but i want it to work on vincula

 

it annouces if someone changes the room mode like room limit knocks and so on thats what im looking for thanks biggrin.gif

Edited Jun 14, 2004 6:00 PM by JeremyStCyr

i think, u have to use $comchan($nick,0) when talking about QUIT event ..

on me:*:join:#:hop #

 

on ^*:rawmode:#: { if ($1 == +l) { msg $comchan($me,1) $nick has set room limit to : $2- }

 

My code does NOT have bugs. It just develops random features.

thanks i pretty much got the rest of the modes from there wink.gif another quetion i been trying all kind of things and i cant seem to it to announce +q +o +v in main how do you get it to do that

 

this what i thought but didn't work

 

on 1:op:#: {

if ($1 == +o) { msg # $nick

 

but i cant get to show like say

 

$me set +o on $nick or get it to show others when they set modes like that on join thanks again smile.gif

$nick sets mode +o $opnick

on ^*:rawmode:#: {

if ($1- == +o) { msg # $nick has Hosted $2- }

elseif ($1- == +q) { msg # $nick has Ownered $2- }

elseif (blah == blah) { .......etc. }

}

on me:*:join:#:hop #

here, this is a modifed one of the echo modes that i use for gd. There are afew that i put ; infront of because if they are used, it may flood out the room.

 

;Mode change messenger 
;Modifed by The Gate Keeper
;Original code from GuarDDog v. 4.0

on ^*:RAWMODE:#: {
 if ($1 === +v) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) a Participant. (Voice) ) } 
 elseif ($1 === -v) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) a Spectator. ) }
 elseif ($1 === +o) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) a Host. ) } 
 elseif ($1 === -o) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) a Participant. ) } 
 elseif ($1 === +q) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) an Owner. ) }
 elseif ($1 === -q) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made $replace($2,>,Guest_) a Participant. ) } 
 elseif ($1 === +u) { /msg $chan $msn.decode($replace($nick,>,Guest_) has enabled room knocks. ) }
 elseif ($1 === -u) { /msg $chan $msn.decode($replace($nick,>,Guest_) has disabled room knocks. ) }
 elseif ($1 === +m) { /msg $chan $msn.decode($replace($nick,>,Guest_) has enabled room moderation. ) }
 elseif ($1 === -m) { /msg $chan $msn.decode($replace($nick,>,Guest_) has disabled room moderation. ) }
 elseif ($1 === +w) { /msg $chan $msn.decode($replace($nick,>,Guest_) has enabled room whispers. ) }
 elseif ($1 === -w) { /msg $chan $msn.decode($replace($nick,>,Guest_) has disabled room whispers. ) }
 elseif ($1 === +W) { /msg $chan $msn.decode($replace($nick,>,Guest_) has enabled Guest_ Whispers. ) }
 elseif ($1 === -W) { /msg $chan $msn.decode($replace($nick,>,Guest_) has disabled Guest_ Whispers. ) }
 elseif ($1 === +p) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room private. ) }
 elseif ($1 === -p) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room public. ) }
 elseif ($1 === +h) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room hidden. ) }
 elseif ($1 === -h) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room visable. ) }
 elseif ($1 === +s) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room secret. ) }
 elseif ($1 === -s) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room unsecret. ) }
 elseif ($1 === +i) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room invite required. ) }
 elseif ($1 === -i) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made room invite unrequired. ) }
 elseif ($1 === +n) { /msg $chan $msn.decode($replace($nick,>,Guest_) has disabled external messages. ) }
 elseif ($1 === -n) { /msg $chan $msn.decode($replace($nick,>,Guest_) has enabled external messages. ) }
 elseif ($1 === +t) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made the topic change hammer required. ) }
 elseif ($1 === -t) { /msg $chan $msn.decode($replace($nick,>,Guest_) has made the topic change unhammered required. ) }
;elseif ($1 === +l) { /msg $chan $msn.decode($replace($nick,>,Guest_) has changed the room's limit. ( Current Limit: $2- ) ) }
 haltdef
}

 

gatekeeper thanks man thats exactly what i was trying to do smile.gif

no problem, i know it can be done in like 1 line. e.g.

 

on ^*:RAWMODE:#: { /msg $chan $nick has changed mode: $1- }

 

but mine just puts abit more style into it, so yea, but if you want it stright as a raw, use the code above cause its virtually the smallest coding possible.