sithilius@hotmail.com

ORKSPAWN

Security

Main
Core Settings
Region Spawning
Spawn Groups
Point Spawning
Chest Spawning
Security
Personal
Conversions
By default, the text command to edit OrkSpawn is accessible to everyone.
The Security section allows you to manage who can access the spawner, and which parts of it they can access. In the security section you can restrict the text command, and its individual menus, by command level and password.

The passwords are irreversably encrypted, so that if your datafiles are hacked, your spawner will be secure... although you would have a lot worse things to worry about it that happened.
Should you forget the password, you can remove them. Shut down the shard, then open the text file "pol\data\ds\orkspawn\core.x.txt" - the 'x' will vary in numbers, but change the latest number and delete the other ones. Once its open, there should be an element "EditorRestrictions" - deleting this will remove all password and cmdlevel restrictions on the editor. If you just want to remove the password, then you have to remove the last part of the array, for example:

 level1 a2:i4s6:x$3&2z
 |         |    |   |
 |         |    | The second part of the array - "s6:x$3&2z". A String with 6 characters - "x$3&2z"
 |         |    |The first part of the array - "i4". An integer - 4
 |         |Signifies an array - 'a' - with two parts - '2'... "a2:"
 |This is the first level of the gump. The level constants can be found in orkspawn.inc

Take the second part of the array - "s6:x$3&2z" - and replace it with "i0", so it looks like "level1 a2:i4i0"


If you want the encryption as used in OrkSpawn for one of your packages, see the include file "crypto.inc" in the Includes directory of OrkSpawn.
All you have to do to encrypt is use the function
  SithCrypt(string_to_encrypt);
Then, when you want to check the password, use:
  if( SithCrypt(password_to_check) == encrypted_password )