Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 10:21 PM.


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