• 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!

Windows Help with /ban parameters 9.54.

Vikarious

New Member
Joined
Dec 16, 2008
Messages
93
Reaction score
2
Hello everyone!

I'm using

[08/08/2012 20:37:44] The Forgotten Server - Version 0.2.13 (Mystic Spirit).]
[08/08/2012 20:37:44] Compilied on Jul 8 2012 02:31:50 for arch x86]

9.54

And I'm testing the /ban command and I cannot figure it out how it works.

When I type /ban name

I got blue letters on client saying "20:55 Not enough params."

Then I would like to know what parameters could I use, as to define bot use, or offensive statment, name lock and so on.

Can I determine how much time it does ban the player too?

I've tried already things like:

/ban Name, 1, using bot

(charname, duration, comment)


But it didn't work. It return the same parameter error.


Thanks in advance!!
 
Code:
void Commands::ban(Player* player, const std::string& cmd, const std::string& param)
{
        StringVec exploded = explodeString(param, ", ", 4);
        if(!exploded.size() || exploded.size() < 5)
        {
                player->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, "Not enough params.");
                return;
        }

        std::string targetName = exploded[0];

        int32_t action = actionStringToInt(exploded[1]);
        if(action == -1)
                action = (int32_t)atoi(exploded[1].c_str());

        int32_t reason = reasonStringToInt(exploded[2]);
        if(reason == -1)
                reason = (int32_t)atoi(exploded[2].c_str());

        bool ipBan = (atoi(exploded[3].c_str()) != 0);

        std::string comment = exploded[4];
        g_game.violationWindow(player, targetName, reason, action, comment, ipBan);
}

Now you can figure out the parameters.

It looks like targetName, action, reason, ipBan (0/1), comment
 
There is a way to edit for how much time I want to ban the player or it is automaticed?

If I can do so, where should I put the time? And of how much time are the number? Hours? Days? Seconds?

EDIT:

I've done some checking and I could come with this:


/ban name, 1(action), 1(reason), 0/1(ip banishment 0 no 1 yes), coment


action
1 = name report
2 = banishment
3 = ban + namelock
4 = banishment + final warning
5 = deletation

reason
1 = invalid name format
2 = unsuitable name
3 = name inciting rule violation
4 = offensive statement
5 = spamming
6 = illegal advertising
7 = off-topic public statement
8 = non-english public statement
9 = inciting rule violation
10 = bug abuse
11 = game weakness abuse
12 = using unofficial software to play
13 = hacking
14 = multi-clienting
15 = account trading or sharing
16 = threatning gamemaster
17 = pretending to have influence in rule enforcement
18 = false report to gamemaster
19 = destructive behaviour
20 = excessive unjustified player killing


If anyone have more to add, I'll be grateful!!
 
Last edited:
Back
Top