• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X Ban Reason - options exchanged

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,403
Solutions
17
Reaction score
151
Location
Brazil
Hi guys, I have a silly bug on my server, but I would like to fix it:

when I banish a person and choose the reason on the screen below, when he banishes he chooses another reason, it seems that it is not in the correct order.

1648494764558.png

1648494783636.png

I have selected "unnoficial software" and reason appears "hacking". Happens with all reasons.

Where can I see the reasons and fix it?
 
up
Post automatically merged:

At tools.cpp i find:

C++:
std::string getReason(int32_t reasonId)
{
    switch(reasonId)
    {
        case 0:
            return "Offensive Name";
        case 1:
            return "Invalid Name Format";
        case 2:
            return "Unsuitable Name";
        case 3:
            return "Name Inciting Rule Violation";
        case 4:
            return "Offensive Statement";
        case 5:
            return "Spamming";
        case 6:
            return "Illegal Advertising";
        case 7:
            return "Off-Topic Public Statement";
        case 8:
            return "Non-English Public Statement";
        case 9:
            return "Inciting Rule Violation";
        case 10:
            return "Bug Abuse";
        case 11:
            return "Game Weakness Abuse";
        case 12:
            return "Using Unofficial Software to Play";
        case 13:
            return "Hacking";
        case 14:
            return "Multi-Clienting";
        case 15:
            return "Account Trading or Sharing";
        case 16:
            return "Threatening Gamemaster";
        case 17:
            return "Pretending to Have Influence on Rule Enforcement";
        case 18:
            return "False Report to Gamemaster";
        case 19:
            return "Destructive Behaviour";
        case 20:
            return "Excessive Unjustified Player Killing";
        default:
            break;
    }

    return "Unknown Reason";
}

std::string getAction(ViolationAction_t actionId, bool ipBanishment)
{
    std::string action = "Unknown";
    switch(actionId)
    {
        case ACTION_NOTATION:
            action = "Notation";
            break;
        case ACTION_NAMEREPORT:
            action = "Name Report";
            break;
        case ACTION_BANISHMENT:
            action = "Banishment";
            break;
        case ACTION_BANREPORT:
            action = "Name Report + Banishment";
            break;
        case ACTION_BANFINAL:
            action = "Banishment + Final Warning";
            break;
        case ACTION_BANREPORTFINAL:
            action = "Name Report + Banishment + Final Warning";
            break;
        case ACTION_STATEMENT:
            action = "Statement Report";
            break;
        //internal use
        case ACTION_DELETION:
            action = "Deletion";
            break;
        case ACTION_NAMELOCK:
            action = "Name Lock";
            break;
        case ACTION_BANLOCK:
            action = "Name Lock + Banishment";
            break;
        case ACTION_BANLOCKFINAL:
            action = "Name Lock + Banishment + Final Warning";
            break;
        default:
            break;
    }

    if(ipBanishment)
        action += " + IP Banishment";

    return action;
}
Post automatically merged:

Nvm, fixed! Just remove "0", follow fix:

C++:
std::string getReason(int32_t reasonId)
{
    switch(reasonId)
    {
        case 1:
            return "Offensive Name";
        case 2:
            return "Invalid Name Format";
        case 3:
            return "Unsuitable Name";
        case 4:
            return "Name Inciting Rule Violation";
        case 5:
            return "Offensive Statement";
        case 6:
            return "Spamming";
        case 7:
            return "Illegal Advertising";
        case 8:
            return "Off-Topic Public Statement";
        case 9:
            return "Non-English Public Statement";
        case 10:
            return "Inciting Rule Violation";
        case 11:
            return "Bug Abuse";
        case 12:
            return "Game Weakness Abuse";
        case 13:
            return "Using Unofficial Software to Play";
        case 14:
            return "Hacking";
        case 15:
            return "Multi-Clienting";
        case 16:
            return "Account Trading or Sharing";
        case 17:
            return "Threatening Gamemaster";
        case 18:
            return "Pretending to Have Influence on Rule Enforcement";
        case 19:
            return "False Report to Gamemaster";
        case 20:
            return "Destructive Behaviour";
        case 21:
            return "Excessive Unjustified Player Killing";
        case 28:
            return "Excessive Unjustified Player Killing";
        default:
            break;
    }

    return "Unknown Reason";
}
 
Last edited:
Back
Top