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 12-30-2005, 05:50 AM
Sacred Shadow Sacred Shadow is offline
Developer
Join Date: Dec 2004
Posts: 129
Sacred Shadow is on a distinguished road
Cool requestfiledeletion problems

I just can't get requestfiledeletion(str) to work. I've heard of people who have gotten it to work, and it is on the clientside of my script. Does anyone have any suggestions on how to get this working?
Yes the path is correct.

Does it have to be in the levels folder?

Thanks, if you can help.
Reply With Quote
  #2  
Old 12-30-2005, 10:50 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
It doesn't have to be in the levels folder, because I used it when I was attempting to find out how to delete scripts from client-rc. One thing you have to note is it's name: requestfiledeletion(), you have to have sufficient rights to delete the files.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 12-30-2005, 03:58 PM
Sacred Shadow Sacred Shadow is offline
Developer
Join Date: Dec 2004
Posts: 129
Sacred Shadow is on a distinguished road
Yeah, I know all this. I mean, It looks PERFECT on the script, I dont know why the hell it isn't working.
Reply With Quote
  #4  
Old 12-30-2005, 04:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You need to request a folder first, this is for the scripted RC:
requesttext("folder",foldername);
requestfiledeletion(filename);
requestfilerename(filename,newfilename);
requestfilemove(newfolder,filenames);
Reply With Quote
  #5  
Old 12-30-2005, 06:28 PM
Sacred Shadow Sacred Shadow is offline
Developer
Join Date: Dec 2004
Posts: 129
Sacred Shadow is on a distinguished road
Quote:
Originally Posted by Stefan
You need to request a folder first, this is for the scripted RC:
requesttext("folder",foldername);
requestfiledeletion(filename);
requestfilerename(filename,newfilename);
requestfilemove(newfolder,filenames);
I DID request the folder first x.x I guess i'll try again.


[Edit]
ApothiX, and Ajira both, tried and failed to help me. This is so annoying.
[/Edit]

Last edited by Sacred Shadow; 12-30-2005 at 07:53 PM..
Reply With Quote
  #6  
Old 12-30-2005, 09:19 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
We used this on Maloria.
It worked for Ajira, but the same script didn't work for me. We both had the same rights.
Reply With Quote
  #7  
Old 12-30-2005, 09:39 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Stefan
You need to request a folder first, this is for the scripted RC:
requesttext("folder",foldername);
requestfiledeletion(filename);
requestfilerename(filename,newfilename);
requestfilemove(newfolder,filenames);
Hmm, when I was using it I didn't have to requesttext the folder, I Just simply did: requestfiledeletion("path/to/file");
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 09:19 AM.


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