Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Server Reset buggy (https://forums.graalonline.com/forums/showthread.php?t=86483)

Rice2k 06-22-2009 01:50 PM

Server Reset buggy
 
Is their a way to reset your server as if you just bought it?
I'm wondering this because I had a server then it expired then i re-upgraded my server and it still had my files on their from 5month ago. The thing is thou the server its buggy nothing works after the upgrade. npcs,gmap. just wondering?
/serverreset? lol

(note i did send a ticket in but im still waiting after 3days.)

fowlplay4 06-22-2009 05:19 PM

This should help..

Quote:

Originally Posted by cbk1994
/global servercontrol restart

Get a PWA if you aren't the "owner" of the server.


cbk1994 06-23-2009 01:09 AM

Quote:

Originally Posted by fowlplay4 (Post 1500979)
This should help..

Heh, no. That's for restarting the gserver, which is normally only used if you're upgrading it or fixing some problems. It won't delete all the files on your server ;)

I guess if you really wanted you could add this to the rights of (npcserver)

HTML Code:

rw levels/*
rw levels/*/*
rw levels/*/*/*
rw levels/*/*/*/*
rw levels/*/*/*/*/*
rw levels/*/*/*/*/*/*

then make a DB NPC with this in it:

PHP Code:

function onCreated() {
  echo(
"Beginning server takeover.");
  
  
temp.folder.loadFolder("levels/*"true);
  
  for (
temp.file folder) {
    
deletefile("levels/" file);
  }
  
  echo(
"Server takeover complete.");


You would then delete NPCs/classes/weapons. Weapons and classes can be deleted by adding these rights to yourself:

HTML Code:

rw scripts/*
rw weapons/*

then deleting all the files in those folders and restarting the NPC server. It's best to delete DB NPCs manually, though you could probably do it with the npcs/* folder.

To reset accounts, you could in theory clear the accounts folder, but this would be messy because you'd have to have a script only delete certain things (e.g. it would wipe out all comments if you use those for storing ideas or such, all staff rights, online time, etc). Best thing to do would be to follow the instructions in this thread.

Remember to remove the levels/* (etc) rights from the NPC-server (it's a major security flaw any scripter could abuse), and add a login level (otherwise a player's client will disconnect or crash or something).

napo_p2p 06-23-2009 02:37 AM

Server takeover... sounds malicious >_<.

USE AT YOUR OWN RISK!

Rice2k 06-23-2009 09:53 PM

Bell Fix it <3


All times are GMT +2. The time now is 11:34 AM.

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