mIRC Home    About    Download    Register    News    Help

Print Thread
#142211 16/02/06 08:54 PM
Joined: Jan 2005
Posts: 3
A
arkt1k Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Jan 2005
Posts: 3
I made this lil deal to spice up the look of my scriipt after staring at the same thing for nearly 2 years. I'm pretty sure it's self explanitory.


theme {
%themez = $strip($1-,burc)
%mbz = $calc($len(%themez) - 2)
%theme1 = $left(%themez,1)
%theme2 = $mid(%themez,%mbz)
%theme3 = $right(%themez,1)
%theme = $+(9,%theme1,10,%theme2,09,%theme3)
return %theme
}

echo # $theme(join 01,01 $str($chr(160),10) 09 $nick $+ : $+ $address($nick,2)) | halt }

this is what it should return or what i would like it to return:

9j10oin           Ho0tz:**@6F3E771A.93465C4C.88AB6266.I9P

Unfortunately it's only returning the text below:

j.IPP

I hope i've explained what i'm looking for help on. If not please ask questions. Any help u can give will be greatly appeciated.

Thank you,

Steven aka arkt1k

#142212 16/02/06 09:28 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
theme {
  var %t = $strip($1-)
  return $+($chr(3),09,$left(%t,1),$chr(3),10,$mid(%t,2,-1),$chr(3),09,$right(%t,1))
}

#142213 16/02/06 09:54 PM
Joined: Jan 2005
Posts: 3
A
arkt1k Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Jan 2005
Posts: 3
That works great thanks.


Last edited by arkt1k; 16/02/06 10:03 PM.

Link Copied to Clipboard