X-Static Codes
Chat to Us @
SNM Chat
in #X-Static
Home
|
Contact
Login
Register
Search
Scripting
Snippets
Tutorials
Competitions
Links
Memberlist
Pastebin
Affiliates
Contact Admin
Sponsors
Nameless
Official #nameless website
Rooted.in
I got Rooted did you?
Stats
Total Members: 56
Newest User: Nofilicity
Snippets Added: 153
View
Text 2 Chr
Snippet Author:
FURBY
Rated:
Snippet Description:
just a simple one really,
On Bot type: !chr your text here
On you type: /txt2chr your text here
Enjoy
on *:text:!chr*:#: { msg $chan $txt2chr($2-) } alias txt2chr { if ($1-) && ($len($1-) <= 91) { var %a = $len($1-) if (%a == 1) { var %c = $+($,chr,$chr(40),$asc($1),$chr(41)) } else { var %b = 1,%c = $+($,+,$chr(40)) while (%b < %a) { if ($asc($mid($1-,%b,1)) == 32) { %c = $+($left(%c,-1),$str($chr(32),2)) inc %b } else { %c = $+(%c,$,chr,$chr(40),$asc($mid($1-,%b,1)),$chr(41),$chr(44)) inc %b } } %c = $+(%c,$,chr,$chr(40),$asc($mid($1-,%b,1)),$chr(41),$chr(41)) } if ($isid) { return %c } else { echo $color(info) -a *** %a chars: %c } } else { echo $color(info) -a *** Invalid parameters $len($1-) chars, min 1 to 91 max characters! | halt } }
Favorite Script
-
Smilies
Message:
Comments: