Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - IbanX

Pages: 1 [2] 3 4 5 6 7 ... 14
16
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 11:42:20 PM »
I might quit blockland...

DO IT pusillanimous individual

17
Modification Help / A Guide to Document Altering
« on: October 27, 2007, 08:46:23 PM »
This guide will show you how to set up functions that will read and write on Documents. It is very helpful for keeping a permanent memorabilia of events. These can be automatic or manual. I will show you both.
Lets get started. I will show you the basic principals of reading and writing.

To keep things organized, create a folder called "manipulate"

Make a new document inside that folder and call it: script_stickynote.cs
Open it up and type this in:
Code: [Select]
function ServerCmdDocRead(%client, %doc)
{
%file = new FileObject(); // This makes %file a File-Type Variable

if(!isFile("Add-Ons/manipulate/" @ %doc @ ".txt")) { messageClient(%client,"","This file does not exist."); return;} // Without this Test-For-Existence code, an invalid file name would spell crash.

%file.openforRead("Add-Ons/manipulate/" @ %doc @ ".txt"); // Sets the value of %file
while(!%file.isEOF()) // Will loop through every line of the file until 'End of File'
{
%line = %file.readLine(); //%line = the current line
  messageClient(%client,"","\c2" @ %line); //Tells the client the line
}
messageClient(%client,"","\c6End of File"); //Tells the client the document has been ended
%file.close(); //Closes the document
%file.delete(); //Deletes the *VARIABLE*
}

Save and, in the same folder, make a document. Call it whatever you want, but make sure it's extention is  .txt. Put inside the document we just made this:

Quote
Good Job!
Much success!

Save and open up blockland. Make sure script_stickynote.cs is checked.

Type this in: /docread *NAME OF THE DOC YOU JUST MADE and press enter. You should get this:

Quote
Good Job!
Much success!

End Of Document



That's the basics of a document read. Now it's time to write.

Add this to your stickynote.cs:

Code: [Select]
function ServerCmdDocWrite(%client, %doc, %write)
{
%write = strreplace(%write, "SPC", " "); // Replaces the word 'SPC' with a space. Cheap ass way of avoiding the 50 variable method.

%file = new FileObject();

if(!isFile("Add-Ons/manipulate/" @ %doc @ ".txt")) { messageClient(%client,"","This file does not exist."); return;}

%file.openforWrite("Add-Ons/manipulate/" @ %doc @ ".txt"); // Opens the Document for Writing
%file.writeline(%write); // Writes the Line

messageClient(%client, "", "\c2The file was written upon."); //Alerts client that the file has been written to

%file.close();
%file.delete();
}

Now save, execute the file, and type: /docwrite *NAME OF THE DOCUMENT* HelloSPCMySPCGoodSPCFriend!

You'll get this:
Quote
The File was written Upon

Type
/docread *NAME OF THE DOCUMENT*

And you should get this:
Quote
Hello My Good Friend
End Of Document

More to come.

18
Forum Games / Re: What is the person above you avatar saying?
« on: October 27, 2007, 03:46:46 PM »
SNOT HATER

It makes me want to shout this:


19
Forum Games / Re: What is the person above you avatar saying?
« on: October 27, 2007, 03:40:58 PM »
Change it you tactless friend.

(<3 you Snot!)

20
Forum Games / Re: What is the person above you avatar saying?
« on: October 27, 2007, 03:36:57 PM »
"I'm so loving witty by having an avatar that says 'No-Avatar'; It took months of consideration and polling to come up with something as unique (and ironically funny!) as this."

21
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:32:32 PM »
Dont quote me you little Tard
do you really still hate me for something that happened in a video game like 6 months ago...

No your just gay beyond reason
That makes no sense. You don't know me, yet you're making false(Ambiguous) presumptions about people your meeting on the internet me....(2 Main Nouns - Ellipses not needed) Thats quite sad. There's also the fact you think you know everyone on the internet enough to tell them what they are, ... even when its false. There's also no problem with gay people; I can say this with absolute certainty because I've sucked and been pounded by so many black richards It cant possibly be immoral.

22
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:21:44 PM »
Dont quote me you little Tard
do you really still hate me for something that happened in a video game like 6 months ago...

No, you're just gay beyond reason.

24
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:17:21 PM »
I can shootz threw walls! i hax!

plz ban mods
betrayal!

Ministry doesn't like me, does he? It wouldn't count as betrayal.

25
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:13:51 PM »
I can shootz threw walls! i hax!

plz ban mods

27
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:08:56 PM »
I didn't mind ace leaving cause i didn't know him, I got over tails leaving, but i just found out partizan left D:


28
Drama / Re: Well Off-topic has gone to ice cream and it only took 2 days
« on: October 27, 2007, 03:06:08 PM »
I think all those wars has been started by a person. *rolls eyes* a really BIG person.


Lulz. You keep mentioning I'm fat; It's like that's the only opening you see fit to try and assault. If it weren't for the fact I am taking care of myself at this point, I might actually be offended.

29
Drama / Re: Vote on the loveuality of Aviv
« on: October 27, 2007, 03:04:56 PM »
Iban, GTFO.

Hey Aloshi! Long time no see, how you been?

30
Drama / Re: The Fall Of Blockland...
« on: October 27, 2007, 03:04:08 PM »
I love you, too, Ministry.

Pages: 1 [2] 3 4 5 6 7 ... 14