Server internal variable

From CatchChallenger wiki
Jump to: navigation, search

Reputation

 <level point="10000">
   <text>Level 2</text>
 </level>
 <level point="150">
   <text>Level 1</text>
 </level>
 <level point="0">
   <text>Level 0</text>
 </level>
 <level point="-150">
   <text>Level -1</text>
 </level>
 <level point="-10000">
   <text>Level -2</text>
 </level>

Internal variable

 reputation.reputation_positive << 0 << 150 << 10000;
 reputation.reputation_negative << -1 << -150 << -10000;

Mean:

  • Level 2: Max level
  • Level 1: Level up at 10000 point or more
  • Level 0+: Level up at 150 point or more
  • Level 0-: Level down at -150 point or more
  • Level -1: Level down at -10000 point or more
  • Level -2: Max negative level

Example of player level 1

 PlayerReputation playerReputation;
 playerReputation.level=1;
 playerReputation.point=5;

Example of player level 0+

 PlayerReputation playerReputation;
 playerReputation.level=0;
 playerReputation.point=15;

Example of player level 0-

 PlayerReputation playerReputation;
 playerReputation.level=0;
 playerReputation.point=-21;

Example of player level -1

 PlayerReputation playerReputation;
 playerReputation.level=-1;
 playerReputation.point=-21;