Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[RotMG] How to set star amounts for Ranks

Newbie Spellweaver
Joined
Jan 27, 2016
Messages
50
Reaction score
32
1st. Open your sln and go to: Wserver>Entities>Player>Player.cs

When your ins that file search for:
Code:
[/COLOR] if (psr.Account.Rank > 2)
                Stars = 75;
[COLOR=#333333]

When your there you see all this:
Code:
[/COLOR] if (psr.Account.Rank > 2)
                Stars = 75;
            else if (psr.Account.Rank > 1)
                Stars = 60;
            else
                Stars = GetStars();

[COLOR=#333333]
This shows if you are Rank
1 you have 60stars, if you are Rank 2 you have 75 stars

If you want it to be like on production server so that everyone has the stars that they actually have gained and not 60 or 75 do this:
Replace
Code:
[/COLOR][COLOR=#333333]
[/COLOR] if (psr.Account.Rank > 2)
                Stars = 75;
            else if (psr.Account.Rank > 1)
                Stars = 60;
            else
                Stars = GetStars();
[COLOR=#333333]
With:
Code:
[/COLOR][COLOR=#333333]
[/COLOR]  if (psr.Account.Rank > 2)
                Stars = GetStars();
            else if (psr.Account.Rank > 1)
                Stars = GetStars(); 
            else
                Stars = GetStars();

[COLOR=#333333]

Now i'll explain how it works.

If you have like 1 to 8 different ranks and you for example want anyone that has rank 5 gets 50 stars when they login. To modify this do this:
Code:
[/COLOR][COLOR=#333333]
[/COLOR]else if (psr.Account.Rank > 5)
                Stars = 50;

[COLOR=#333333]
The "Stars = 50;" is how many stars that you want "Rank > 5" to have, you can modify this to any number that you please^ this is merely for education purposes.

If you are not sure about how many ranks that you have in your server or what rank is which tag you can go to
player.cs and search for this
Code:
[/COLOR] this.psr = psr;
            statsMgr = new StatsManager(this);
            switch(psr.Account.Rank) {
[COLOR=#333333]
You will see alot of numbers or maybe just a few that starts by:
Code:
[/COLOR]case 1:
                    Name = "[P] " + psr.Account.Name; break;
[COLOR=#333333]
Here you can see the ranks that are you in your server :3 Hope this helped you! if it did leave a like :)

Also support us by helping us create a section speak your opinion here!
http://forum.ragezone.com/f600/section-request-realm-mad-god-1092999/
 
Back
Top