Quote:
Originally Posted by Stefan
It's already possible to add custom folder rights and check them via script like hasright(rights,filename)
|
Yes, I'm aware of that. It's what I'm currently working on, and is what made me think of this actually.
Example of some of the rights I have:
NPC Code:
rw rights/warpto-xy
rw rights/warpto-player
rw rights/warp-player
rw rights/warp-level
rw rights/update-level
rw rights/update-gmap
rw rights/summon-player
rw rights/summon-level
rw rights/summon-server
rw rights/heal-player
rw rights/heal-level
rw rights/heal-server
rw rights/showlevel-player
rw rights/dechat-player
rw rights/gag-player
rw rights/ungag-player
rw rights/denick-player
rw rights/jail-player
rw rights/unjail-player
rw rights/redirect-player
rw rights/tag-player
rw rights/getitems
rw rights/commandsofftag
And I also have actual files existing for staff to read the description of what each command does. But they only get read rights of course.
NPC Code:
--example of rights/warpto file to explain command to staff:
right:
warpto
description:
person with this right will be able to warp themselves
to most levels (minus jail levels, etc.), and all coordinates
there is also a preset function built-in to allow for quick access to 'saved locations'
usage format (in-game command):
warpto <x> <y>
warpto <x> <y> <levelname.nw>
warpto <levelname.nw> (default coordinates of 30.5, 30 with onwall checking)
warpto <account>
warpto <nickname>
warpto -find <partial nickname>
warpto [p] add <preset name> <"this" or coordinates>
warpto [<preset name>]
usage examples:
warpto 30.5 30
warpto 30.5 30 graalcity_outside_03.nw
warpto graalcity_outside_03.nw
warpto Ibonic
warpto Ibonic (Some Guild)
warpto -find Ibo
warpto [p] add level14 35 30 graalcity_outside_03.nw
warpto [level14]
I think having an actual custom rights section would be better for the future (RC2), especially so they can be given out without every admin needing edit folder rights. And it'll make it easier if we could set these rights like the standard ones - simple checkboxes with no typing, copy/pasting or guessing involved. Plus on playerworlds with a lot of custom rights, seeing them all in the folder rights section isn't nice.