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