[RotMG] How to set star amounts for Ranks

Results 1 to 1 of 1
  1. #1
    Member Glorious is offline
    MemberRank
    Jan 2016 Join Date
    50Posts

    [RotMG] How to set star amounts for Ranks

    1st. Open your sln and go to: Wserver>Entities>Player>Player.cs

    When your ins that file search for:
    Code:
    
    
    Code:
     if (psr.Account.Rank > 2)
                    Stars = 75;


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

    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:
    
     if (psr.Account.Rank > 2)
                    Stars = 75;
                else if (psr.Account.Rank > 1)
                    Stars = 60;
                else
                    Stars = GetStars();

    With:
    Code:
    
      if (psr.Account.Rank > 2)
                    Stars = GetStars();
                else if (psr.Account.Rank > 1)
                    Stars = GetStars(); 
                else
                    Stars = GetStars();


    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:
    
    else if (psr.Account.Rank > 5)
                    Stars = 50;

    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:
    
    
    Code:
     this.psr = psr;
                statsMgr = new StatsManager(this);
                switch(psr.Account.Rank) {

    You will see alot of numbers or maybe just a few that starts by:
    Code:
    
    
    Code:
    case 1:
                        Name = "[P] " + psr.Account.Name; break;

    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/secti...d-god-1092999/




Advertisement