![]() |
retrieving and updating stuff in serveroptions
I'm just wondering if there was a possible way of retrieving (and possibly updating) a list of all player accounts in the "staff=" and staffguilds "staffguilds=" in the serveroptions from a script - either wNPC or just a regular script on the serverside.
And since I'm on the topic of serveroptions, howcome in the "profilevars=", you can't use arrays to display stuff like doing: Health=playerstats[1],MP=playerstats[2] I think it's wasteful to create single player flags for each type of profile variables, when you can just create one player flag as an array and use the indexes to display the type of variables to be shown in the player's profile. |
profilevars looks at variables as strings, that's why. It would have to tokenize the string to do it like an array.
|
Quote:
|
I wish you could... Seems like this is planned as a possible update for the future though. I would love to be able to have stafftools auto add based on rc access. You could then just give rights to the tool based on folder rights.
|
Quote:
|
Quote:
|
There used to be a way to do a: load/savelines("serveroptions.txt");
Obviously, that posed a credible security threat. It hasn't been allowed since the NPC Server rights have been added (server does not allow NPC Server to have rights to serveroptions.txt). If you want to check for if a person is staff, an easy thing to do is just make sure every staff member has warptoxy and just check for that right (AKA: What Skyld said). |
serveroptions.<varname>
staffarray = serveroptions.staff.tokenize(","); PHP Code:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 11:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.