Hi all! I want to have a rank system similar to that of Nilly's Realm, for example an account with a total of 10 stars would have the following based on rank:
Donors have 10-10
Mods have 10-20
Admins have 10-30
Developers have 10-40
Owners have 10-50
1. The Server
Added these to 'Player.cs'
Code:
StarRank = psr.Account.Rank * 10; //starrank
(...)
public int StarRank { get; set; } //starank
(...)
stats[StatsType.StarRank] = StarRank; //starank
(...)
Added this to 'Stats.cs'
Code:
public readonly static StatsType StarRank = 98; //starrank
2. The Client
Added this to 'StatData.as'
Code:
public static const STARRANK:int = 98; //starrank
Added this to 'GameServerConnectionConcrete.as'
Code:
case StatData.STARRANK:
_local_4.StarRank = _local_8; //starrank
break;
Added this to 'Player.as'
Code:
public var StarRank:int = 0; //starrank
(...)
The problem:
How do I import the value of 'StarRank' from a 'Player' instance so I can use its value in 'RankText.as'?
Will really really really appreciate any help!
Will be super happy if I can get this working! (will release some cool commands :3)
Thanks in advance!