Advertisement
Guest User

Cfg.lua gesior problem

a guest
Jan 29th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.35 KB | None | 0 0
  1. -- The Forgotten Server Config
  2.  
  3.     -- Extras configs
  4.         -- General
  5.         generateAccountSalt = false
  6.         allowedMaxSizedPackets = 3
  7.         mysqlReconnectionAttempts = 3
  8.         tradelimit = 100
  9.         skipItemsVersionCheck = true
  10.         healPlayersOnLevelAdvance = true
  11.         tibiaClassicSlots = true
  12.         useCapSystem = true
  13.         useMultiClient = false
  14.         savePlayerData = true
  15.         houseSkipInitialRent = true
  16.         houseProtection = true
  17.         enableProtectionQuestForGM = true
  18.  
  19.         -- Rook System
  20.         enableRookSystem = false
  21.         rookLevelTo = 6
  22.         rookTownId = 1
  23.  
  24.         -- Mailbox Block
  25.         mailMaxAttempts = 2
  26.         mailBlockPeriod = 60 * 60 * 1000
  27.         mailAttemptsFadeTime = 60 * 60 * 1000
  28.  
  29.         -- Depot System
  30.         -- 1000 depot limet defined on depot.cpp
  31.         defaultDepotSizePremium = 1000
  32.         defaultDepotSizefree = 500
  33.  
  34.         -- Spawns
  35.         noDisableBlockRespawn = true
  36.         monstersGoBackToSpawn = false
  37.  
  38.         -- Summons
  39.         noShareExpSummonMonster = false
  40.  
  41.         -- Spells
  42.         unifiedSpells = true
  43.  
  44.         -- RSA
  45.         -- NOTE: These should not be changed unless you know what your doing!
  46.         -- Prime1 - known as p; Prime2 - known as q; Public - known as e;
  47.         -- Modulus - known as n; Private - known as d.
  48.         -- How make custom client with custom RSA Key: http://vapus.net/customclient
  49.         rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113"
  50.         rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101"
  51.         rsaPublic = "65537"
  52.         rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413"
  53.         rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073"
  54.  
  55.         -- Removed Config
  56.         -- useHouseDataStorage = false
  57.         -- houseDataStorage (binary-tilebased) or (binary) performs much faster map saving than relational (up to 60x faster).
  58.         -- binary - uses house_data table to store house data in giant blob for each house.
  59.         -- binary-tilebased - uses tile_store table to store house data in blob for each tile (benefit: if blob becomes corrupted, only specific tile will be wiped, not entire house).
  60.         -- relational - uses `tiles` and `tile_items` tables, doesn't store data in blob, easier to manage but is up to 60 times slower and uses up more space in database.
  61.         -- Default: binary-tilebased
  62.         houseDataStorage = "binary-tilebased"
  63.  
  64.     -- Account manager
  65.     accountManager = true
  66.     namelockManager = true
  67.     newPlayerChooseVoc = false
  68.     newPlayerSpawnPosX = 95
  69.     newPlayerSpawnPosY = 117
  70.     newPlayerSpawnPosZ = 7
  71.     newPlayerTownId = 1
  72.     newPlayerLevel = 1
  73.     newPlayerMagicLevel = 0
  74.     generateAccountNumber = false
  75.  
  76.     -- Unjustified kills
  77.     -- NOTE: *Banishment and *BlackSkull variables are >summed up<
  78.     -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
  79.     -- *RedSkull equivalents.
  80.     -- Auto banishing works only if useBlackSkull set to negative.
  81.     -- advancedFragList is not advised if you use huge frags
  82.     -- requirements.
  83.     useFragHandler = true
  84.     redSkullLength = 30 * 24 * 60 * 60
  85.     blackSkullLength = 45 * 24 * 60 * 60
  86.     dailyFragsToRedSkull = 3
  87.     weeklyFragsToRedSkull = 5
  88.     monthlyFragsToRedSkull = 10
  89.     dailyFragsToBlackSkull = dailyFragsToRedSkull
  90.     weeklyFragsToBlackSkull = weeklyFragsToRedSkull
  91.     monthlyFragsToBlackSkull = monthlyFragsToRedSkull
  92.     dailyFragsToBanishment = dailyFragsToRedSkull
  93.     weeklyFragsToBanishment = weeklyFragsToRedSkull
  94.     monthlyFragsToBanishment = monthlyFragsToRedSkull
  95.     blackSkulledDeathHealth = 40
  96.     blackSkulledDeathMana = 0
  97.     useBlackSkull = true
  98.     advancedFragList = false
  99.  
  100.     -- Banishments
  101.     -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
  102.     -- killsBanLength works only if useBlackSkull option is disabled.
  103.     notationsToBan = 3
  104.     warningsToFinalBan = 4
  105.     warningsToDeletion = 5
  106.     banLength = 7 * 24 * 60 * 60
  107.     killsBanLength = 7 * 24 * 60 * 60
  108.     finalBanLength = 30 * 24 * 60 * 60
  109.     ipBanishmentLength = 1 * 24 * 60 * 60
  110.     broadcastBanishments = true
  111.     maxViolationCommentSize = 200
  112.     violationNameReportActionType = 2
  113.     autoBanishUnknownBytes = false
  114.  
  115.     -- Battle
  116.     -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
  117.     -- loginProtectionPeriod is the famous Tibia anti-magebomb system.
  118.     -- deathLostPercent set to nil enables manual mode.
  119.     worldType = "open"
  120.     protectionLevel = 1
  121.     pvpTileIgnoreLevelAndVocationProtection = true
  122.     pzLocked = 60 * 1000
  123.     huntingDuration = 60 * 1000
  124.     criticalHitChance = 7
  125.     criticalHitMultiplier = 1
  126.     displayCriticalHitNotify = false
  127.     removeWeaponAmmunition = true
  128.     removeWeaponCharges = true
  129.     removeRuneCharges = true
  130.     whiteSkullTime = 15 * 60 * 1000
  131.     noDamageToSameLookfeet = false
  132.     showHealingDamage = false
  133.     showHealingDamageForMonsters = false
  134.     fieldOwnershipDuration = 5 * 1000
  135.     stopAttackingAtExit = false
  136.     loginProtectionPeriod = 10 * 1000
  137.     deathLostPercent = 10
  138.     stairhopDelay = 2 * 1000
  139.     pushCreatureDelay = 2 * 1000
  140.     deathContainerId = 1987
  141.     gainExperienceColor = 215
  142.     addManaSpentInPvPZone = true
  143.     squareColor = 0
  144.     allowFightback = true
  145.     fistBaseAttack = 7
  146.  
  147.     -- Connection config
  148.     worldId = 0
  149.     ip = "127.0.0.1"
  150.     loginPort = 7171
  151.     gamePort = 7172
  152.     loginTries = 10
  153.     retryTimeout = 5 * 1000
  154.     loginTimeout = 60 * 1000
  155.     maxPlayers = 1000
  156.     motd = "Welcome to the Forgotten Server!"
  157.     displayOnOrOffAtCharlist = false
  158.     onePlayerOnlinePerAccount = true
  159.     allowClones = false
  160.     serverName = "Forgotten"
  161.     loginMessage = "Welcome to the Forgotten Server!"
  162.     statusTimeout = 5 * 60 * 1000
  163.     replaceKickOnLogin = true
  164.     forceSlowConnectionsToDisconnect = false
  165.     loginOnlyWithLoginServer = false
  166.     premiumPlayerSkipWaitList = false
  167.  
  168.     -- Database
  169.     -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
  170.     -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
  171.     -- encryptionType can be plain, md5, sha1, sha256, sha512 or vahash.
  172.     sqlType = "sqlite"
  173.     sqlHost = "127.0.0.1"
  174.     sqlPort = 3306
  175.     sqlUser = "root"
  176.     sqlPass = ""
  177.     sqlDatabase = ""
  178.     sqlFile = "schemas/theforgottenserver.s3db"
  179.     sqlKeepAlive = 0
  180.     mysqlReadTimeout = 10
  181.     mysqlWriteTimeout = 10
  182.     encryptionType = "sha1"
  183.  
  184.     -- Deathlist
  185.     deathListEnabled = true
  186.     deathListRequiredTime = 1 * 60 * 1000
  187.     deathAssistCount = 19
  188.     maxDeathRecords = 5
  189.  
  190.     -- Guilds
  191.     ingameGuildManagement = true
  192.     levelToFormGuild = 8
  193.     premiumDaysToFormGuild = 0
  194.     guildNameMinLength = 4
  195.     guildNameMaxLength = 20
  196.  
  197.     -- Highscores
  198.     highscoreDisplayPlayers = 15
  199.     updateHighscoresAfterMinutes = 60
  200.  
  201.     -- Houses
  202.     buyableAndSellableHouses = true
  203.     houseNeedPremium = true
  204.     bedsRequirePremium = true
  205.     levelToBuyHouse = 1
  206.     housesPerAccount = 0
  207.     houseRentAsPrice = false
  208.     housePriceAsRent = false
  209.     housePriceEachSquare = 1000
  210.     houseRentPeriod = "never"
  211.     houseCleanOld = 0
  212.     guildHalls = false
  213.  
  214.     -- Item usage
  215.     timeBetweenActions = 1000
  216.     timeBetweenExActions = 1000
  217.     hotkeyAimbotEnabled = true
  218.  
  219.     -- Map
  220.     -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
  221.     mapName = "forgotten.otbm"
  222.     mapAuthor = "Komic"
  223.     randomizeTiles = true
  224.     storeTrash = true
  225.     cleanProtectedZones = true
  226.     mailboxDisabledTowns = ""
  227.         -- Example disable rook depot (temple) "4"
  228.         -- mailboxDisabledTowns = "4"
  229.  
  230.     -- Process
  231.     -- NOTE: defaultPriority works only on Windows and niceLevel on *nix
  232.     -- niceLevel works only on *nix systems
  233.     -- coresUsed are seperated by comma cores ids used by server process,
  234.     -- default is -1, so it stays untouched (automaticaly assigned by OS).
  235.     defaultPriority = "high"
  236.     niceLevel = 5
  237.     coresUsed = "-1"
  238.  
  239.     -- Startup
  240.     startupDatabaseOptimization = true
  241.     updatePremiumStateAtStartup = true
  242.     confirmOutdatedVersion = false
  243.  
  244.     -- Spells
  245.     formulaLevel = 5.0
  246.     formulaMagic = 1.0
  247.     bufferMutedOnSpellFailure = false
  248.     spellNameInsteadOfWords = false
  249.     emoteSpells = false
  250.  
  251.     -- Outfits
  252.     allowChangeOutfit = true
  253.     allowChangeColors = true
  254.     allowChangeAddons = true
  255.     disableOutfitsForPrivilegedPlayers = false
  256.     addonsOnlyPremium = true
  257.  
  258.     -- Miscellaneous
  259.     -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
  260.     -- called "exception tracer" (__EXCEPTION_TRACER__ flag).
  261.     dataDirectory = "data/"
  262.     logsDirectory = "data/logs/"
  263.     bankSystem = true
  264.     displaySkillLevelOnAdvance = false
  265.     promptExceptionTracerErrorBox = true
  266.     maximumDoorLevel = 500
  267.     maxMessageBuffer = 4
  268.  
  269.     -- VIP list
  270.     separateVipListPerCharacter = false
  271.     vipListDefaultLimit = 20
  272.     vipListDefaultPremiumLimit = 100
  273.  
  274.     -- Saving-related
  275.     -- useHouseDataStorage usage may be found at README.
  276.     saveGlobalStorage = true
  277.     storePlayerDirection = false
  278.  
  279.     -- Loot
  280.     -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
  281.     checkCorpseOwner = true
  282.     monsterLootMessage = 3
  283.     monsterLootMessageType = 25
  284.  
  285.     -- Ghost mode
  286.     ghostModeInvisibleEffect = false
  287.     ghostModeSpellEffects = true
  288.  
  289.     -- Limits
  290.     idleWarningTime = 14 * 60 * 1000
  291.     idleKickTime = 15 * 60 * 1000
  292.     reportsExpirationAfterReads = 1
  293.     playerQueryDeepness = 2
  294.     tileLimit = 0
  295.     protectionTileLimit = 0
  296.     houseTileLimit = 0
  297.  
  298.     -- Premium-related
  299.     freePremium = false
  300.     premiumForPromotion = true
  301.  
  302.     -- Blessings
  303.     -- NOTE: blessingReduction* regards items/containers loss.
  304.     -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
  305.     blessings = true
  306.     blessingOnlyPremium = true
  307.     blessingReductionBase = 30
  308.     blessingReductionDecrement = 5
  309.     eachBlessReduction = 8
  310.  
  311.     -- Rates
  312.     -- NOTE: experienceStages configuration is located in data/XML/stages.xml.
  313.     -- rateExperienceFromPlayers 0 to disable.
  314.     experienceStages = false
  315.     rateExperience = 5.0
  316.     rateExperienceFromPlayers = 0
  317.     rateSkill = 3.0
  318.     rateMagic = 3.0
  319.     rateLoot = 2.0
  320.     rateSpawn = 1
  321.  
  322.     -- Monster rates
  323.     rateMonsterHealth = 1.0
  324.     rateMonsterMana = 1.0
  325.     rateMonsterAttack = 1.0
  326.     rateMonsterDefense = 1.0
  327.  
  328.     -- Experience from players
  329.     -- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
  330.     -- player will gain experience from every lower leveled player.
  331.     -- max~Threshold* set to 0 will disable the maximum threshold:
  332.     -- player will gain experience from every higher leveled player.
  333.     minLevelThresholdForKilledPlayer = 0.9
  334.     maxLevelThresholdForKilledPlayer = 1.1
  335.  
  336.     -- Stamina
  337.     -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
  338.     -- rateStaminaHits multiplies every hit done a creature, which are later
  339.     -- multiplied by player attack speed.
  340.     -- rateStaminaGain is multiplying every second of logged out time, eg:
  341.     -- 60 * 1000 / 3 = 20 seconds, what gives 1 stamina minute for 3 being logged off.
  342.     -- rateStaminaThresholdGain is dividing in case the normal gain (that is
  343.     -- multiplied by rateStaminaGain, btw.) passed above threshold, eg:
  344.     -- 60 * 1000 / 3 = 20 / 4 = 5 seconds (3 * 4 = 12 minutes for 1 stamina minute).
  345.     -- staminaRatingLimit* is in minutes.
  346.     rateStaminaLoss = 1
  347.     rateStaminaGain = 3
  348.     rateStaminaThresholdGain = 12
  349.     staminaRatingLimitTop = 40 * 60
  350.     staminaRatingLimitBottom = 14 * 60
  351.     staminaLootLimit = 14 * 60
  352.     rateStaminaAboveNormal = 1.5
  353.     rateStaminaUnderNormal = 0.5
  354.     staminaThresholdOnlyPremium = true
  355.  
  356.     -- Party
  357.     -- NOTE: experienceShareLevelDifference is float number.
  358.     -- experienceShareLevelDifference is highestLevel * value
  359.     experienceShareRadiusX = 30
  360.     experienceShareRadiusY = 30
  361.     experienceShareRadiusZ = 1
  362.     experienceShareLevelDifference = 2 / 3
  363.     extraPartyExperienceLimit = 20
  364.     extraPartyExperiencePercent = 5
  365.     experienceShareActivity = 2 * 60 * 1000
  366.  
  367.     -- Global save
  368.     -- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
  369.     -- if you want such a system please check out data/globalevents/globalevents.xml.
  370.     globalSaveEnabled = false
  371.     globalSaveHour = 8
  372.     globalSaveMinute = 0
  373.     shutdownAtGlobalSave = true
  374.     cleanMapAtGlobalSave = false
  375.  
  376.     -- Spawns
  377.     deSpawnRange = 2
  378.     deSpawnRadius = 50
  379.  
  380.     -- Summons
  381.     maxPlayerSummons = 2
  382.     teleportAllSummons = false
  383.     teleportPlayerSummons = false
  384.  
  385.     -- Status
  386.     statusPort = 7171
  387.     ownerName = ""
  388.     ownerEmail = "@otland.net"
  389.     url = "http://otland.net/"
  390.     location = "Europe"
  391.     displayGamemastersWithOnlineCommand = false
  392.  
  393.     -- Logs
  394.     -- NOTE: This kind of logging does not work in GUI version.
  395.     -- For such, please compile the software with __GUI_LOGS__ flag.
  396.     displayPlayersLogging = true
  397.     prefixChannelLogs = ""
  398.     runFile = ""
  399.     outputLog = ""
  400.     truncateLogsOnStartup = false
  401.  
  402.     -- Manager
  403.     -- NOTE: managerPassword left blank disables manager.
  404.     managerPort = 7171
  405.     managerLogs = true
  406.     managerPassword = ""
  407.     managerLocalhostOnly = true
  408.     managerConnectionsLimit = 1
  409.  
  410.     -- Admin
  411.     -- NOTE: adminPassword left blank disables manager.
  412.     -- Set to anything if you set adminRequireLogin to false.
  413.     -- adminEncryption available options: rsa1024xtea;
  414.     -- remember to set correct data!
  415.     adminPort = 7171
  416.     adminLogs = true
  417.     adminPassword = ""
  418.     adminLocalhostOnly = true
  419.     adminConnectionsLimit = 1
  420.     adminRequireLogin = true
  421.     adminEncryption = ""
  422.     adminEncryptionData = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement