If you want a specific rank number to have it, you can look at the Club559 source in wServer/realm/entities/player/player.cs
Search for "Founder"
Hopefully that will help you find your answer
Looked at all the tuts on mpgh but most of them were directed towards other sources and was completely different. Was wondering if anyone knows how to edit ranks and add prefixes to the different ranks. Forexample founder would have a [Founder] prefix, donator would have [Donator] Prefix etc.
Add Signature Here
If you want a specific rank number to have it, you can look at the Club559 source in wServer/realm/entities/player/player.cs
Search for "Founder"
Hopefully that will help you find your answer
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012
Rep Power: 82
gunit99 (07-25-2015)
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012
Rep Power: 82
gunit99 (07-25-2015)
Yeah this worked ^.^. Thank you so much! But now I have another problem. I gave myself founder rank (rank 6), but I am unable to do any commands. I can only execute commands if I am [GM] Rank which is rank 3.
Here is what the give command looks like:
I am positive the code that controls what rank can do what command is:
}
if (!player.Manager.GameData.Items[objType].Secret || player.Client.Account.Rank >= 3)
{
I do not understand why I cannot give items to myself if I am rank 6. I put >= 3.
Also how do I change rank permissions in other commands? I looked for some key words but was unable to find any like the /give command.
Forexample the TP command:
Not really sure how to change rank commands with this given code. Any help :$
Last edited by gunit99; 07-25-2015 at 02:44 PM.
Add Signature Here
In wServer/realm/entities/commands/Command.cs
Find this:
Just changeCode:private static int GetPermissionLevel(Player player) { if (player.Client.Account.Rank == 3) return 1; return 0; }
if (player.Client.Account.Rank == 3)
to
if (player.Client.Account.Rank == 1)
Now following this format, add more under return 1;
And just make it increase chronologically (make sure both the return and the player.Client.Account.Rank == numbers are increasing. Do not change return 0)
Then just set the numbers in AdminCommand.cs and you're done
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012
Rep Power: 82
gunit99 (07-27-2015)
Thanks again Everything worked out! @Raple
Add Signature Here
I need help too i did it like this but its not working
Last edited by Juli117; 07-27-2015 at 12:42 PM.