[ArcEmu] Change what GM ranks show up in GM list menu

Shout-Out

User Tag List

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

    [ArcEmu] Change what GM ranks show up in GM list

    Hey, I did ask on ArcEMU's website, but they're never helpfull and the others i've tried have just had me given replies saying they dont know, so I guess here is a last dich atempt at getting this sorted!

    I would like to change the .gm list command, as to what GM levels show up in it, currently, rank 1 GMs show up in the GM list command, when we only want Level 2 and AZ (or created command over-ride) ones to show up, but were stumped as to where to change this and have changed alot of code over the last few days.

    I was just wondering, if the code below is actually where you edit the GM ranks that show up in GM list.

    Code:
    bool ChatHandler::HandleGMListCommand(const char* args, WorldSession *m_session)
    {
    	WorldPacket data;
    	bool first = true;
    
    	bool isGM = m_session->GetPermissionCount() != 0;
    
    	PlayerStorageMap::const_iterator itr;
    	objmgr._playerslock.AcquireReadLock();
    	for (itr = objmgr._players.begin(); itr != objmgr._players.end(); itr++)
    	{
    		if(itr->second->GetSession()->GetPermissionCount())
    		{
    			if(isGM || !sWorld.gamemaster_listOnlyActiveGMs || (sWorld.gamemaster_listOnlyActiveGMs && itr->second->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM)))
    			{
    				if(first)
    					GreenSystemMessage(m_session, "There are following active GMs on this server:");
    
    				if(sWorld.gamemaster_hidePermissions && !isGM)
    					SystemMessage(m_session, " - %s", itr->second->GetName());
    				else
    				{
    					if(sWorld.gamemaster_listOnlyActiveGMs && !itr->second->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM))
    						SystemMessage(m_session, "|cff888888 - %s [%s]|r", itr->second->GetName(), itr->second->GetSession()->GetPermissions());
    					else
    						SystemMessage(m_session, " - %s [%s]", itr->second->GetName(), itr->second->GetSession()->GetPermissions());
    				}
    
    				first = false;
    			}
    		}
    	}
    	objmgr._playerslock.ReleaseReadLock();
    
    	if(first)
    		SystemMessage(m_session, "There are no GMs currently logged in on this server.");
    
    	return true;
    }
    I am willing to pay $ for help if we can get this working (also for a custom haste cap, like Eternion and Mond WoW - We've tried making edits to the haste, but none have worked.)

    Thanks

    Chris
    Last edited by cotash; 04-13-2011 at 05:07 PM.

    [ArcEmu] Change what GM ranks show up in GM list
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    bool isGM = m_session->GetPermissionCount() != 0;

    isGM will be true if permissions are not 0/empty.

    if(isGM ||

    If isGM == true, or other conditions.

    You want to change it so that the boolean has different conditions.

    bool isGM = m_session->GetPermissionCount() != 0 && != 1; // If not 0 and not 1

  3. #3
    cotash's Avatar Private
    Reputation
    2
    Join Date
    Oct 2010
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    bool isGM = m_session->GetPermissionCount() != 0;

    isGM will be true if permissions are not 0/empty.

    if(isGM ||

    If isGM == true, or other conditions.

    You want to change it so that the boolean has different conditions.

    bool isGM = m_session->GetPermissionCount() != 0 && != 1; // If not 0 and not 1
    I tried the one below with the != 1 but it gave a build error so I changed it to

    Code:
    bool isGM = m_session->GetPermissionCount() != 0 && 1;
    That above gave no build error, about to try it out now.

    Any chance you know where to edit the actual Haste cap? so that say a player has 2000 haste they'll have a 0.50 speed on casting + Melee, and if they have 4000 it turns to 0.00 so they get instant cast spells/heals and melee without a swing cooldown? since some gear will have haste on it, that people get to effect their cast/melee speed, we dont want to use the TreeTree 0.00 melee patch because its of no use to us.

    EDIT : Confirmed not working :<
    Last edited by cotash; 04-14-2011 at 06:51 AM.

Similar Threads

  1. [ArcEmu] change instance cooldown?
    By hijuga in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 02-22-2009, 01:30 PM
  2. Upcoming 3.1.0 changes. What do you think?
    By Pyromancer in forum World of Warcraft General
    Replies: 0
    Last Post: 02-06-2009, 01:36 AM
  3. how do you change what commands gms can do??
    By lolzz in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 07-06-2008, 11:11 PM
  4. Change what commands a GM can use?
    By †Crou† in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-28-2008, 07:23 PM
  5. [Guide] Change your pvp rank
    By R0w4n in forum WoW ME Tools & Guides
    Replies: 16
    Last Post: 09-25-2007, 09:24 AM
All times are GMT -5. The time now is 01:21 PM. 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