• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

lolek

Indenpedens

Banned User
Joined
Nov 6, 2010
Messages
584
Reaction score
39
Location
Poland
gdzie ustawic czas trwania red skulla w 0.3.4pl2 skoro w config.lua nie ma linijki redSkullLength =
a jak se ja dodam to nie dziala
:D
 
LUA:
timeToDecreaseFrags = XYZ
Dowód:
PHP:
void Player::addUnjustifiedDead(const Player* attacked)
{
        if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag(
                PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
                return;

        if(client)
        {
                char buffer[90];
                sprintf(buffer, "Warning! The murder of %s was not justified.", attacked->getName().c_str());
                client->sendTextMessage(MSG_STATUS_WARNING, buffer);
        }

        redSkullTicks += g_config.getNumber(ConfigManager::FRAG_TIME);
        if(g_config.getNumber(ConfigManager::KILLS_TO_RED) != 0 && getSkull() != SKULL_RED &&
                redSkullTicks >= ((g_config.getNumber(ConfigManager::KILLS_TO_RED) - 1) * g_config.getNumber(ConfigManager::FRAG_TIME)))
        {
                setSkull(SKULL_RED);
                g_game.updateCreatureSkull(this);
        }
        else if(g_config.getNumber(ConfigManager::KILLS_TO_BAN) != 0 && redSkullTicks >= (g_config.getNumber(
                ConfigManager::KILLS_TO_BAN) - 1) * g_config.getNumber(ConfigManager::FRAG_TIME))
        {
                int32_t warnings = IOLoginData::getInstance()->loadAccount(accountId, true).warnings;
                bool success = false;
                if(warnings >= g_config.getNumber(ConfigManager::WARNINGS_TO_DELETION))
                        success = IOBan::getInstance()->addDeletion(accountId, 20, ACTION_DELETION, "Unjustified player killing.", 0);
                else if(warnings >= g_config.getNumber(ConfigManager::WARNINGS_TO_FINALBAN))
                        success = IOBan::getInstance()->addBanishment(accountId, (time(NULL) + g_config.getNumber(
                                ConfigManager::FINALBAN_LENGTH)), 20, ACTION_BANFINAL, "Unjustified player killing.", 0);
                else
                        success = IOBan::getInstance()->addBanishment(accountId, (time(NULL) + g_config.getNumber(
                                ConfigManager::BAN_LENGTH)), 20, ACTION_BANISHMENT, "Unjustified player killing.", 0);

                if(success)
                {
                        g_game.addMagicEffect(getPosition(), NM_ME_MAGIC_POISON);
                        Scheduler::getScheduler().addEvent(createSchedulerTask(500, boost::bind(&Game::kickPlayer, &g_game, getID(), false)));
                }
        }
}
 
lol timeToDecreaseFrags = to czas trwania jednego fraga
Wydaje mi się że czas trwania to ilość zabitych osób razy timeToDecreaseFrags (oczywiście, ten czas upływa między morderstwami!).
 
Back
Top