Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> usefull for mIRC
ch1zra
post Feb 23 2005, 12:45 PM
Post #1





Guests






some stuff I wrote...

basic $chan prots :

CODE


on *:text:*:#: {

set %t $0

var %i 1

var %txt $1-

if (%t > 100) {
; number 100 is number of max words per line, it can be edited.

kick $chan $nick Max words per line in this chan is 100 ,you had %t words...

}

if ($len($1-) > 500) {
; number 500 is number of max characters per line, adjust it to suit you.

kick $chan $nick Max length per line in this chan is 500 characters,you had $len($1-) characters...

}

while (%i <= %t) {

if (#* iswm $gettok(%txt,%i,32)) && ($len($gettok(%txt,%i,32)) >= 2) {

kick $chan $nick No channel advertising -[ $+ $gettok(%txt,%i,32) $+ ]-
; Here it says what word was detected as channel name.

}

inc %i

}

}



mass modes :

CODE


alias modes {

if ($me isop $chan) {

var %num = $nick(#,0)

var %i 1

while (%i <= %num) {

var %tmpnick = $nick(#,%i)

if (%tmpnick != $me) {

var %tnk %vnikz

var %vnikz %tmpnick %tnk

}

inc %i

}

if ($1 == $null) {

echo -a  $+ $color(info) $+ [Modes] You must enter which mode to be used. (supported +/- vohb) -[ ch1zra@gmail.com ]-

}

if (+v isin $1-) {

mode # + $+ $str(v,$calc(%num - 1)) %vnikz

}

if (-v isin $1-) {

mode # - $+ $str(v,$calc(%num - 1)) %vnikz

}

if (+o isin $1-) {

mode # + $+ $str(o,$calc(%num - 1)) %vnikz

}

if (-o isin $1-) {

mode # - $+ $str(o,$calc(%num - 1)) %vnikz

}

if (+h isin $1-) {

mode # + $+ $str(h,$calc(%num - 1)) %vnikz

}

if (-h isin $1-) {

mode # - $+ $str(h,$calc(%num - 1)) %vnikz

}

if (+b isin $1-) {

mode # + $+ $str(b,$calc(%num - 1)) %vnikz

}

if (-b isin $1-) {

mode # - $+ $str(b,$calc(%num - 1)) %vnikz

}

}

}



simplest away system :

CODE


on *:input:*: {

if (/away isin $1) {

if ($2- == $null) {

nick %awnick

ame is back from : 4 $+ %awr

}

else {

set %awr $2-

set %awnick $me

nick $me $+ [AwaY]
; you can edit away tag as you wish

ame is away. Reason : 4 $+ %awr

}

}

}



usage : /away reason - to go away..
/away - with no reason to get back..


titlebar text animator :

CODE


alias tbar {

write -c titlebar.anim

var %tbr $1-

if (%tbr == $null) {

echo -a  $+ $color(info) $+ No titlebar text was entered, animating active titlebar text...

var %tbr $titlebar

}

var %ctr 1

var %len $len(%tbr)

while (%ctr <= %len) {

write titlebar.anim titlebar $right(%tbr,%ctr)

inc %ctr

}

while (%ctr >= 0) {

write titlebar.anim titlebar $right(%tbr,%ctr)

dec %ctr

}

while (%ctr <= %len) {

write titlebar.anim titlebar $left(%tbr,%ctr)

inc %ctr

}

set %timer.pause 400;pause between scrolls for timer

set %tmr $calc($lines(titlebar.anim) * 30 + %timer.pause)

.timer -m 0 %tmr .play -cs titlebar.anim 30

}



on *:start: {

.timer -m 0 %tmr .play -cs titlebar.anim 30

}



usage /tbar text you want to be displayed
if no text is provided, it will animate current titlebar text.

Ban protection :

CODE


on *:ban:#*: {

 if ($banmask iswm $address($me,5)) && ($me isop $chan) {

   mode $chan -b $banmask

   kick $chan $nick No ban $me $+ , $me angry... ( $+ %bkz $+ )

   inc %bkz

 }

}



destroy the auto thanx for voice biggrin.gif :

CODE


on *:VOICE:#:{

 if ($nick == $me) {

   set -u5 %autothnx 1

 }

}



on *:text:*:#: {

 if (%autothnx) &&  ($me isin $1-) {

   notice $nick Turn autothanx off 

   mode $chan -v $nick

 }

}



on *:action:*:#: {

 if (%autothnx) &&  ($me isin $1-) {

   notice $nick Turn autothanx off 

   mode $chan -v $nick

 }

}



smile.gif have phUn
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. I Am Looking For Ideas For A Mirc Addon(2)
  2. Changing Background Color In Php(5)
  3. Need Help With Mirc(0)
  4. Wappy's Php Snippets(13)
  5. Sub Domain Www.yourname.mirc.ms(5)
  6. Mirc 3d Rendering(0)
  7. Email Yourname@mirc.ms(5)
  8. Score About Its Quality(4)
  9. Mirc Scripting Site/community(6)
  10. Mirc Snippets(10)
  11. Few Mirc Snippets I Have Scripted(19)
  12. Sockets Help (mirc)(8)
  13. How To Customize The Look Of Your Mirc Events(4)
  14. Socket Status Addon For Mirc(2)
  15. Control Parts Of Msn Through Mirc(7)
  1. How To Customize The Look Of Your Mirc Events Part 2(6)
  2. Gmail - Free Email Signature Graphic Generator(7)
  3. Wap Redirection(12)
  4. Basic Guide To Mirc - Installation And Settings(8)
  5. Getting And Using Mirc(0)
  6. Mirc Identifiers In Vb6(0)
  7. Mirc Script Downloads Discussion And Help Site/forum(1)
  8. Using Mirc(0)
  9. Usefull Things!(4)
  10. Mirc Problem(3)
  11. Perl Code Obfuscator V1.0(0)
  12. Htaccessible(2)
  13. A Usefull Collection Of Webdesigners Tool(7)
  14. Winupdateslist V1.11(3)
  15. My mIRC script page..(5)


 



- Lo-Fi Version Time is now: 11th October 2008 - 12:12 PM