IMM_ALLOW

Keywords: IMM_ALLOW, IMM_DENY, WIZ_ALLOW, WIZ_DENY

Category: Admin

=== STAFF MANUAL === Usage: allow allow <player> <permission> deny <player> <permission> Description: Grant or revoke staff permission flags on another character. A permission -- for example CHAR, OLC, SHOPS, SCRIPT, or SECURITY -- is the bit the interpreter checks when deciding whether a staff member may run a STAFF_CMD-gated command. Each bit gates a different slice of the staff command set, and this pair lets senior staff hand out or claw back those bits. allow and deny share the same argument parsing and the same permission list; only the internal subcmd decides whether the matching bit is set or cleared on the victim. Listing Permissions: Running allow (or deny) with no arguments, or running it as an immortal below Senior Staff level, prints a table of every permission the game knows about alongside the commands each one gates. The output has one row per permission: <FIELD> : cmd1 cmd2 cmd3 ... Permissions with no matching staff commands are shown as None.. The listing is the fastest way to confirm which bit a given command lives behind before editing someone's flags. Granting and Revoking: With both arguments supplied, the command: - Resolves <player> with normal get_player_vis lookup. Unknown targets return "Player not found.". - Matches <permission> against the permission table via is_abbrev, so short forms like olca match OLCADMIN. An unrecognized name returns "Invalid choice.". - Toggles the corresponding bit on or off (depending on whether allow or deny was used). Both sides of the transaction are notified. The invoker sees: You allowed <vict> access to <perm> commands. You denied <vict> access to <perm> commands. The victim sees: <YourName> allowed you access to <perm> commands. <YourName> denied you access to <perm> commands. And the staff wiznet records: (GC) <name> allowed <vict> access to <perm> commands. Restrictions: - The invoker must be at least Senior Staff level to edit permissions. Below that level, the command only prints the permission table. - You cannot edit the permissions of a character whose level is >= your own (unless the target is yourself). Attempts return: "You cannot modify <them> permissions." - The ADMIN, OLCADMIN, and GAME permissions (indices 12+) are reserved for Admin-flagged staff. Lesser staff attempting to grant them see: "Invalid choice; only admins can allow ADMIN, OLCADMIN, and GAME commands." - NPCs cannot run the command ("Nope."). Notes: - Permission bits are stored on the victim's pfile via STF_FLAGS; the change is live immediately but is only persisted on the next pfile save. - Use wizhelp on the victim after toggling a flag to confirm which staff commands they can now see. Related Helpfiles: WIZ_WIZHELP === END MANUAL ===