Post[Text Tutorial][Server] Adding new ranks annd changing permissions

Posts 1–15 of 18 · Page 1 of 2
[Text Tutorial][Server] Adding new ranks annd changing permissions
1. Open Player.cs.
Code:
wServer.realm.entities.player


2. On line 239 (unchanged file) is the rank names list.
Code:
case 0:
                    Name = psr.Account.Name; break;
                case 1:
                    Name = "[Tester] " + psr.Account.Name; break;
#NOTE: This is not the original content.


3. Add or change ranks, case 1: means the rank number (also known as rank permission level) and [Tester] means the prefix.
Code:
case 2:
                    Name = "[MPGH Leecher] " + psr.Account.Name; break;


4. Now go to WorldCommands.cs
Code:
wServer.realm.commands


5. On line 149 (unchanged file) is the piece of code that makes sure you can /tell people with prefixes.
Code:
string[] tags = {"", "[Tester]", "[MPGH Leecher]"}
#NOTE: Make sure you add all the prefixes to this list.


6. And finally go to AdminCommands.cs to change the permission levels.
Code:
wServer.realm.commands


7. Each command has a permission level, change them to your likings.
Code:
public int RequiredRank { get { return 3; } }
{ return 3; } This means that the lowest ranks able to use this command is rank 3.
 
#NOTE: There are also some commands with permissions in other files, check these: AdminCommands.cs, GuildCommands.cs and WorldCommand.cs


You don't need to give credits for this!
You have credits for using Ctrl + F?
Quote Originally Posted by C453 View Post
You have credits for using Ctrl + F?
Lel wut?
/10 chars
Quote Originally Posted by BlackRayquaza View Post
Lel wut?
/10 chars
He is saying "Credits because you can use CTRL + F" which is the find command.
Quote Originally Posted by sacredmike View Post
He is saying "Credits because you can use CTRL + F" which is the find command.
I know, but how would i give it credits?
6. Next goto wServer > realm > commands >AdminCommands.cs

7. Goto line 149 where you have
Code:
string[] tags = {"[Player]", "[Member]", "[Donator]", ECT
8. Here add all your prefixes

Congratulations you added custom ranks


 
Credits

BlackRayquaza making this tutorial.
Lunati teaching me this.
CTRL + F ?.
I found this step on worldcommands not admincommands, still same line thou
Quote Originally Posted by Dragonlord3344 View Post
I found this step on worldcommands not admincommands, still same line thou
Oh your right sorry. Ill change it
Quote Originally Posted by Dragonlord3344 View Post
I found this step on worldcommands not admincommands, still same line thou
Oh your right sorry. Ill change it
Hi!

I have one question. Can i change permissions to custom ranks?
Quote Originally Posted by Jankos View Post
Hi!

I have one question. Can i change permissions to custom ranks?
Yes this is easy, goto AdminCommands.cs
Code:
class SpawnCommand : ICommand
    {
        public string Command { get { return "spawn"; } }
        public int RequiredRank { get { return 3; } }
{ return 3; } 3 is the minimum rank to use to command


I would recommend to do the ranks from lowest rank to highest rank!
Ty so much for this :P now i can make cool ranks for idiots like [Idiot]
Well i dont have worldcommands.cs or commands folder so ye
Quote Originally Posted by [Founder] Opitina View Post
Well i dont have worldcommands.cs or commands folder so ye

there isn't folder worldcommand.cs, this is a file...... you need to search it in
RotmgServer_Master\WServer\realm\commands i think
1. I dont have folder: World

2. That server is to freaking confusing

3. I HATE THAT SERVER I can´t launch -.-
You should also say that if you happen to make a rank 8+, it will have permissions of Founder using the default permission settings. Though I'm pretty sure most will want to edit rank permissions along with their custom ranks, it helps.
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?