View Single Post
  #1  
Old 09-25-2011, 07:16 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
GBall RC Command Issue

I find that backing up the server using an RC command is quick, easy and simple. I don't want to have all of this listed in the control-npc however.

PHP Code:
{
    {
      
"levels/ganis/*.gani"false
    
}, {
      
"scripts/*"false
    
}, {
      
"weapons/*"false
    
}, {
      
"levels/images/*"false
    
}, {
      
"levels/*"false
    
}, {
      
"levels/guilds/*.txt"false
    
}, {
      
"npcs/*"false
    
}, FOLDER_NPCS
  

So I made a new DB-NPC called GBall_Backupfiles. I want to be able to make the Control-NPC read from the Backupfiles NPC and write the .arc file according to what it finds inside the the backupfile NPC. I am having issues. I can't figure out how to make it read from the NPC, since I am normally a fan of sql, and don't store data with DB-NPC's much. Here is the portion of the control NPC concerned with the backing up.

PHP Code:
findnpc("GBall").GBall("Backup of Lexia""data/Lexia_backupfiles"@server.backupnumber@"_"npc("GBall_Backupfiles").this.backupfiles); 
and here is the NPC GBall_Backupfiles.

PHP Code:
this.backupfiles = {
  {
    {
      
"levels/ganis/*.gani"false
    
}, {
      
"scripts/*"false
    
}, {
      
"weapons/*"false
    
}, {
      
"levels/images/*"false
    
}, {
      
"levels/*"false
    
}, {
      
"levels/guilds/*.txt"false
    
}, {
      
"npcs/*"false
    
}, FOLDER_NPCS
  
}
}; 
Can anybody help me out
__________________
Reply With Quote