Advertisement
Guest User

config.lua

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