Few Mirc Snippets I Have Scripted

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #19) by tractor on Oct 5 2006, 07:47 AM. (Line Breaks Removed)
QUOTE(Urza @ Oct 5 2006, 12:42 AM) the ! prefix on an alias forces it to use the default mirc alias instead of any personally rewritten alias./!amsg text from the command line is the same as using the regular mirc alias (ie /amsg text )Explain to me in PM because ! would make it visible to the people in the channel unlike a /bs COMMAND and other things. I will have alt explain... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Few Mirc Snippets I Have Scripted

imacul8
Just a few things that may come in handy smile.gif

Backwards text snippet : will revers the text u input

CODE
bck {
  var %x = 1,%bck
  while (%x <= $len($1-)) { %bck = $mid($1-,%x,1) $+ %bck | inc %x }
  return %bck
}


Usage: $bck(text) ie. //echo -a $bck(hello everyone)
Returns: enoyreve olleh

Random letter/number generator : creates a random letter/number combo for the length specified.

CODE
rx {
  if ($1 == $null) { echo -a ERROR: You must specify a value for N | halt }
  if ($1 !isnum) { echo -a ERROR: The value of N can only be numbers | halt }
  if ($1 != $null) {
    var %i = $1
    while (%i > 0) {
      dec %i
      if ($r(1,3) == 3) { var %r = %r $+ $r(1,9) }
      elseif ($r(1,3) == 2) { var %r = %r $+ $r(A,Z) }
      else { var %r = %r $+ $r(a,z) }
    }
    return %r
  }
}


Usage: $rx(N) ie. //echo -a $rx(5)
Returns: w34ci, 7kag1, cxhqx, 15i62

RGB to Hex converter: converts rgb color values into hex color values

CODE
toHex {
  var %hexChars = 0123456789ABCDEF
  var %r.i = $dremain($1,16)
  var %g.i = $dremain($2,16)
  var %b.i = $dremain($3,16)
  var %r.j = $calc((($1 - %r.i) / 16) + 2)
  var %g.j = $calc((($2 - %g.i) / 16) + 2)
  var %b.j = $calc((($3 - %b.i) / 16) + 2)
  return $chr(35) $+ $chrat(%hexchars,%r.j) $+ $chrat(%hexchars,%r.i) $+ $chrat(%hexchars,%g.j) $+ $chrat(%hexchars,%g.i) $+ $chrat(%hexchars,%b.j) $+ $chrat(%hexchars,%b.i)
}
chrat {
  return $mid($1,$2,1)
}


Usage $tohex(red,green,blue) ie. //echo -a $tohex(255,255,255)
Returns: #FFFFFF

And thats all from me at the moment, hope these come in handy to somebody smile.gif

Notice from mayank:
Dont forget to add the code in code tags.

 

 

 


Reply

rldowling03
Hey i like the backwards text one, But how do u get it to work so that u do it in a chat window and everyone can see u said that like when u normally talk?

Reply

imacul8
you can just do //say $bck(hello everyone)

or add a on input event to your remotes section. and add a popup to enable,disable it from activating.

CODE
#bck on
ON *:INPUT:#: {
if ($left($1,1) != /) {
msg $active $bck($1-)
halt
  }
}
#bck end

menu channel {
  &Backwards Text On:.enable bck
  &Backwards Text Off:.disable bck
}


This should do the job nicely!! smile.gif

Reply

tractor
QUOTE(imacul8 @ Aug 7 2006, 02:48 AM) *

you can just do //say $bck(hello everyone)

or add a on input event to your remotes section. and add a popup to enable,disable it from activating.

CODE
#bck on
ON *:INPUT:#: {
if ($left($1,1) != /) {
msg $active $bck($1-)
halt
  }
}
#bck end

menu channel {
  &Backwards Text On:.enable bck
  &Backwards Text Off:.disable bck
}


This should do the job nicely!! smile.gif


Really huh
QUOTE
* /msg: insufficient parameters (line 4, script13.ini)
I think you need to learn a little more and yet //say $bck(TEXT) dosn't work * /say: insufficient parameters

 

 

 


Reply

Urza
you could also do something like
CODE

bck {
  var %x = 1,%bck
  while (%x <= $len($1-)) { %bck = $mid($1-,%x,1) $+ %bck | inc %x }
  if ($isid) return %bck
  else msg $active %bck
}


also you havent added the $dremain alias anywhere.


Edit
Tractor - the only reason what he posted wouldnt work is if you deleted, or incorectly added the bck alias. If it doesn't work it is through no fault of his.

Reply

tractor
I hope you know im Agent|Austin..... And hmm ill talk to you.

Reply

Urza
i do now, but that in no way changes the fact of what i said lol.

sooooo i really don't see how its relative tongue.gif

Reply

tractor
Well ok. -.- Just thought your script didn't work xD It also might not work because i have another on INPUT scrip

Reply

AlternativeNick
good stuff imacul8, thanks for posting

if you dont mind my contribution, i have a useful snippet to post as well, this will kick/ban a user in all channels you have access in.

CODE
alias gban {
  var %i = 0
  while (%i < $chan(0)) {
    inc %i
    ban $iif($1 ison $chan(%i),-k) $chan(%i) $1 2 $2-
  }
}


Usage- /gb <nick> [Reason]

also, just for fun-
CODE

alias maybe { return $($+($,$r(1,$0)),2) }


Usage- $maybe(yes,no,maybe)
will return either yes, no, or maybe

Reply

tractor
Lol alt did you just get that from when you made it for me today. ^^^ Very good script^^^ I love it somone gets on y nerves im just like /gb HAHAHA Lol its quite fun. And for the alises whats it do?

Reply

Latest Entries

tractor
QUOTE(Urza @ Oct 5 2006, 12:42 AM) *

the ! prefix on an alias forces it to use the default mirc alias instead of any personally rewritten alias.
/!amsg text from the command line is the same as using the regular mirc alias (ie /amsg text )


Explain to me in PM because ! would make it visible to the people in the channel unlike a /bs COMMAND and other things. I will have alt explain.I would just use this tongue.gif

QUOTE
on *:TEXT:!notice:#: if ($nick == Agent|Austin) { amsg $2- }

Reply

Urza
the ! prefix on an alias forces it to use the default mirc alias instead of any personally rewritten alias.


/!amsg text from the command line is the same as using the regular mirc alias (ie /amsg text )

Reply

tractor
QUOTE(Urza @ Oct 4 2006, 11:30 PM) *

it messages queries as well.. regular amsg doesnt.

also alt you can use !amsg to use mircs default amsg alias.
so the first loop, for the channels simply becomes:

CODE
!amsg $1-


Why would we want !amg is we can have /amsg you guys are confusing. It would help if somone does somthing about those 2 blink.gif

Reply

Urza
QUOTE("tractor")
So messages all the channels sounds like a normal /amsg whats the dif?


QUOTE("alternativenick")
This will msg all channels as well as all queries for the current connection.


it messages queries as well.. regular amsg doesnt.

also alt you can use !amsg to use mircs default amsg alias.
so the first loop, for the channels simply becomes:

CODE
!amsg $1-

Reply

AlternativeNick
it also messages any open queries smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. irc backwards text - 8.37 hr back. (1)
  2. irc addons kick three lines - 33.49 hr back. (1)
  3. snippets for mirc - 35.80 hr back. (2)
  4. irc snippet - 53.02 hr back. (1)
  5. mirc snippet - 73.13 hr back. (1)
  6. mirc backward text - 95.27 hr back. (1)
  7. mirc writing backwards script - 118.17 hr back. (1)
  8. how to add snippet to mirc ? - 121.35 hr back. (1)
  9. mirc codes snippets - 132.40 hr back. (1)
  10. irc on text notice - 197.45 hr back. (1)
  11. questions irc snippet - 203.75 hr back. (1)
  12. mirc snippets for colour - 204.34 hr back. (1)
  13. code,snippets mirc - 206.83 hr back. (3)
  14. irc code for kick for three lines - 211.55 hr back. (1)
Similar Topics

Keywords : mirc, snippets, scripted

  1. Need Help With Mirc
    (0)
  2. I Am Looking For Ideas For A Mirc Addon
    I want your ideas (2)
    Well im currently between 2 projects that im scripting and im bored with them haha!! Just
    looking for ideas for something else i can make... Maybe just sumthing little that u want made, i
    will make it for you and release it here. I have a fairly wide range of scripting knowledge and i
    will try to make most things... Always looking to learn more things also Ta....
  3. Mirc 3d Rendering
    (0)
    QUOTE ======================================================================5/26/2006===
    Talons Simple 3D Tutorial irc.webchat.org:6667 in
    #mIRC,#help.mIRC ==================================================================================
    As a programmer, I often find myself trying to write things that already exist. It gives some
    satisfaction to say, "I did this on my own." even if it is not as good as what is already out there.
    Nothing is more impressive than your own work, even if it is not as good. It's an accompli....
  4. Socket Status Addon For Mirc
    (2)
    This addon will display the status of your open sockets (if there is any) Displays displays the
    Name, IP, Port, Status - Bytes sent/received & last Sent/recieved Has options to refresh the status,
    close a socket and close all sockets. Copy and paste this code below into your remotes (alt + r) To
    run the dialog u can simply type /sockstats or u can add a popup to your menubar or wherever to open
    it. ie. &Socket Status:/sockstats in your status popup section (alt + p) **IF you have no active
    sockets it wont open the dialog, it will just return no open sockets in your ....
  5. Sockets Help (mirc)
    (8)
    hello, i was wondering if someone would be able to help me out a bit. Im looking to get some info
    from my forums using sockets and mIRC, however the info i want requires that you be logged in. I
    know that it would require sockwrite POST something, but im not really sure how to use that :S
    anyways, here is the source to the login section (HTML) HTML form action ="
    http://www.altscripts.trap17.com/forum/index.php?action=login2 " method=" post " style="
    margin: 3px 1ex 1px 0pt; text-align: right; "> input name =" user " size=" 10 "
    type=" text ">....
  6. How To Customize The Look Of Your Mirc Events Part 2
    (6)
    Well in part 1 of How To Customize The Look Of Your Mirc Events i covered some channel events, so
    now i will cover the events for in a private chat. Plus some extra stuff.... ** To change the look
    of the other persons text u again use a on text event CODE on ^*:TEXT:*:?: {
      echo -t $query($nick) ( $+ $nick $+ ) $1-   halt }
    ** To change the look of your own input CODE on *:INPUT:?: {   if
    ($left($1,1) != /) {     .msg $active $1-     echo....
  7. How To Customize The Look Of Your Mirc Events
    (4)
    Well im sure that a lot of you just use mIRC for chatting and do not realise that you can actually
    use it to code cool stuff. You can also change the way your events look and i am going to explain
    how here. Starting with the on join event - which triggers when you and other users join a channel.
    Instead of having just the plain * Now talking in #channel and * nick has joined #channel you can
    make it look fancy ie. (Join/nick) (nick@address) and its not hard to do. CODE on
    ^*:JOIN:#: {   echo -t $chan (Join/ $+ $nick $+ ) (....
  8. Control Parts Of Msn Through Mirc
    (7)
    Control your MSN, or return various information such as nickname, status, etc.. Usage:
    $msn(valuetype) Valuetypes : returnvalue online : $true or $false indicating
    wheter your signed in or not (actually $true indicates status but was added to have an
    independent online checker) status : returns the status of MSN (Busy,Online,Invisible etc)
    nickname : your nickname email : your email ie. //echo -a $msn(nickname) will return ur msn
    nickname. user : $true when succesful $false when not Methods: Blocked CanPage
    Frie....
  9. Mirc Snippets
    Some snippets for IRC Chatters :) (10)
    You can find them on: www.hawkee.com www.mircscripts.org www.mircscripts.com www.mirc.net ... Here
    are somones...: CODE ; Repeat flood protection ; Change #channel with the name of your channel
    :) ; It will ban+kick after 3 repeats i 8 secs. on *:text:*:#klinci: {  if
    ($nick == $me) || ($nick isop $chan) || ($nick ishop
    $chan) { halt }  else {    var %text =
    $hash($strip($1-),32)    var %stari.text = %rp. [ $+ [
    $chan ] $+ . &#....

    1. Looking for mirc, snippets, scripted

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for mirc, snippets, scripted

*MORE FROM TRAP17.COM*
advertisement



Few Mirc Snippets I Have Scripted



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE