Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Realm of the Mad God Hacks & Cheats › Realm of the Mad God Private Servers › Realm of the Mad God Private Servers Tutorials/Source Code › Custom ranks and prefixes (non-db)

Custom ranks and prefixes (non-db)

Posts 1–15 of 26 · Page 1 of 2
Orbit
Orbit
Custom ranks and prefixes (non-db)
This will work for fsod and realms resolution, IDK if it works for other sources just try it on them.
When you're done it should look something like this:

as you can see it will say [Owner] in the chat but not in your name so people can still /tell you with your original name.
Let's start. First off we're gonna fix the custom ranks.


Head to wServer => realm => commands => commands.cs

find the section where it sais :

Code:
   private static int GetPermissionLevel(Player player)
        {
            if (player.Client.Account.Rank == 3)
                return 1;
            return 0;
        }
and replace that with this:

Code:
private static int GetPermissionLevel(Player player)
        {
            return player.Client.Account.Rank;
        }
then under this:
Code:
protected static readonly ILog log = LogManager.GetLogger(typeof (Command));
add this:
Code:
 internal class Ranks
        {
            public static readonly int Owner = 5;
            public static readonly int Dev = 4;
            public static readonly int Admin = 3;
            public static readonly int Mod = 2;
            public static readonly int Donor = 1;
            
        }
you can change the values and add more if you want to. Now when we are changing our ranks we don't put

Code:
 internal class Kick : Command
    {
        public Kick()
            : base("kick", 5)
        {
        }
you do it like this:

Code:
 internal class Kick : Command
    {
        public Kick()
            : base("kick", Ranks.Owner)
        {
        }
So when you, for example, want to add a new rank you simply put it in here like this:

Code:
   {
            public static readonly int Owner = 6;
            public static readonly int Dev = 5;
            public static readonly int MPGH = 4
            public static readonly int Admin = 3;
            public static readonly int Mod = 2;
            public static readonly int Donor = 1;
            
        }
so you don't need to change the value for every command you have, it changes automatically.
Now for the custom tags/prefixes.
Head to wServer => realm => ChatManager.cs
find this:


Code:
  public void Say(Player src, string text)
        {
            src.Owner.BroadcastPacketSync(new TextPacket()
            {
                Name = (src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,
                ObjectId = src.Id,
                Stars = src.Stars,
                BubbleTime = 10,
                Recipient = "",
                Text = text.ToSafeText(),
                CleanText = text.ToSafeText()
            }, p => !p.Ignored.Contains(src.AccountId));
            log.InfoFormat("[{0}({1})] <{2}> {3}", src.Owner.Name, src.Owner.Id, src.Name, text);
            src.Owner.ChatReceived(text);
        }
and where it sais :
Code:
Name = (src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,
you simply add "src.Client.Account.Rank >= <the rank> ? "[Swag]" :
for example

Code:
Name = (src.Client.Account.Rank >= 3 ? "#[Owner]" : src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,
It goes in a list from highest to lowest so the highest rank ALWAYS needs to be the one all the way to the left and the lowest rank on the right. You can't have it here and there cuz it won't work. If you put a "@" before your tag your name and text will be yellow. If you put a "#" before your tag your name and text will be orange.If you don't put either '@' or '#' it will be the normal color. If you get any errors post them bellow and ill see what i can do. Have fun!
#1 · edited 9y ago · 9y ago
MikeRaarupBirk
MikeRaarupBirk
Maybe we can see servers that doesnt have their prefix in their name, nice tutorial.
#2 · 9y ago
badboyallan
badboyallan
Hello got 2 errors in Microsoft Visual , here are : h ttp s://gy azo.c om/d 90b8bc 011d f7aea85b 74051bbb2c 5f4 ; htt ps://gy azo.com/0bcf45a 1de e0c2029 970a7 1a5d 30fd6f
#3 · 9y ago
Orbit
Orbit
Quote Originally Posted by badboyallan View Post
Hello got 2 errors in Microsoft Visual , here are : h ttp s://gy azo.c om/d 90b8bc 011d f7aea85b 74051bbb2c 5f4 ; htt ps://gy azo.com/0bcf45a 1de e0c2029 970a7 1a5d 30fd6f
I think you pasted in
Code:
protected static readonly ILog log = LogManager.GetLogger(typeof (Command));
but you should just put other code UNDER it, your not supposed to put that somewhere
#4 · 9y ago
badboyallan
badboyallan
You got a thanks from me ^^
#5 · 9y ago
TH
The 7th Hokage
Credits?? Pretty sure @rigged said somethıng about this.


Quote Originally Posted by Orbit View Post
add this:
Code:
internal class Ranks
{
public static readonly int Owner = 5;
public static readonly int Dev = 4;
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;

}
#6 · edited 9y ago · 9y ago
badboyallan
badboyallan
btw your source is so nice will you ever release it ?
#7 · edited 9y ago · 9y ago
RI
Riigged
Quote Originally Posted by BurritoYunus View Post
Credits?? Pretty sure @rigged said somethıng about this.
Anyone with a brain could have done so, that's not even the best way to do it, Kithi posted on my thread a shorter and more efficient way of doing it.
#8 · 9y ago
Desire
Desire
This was already simple enough, if you want your name to be the announcement color, instead of @ put #, if you just want the prefix without any special colors, don't put any symbol, just the Prefix

- - - Updated - - -

Although I'll drop a thanks because it was a good tut
#9 · 9y ago
TH
The 7th Hokage
Quote Originally Posted by Riigged View Post
Anyone with a brain could have done so, that's not even the best way to do it, Kithi posted on my thread a shorter and more efficient way of doing it.
Yeh i know, but no creds? He also did it the way you showed..
#10 · 9y ago
Ahlwong
[MPGH]Ahl
Quote Originally Posted by BurritoYunus View Post
Yeh i know, but no creds? He also did it the way you showed..
Unless there is 100% proof he actually copied the code from Riigged's thread, can't give credits.

OP could've done it without seeing the thread
#11 · 9y ago
RI
Riigged
xd no argument plis about credits on something any1 could do without tut or no plis <3
#12 · 9y ago
badboyallan
badboyallan
Hello again . if i want to add a command to rank 3 how i do ?
#13 · 9y ago
ME
Mega00
I had many errors at first, but the problem that fixed it was log needs to be capitalized to Log.
But thanks for the code!
#14 · edited 9y ago · 9y ago
KS
Ksydex
Hey man, i did everything here and still dont know how to make the ranks. When i type in chat it doesn't say owner or anything. also it doesn't say it on my name, Plz Reply ASAP i need help!
#15 · 9y ago
Posts 1–15 of 26 · Page 1 of 2

Post a Reply

Similar Threads

  • selling account with high rank and a lot of gunsBy sessizada in Trade Accounts/Keys/Items
    6Last post 14y ago
  • posting for rank and post pointsBy neema125 in Spammers Corner
    1Last post 16y ago
  • posting for rank and post points.By neema125 in Spammers Corner
    3Last post 16y ago

Tags for this Thread

None