Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Moving Files (https://forums.graalonline.com/forums/showthread.php?t=71723)

Chandler 01-26-2007 08:50 AM

Moving Files
 
Is there a way to move a file by script? I've searched the Graal Bible and couldn't find anything on it! Thanks^^

napo_p2p 01-26-2007 09:37 AM

Quote:

Originally Posted by Chandler (Post 1269676)
Is there a way to move a file by script? I've searched the Graal Bible and couldn't find anything on it! Thanks^^

Well, I guess you can do a copyfile(), then deletefile(). Also, I think the NPC server needs rw to the files being read and written.

If you need this for some type of clientrc, then it's better to use: requestfilesmove().

Chandler 01-27-2007 06:35 AM

Quote:

Originally Posted by napo_p2p (Post 1269683)
Well, I guess you can do a copyfile(), then deletefile(). Also, I think the NPC server needs rw to the files being read and written.

If you need this for some type of clientrc, then it's better to use: requestfilesmove().

Nah, I created a new account database. Thanks, I can try that ^^

zokemon 01-27-2007 09:06 AM

Remember! If you make something that essentially puts account data in text files in the file browser, don't forget to make trials not save! We don't want good servers getting in trouble now do we?

Chandler 01-27-2007 09:12 AM

Quote:

Originally Posted by zokemon (Post 1270123)
Remember! If you make something that essentially puts account data in text files in the file browser, don't forget to make trials not save! We don't want good servers getting in trouble now do we?

Yeah, I can't try that though!
I was going to make it so trials can make accounts, but they won't save. :)
Just did that actually, it wasn't that hard. Haha

zokemon 01-27-2007 10:20 AM

Quote:

Originally Posted by Chandler (Post 1270126)
Yeah, I can't try that though!
I was going to make it so trials can make accounts, but they won't save. :)
Just did that actually, it wasn't that hard. Haha

Hehe


All times are GMT +2. The time now is 01:45 AM.

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