-------- config.lua --------
-- Config file for OTServ --
----------------------------
-- data directory location
datadir = "data/"
-- map location
map = "data/world/world2.otbm"
-- Type of map storage,
-- 'relational' - Slower, but possible to run database queries to change all items to another id for example.
-- 'binary' - Faster, but you cannot run DB queries.
-- To switch, load server with the current type, change the type in config.lua
-- type /reload config and the save the server with /closeserver serversave
map_store_type = "binary"
-- mapkind
-- options: OTBM for binary map, XML for OTX map
mapkind = "OTBM"
-- server name
servername = "Oldera"
-- server location
location = "Netherlands"
-- server ip (the ip that server listens on)
ip = "85.151.77.**"
-- server port (the port that server listens on)
port = "7171"
-- server url
url = "http://otserv.org"
-- server owner name
ownername = ""
-- server owner email
owneremail = ""
-- world name
worldname = "Server"
-- world type
-- options: pvp, no-pvp, pvp-enforced
worldtype = "pvp"
-- exhausted time in ms (1000 = 1 second) for none-aggressive spells/weapons
exhausted = 1070
-- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons
fightexhausted = 1550
-- how many ms to add if the player is already exhausted and tries to cast a spell (1000 = 1 second)
exhaustedadd = 0
-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
pzlocked = 60000
-- For how many minutes after killing a monster stamina will be removed
hunting_kill_duration = pzlocked
-- how long a field belongs to a player before it no longer causes PZ lock for the owner
field_ownership_duration = 5000
-- enable (advanced, item based) hotkeys?
enablehotkeys = false
-- minimum amount of time between actions ('Use') (1000 = 1 second)
minactioninterval = 500
-- minimum amount of time between extended actions ('Use with...') (1000 = 1 second)
minactionexinterval = 1000
-- house rent period
-- options: daily, weekly, monthly
houserentperiod = "daily"
-- whether or not to check for premium accounts when using beds
premonlybeds = true
-- Should the server use account balance system or depot system for paying houses?
useaccbalance = false
-- Skull duration, how long one kill adds to your red skull time
skullduration = 12*60*60*1000
-- How many players you need to kill to gain a red skull
killsforredskull = 3
-- Extra experience % per player when sharing experience
party_exp_mul = 0
-- Anti-MageBomb system
-- This system works as in Tibia, time in milliseconds
login_attack_delay = 1*1000
-- Show error window when server crashes?
show_crash_window = true
-- rates (experience, skill, magic level, loot and spawn)
rate_exp = 1
rate_skill = 120
rate_mag = 35
rate_loot = 10
rate_spawn = 3
-- stamina rates
-- gain stamina rate - 1 minute offline = X milliseconds of stamina
rate_stamina_gain = 0
-- loss stamina rate - works as other rates
rate_stamina_loss = 0
-- Remove ammunition
-- If false, ammunition will not be removed when using distance weapons
-- (or other weapons that use ammunition)
remove_ammunition = true
-- Remove rune charges
-- This only applies to runes done using the default functions.
-- Custom runes made using actions will not be affected.
remove_rune_charges = true
-- Remove weapon charges
-- Set to false to disable charges disappearing from weapons on use
remove_weapon_charges = true
-- despawn configs
-- how many floors can a monster go from his spawn before despawning
despawnrange = 2
-- how many square metters can a monster be far from his spawn before despawning
despawnradius = 50
-- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting
maxmessagebuffer = 10
-- motd (the message box that you sometimes get before you choose characters)
motd = "Welcome to Oldera 7.72!"
motdnum = "1"
-- login message
loginmsg = "Welcome to Oldera 7.72!"
-- how many logins attempts until ip is temporary disabled
-- set to 0 to disable
logintries = 5
-- how long the retry timeout until a new login can be made (without disabling the ip)
retrytimeout = 5000
-- how long the player need to wait until the ip is allowed again
logintimeout = 60 * 1000
-- allow clones (multiple logins of the same char)
allowclones = false
-- only one player online per account
checkaccounts = false
-- max number of players allowed
maxplayers = "300"
-- save client debug assertion reports
saveclientdebug = false
-- Set the max query interval for retrieving status information
-- default: 5 minutes / IP
-- set to 0 to disable
statustimeout = 30 * 1000
-- accounts password type
-- options: plain, md5, sha1
passwordtype = "plain"
-- House configuration (game_class)
-- House tile price
house_tile_price = 2000
-- Only premium players can buy houses?
house_only_premium = "yes"
-- Level to buy houses
house_level = 30
-- SQL type
-- options: mysql, sqlite, odbc or pgsql
sql_type = "mysql"
--- SQL connection part
sql_db = "oldera"
--- sql_db = "otserv" //use this one for MySQL or PgSQL
--- sql_db = "Your Source" // use this for ODBC
-- there settings are not used by SQLite
sql_host = "localhost"
sql_port = 3306
sql_user = "root"
sql_pass = ""