Ir para conteúdo
  • 0

[Resolvido] RED SKULL NÃO TOMA BAN


RAJADAO

Pergunta

Olá prezados, estou com um problema que pode matar quantos for no server que não toma ban, pega red com 4 kills mas não toma ban? Alguém faz ideia do que possa ser ? Parece estar tudo certo no config lua.

segue anexo, quem puder ajudar mt obrigado desde já.

config.lua

Link para o comentário
Compartilhar em outros sites

10 respostass a esta questão

Posts Recomendados

  • 1

copia isso e cola no  creaturescripts/scripts/playerdeath.lua 

( pra editar qntos frags pra levar ban so alterar essa parte: local killsToBan = 6

pra editar o tempo de ban essa local killsBanLenght = 3 )

 

local deathListEnabled = true
local maxDeathRecords = 5
local killsToBan = 6
local killsBanLenght = 3

function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
    local playerId = player:getId()
    if nextUseStaminaTime[playerId] ~= nil then
        nextUseStaminaTime[playerId] = nil
    end

    player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.")

    local byPlayer = 0
    local killerName
    if killer ~= nil then
        if killer:isPlayer() then
            byPlayer = 1
        else
            local master = killer:getMaster()
            if master and master ~= killer and master:isPlayer() then
                killer = master
                byPlayer = 1
            end
        end
        killerName = killer:getName()
    else
        killerName = "field item"
    end

    local byPlayerMostDamage = 0
    local mostDamageKillerName
    if mostDamageKiller ~= nil then
        if mostDamageKiller:isPlayer() then
            byPlayerMostDamage = 1
        else
            local master = mostDamageKiller:getMaster()
            if master and master ~= mostDamageKiller and master:isPlayer() then
                mostDamageKiller = master
                byPlayerMostDamage = 1
            end
        end
        mostDamageName = mostDamageKiller:getName()
    else
        mostDamageName = "field item"
    end

    local playerGuid = player:getGuid()
    db.query("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (" .. playerGuid .. ", " .. os.time() .. ", " .. player:getLevel() .. ", " .. db.escapeString(killerName) .. ", " .. byPlayer .. ", " .. db.escapeString(mostDamageName) .. ", " .. byPlayerMostDamage .. ", " .. (unjustified and 1 or 0) .. ", " .. (mostDamageUnjustified and 1 or 0) .. ")")
    local resultId = db.storeQuery("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. playerGuid)

    local deathRecords = 0
    local tmpResultId = resultId
    while tmpResultId ~= false do
        tmpResultId = result.next(resultId)
        deathRecords = deathRecords + 1
    end

    if resultId ~= false then
        result.free(resultId)
    end

    local limit = deathRecords - maxDeathRecords
    if limit > 0 then
        db.asyncQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. playerGuid .. " ORDER BY `time` LIMIT " .. limit)
    end

    if byPlayer == 1 then
        local targetGuild = player:getGuild()
        targetGuild = targetGuild and targetGuild:getId() or 0
        if targetGuild ~= 0 then
            local killerGuild = killer:getGuild()
            killerGuild = killerGuild and killerGuild:getId() or 0
            if killerGuild ~= 0 and targetGuild ~= killerGuild and isInWar(playerId, killer:getId()) then
                local warId = false
                resultId = db.storeQuery("SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = " .. killerGuild .. " AND `guild2` = " .. targetGuild .. ") OR (`guild1` = " .. targetGuild .. " AND `guild2` = " .. killerGuild .. "))")
                if resultId ~= false then
                    warId = result.getDataInt(resultId, "id")
                    result.free(resultId)
                end

                if warId ~= false then
                    db.asyncQuery("INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (" .. db.escapeString(killerName) .. ", " .. db.escapeString(player:getName()) .. ", " .. killerGuild .. ", " .. targetGuild .. ", " .. os.time() .. ", " .. warId .. ")")
                end
            end
        end

        local skullTime = killer:getSkullTime()
        if skullTime > 0 then
            local kills = math.ceil(skullTime / configManager.getNumber(configKeys.FRAG_TIME))
            if kills >= killsToBan then
                local timeNow = os.time()
                db.query("INSERT INTO `account_bans` (`account_id`, `reason`, `banned_at`, `expires_at`, `banned_by`) VALUES (" .. killer:getAccountId() .. ", " .. db.escapeString("Excessive Unjustified Player Killing.") .. ", " .. timeNow .. ", " .. timeNow + (killsBanLenght * 86400) .. ", 1)")
                killer:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
                killer:remove()
            end
        end
    end
end

 

Link para o comentário
Compartilhar em outros sites

  • 0
2 horas atrás, Duhisback disse:

Não entendi mano, você quer que ao pegar 4kills levar ban, ou não levar ban?

Com 4 frags pega red skull, quero que com 6 frags tome ban.

Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, RAJADAO disse:

Com 4 frags pega red skull, quero que com 6 frags tome ban.

teste assim

Spoiler

    ownerName = "x"
    ownerEmail = "x@gmail.com"
    url = "x"
    location = "Brazil"

    
    motd = "Welcome"
    serverName = "x"
    loginMessage = "Bem vindos."
    displayGamemastersWithOnlineCommand = false

    
    sqlType = "mysql"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "x"
    sqlPass = "x"
    sqlDatabase = "x"
    sqlFile = ""
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    mysqlReconnectionAttempts = 5
    encryptionType = "sha1" 

    
    worldId = 0
    ip = "x"
    worldType = "open"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = "7172"
    statusPort = 7171
    loginOnlyWithLoginServer = false

    
    accountManager = false
    namelockManager = true
    newPlayerChooseVoc = false
    newPlayerSpawnPosX = 32097
    newPlayerSpawnPosY = 32219
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 2
    newPlayerLevel = 1
    newPlayerMagicLevel = 0
    generateAccountNumber = false
    generateAccountSalt = false

    
    fragsLimit = 6 * 60 * 60
    fragsSecondLimit = 6 * 60 * 60
    fragsThirdLimit = 6 * 60 * 60

    
    fragsToRedSkull = 4 -- quantos frags pega redskull
    fragsSecondToRedSkull = 16 -- frags segundo a caveira vermelha
    fragsThirdToRedSkull = 40 -- frags Terceiro Para Caveira Vermelha
    redSkullLength = 3 * 24 * 60 * 60
    fragsToBlackSkull = 5 -- quantos frags pega blackskull
    fragsSecondToBlackSkull = 20 -- frags segundo a caveira preta
    fragsThirdToBlackSkull = 60 -- frags Terceiro a caveira preta
    blackSkulledDeathHealth = 40 -- ao morrer blackskull irá ficar com essa quantidade de hp
    blackSkulledDeathMana = 0 -- -- ao morrer blackskull irá ficar com essa quantidade de mana
    blackSkullLength = 10 * 24 * 60 * 60
    useBlackSkull = false

    dailyFragsToRedSkull = 4 -- Quantos frags no dia você quer para pegar redskull
    weeklyFragsToRedSkull = 16    -- Quantos frags na semana você quer para pegar redskull
    monthlyFragsToRedSkull = 40    -- Quantos frags no mês você quer para pegar redskull
    dailyFragsToBlackSkull = 5 -- Quantos frags no dia você quer para pegar blackskull
    weeklyFragsToBlackSkull = 20 -- Quantos frags na semana você quer para pegar blackskull
    monthlyFragsToBlackSkull = 60 -- Quantos frags no mês você quer para pegar blackskull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    
    notationsToBan = 3
    warningsToFinalBan = 4
    warningsToDeletion = 5
    banLength = 1 * 24 * 60 * 60 -- não mexer
    killsBanLength = 6 * 24 * 60 * 60 -- quantos kill vai receber ban
    finalBanLength = 3 * 24 * 60 * 60 -- quantos dias vai passar banido
    ipBanLength = 1 * 24 * 60 * 60
    fragsToBanishment = 6
    broadcastBanishments = true
    
    protectionLevel = 7
    pvpTileIgnoreLevelAndVocationProtection = false
    allowFightback = true
    pzLocked = 60 * 1000
    huntingDuration = 60 * 1000
    criticalHitMultiplier = 1
    displayCriticalHitNotify = true
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    advancedFragList = false
    useFragHandler = true
    noDamageToSameLookfeet = false
    showHealthChange = false
    showManaChange = false
    showHealthChangeForMonsters = false
    showManaChangeForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = true
    loginProtectionPeriod = 1 * 1000
    deathLostPercent = 10
    stairhopDelay = 0 * 1000
    pushCreatureDelay = 0.5 * 1000
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    recoverManaAfterDeathInPvPZone = true
    squareColor = 0

    rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
    rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
    rsaPublic = "65537"
    rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
    rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"

        optionalWarAttackableAlly = true
        fistBaseAttack = 7
        criticalHitChance = 7
        noDamageToGuildMates = false
    
        noDamageToPartyMembers = false
    
        
        rookLevelTo = 6
        rookLevelToLeaveRook = 8
        rookTownId = 13
        useRookSystem = true

        
        paralyzeDelay = 1800

        
        premiumDaysToAddByGui = 0

            useCapacity = true
        defaultDepotSize = 600
        defaultDepotSizePremium = 1200
        enableProtectionQuestForGM = false
        cleanItemsInMap = true
        playerFollowExhaust = 2000

        
        monsterSpawnWalkback = true
        allowBlockSpawn = true
        classicEquipmentSlots = true

        
        NoShareExpSummonMonster = true

        
        enableLootBagDisplay = true
        attackImmediatelyAfterLoggingIn = false
        exhaustionNPC = true
        exhaustionInSecondsNPC = 0.5


        tileHeightBlock = true
        useStamina = false
        autoStack = true
        runesHitTopCreature = false
        charlistBasicInfo = false
        classicDamageOnWeapons = true
        
    
        noAttackHealingSimultaneus = true
        enableCooldowns = true


    loginTries = 20
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 300
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = 0
    statusTimeout = 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    premiumPlayerSkipWaitList = true
    packetsPerSecond = 50


    deathListEnabled = true
    deathListRequiredTime = 0 * 60 * 1000
    deathAssistCount = 2
    maxDeathRecords = 2
    multipleNames = false

    externalGuildWarsManagement = false
    ingameGuildManagement = false
    levelToFormGuild = 50
    premiumDaysToFormGuild = 7
    guildNameMinLength = 4
    guildNameMaxLength = 20


    buyableAndSellableHouses = true
    houseNeedPremium = true
    bedsRequirePremium = true
    levelToBuyHouse = 50
    housesPerAccount = 1
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 350
    houseRentPeriod = "weekly"
    houseCleanOld = 7 * 24 * 60 * 60
    guildHalls = true
    houseSkipInitialRent = true
    houseProtection = true


    timeBetweenActions = 200
    timeBetweenExActions = 500
    timeBetweenCustomActions = 500
    checkCorpseOwner = false
    maximumDoorLevel = 999
    tradeLimit = 200
    canOnlyRopePlayers = false
    mapAuthor = "Varios"
    randomizeTiles = true
    houseDataStorage = "binary-tilebased"
    storeTrash = true
    cleanProtectedZones = true
    mapName = "world.otbm"


    mailMaxAttempts = 5
    mailBlockPeriod = 30 * 60 * 1000
    mailAttemptsFadeTime = 5 * 60 * 1000
    mailboxDisabledTowns = "12"
        -- Example disable rook depot (temple) "4"
        -- mailboxDisabledTowns = "4"


    daemonize = false
    defaultPriority = "higher"
    niceLevel = 5
    serviceThreads = 1
    coresUsed = "-1" 
    startupDatabaseOptimization = true
    removePremiumOnInit = true
    confirmOutdatedVersion = false
    skipItemsVersionCheck = false


    maxMessageBuffer = 0


    dataDirectory = "data/"
    logsDirectory = "data/logs/"
    disableOutfitsForPrivilegedPlayers = false
    bankSystem = true
    spellNameInsteadOfWords = false
    emoteSpells = false
    unifiedSpells = true
    promptExceptionTracerErrorBox = true
    storePlayerDirection = false
    savePlayerData = true
    monsterLootMessage = 1
    monsterLootMessageType = 22
    separateViplistPerCharacter = false
    vipListDefaultLimit = 20
    vipListDefaultPremiumLimit = 100


    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    addonsOnlyPremium = true


    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true


    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    expireReportsAfterReads = 1
    playerQueryDeepness = -1
    protectionTileLimit = 80
    houseTileLimit = 50
    tileLimit = 80


    freePremium = false
    premiumForPromotion = false
    updatePremiumStateAtStartup = true


    blessings = true
    blessingOnlyPremium = false
    blessingReductionBase = 30
    blessingReductionDecrement = 5
    eachBlessReduction = 8
    useFairfightReduction = true
    pvpBlessingThreshold = 40
    fairFightTimeRange = 60


    experienceStages = true
    rateExperience = 10.0
    rateExperienceFromPlayers = 0.5
    levelToOfflineTraining = 999
    rateSkill = 5.0
    rateSkillOffline = 0.5
    rateMagic = 3.0
    rateMagicOffline = 0.5
    rateLoot = 1.5
    rateSpawnMin = 8
    rateSpawnMax = 10
    formulaLevel = 5.0
    formulaMagic = 1.0

        rateMonsterHealth = 1.0
        rateMonsterMana = 1.0
        rateMonsterAttack = 0.9
        rateMonsterDefense = 1.0


    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1


    rateStaminaLoss = 0
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.1
    rateStaminaUnderNormal = 1.1
    staminaThresholdOnlyPremium = true


    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 2 / 3
    extraPartyExperienceLimit = 10
    extraPartyExperiencePercent = 10
    experienceShareActivity = 2 * 60 * 1000


    globalSaveEnabled = true
    globalSaveHour = 8
    globalSaveMinute = 0
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    minRateSpawn = 1
    maxRateSpawn = 1
    deSpawnRange = 2
    deSpawnRadius = 999999

    
    maxPlayerSummons = 2
    teleportAllSummons = false
    teleportPlayerSummons = false


    disableLuaErrors = false
    adminLogs = true
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = "logs/run.log"
    outputLog = "logs/output.log"
    truncateLogOnStartup = false
    logPlayersStatements = false

    managerPort = 7171
    managerLogs = true
    managerPassword = ""
    managerLocalhostOnly = true
    managerConnectionsLimit = 1

    adminPort = 7171
    adminPassword = ""
    adminLocalhostOnly = true
    adminConnectionsLimit = 1
    adminRequireLogin = true
    adminEncryption = ""
    adminEncryptionData = ""


    saveGlobalStorage = false
    bufferMutedOnSpellFailure = false

 

Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, Duhisback disse:

teste assim

  Ocultar conteúdo

    ownerName = "x"
    ownerEmail = "x@gmail.com"
    url = "x"
    location = "Brazil"

    
    motd = "Welcome"
    serverName = "x"
    loginMessage = "Bem vindos."
    displayGamemastersWithOnlineCommand = false

    
    sqlType = "mysql"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "x"
    sqlPass = "x"
    sqlDatabase = "x"
    sqlFile = ""
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    mysqlReconnectionAttempts = 5
    encryptionType = "sha1" 

    
    worldId = 0
    ip = "x"
    worldType = "open"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = "7172"
    statusPort = 7171
    loginOnlyWithLoginServer = false

    
    accountManager = false
    namelockManager = true
    newPlayerChooseVoc = false
    newPlayerSpawnPosX = 32097
    newPlayerSpawnPosY = 32219
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 2
    newPlayerLevel = 1
    newPlayerMagicLevel = 0
    generateAccountNumber = false
    generateAccountSalt = false

    
    fragsLimit = 6 * 60 * 60
    fragsSecondLimit = 6 * 60 * 60
    fragsThirdLimit = 6 * 60 * 60

     
    fragsToRedSkull = 4 -- quantos frags pega redskull
    fragsSecondToRedSkull = 16 -- frags segundo a caveira vermelha
    fragsThirdToRedSkull = 40 -- frags Terceiro Para Caveira Vermelha
    redSkullLength = 3 * 24 * 60 * 60
    fragsToBlackSkull = 5 -- quantos frags pega blackskull
    fragsSecondToBlackSkull = 20 -- frags segundo a caveira preta
    fragsThirdToBlackSkull = 60 -- frags Terceiro a caveira preta
     blackSkulledDeathHealth = 40 -- ao morrer blackskull irá ficar com essa quantidade de hp
    blackSkulledDeathMana = 0 -- -- ao morrer blackskull irá ficar com essa quantidade de mana
    blackSkullLength = 10 * 24 * 60 * 60
    useBlackSkull = false

    dailyFragsToRedSkull = 4 -- Quantos frags no dia você quer para pegar redskull
    weeklyFragsToRedSkull = 16    -- Quantos frags na semana você quer para pegar redskull
    monthlyFragsToRedSkull = 40    -- Quantos frags no mês você quer para pegar redskull
    dailyFragsToBlackSkull = 5 -- Quantos frags no dia você quer para pegar blackskull
    weeklyFragsToBlackSkull = 20 -- Quantos frags na semana você quer para pegar blackskull
    monthlyFragsToBlackSkull = 60 -- Quantos frags no mês você quer para pegar blackskull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    
    notationsToBan = 3
    warningsToFinalBan = 4
    warningsToDeletion = 5
    banLength = 1 * 24 * 60 * 60 -- não mexer
    killsBanLength = 6 * 24 * 60 * 60 -- quantos kill vai receber ban
    finalBanLength = 3 * 24 * 60 * 60 -- quantos dias vai passar banido
    ipBanLength = 1 * 24 * 60 * 60
    fragsToBanishment = 6
    broadcastBanishments = true
    
    protectionLevel = 7
    pvpTileIgnoreLevelAndVocationProtection = false
    allowFightback = true
    pzLocked = 60 * 1000
    huntingDuration = 60 * 1000
    criticalHitMultiplier = 1
    displayCriticalHitNotify = true
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    advancedFragList = false
    useFragHandler = true
    noDamageToSameLookfeet = false
    showHealthChange = false
    showManaChange = false
    showHealthChangeForMonsters = false
    showManaChangeForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = true
    loginProtectionPeriod = 1 * 1000
    deathLostPercent = 10
    stairhopDelay = 0 * 1000
    pushCreatureDelay = 0.5 * 1000
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    recoverManaAfterDeathInPvPZone = true
    squareColor = 0

    rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
    rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
    rsaPublic = "65537"
    rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
    rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"

        optionalWarAttackableAlly = true
        fistBaseAttack = 7
        criticalHitChance = 7
        noDamageToGuildMates = false
    
        noDamageToPartyMembers = false
    
        
        rookLevelTo = 6
        rookLevelToLeaveRook = 8
        rookTownId = 13
        useRookSystem = true

        
        paralyzeDelay = 1800

        
        premiumDaysToAddByGui = 0

            useCapacity = true
        defaultDepotSize = 600
        defaultDepotSizePremium = 1200
        enableProtectionQuestForGM = false
        cleanItemsInMap = true
        playerFollowExhaust = 2000

        
        monsterSpawnWalkback = true
        allowBlockSpawn = true
        classicEquipmentSlots = true

        
        NoShareExpSummonMonster = true

        
        enableLootBagDisplay = true
        attackImmediatelyAfterLoggingIn = false
        exhaustionNPC = true
        exhaustionInSecondsNPC = 0.5


        tileHeightBlock = true
        useStamina = false
        autoStack = true
        runesHitTopCreature = false
        charlistBasicInfo = false
        classicDamageOnWeapons = true
        
    
        noAttackHealingSimultaneus = true
        enableCooldowns = true


    loginTries = 20
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 300
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = 0
    statusTimeout = 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    premiumPlayerSkipWaitList = true
    packetsPerSecond = 50


    deathListEnabled = true
    deathListRequiredTime = 0 * 60 * 1000
    deathAssistCount = 2
    maxDeathRecords = 2
    multipleNames = false

    externalGuildWarsManagement = false
    ingameGuildManagement = false
    levelToFormGuild = 50
    premiumDaysToFormGuild = 7
    guildNameMinLength = 4
    guildNameMaxLength = 20


    buyableAndSellableHouses = true
    houseNeedPremium = true
    bedsRequirePremium = true
    levelToBuyHouse = 50
    housesPerAccount = 1
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 350
    houseRentPeriod = "weekly"
    houseCleanOld = 7 * 24 * 60 * 60
    guildHalls = true
    houseSkipInitialRent = true
    houseProtection = true


    timeBetweenActions = 200
    timeBetweenExActions = 500
    timeBetweenCustomActions = 500
    checkCorpseOwner = false
    maximumDoorLevel = 999
    tradeLimit = 200
    canOnlyRopePlayers = false
    mapAuthor = "Varios"
    randomizeTiles = true
    houseDataStorage = "binary-tilebased"
    storeTrash = true
    cleanProtectedZones = true
    mapName = "world.otbm"


    mailMaxAttempts = 5
    mailBlockPeriod = 30 * 60 * 1000
    mailAttemptsFadeTime = 5 * 60 * 1000
    mailboxDisabledTowns = "12"
        -- Example disable rook depot (temple) "4"
        -- mailboxDisabledTowns = "4"


    daemonize = false
    defaultPriority = "higher"
    niceLevel = 5
    serviceThreads = 1
    coresUsed = "-1" 
    startupDatabaseOptimization = true
    removePremiumOnInit = true
    confirmOutdatedVersion = false
    skipItemsVersionCheck = false


    maxMessageBuffer = 0


    dataDirectory = "data/"
    logsDirectory = "data/logs/"
    disableOutfitsForPrivilegedPlayers = false
    bankSystem = true
    spellNameInsteadOfWords = false
    emoteSpells = false
    unifiedSpells = true
    promptExceptionTracerErrorBox = true
    storePlayerDirection = false
    savePlayerData = true
    monsterLootMessage = 1
    monsterLootMessageType = 22
    separateViplistPerCharacter = false
    vipListDefaultLimit = 20
    vipListDefaultPremiumLimit = 100


    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    addonsOnlyPremium = true


    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true


    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    expireReportsAfterReads = 1
    playerQueryDeepness = -1
    protectionTileLimit = 80
    houseTileLimit = 50
    tileLimit = 80


    freePremium = false
    premiumForPromotion = false
    updatePremiumStateAtStartup = true


    blessings = true
    blessingOnlyPremium = false
    blessingReductionBase = 30
    blessingReductionDecrement = 5
    eachBlessReduction = 8
    useFairfightReduction = true
    pvpBlessingThreshold = 40
    fairFightTimeRange = 60


    experienceStages = true
    rateExperience = 10.0
    rateExperienceFromPlayers = 0.5
    levelToOfflineTraining = 999
    rateSkill = 5.0
    rateSkillOffline = 0.5
    rateMagic = 3.0
    rateMagicOffline = 0.5
    rateLoot = 1.5
    rateSpawnMin = 8
    rateSpawnMax = 10
    formulaLevel = 5.0
    formulaMagic = 1.0

        rateMonsterHealth = 1.0
        rateMonsterMana = 1.0
        rateMonsterAttack = 0.9
        rateMonsterDefense = 1.0


    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1


    rateStaminaLoss = 0
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.1
    rateStaminaUnderNormal = 1.1
    staminaThresholdOnlyPremium = true


    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 2 / 3
    extraPartyExperienceLimit = 10
    extraPartyExperiencePercent = 10
    experienceShareActivity = 2 * 60 * 1000


    globalSaveEnabled = true
    globalSaveHour = 8
    globalSaveMinute = 0
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    minRateSpawn = 1
    maxRateSpawn = 1
    deSpawnRange = 2
    deSpawnRadius = 999999

    
    maxPlayerSummons = 2
    teleportAllSummons = false
    teleportPlayerSummons = false


    disableLuaErrors = false
    adminLogs = true
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = "logs/run.log"
    outputLog = "logs/output.log"
    truncateLogOnStartup = false
    logPlayersStatements = false

    managerPort = 7171
    managerLogs = true
    managerPassword = ""
    managerLocalhostOnly = true
    managerConnectionsLimit = 1

    adminPort = 7171
    adminPassword = ""
    adminLocalhostOnly = true
    adminConnectionsLimit = 1
    adminRequireLogin = true
    adminEncryption = ""
    adminEncryptionData = ""


    saveGlobalStorage = false
    bufferMutedOnSpellFailure = false

  

> ERROR: Unable to load config.lua! 
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:46: boost::condition_variable::~condition_variable(): Assertion `!pthread_mutex_destroy(&internal_mutex)' failed. 

Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, RAJADAO disse:

> ERROR: Unable to load config.lua! 
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:46: boost::condition_variable::~condition_variable(): Assertion `!pthread_mutex_destroy(&internal_mutex)' failed. 

Recomendo pegar um config.lua já com essas funções vou te mandar um que eu tenho aqui!

 

Spoiler

accountManager = true
    namelockManager = false
    newPlayerChooseVoc = true
    newPlayerSpawnPosX = 32369    
    newPlayerSpawnPosY = 32241
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 2
    newPlayerLevel = 8
    newPlayerMagicLevel = 0
    generateAccountNumber = false
    generateAccountSalt = false


    useRookSystem = false
    rookTownId = 1
    rookLevelToGetRooked = 5
    rookLevelToLeaveRook = 8

    useFragHandler = true
    redSkullLength = 1 * 24 * 60 * 60
    blackSkullLength = 2 * 24 * 60 * 60
    fragsLimit = 24 * 60 * 60
    fragsSecondLimit = 7 * 24 * 60 * 60
    fragsThirdLimit = 30 * 24 * 60 * 60
    fragsToRedSkull = 10
    fragsSecondToRedSkull = 50
    fragsThirdToRedSkull = 200
    fragsToBlackSkull = fragsToRedSkull
    fragsSecondToBlackSkull = fragsSecondToRedSkull
    fragsThirdToBlackSkull = fragsThirdToRedSkull
    fragsToBanishment = 999999
    fragsSecondToBanishment = 999999
    fragsThirdToBanishment = 999999
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = false
    advancedFragList = false


    notationsToBan = 3
    warningsToFinalBan = 4
    warningsToDeletion = 5
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanLength = 1 * 24 * 60 * 60
    allowedMaxSizePackets = 20


    worldType = "open"
    protectionLevel = 1
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 60 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealthChange = false
    showManaChange = false
    showHealthChangeForMonsters = false
    showManaChangeForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 10
    stairhopDelay = 2 * 1000
    pushCreatureDelay = 2 * 1000
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    recoverManaAfterDeathInPvPZone = false
    squareColor = 0
    allowFightback = true
    fistBaseAttack = 7
    useFairfightReduction = true
    optionalWarAttackableAlly = false


    worldId = 0
    ip = "127.0.0.1"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = "7172"
    loginTries = 3
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Obrigado por se conectar, esperamos que tenha um bom jogo!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = true
    allowClones = 0
    serverName = "NOMEDOOT"
    loginMessage = "Espero que sua jornada no servidor seja uma constante alegria.!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = false
    packetsPerSecond = 50


    rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
    rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
    rsaPublic = "65537"
    rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
    rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"


    sqlType = "mysql"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = ""
    sqlDatabase = ""
    sqlFile = ""
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    mysqlReconnectionAttempts = 3
    encryptionType = "sha1"

    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 5
    multipleNames = false

    
    externalGuildWarsManagement = false
    ingameGuildManagement = false
    levelToFormGuild = 8
    premiumDaysToFormGuild = 0
    guildNameMinLength = 4
    guildNameMaxLength = 20


    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 1
    housesPerAccount = 0
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 1000
    houseSkipInitialRent = true
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false
    houseProtection = true


    timeBetweenActions = 200
    timeBetweenExActions = 1000
    timeBetweenCustomActions = 500
    hotkeyAimbotEnabled = true
    tibiaClassicSlots = true
    canOnlyRopePlayers = true


    mapName = "world.otbm"
    mapAuthor = "ChaitoSoft.com [CHADUKA MAPPER]"
    randomizeTiles = true
    storeTrash = true
    cleanProtectedZones = true


    mailboxDisabledTowns = ""
    mailMaxAttempts = 20
    mailBlockPeriod = 60 * 60 * 1000
    mailAttemptsFadeTime = 10 * 60 * 1000

    daemonize = false
    defaultPriority = "high"
    niceLevel = 5
    serviceThreads = 1
    coresUsed = "-1"

    startupDatabaseOptimization = true
    updatePremiumStateAtStartup = true
    confirmOutdatedVersion = false
    skipItemsVersionCheck = true

    
    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = false
    unifiedSpells = true
    enableCooldowns = true


    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false


    dataDirectory = "data/"
    logsDirectory = "data/logs/"
    bankSystem = true
    promptExceptionTracerErrorBox = true
    maximumDoorLevel = 500
    maxMessageBuffer = 4
    logPlayersStatements = true
    tradeLimit = 100
    useCapacity = true
    playerFollowExhaust = 0

    defaultDepotSizePremium = 2000
    defaultDepotSize = 1000

    
    separateVipListPerCharacter = false
    vipListDefaultLimit = 20
    vipListDefaultPremiumLimit = 100

    houseDataStorage = "binary"
    saveGlobalStorage = true
    storePlayerDirection = false
    savePlayerData = true

    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 25

    ghostModeInvisibleEffect = false
    ghostModeSpellEffects = true

    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    reportsExpirationAfterReads = 1
    playerQueryDeepness = -1
    tileLimit = 0
    protectionTileLimit = 0
    houseTileLimit = 0

    
    freePremium = true
    premiumForPromotion = false


    blessings = true
    blessingOnlyPremium = false
    blessingReductionBase = 30
    blessingReductionDecrement = 5
    eachBlessReduction = 8
    pvpBlessingThreshold = 40
    fairFightTimeRange = 60


    experienceStages = true
    rateExperience = 150
    rateExperienceFromPlayers = 0
    rateSkill = 30
    rateMagic = 20
    rateLoot = 3
    rateSpawnMin = 1
    rateSpawnMax = 1

    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1


    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.5
    rateStaminaUnderNormal = 0.5
    staminaThresholdOnlyPremium = true


    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 2 / 3
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 5
    experienceShareActivity = 2 * 60 * 1000


    globalSaveEnabled = false
    globalSaveHour = 8
    globalSaveMinute = 0
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false
    closeInstanceOnShutdown = true


    deSpawnRange = 2
    deSpawnRadius = 50
    monsterSpawnWalkback = true
    allowBlockSpawn = true

    
    maxPlayerSummons = 2
    teleportAllSummons = false
    teleportPlayerSummons = false


    statusPort = 7171
    ownerName = ""
    ownerEmail = "@otland.net"
    url = "http://otland.net/"
    location = "Europe"
    displayGamemastersWithOnlineCommand = false


    disableLuaErrors = false
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outputLog = "output.log"
    truncateLogOnStartup = false


    managerPort = 7171
    managerLogs = true
    managerPassword = ""
    managerLocalhostOnly = true
    managerConnectionsLimit = 1


    adminPort = 7171
    adminLogs = true
    adminPassword = ""
    adminLocalhostOnly = true
    adminConnectionsLimit = 1
    adminRequireLogin = true
    adminEncryption = ""
    adminEncryptionData = ""

 

Link para o comentário
Compartilhar em outros sites

  • 0
47 minutos atrás, Duhisback disse:

Recomendo pegar um config.lua já com essas funções vou te mandar um que eu tenho aqui!

 

  Mostrar conteúdo oculto

accountManager = true
    namelockManager = false
    newPlayerChooseVoc = true
    newPlayerSpawnPosX = 32369    
    newPlayerSpawnPosY = 32241
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 2
    newPlayerLevel = 8
    newPlayerMagicLevel = 0
    generateAccountNumber = false
    generateAccountSalt = false


    useRookSystem = false
    rookTownId = 1
    rookLevelToGetRooked = 5
    rookLevelToLeaveRook = 8

    useFragHandler = true
    redSkullLength = 1 * 24 * 60 * 60
    blackSkullLength = 2 * 24 * 60 * 60
    fragsLimit = 24 * 60 * 60
    fragsSecondLimit = 7 * 24 * 60 * 60
    fragsThirdLimit = 30 * 24 * 60 * 60
    fragsToRedSkull = 10
    fragsSecondToRedSkull = 50
    fragsThirdToRedSkull = 200
    fragsToBlackSkull = fragsToRedSkull
    fragsSecondToBlackSkull = fragsSecondToRedSkull
    fragsThirdToBlackSkull = fragsThirdToRedSkull
    fragsToBanishment = 999999
    fragsSecondToBanishment = 999999
    fragsThirdToBanishment = 999999
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = false
    advancedFragList = false


    notationsToBan = 3
    warningsToFinalBan = 4
    warningsToDeletion = 5
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanLength = 1 * 24 * 60 * 60
    allowedMaxSizePackets = 20


    worldType = "open"
    protectionLevel = 1
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 60 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealthChange = false
    showManaChange = false
    showHealthChangeForMonsters = false
    showManaChangeForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 10
    stairhopDelay = 2 * 1000
    pushCreatureDelay = 2 * 1000
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    recoverManaAfterDeathInPvPZone = false
    squareColor = 0
    allowFightback = true
    fistBaseAttack = 7
    useFairfightReduction = true
    optionalWarAttackableAlly = false


    worldId = 0
    ip = "127.0.0.1"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = "7172"
    loginTries = 3
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Obrigado por se conectar, esperamos que tenha um bom jogo!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = true
    allowClones = 0
    serverName = "NOMEDOOT"
    loginMessage = "Espero que sua jornada no servidor seja uma constante alegria.!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = false
    packetsPerSecond = 50


    rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
    rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
    rsaPublic = "65537"
    rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
    rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"


    sqlType = "mysql"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = ""
    sqlDatabase = ""
    sqlFile = ""
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    mysqlReconnectionAttempts = 3
    encryptionType = "sha1"

    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 5
    multipleNames = false

    
    externalGuildWarsManagement = false
    ingameGuildManagement = false
    levelToFormGuild = 8
    premiumDaysToFormGuild = 0
    guildNameMinLength = 4
    guildNameMaxLength = 20


    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 1
    housesPerAccount = 0
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 1000
    houseSkipInitialRent = true
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false
    houseProtection = true


    timeBetweenActions = 200
    timeBetweenExActions = 1000
    timeBetweenCustomActions = 500
    hotkeyAimbotEnabled = true
    tibiaClassicSlots = true
    canOnlyRopePlayers = true


    mapName = "world.otbm"
    mapAuthor = "ChaitoSoft.com [CHADUKA MAPPER]"
    randomizeTiles = true
    storeTrash = true
    cleanProtectedZones = true


    mailboxDisabledTowns = ""
    mailMaxAttempts = 20
    mailBlockPeriod = 60 * 60 * 1000
    mailAttemptsFadeTime = 10 * 60 * 1000

    daemonize = false
    defaultPriority = "high"
    niceLevel = 5
    serviceThreads = 1
    coresUsed = "-1"

    startupDatabaseOptimization = true
    updatePremiumStateAtStartup = true
    confirmOutdatedVersion = false
    skipItemsVersionCheck = true

    
    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = false
    unifiedSpells = true
    enableCooldowns = true


    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false


    dataDirectory = "data/"
    logsDirectory = "data/logs/"
    bankSystem = true
    promptExceptionTracerErrorBox = true
    maximumDoorLevel = 500
    maxMessageBuffer = 4
    logPlayersStatements = true
    tradeLimit = 100
    useCapacity = true
    playerFollowExhaust = 0

    defaultDepotSizePremium = 2000
    defaultDepotSize = 1000

    
    separateVipListPerCharacter = false
    vipListDefaultLimit = 20
    vipListDefaultPremiumLimit = 100

    houseDataStorage = "binary"
    saveGlobalStorage = true
    storePlayerDirection = false
    savePlayerData = true

    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 25

    ghostModeInvisibleEffect = false
    ghostModeSpellEffects = true

    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    reportsExpirationAfterReads = 1
    playerQueryDeepness = -1
    tileLimit = 0
    protectionTileLimit = 0
    houseTileLimit = 0

    
    freePremium = true
    premiumForPromotion = false


    blessings = true
    blessingOnlyPremium = false
    blessingReductionBase = 30
    blessingReductionDecrement = 5
    eachBlessReduction = 8
    pvpBlessingThreshold = 40
    fairFightTimeRange = 60


    experienceStages = true
    rateExperience = 150
    rateExperienceFromPlayers = 0
    rateSkill = 30
    rateMagic = 20
    rateLoot = 3
    rateSpawnMin = 1
    rateSpawnMax = 1

    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1


    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.5
    rateStaminaUnderNormal = 0.5
    staminaThresholdOnlyPremium = true


    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 2 / 3
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 5
    experienceShareActivity = 2 * 60 * 1000


    globalSaveEnabled = false
    globalSaveHour = 8
    globalSaveMinute = 0
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false
    closeInstanceOnShutdown = true


    deSpawnRange = 2
    deSpawnRadius = 50
    monsterSpawnWalkback = true
    allowBlockSpawn = true

    
    maxPlayerSummons = 2
    teleportAllSummons = false
    teleportPlayerSummons = false


    statusPort = 7171
    ownerName = ""
    ownerEmail = "@otland.net"
    url = "http://otland.net/"
    location = "Europe"
    displayGamemastersWithOnlineCommand = false


    disableLuaErrors = false
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outputLog = "output.log"
    truncateLogOnStartup = false


    managerPort = 7171
    managerLogs = true
    managerPassword = ""
    managerLocalhostOnly = true
    managerConnectionsLimit = 1


    adminPort = 7171
    adminLogs = true
    adminPassword = ""
    adminLocalhostOnly = true
    adminConnectionsLimit = 1
    adminRequireLogin = true
    adminEncryption = ""
    adminEncryptionData = ""

 

Esse serve pra OT old 7x ? É o caso do meu.
Mas já to achando que o problema pode ser em outro lugar além do config =/

Link para o comentário
Compartilhar em outros sites

  • 0
26 minutos atrás, RAJADAO disse:

Esse serve pra OT old 7x ? É o caso do meu.
Mas já to achando que o problema pode ser em outro lugar além do config =/

pronto chegou outra pessoa pra tentar te ajudar tomara que dê certo ^^ tentei ajudar!

Link para o comentário
Compartilhar em outros sites

  • 0
26 minutos atrás, celohere disse:

copia isso e cola no  creaturescripts/scripts/playerdeath.lua 

( pra editar qntos frags pra levar ban so alterar essa parte: local killsToBan = 6

pra editar o tempo de ban essa local killsBanLenght = 3 )

 


local deathListEnabled = true
local maxDeathRecords = 5
local killsToBan = 6
local killsBanLenght = 3

function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
    local playerId = player:getId()
    if nextUseStaminaTime[playerId] ~= nil then
        nextUseStaminaTime[playerId] = nil
    end

    player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.")

    local byPlayer = 0
    local killerName
    if killer ~= nil then
        if killer:isPlayer() then
            byPlayer = 1
        else
            local master = killer:getMaster()
            if master and master ~= killer and master:isPlayer() then
                killer = master
                byPlayer = 1
            end
        end
        killerName = killer:getName()
    else
        killerName = "field item"
    end

    local byPlayerMostDamage = 0
    local mostDamageKillerName
    if mostDamageKiller ~= nil then
        if mostDamageKiller:isPlayer() then
            byPlayerMostDamage = 1
        else
            local master = mostDamageKiller:getMaster()
            if master and master ~= mostDamageKiller and master:isPlayer() then
                mostDamageKiller = master
                byPlayerMostDamage = 1
            end
        end
        mostDamageName = mostDamageKiller:getName()
    else
        mostDamageName = "field item"
    end

    local playerGuid = player:getGuid()
    db.query("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (" .. playerGuid .. ", " .. os.time() .. ", " .. player:getLevel() .. ", " .. db.escapeString(killerName) .. ", " .. byPlayer .. ", " .. db.escapeString(mostDamageName) .. ", " .. byPlayerMostDamage .. ", " .. (unjustified and 1 or 0) .. ", " .. (mostDamageUnjustified and 1 or 0) .. ")")
    local resultId = db.storeQuery("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. playerGuid)

    local deathRecords = 0
    local tmpResultId = resultId
    while tmpResultId ~= false do
        tmpResultId = result.next(resultId)
        deathRecords = deathRecords + 1
    end

    if resultId ~= false then
        result.free(resultId)
    end

    local limit = deathRecords - maxDeathRecords
    if limit > 0 then
        db.asyncQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. playerGuid .. " ORDER BY `time` LIMIT " .. limit)
    end

    if byPlayer == 1 then
        local targetGuild = player:getGuild()
        targetGuild = targetGuild and targetGuild:getId() or 0
        if targetGuild ~= 0 then
            local killerGuild = killer:getGuild()
            killerGuild = killerGuild and killerGuild:getId() or 0
            if killerGuild ~= 0 and targetGuild ~= killerGuild and isInWar(playerId, killer:getId()) then
                local warId = false
                resultId = db.storeQuery("SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = " .. killerGuild .. " AND `guild2` = " .. targetGuild .. ") OR (`guild1` = " .. targetGuild .. " AND `guild2` = " .. killerGuild .. "))")
                if resultId ~= false then
                    warId = result.getDataInt(resultId, "id")
                    result.free(resultId)
                end

                if warId ~= false then
                    db.asyncQuery("INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (" .. db.escapeString(killerName) .. ", " .. db.escapeString(player:getName()) .. ", " .. killerGuild .. ", " .. targetGuild .. ", " .. os.time() .. ", " .. warId .. ")")
                end
            end
        end

        local skullTime = killer:getSkullTime()
        if skullTime > 0 then
            local kills = math.ceil(skullTime / configManager.getNumber(configKeys.FRAG_TIME))
            if kills >= killsToBan then
                local timeNow = os.time()
                db.query("INSERT INTO `account_bans` (`account_id`, `reason`, `banned_at`, `expires_at`, `banned_by`) VALUES (" .. killer:getAccountId() .. ", " .. db.escapeString("Excessive Unjustified Player Killing.") .. ", " .. timeNow .. ", " .. timeNow + (killsBanLenght * 86400) .. ", 1)")
                killer:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
                killer:remove()
            end
        end
    end
end

 

Resolvido mano, muito obrigado!!

22 minutos atrás, Duhisback disse:

pronto chegou outra pessoa pra tentar te ajudar tomara que dê certo ^^ tentei ajudar!

Valeu mano, brigadão também de qlq forma.

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...