View Single Post
  #4  
Old 02-02-2010, 05:34 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Quote:
Originally Posted by fowlplay4 View Post
In theory this should work, but it doesn't.

PHP Code:
function urltest() {
  
temp.url "http://forums.graalonline.com/forums/images/misc/vbulletin3_logo_white.gif";
  
temp.req requesturlasgamefile(temp.url"levels/images/vbulletin3_logo_white.gif"0);
  
this.catchevent(temp.req"onReceiveData""onFileTransferred");
}

function 
onFileTransferred(obj) {
  echo(
extractfilename(obj.fileSPC "received. (" obj.fulldata.length() @ " bytes)");

But you can also try the redirect option in the Folder Configuration.

I.e:
NPC Code:

redirect onlineimages/*.png http://www.example.com/images/

And what does the former do? Does it add it to the server, or is it sent to the client, is it called on the client? Does the NPCServer need read/write access to the directory?
Reply With Quote