Page 1 of 1
Im back! With more errors :)
Posted: Wed Jun 21, 2006 2:31 pm
by Poi
I recently added tranie under config/cmd.src and now for some reason, to have someone have access to GM commands, they have to be Admin, etc etc, to have the commands of on level, they have to be one level above.
Posted: Wed Jun 21, 2006 9:03 pm
by CWO
right... and the problem is???
POL is set up with a numbered cmdlevel structure
0 - player
1 - counselor
2 - seer
3 - gm
4 - admin
5 - test
if you added a new cmdlevel for trainee then I'm sure your levels are like this now
0 - player
1 - trainee
2 - counselor
3 - seer
4 - gm
5 - admin
6 - test
when you add any cmdlevel in, every cmdlevel above it is set 1 higher so all of your scripts have to be configured with cmdlevel checks to be 1 higher and all of your staff at higher cmdlevels must be raised in rank by 1 cmdlevel to keep their original rank.
Posted: Thu Jun 22, 2006 5:11 am
by Firedancer
..... might really help to use constants for your cmdlvl's in your scripts.
Posted: Thu Jun 22, 2006 7:14 am
by Poi
I removed tranie, and its still the same...
Admin=gm
Gm=seer
Seer=councler
councler=player
etc
Posted: Fri Jun 23, 2006 1:15 am
by Shinigami
just post your cmds.cfg
as Firedancer suggested, constants are the best way to handle it
Shinigami
Posted: Fri Jun 23, 2006 8:24 am
by Poi
Code: Select all
/////////////////////////////////////////////////////////////////////////////
//
// cmdlevel.cfg: Defines command levels
//
// command levels are defined in increasing order of power.
// command level 'numbers' will be assigned automatically from this file.
//
// If you change the cmdlevel names from player/coun/seer/gm/admin/test,
// it is recommended you define 'Alias' lines to associate these basic
// cmdlevels with your custom cmdlevels. This way, package cmds.cfg files
// will place their commands into your command structure.
//
// The following properties can be specified for a CmdLevel:
// DIR [dir] A directory where commands for this cmdlevel can be found
// More than one 'dir' directive can be specified.
// ALIAS [name] Another cmdlevel name packages might refer to this as
// More than one 'alias' directive can be specified.
//
/////////////////////////////////////////////////////////////////////////////
CmdLevel Player
{
DIR scripts/textcmd/player
}
CmdLevel Coun
{
DIR scripts/textcmd/coun
}
CmdLevel Seer
{
DIR scripts/textcmd/seer
}
CmdLevel GM
{
DIR scripts/textcmd/gm
}
CmdLevel Admin
{
DIR scripts/textcmd/admin
}
CmdLevel Test
{
DIR scripts/textcmd/test
}