Graal Forums

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

Andy0687 04-07-2005 07:24 PM

FileExists?
 
Earlier i was scripting out a system for a battle thingy.

anyways, i was wondering if there is a way to check serverside if a fileexists or not?

I was doing something like

NPC Code:

if (fileexists(level.nw)) {
//
}else{
//
}



In the else, i was using copylevel so that it could copy the level to the new folder.

I even tried using foldername/levelname.nw in the fileexists, but it didnt work either, as the top condition was all that was returned.

If there is a way to do this without all the trouble, i really cant figure it out, thanks for help!

Edit:

picked up fileexists from this thread
http://forums.graalonline.com/forums...ad.php?t=50863


All times are GMT +2. The time now is 03:41 PM.

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