mIRC Snippets

Name:Yo Mama!
Description: This will display a random yomama jokes from www.exonyte.dyndns.org. I was playing around with mIRC sockets and came up with this, this is just a quick thing I made and kinda stupid I guess...

Code below...
> ;***************************
Type in /yomama <category here>
Available yomama categories are fat,stupid,old,ugly,poor and small
Ex. /yomama fat
;***************************
alias yomama {
  if ($
1) {
    if (
$window(@yomama)) && ($$line(@yomama,1)) { echo -s Yo mama's so $1 $line(@yomama,$rand(2,$line(@yomama,0))) }
    else {
      echo -a Retrieving new category please wait...
      sockclose yomama
      sockopen yomama www.exonyte.dyndns.org 80 
      sockmark yomama $1
      window -c @yomama | window -h @yomama
      aline @yomama $1
    }
  } 
  else { echo -a Error: Please enter a "yo mama'
s" category! (ex. fat,stupid,old,ugly,poor,small) }
}
on *:sockopen:yomama:{
  if (
$sockerr) { echo -a Error }
  else { sockwrite -n 
$sockname GET /yomama.php?cat= $+ $sock($sockname).mark }
}
on *:sockread:yomama:{
  var %yomama | sockread %yomama
  if (&lt;li&gt; isin %yomama) { 
    %yomama = 
$remove($remove(%yomama,$left(%yomama,4)),$right(%yomama,5))
    aline @yomama %yomama
  }
}
on *:sockclose:yomama: { echo -s Yo mama's so 
$sock($sockname).mark $line(@yomama,$rand(2,$line

« Back to mIRC Snippets

Home | Site Map | Privacy Policy | Advertising | Contact Us
Copyright © 2006-2014 r2xDesign.net - All Rights Reserved.
eXTReMe Tracker