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 11-27-2011, 09:29 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Detecting upload/download

I was wondering if there is any way to detect if something is being uploaded or downloaded from RC. Since it saves when a player uploads or downloads something to the rc log, I was wondering if I could capture a player doing that and act upon it?
__________________
Reply With Quote
  #2  
Old 11-27-2011, 09:38 PM
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
There's onLevelFileUpdated(filename) which will let you track uploads/deletions but not who was responsible for it.

I.e:

PHP Code:
function onLevelFileUpdated(filename) {
  if (
fileexists("levels/" filename)) {
    echo(
extractfilename(filenameSPC "was updated!");
  } else {
    echo(
extractfilename(filenameSPC "was deleted!");
  }

I don't think it's possible otherwise.
__________________
Quote:
Reply With Quote
  #3  
Old 11-27-2011, 09:40 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by fowlplay4 View Post
There's onLevelFileUpdated(filename) which will let you track uploads/deletions but not who was responsible for it.

I.e:

PHP Code:
function onLevelFileUpdated(filename) {
  if (
fileexists("levels/" filename)) {
    echo(
extractfilename(filenameSPC "was updated!");
  } else {
    echo(
extractfilename(filenameSPC "was deleted!");
  }

I don't think it's possible otherwise.
That's interesting. Thank you.
__________________
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 07:25 PM.


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