Top

FML


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.0 (of 2 scores)
Date Added  Oct 20, 2009
Last Updated  Oct 20, 2009
Tags  fml  fmylife  fuck  life  mirc  my  random  sockets 

Introduction

FML alias. /FML to echo the results in the active window, /FML -s sends the TEXT info to current channel. the Link and the Information are still echo'd to active window to prevent spam.

ScreenShot:



Grab the Code

;;; Aliases needed for colouring. Changing colour by changing "$Chr(3),12,$Chr(2)" to "Chr(3),<Colour>,$Chr(2)" $h is the main colour, $hh is the secondary colour.
alias h { return $+($chr(3),12,$chr(2),$chr(2),$1-,$chr(3),$chr(2),$chr(2)) }
alias hh { return $+($chr(3),14,$chr(2),$chr(2),$1-,$chr(3),$chr(2),$chr(2)) }
Alias Tags { Return $+($hh([),$h($1-),$hh(]) $hh(),$h(>),) }
;;;
 
alias FML {
  if ($Sock(FML)) { SockClose FML }
  Set %FMLOut $iif($1 = -s, Say, Echo -a)
  Sockopen FML rscript.org 80
}
On *:SockOpen:FML: {
  Sockwrite -nt FML GET /lookup.php?type=fml
  SockWrite -nt FML Host: rscript.org
  SockWrite -nt FML $crlf
}
on *:SockRead:FML: {
  if ($SockErr) { SockClose FML | SockOpen FML rscript.org 80 }
  Var %FML 
  SockRead %FML
  if ($Regex(%FML,ID:)) { Set %FMLID $GetTok(%FML,2-,32) }
  if ($Regex(%FML,Cate:)) { Set %FMLCate $GetTok(%FML,2-,32) }
  if ($Regex(%FML,Text:)) { Set %FMLText $hh($GetTok(%FML,2-,32)) }
  if ($Regex(%FML,Agree:)) { Set %FMLAggree $Bytes($GetTok(%FML,2-,32),bd) }
  if ($Regex(%FML,Deserved:)) { Set %FMLDisaggree $Bytes($GetTok(%FML,2-,32),bd) }
  if ($Regex(%FML,Comments:)) { Set %FMLComments $Bytes($GetTok(%FML,2-,32),bd) }
  if ($Regex(%FML,END)) { SockClose FML }
  if (!$Sock(FML)) {
    %FMLOut $Tags(FML) $hh(FML:) $h(%FMLText) 
    Echo -a $Tags(FML) $hh(Information:) $hh(Agreed:) $h(%FMLAggree) $hh($(|)) $hh(Deserved) $h(%FMLDisaggree) $hh($(|)) $hh(Comments:) $h(%FMLComments) 
    Echo -a $Tags(FML) $hh(Link:) $h($+(,http://www.fmylife.com,/,%FMLCate,/,%FMLID,/,))
    Unset %FML*
  }
}
 

Comments

  (3)  RSS
Ghost-writer
Comments: 255
 
mIRC Snippet:  FML
Posted on Oct 20, 2009 5:27 pm
Great, nice speed! and excellent use of sockets. also the colours are sexy :P. 7/10 - Alask,
Code:

Set %FMLOut $iif($1 = -s, say, Echo -a)

Quote:

You cannot use say in a script last i recall, it will return you are not on a channel :(.

Code:
 
Set %FMLOut $iif($1 = -s, msg $active, Echo -a)

That would of been better :(
Testor
Comments: 81
 
mIRC Snippet:  FML
Posted on Oct 20, 2009 6:06 pm
Thanks :o.
/Say works for all the scripts i use :o.
jonesy44
Comments: 1,856
 
mIRC Snippet:  FML
Posted on Oct 27, 2009 8:10 pm
Some versions of mIRC do not have "/say" already, i would use;
Code:
$iif($1 == -s,$iif($active,$v1,echo -a),echo -a)

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom