SRL Archive - Other Scripts

Text to Chri


XxKanexX

2006-04-19 00:38:18

Re-make of another old script:


function WhatCase(c: char): integer;
var alph: string;
var i, e: integer;
begin
alph:= 'abcdefghijklmnopqrstuvwxyz';
for i:= 1 to length(alph) do
begin
for e:= 1 to length(alph) do
begin
if (i > 1) then
begin
alph:= uppercase(alph);
if (c = strget(alph, e)) then
begin
result:= 2;
exit;
end;
end else
begin
alph:= lowercase(alph);
if (c = strget(alph, e)) then
begin
result:= 1;
exit;
end;
end;
end;
end;
end;

function TextVal(c: char): integer;
var i: integer;
begin
if (WhatCase(c) = 1) then
begin
for i:= 97 to 122 do
begin
if (c = Chr(i)) then
begin
result:= i;
exit;
end;
end;
end else
begin
for i:= 65 to 90 do
begin
if (c = Chr(i)) then
begin
result:= i;
exit;
end;
end;
end;
for i:= 1 to 255 do //Other characters. Or if it didn't find the others.
begin
if (c = Chr(i)) then
begin
result:= i;
exit;
end;
end;
end;

function TextToChri(s: string): string;
var i: integer;
begin
for i:= 1 to length(s) do
begin
if (i >= length(s)) then
result:= result + 'Chr(' + inttostr(TextVal(strget(s, i))) + ')'
else
result:= result + 'Chr(' + inttostr(TextVal(strget(s, i))) + ')' + ' + ';
end;
end;

Jagex_Fagex

2006-04-20 05:14:17

haha, thats pretty awesome, but it only gives the code for CAPITALS, you should make a const or sumthin, so that it can give you CAPS or normal code.

probably didn't make sence,

XxKanexX

2006-04-20 08:51:55

Blah, still get's the point across ;)

Starblaster100

2006-04-23 17:08:10

Dude, your a legend :D

XxKanexX

2006-04-24 02:30:23

There's a use for this? - Woot. I'm a legend!

Jagex_Fagex

2006-04-24 07:19:53

haha, yes you are…

The Un-Named

2006-04-24 10:23:58

From: Starblaster100
Dude, your a legend :D


Couldn't of put it better myself! :)

Starblaster100

2006-04-24 13:46:58

From: XxKanexX
There's a use for this? - Woot. I'm a legend!


Ofcourse there is a use for this! There is a use for everything you post!
Email me EVERYTHING you have ever made please and ill put good use to it :D

XxKanexX

2006-04-26 02:36:31

Ah, Calm down Stary <3 Lol :p

Thanks for the comments, guys ;D

Starblaster100

2006-04-26 11:51:19

From: XxKanexX
Ah, Calm down Stary <3 Lol :p

Thanks for the comments, guys ;D


DUDE IM WAITING FOR MY EMAIL !!!!!11!!!1!!11!!!ONE!!!ONE!!!!!11!NFNDHDIIJDUHGFSDIOJRFUGJBSDOVOGEVOBREOBRVOB….!

driger1592

2006-04-26 16:35:56

Better check your spam folder ;) Gmail might be filtering useless scripts!

Starblaster100

2006-04-26 17:20:12

From: driger1592
Better check your spam folder ;) Gmail might be filtering useless scripts!


haha, very clever. i like it ;)

Bam Bam

2006-05-21 01:58:33

I know this is a little old but ty anyways this is so useful

XxKanexX

2006-05-21 03:42:07

I edited it with a new version i made for Starblaster.

It now recognizes capitals and other characters. ;)

Iamadam

2006-05-21 06:44:14

It's the beginnings of SCAR character obfuscation :P