Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   requestfiledeletion problems (https://forums.graalonline.com/forums/showthread.php?t=63077)

Sacred Shadow 12-30-2005 05:50 AM

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.

ApothiX 12-30-2005 10:50 AM

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.

Sacred Shadow 12-30-2005 03:58 PM

Yeah, I know all this. I mean, It looks PERFECT on the script, I dont know why the hell it isn't working.

Admins 12-30-2005 04:05 PM

You need to request a folder first, this is for the scripted RC:
requesttext("folder",foldername);
requestfiledeletion(filename);
requestfilerename(filename,newfilename);
requestfilemove(newfolder,filenames);

Sacred Shadow 12-30-2005 06:28 PM

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]

Yen 12-30-2005 09:19 PM

We used this on Maloria.
It worked for Ajira, but the same script didn't work for me. We both had the same rights.

ApothiX 12-30-2005 09:39 PM

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");


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

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