Friend Referral System
==

Overview
===
The Friend Referral System is activated when a new account is created using an existing character name. This name is set in the `referral` column on the `accounts` table for the new account. Characters created on this account will be assigned a charvar bitmask value upon reaching certain levels, as detailed in the section below.

Bitmask Value
===
When players level up, the charvar `[RE]MILESTONE` is updated if the level meets one of the following requirements:
* CW/WEW: 10/20/30
* ACE: 25/50/75

A bit is set on the variable at the 0th, 2nd, 4th. When the player collects the associated rewards (From NPC), the 1st, 3rd, 5th bits are set on the variable.

Using the `!getreferrals` command, you can see the bitmask value for each account/character referred by the player. It also includes a breakdown of the levels reached and rewards claimed, according to the info above.

Each of these milestones is worth an amount of "Referral Points" used to claim rewards for the referrer:
* 10/25: 1 point
* 20/50: 2 points
* 30/75: 5 points

The total amount of referral points accumulated by the player is listed by the `!getreferrals` command
