Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-26-2007, 08:50 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
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
Reply With Quote
  #2  
Old 01-26-2007, 09:37 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Chandler View Post
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().
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 01-27-2007, 06:35 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by napo_p2p View Post
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
Reply With Quote
  #4  
Old 01-27-2007, 09:06 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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?
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 01-27-2007, 09:12 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by zokemon View Post
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
Reply With Quote
  #6  
Old 01-27-2007, 10:20 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Chandler View Post
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
__________________
Do it with a DON!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:53 PM.


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