Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Suggestion for RC2: custom rights (https://forums.graalonline.com/forums/showthread.php?t=61245)

Ibonic 09-16-2005 11:43 AM

Suggestion for RC2: custom rights
 
Currently when viewing the rights of a player with RC2, there are two tabs: "IP Range and Rights flag", and "Folder rights". Let there be a new one: Custom rights

Players with full level 4 RC will be able to edit the configuration of the tab for the current playerworld. Or if that's not desired, maybe there could be a standard "change custom rights config" right.

Why? A lot of servers have custom staff commands (such as summon, jailing, etc.) that are scripted. Having a centralized/standard way to set these rights individually and check if a player has them in script would cut down on the amount of work needed and obviously be more organized.

Here's a simple example of the built-in script function I imagine:
NPC Code:

if (!hascustomright("summon")) {
player.chat = "(not authorized to summon)";
return(0);
}


Nabru 09-16-2005 11:47 AM

Sounds good. :D

EvilOmniscience 09-16-2005 12:13 PM

I agree, definitely a good idea.

Admins 09-16-2005 02:40 PM

It's already possible to add custom folder rights and check them via script like hasright(rights,filename)

Ibonic 09-16-2005 06:51 PM

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.

NicoX 09-16-2005 07:12 PM

Great Idea ;)

Inverness 09-18-2005 04:27 AM

Would be better if the Right Flags were in a scrolling checkbox list maybe? That way you could add new rights by some serveroption easily.

Ibonic 09-18-2005 06:33 AM

Quote:

Originally Posted by Inverness
Would be better if the Right Flags were in a scrolling checkbox list maybe? That way you could add new rights by some serveroption easily.

That's sort of what I meant, yes. I did mention checkboxes in my second post though wasn't very detailed about it.

Inverness 09-18-2005 09:46 PM

I would like to have a seperate chat channel for the NC, so those NC only messages and commands will only work there.
Also would like for the echo() function to send to only the person that executes it.
So I can have my own information about anything I need displayed without hogging the RC chat or having to open PMs from the server.

ZeLpH_MyStiK 09-21-2005 06:34 AM

how far exactly has the RC2 project been going along? I haven't heard anything good about it yet. Care to share Stefan? Please? XD

napo_p2p 09-21-2005 06:51 AM

Quote:

Originally Posted by ZeLpH_MyStiK
I haven't heard anything good about it yet.

I haven't heard anything at all about it yet >_<.


All times are GMT +2. The time now is 08:07 AM.

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