View Single Post
  #2  
Old 02-02-2010, 04:22 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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/

__________________
Quote:
Reply With Quote