mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 1
Q
Mostly harmless
OP Offline
Mostly harmless
Q
Joined: Dec 2002
Posts: 1
Needed one, could not find one, wrote one, shared one

Alias npcToStr {
; non-printing ascii characters convertor, useful for converting HTML
; made by QuinoX for fun
;
var %pre $1-
var %post
var %pos $pos($1-,$chr(37),1)
var %prot ($ticks + 1000)
while ((%pos != $null) && ($ticks > %prot)) {
; %post = %post $left(%pre, (%pos-1)) $+ $asc($mid(%pre, (%pos+1), (%pos+3))) $+ 
%post = %post $+ $left(%pre, $calc(%pos - 1)) $+ $chr($base($mid(%pre, $calc(%pos + 1), 2),16,10)) $+ 
%pre = $right(%pre,$calc(-%pos - 2))
%pos = $pos(%pre,$chr(37),1)
}
return $replace($strip(%post $+ %pre),[,[,],], ,$chr(32),²,$chr(178),³,$chr(179),<,$chr(60),>,$chr(62),&,&)
}

example input:

Input%5BCSD%5D%20%5B%20%2E%2E%3A%3A%20%5D%20%5B%20%40%20%7C%20%7E%20%7C%20%2E%3A%3A%20wazaah%20%3A%3A%2E%20%20%7C%20%7E%20%7C%20%40%20%5D%20%5B%20%3A%3A%2E%2E%20%5D%20%5B%20Useful%20for%20html%2E%2E%2E%20%5D%20%5BCSD%5D

example output:

Input[CSD] [ ..:: ] [ @ | ~ | .:: wazaah ::. | ~ | @ ] [ ::.. ] [ Useful for html... ] [CSD]


Joined: Dec 2002
Posts: 164
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
Unless someone asks for it - i might be a good chance to submit it to several scripting sites like mircscripts.org or team-clanx. Please do it next time - thanks smile


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts

Link Copied to Clipboard