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 04-07-2005, 07:24 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
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
__________________
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:23 AM.


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