- Xalos, MARBLE MAN, Port, Demian, Barnabas, etc: You guys have helped me improve my modeling and coding skills, as well as made me more interesting in doing just that.
:o
I learned some code stuffs (Mostly repetition and practice helps)
I learned how to exploit eval
I learned some basic game design elements
I learned that if you pay for someone's hosting once, they will give you super admin, or not care
[quote pony link=topic=240930.msg6874942#msg6874942 date=1378323537]
- Xalos, pony pony Port, Demian, Barnabas, etc: You guys have helped me improve pony pony and coding skills, as well as made me more pony in doing just that.
pony
pony
pony learned some code pony (Mostly repetition and practice helps)
I pony how to exploit eval
pony learned some pony game design elements
I learned that pony you pay for pony hosting once, they pony give you super admin, pony not care
function ponify(%s)
{
for(%i=0;%i<getWordCount(%s)/6;%i++)
%s=setWord(%s,getRandom(0,getWordCount(%s)-1),"pony");
return %s;
}
function ponifile(%n,%d)
{
if(!isFile(%n))
{
echo("ERROR - Could not find file \""@%n@"\"");
return;
}
if(isFile(%d))
{
echo("ERROR - Will not overwrite file \""@%d@"\"");
return;
}
%f=new FileObject();
%e=new FileObject();
%f.openForRead(%n);
%e.openForWrite(%d);
while(!%f.isEOF()&&%a++<10)
%e.writeLine(ponify(%f.readLine()));
%f.close();
%e.close();
%f.delete();
%e.delete();
if(!isFile(%d))
{
echo("ERROR - Could not write to file \""@%d@"\"");
return;
}
else
echo("Successfully ponified \""@%n@"\" to file \""@%d@"\"");
}
Ponify your files! *This code is safe, ask anyone who knows what they are doing to confirm if you wantHow to use:
1) Save this file under
~/blockland/config/ponyfile.cs2) Create any text files you want ponifiled in the config folder (not in ~/blockland/)
3) Open Blockland
4) Press
~ or tilde to open the console
5) Type
exec("config/ponifile.cs"); into the console
6) To ponify a file, type this into the console:
ponifile("config/FILENAME.txt","config/NEWFILENAME.txt");7) Once it says
Succesfully ponified "config/FILENAME.txt" to file "config/NEWFILENAME.txt", Check your config folder for the
NEWFILENAME.txtYou can now ponify text files