hiperesp/DragonFable-Private-Server

Create settings flag "can delete upgraded char"

Closed this issue · 0 comments

If true, show all user flags "intUpgrade" to 1.
If false, the user flags need to be different from 1.

If user is a normal account, this flag is 0.
If user upgraded a specific char, the flag is 1.
If user is upgraded entire account, the flag is 6 (max chars).

Use the logic:

if($user->upgraded) {
    if($canDeleteUpgradedChar) {
        $intUpgrade = 6;
    } else {
        $intUpgrade = 1;
    }
} else {
    $intUpgrade = 0;
}