Editing command permission levels menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    Forsight's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Editing command permission levels

    I've been looking around on the forums to find a solution, yet couldn't really find anything to help me. The problem is that I'm currently running an RP server and since we're starting to get a proper playerbase me and the shared owner decided to allow only a few commands to be used by normal players. The point where I get stuck is that the accounts I've assigned to be normal members (permissions equal to '0') don't have access to a single command I've assigned to their security level. I go into commands.sql, change the security values to 0 so that only said rank and higher can use the regarding command, yet nobody with lower than administrative status, except for moderators, are able to use a single command.

    For example, I'd like to allow the use of '.character additem' to everyone, even though only Mods+ can use them atm. The message it'd display ingame is not more than the command in the chatbox. In this case it shows up <insertplayername> says: .char additem.

    Would be grateful if anyone came up with a solution. Thanks in advance.

    Editing command permission levels
  2. #2
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know anything about ArcEmu, but unless i'm misunderstanding, you're editing an SQL file.

    This does not actually change the database. You will have to edit the relevant table in the database using Navicat or SQLyog.
    The most beautiful thing we can experience is the mysterious. It is the source of all true art and all science. He to whom this emotion is a stranger, who can no longer pause to wonder and stand rapt in awe, is as good as dead: his eyes are closed.
    Albert Einstein

  3. #3
    Forsight's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's what I'm doing, ofcourse, using SQLyog.

  4. #4
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sounds like the SQL information isn't the problem, but rather where it reads the character's permissions from the SQL and saves that variable. For example, something like:

    Pseudo-code:
    Code:
    if(cmdArgs[0].equals(".char")) {
        if(cmdArgs[1].equals("additem")) {
            player.addItem(args[2], args[3]);//add id, amoutn
        }
    }
    And seeing this, you do something like:

    Code:
    if(cmdArgs[0].equals(".char") && player.getPermissions() == 0) {//Normal Player
        if(cmdArgs[1].equals("additem")) {
            player.addItem(args[2], args[3]);//add id, amoutn
        }
    }
    And that might cause the problem:
    Code:
    if(player.getPermissions() == 1) {
    //250 lines of previous commands here
        if(cmdArgs[0].equals(".char") && player.getPermissions() >= 0) {//Normal Player
            if(cmdArgs[1].equals("additem")) {
                player.addItem(args[2], args[3]);//add id, amoutn
            }
        }
    //More commands after this...
    }
    So that the program is never executing that particular command because it's seeing "Oh, you typed in .char, so that's fine but, UH OH you don't have the required permissions as stated before at the beginning of the block, so let's ignore this command."



    Or another possible explanation is that you might have done > instead of >=. The first would make sense for your problem, because you might be doing:
    Code:
    if(cmdArgs[0].equals(".char") && player.getPermissions() > 0) {//Allow anyone with permissions GREATER THAN 0 to execute this command
    Whereas you want to be doing:
    Code:
    if(cmdArgs[0].equals(".char") && player.getPermissions() >= 0) {//Allow anyone with 0 or higher to execute this command
    The only way we could tell for sure is if you posted your edit to the commands.

  5. #5
    Forsight's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I feel like this might be the solution, even though I'm not very sure where I can locate these codes you're speaking off. So if you could tell me the location or type of one such file, that'd be great. Thanks for the effort by the way.

  6. #6
    Forsight's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sadly, I'll have to bump.

  7. #7
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What base are you using?

    EDIT: Nevermind, lol.

    I'll download the ArcEmu source and see where it might be.

  8. #8
    Forsight's Avatar Private
    Reputation
    1
    Join Date
    Oct 2010
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem was not yet solved. I tried some things without succes and I wouldn't like mutiny.

Similar Threads

  1. [ArcEmu] [DB] Gm Command Access Level Not Working
    By BanzBoyz77 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 04-02-2011, 09:30 PM
  2. [Mangos] Adjusting Command Security Levels
    By Torpid in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 05-16-2010, 12:38 PM
  3. How do i edit the starting level at Ascent
    By nickeg in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-10-2008, 01:08 PM
  4. GM command for level up?
    By Froddy in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-05-2008, 05:22 PM
  5. Whats the command to level up ranks?
    By sabend in forum World of Warcraft General
    Replies: 2
    Last Post: 11-24-2006, 06:45 AM
All times are GMT -5. The time now is 06:49 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search