[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
BlackRayquaza making this tutorial.
Lunati teaching me this.
CTRL + F ?.
I found this step on worldcommands not admincommands, still same line thou
Originally Posted by Dragonlord3344
I found this step on worldcommands not admincommands, still same line thou
Oh your right sorry. Ill change it
Originally Posted by Dragonlord3344
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?
Originally Posted by Jankos
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
Originally Posted by [Founder] Opitina
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.