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 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
  #2  
Old 09-25-2011, 07:29 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
You would just specify:

GBall_Backupfiles.backup_files

In the GBall command.

GBall_Backupfiles.this.backup_files

would be referring to:

this.this.backup_files = {};

In your GBall_Backupfiles script.
__________________
Quote:
Reply With Quote
  #3  
Old 09-25-2011, 07:55 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
You would just specify:

GBall_Backupfiles.backup_files

In the GBall command.

GBall_Backupfiles.this.backup_files

would be referring to:

this.this.backup_files = {};

In your GBall_Backupfiles script.
:O Thank you very much.
__________________
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 01:10 AM.


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