Quote:
Originally Posted by fowlplay4
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.file) SPC "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?