Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Filebrowser for a Client-RC (https://forums.graalonline.com/forums/showthread.php?t=70709)

Skyld 12-17-2006 11:45 PM

Quote:

Originally Posted by godofwarares (Post 1254622)
o_o

I didn't know you could do requesttext("folder","C:\"); o_O

You can't. requesttext() gets things from the server.

godofwarares 12-18-2006 12:08 AM

Now another 2 questions:

1.) How do I get the contents of said file and put it in a GUI Text Ctrl?

2.) What is the command to delete folders?

:)

I'm making this as functional as possible :o

godofwarares 12-18-2006 12:10 AM

Quote:

Originally Posted by Skyld (Post 1254624)
You can't. requesttext() gets things from the server.

Aw :(

I should really study all this crap. I never used reqeustText() before I made my Client-RC x_x

godofwarares 12-18-2006 12:15 AM

Quote:

Originally Posted by godofwarares (Post 1254639)
Now another 2 questions:

1.) How do I get the contents of said file and put it in a GUI Text Ctrl?

2.) What is the command to delete folders?

:)

I'm making this as functional as possible :o

Got #2: requestfiledeletion(str);

Skyld 12-18-2006 12:22 AM

I guess you will need to use var.loadlines("path"); for getting the contents of the file either before downloading it (and then triggeractioning it), or after downloading it to your computer and saving it in scriptfiles or so.

Also please use the http://forums.graalonline.com/forums...ttons/edit.gif button to edit your posts while it is available instead of double-posting.

godofwarares 12-18-2006 12:30 AM

Thanks ^^

Btw sorry :( I'll stop double-posting.

--------------------------------------
Edit:

By the way, can anyone post an example
of how to load a file's contents and
display them in F2 window or in a GUI
ML Text Ctrl?

--------------------------------------

godofwarares 12-28-2006 03:55 PM

Eh cmon!

I need to know how to get a file's contents and display them :(

(I have to have it Client-Side however x.x)

xXziroXx 12-28-2006 09:38 PM

Quote:

Originally Posted by godofwarares (Post 1258063)
Eh cmon!

I need to know how to get a file's contents and display them :(

(I have to have it Client-Side however x.x)


this.var.loadlines(path/to/file/filename);

godofwarares 12-29-2006 12:58 AM

Quote:

Originally Posted by xXziroXx (Post 1258176)
this.var.loadlines(path/to/file/filename);

I do hope thats Client-side.

Skyld 12-29-2006 01:00 AM

Quote:

Originally Posted by godofwarares (Post 1258259)
I do hope thats Client-side.

Serverside it will load a file from the server.
Clientside it will load a file from inside the scriptfiles/ folder in your Graal folder.

godofwarares 12-29-2006 01:06 AM

Quote:

Originally Posted by Skyld (Post 1258260)
Serverside it will load a file from the server.
Clientside it will load a file from inside the scriptfiles/ folder in your Graal folder.

Aw man. Now I gotta go through all that serverside crap :(


All times are GMT +2. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.