duendeee

OTHire/config.lua

Sep 13th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.31 KB | None | 0 0
  1. -------- config.lua --------
  2. -- Config file for OTServ --
  3. ----------------------------
  4.  
  5. -- data directory location
  6. datadir = "data/"
  7.  
  8. -- map location
  9. map = "data/world/world.otbm"
  10.  
  11. -- Type of map storage,
  12. -- 'relational' - Slower, but possible to run database queries to change all items to another id for example.
  13. -- 'binary' - Faster, but you cannot run DB queries.
  14. -- To switch, load server with the current type, change the type in config.lua
  15. -- type /reload config and the save the server with /closeserver serversave
  16. map_store_type = "binary"
  17.  
  18. -- mapkind
  19. -- options: OTBM for binary map, XML for OTX map
  20. mapkind = "OTBM"
  21.  
  22. -- server name
  23. servername = "OTServ"
  24.  
  25. -- server location
  26. location = "Germany"
  27.  
  28. -- server ip (the ip that server listens on)
  29. ip = "127.0.0.1"
  30.  
  31. -- login server port
  32. -- This should be the port used for connecting with IP changers etc.
  33. login_port = "7171"
  34.  
  35. -- game server port
  36. -- game server must be on it's own port (due to limits of the protocol)
  37. game_port = "7172"
  38.  
  39. -- status port
  40. -- Used by status protocol connections, should be same as login
  41. -- to work correctly with server lists etc.
  42. status_port = "7171"
  43.  
  44. -- admin port
  45. -- Port used by the OTAdmin protocol
  46. admin_port = "7171"
  47.  
  48. -- server url
  49. url = "http://otland.net"
  50.  
  51. -- server owner name
  52. ownername = "Ezzz"
  53.  
  54. -- server owner email
  55. owneremail = ""
  56.  
  57. -- world name
  58. worldname = "OTHire"
  59.  
  60. -- world type
  61. -- options: openpvp/pvp, optionalpvp/no-pvp, hardcorepvp/pvp-enforced
  62. worldtype = "pvp"
  63.  
  64. -- Auto Stack items in containers (like in newer Tibia versions)
  65. container_items_auto_stack = false
  66.  
  67. -- does player rate (from lua functions) count on experience gained from killings players on pvp-e worlds?
  68. rates_for_player_killing = false
  69.  
  70. -- exhausted time in ms (1000 = 1 second) for "yell" speak type
  71. exhausted = 30000
  72.  
  73. -- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons
  74. fightexhausted = 2000
  75.  
  76. -- exhausted time in ms (1000 = 1 second) for none-aggressive spells
  77. healexhausted = 1000
  78.  
  79. -- exhausted time in ms (1000 = 1 second) for floor changing
  80. stairhop_exhausted = 2000
  81.  
  82. -- how many ms to add if the player is already exhausted and tries to cast a spell/yells (1000 = 1 second)
  83. exhaustedadd = 5000
  84.  
  85. -- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
  86. in_fight_duration = 60000
  87.  
  88. -- how long a field belongs to a player before it no longer causes PZ lock for the owner
  89. field_ownership_duration = 5000
  90.  
  91. -- When a player dies, how many of the assisting players (ie. how many of those who made damage) should be stored in database?
  92. death_assist_count = 10
  93.  
  94. -- Should only the player who did the last hit get the 15-minute pz lock?
  95. last_hit_pzblock_only = true
  96.  
  97. -- minimum amount of time between actions ('Use') (1000 = 1 second)
  98. minactioninterval = 200
  99.  
  100. -- minimum amount of time between extended actions ('Use with...') (1000 = 1 second)
  101. minactionexinterval = 1000
  102.  
  103. -- house rent period
  104. -- options: daily, weekly, monthly
  105. houserentperiod = "monthly"
  106.  
  107. -- whether or not to check for premium accounts when using beds
  108. premonlybeds = true
  109.  
  110. -- Should the server use account balance system or depot system for paying houses?
  111. use_balance_house_paying = true
  112.  
  113. -- How long time the red skull will last in seconds (default 30 days)
  114. red_skull_duration = 30*24*60*60
  115.  
  116. -- White skull duration, how long a player will get pz locked/white skull
  117. unjust_skull_duration = 15*60*1000
  118.  
  119. -- Enable this and players will get pzlocked regardless of being the aggressor or not (<8.5 this was set to true)
  120. defensive_pz_lock = true
  121.  
  122. -- Enable this so items with height as parcels and boxes block players movement when stacked, as in 7.4
  123. parcel_block = false
  124.  
  125. -- How many players you need to kill to gain a red skull per day/week/month
  126. -- Set 0 to disable
  127. kills_per_day_red_skull = 3
  128. kills_per_week_red_skull = 5
  129. kills_per_month_red_skull = 10
  130. -- In Oldschool you would get banned by doubling the needed month unjustified kills for red skull
  131. kills_to_ban = 20
  132.  
  133. -- Broadcast violation window banishments
  134. broadcast_banishments = "no"
  135.  
  136. -- Violation window config
  137. max_violation_comment_size = 255
  138. notations_to_banishment = 3
  139. warnings_to_final_banishment = 4
  140. warnings_to_deletion = 5
  141. banishment_length = 7*86400 --seconds
  142. final_banishment_length = 30*86400 --seconds
  143. ip_banishment_length = 86400 --seconds
  144.  
  145. -- Extra experience % per player when sharing experience
  146. party_exp_mul = 5
  147.  
  148. -- Anti-MageBomb system
  149. -- This system works as in Tibia, time in milliseconds
  150. login_attack_delay = 10*1000
  151.  
  152. -- AFK Configuration (in milliseconds, but use values for minutes)
  153. -- Maximum time a player can stay away from keyboard before being kicked
  154. max_idle_time = 16*60*1000
  155. -- Player will be warned about being kicked at this time
  156. max_idle_time_warning = 15*60*1000
  157.  
  158. -- Exp Stages configuration is in /data/exp_stages.lua
  159. experience_stages = false
  160.  
  161. -- rates (experience, skill, magic level, loot and spawn)
  162. rate_exp = 1
  163. rate_exp_pvp = 0
  164. rate_skill = 1
  165. rate_mag = 1
  166. rate_loot = 1
  167. rate_spawn = 1
  168.  
  169. -- Rookgaard system
  170. -- level_to_rook if player reach this level he is sento to newbie island at level 1
  171. level_to_rook = 5
  172. -- rook_temple_id newbie island temple id
  173. rook_temple_id = 2
  174. storage_sendrook = 49786
  175.  
  176. -- What message should be sent for the player, after its own death? Use "" to disable.
  177. death_msg = "You are dead."
  178.  
  179. --should players be able to rope creatures (like at older versions of tibia)?
  180. can_rope_creatures = true
  181.  
  182. --how many floors away of a player should a monster be to become idle?
  183. --WARNING: setting this as any number bigger than 3 may increase CPU usage and
  184. --setting this to any value smaller than 2 will make nearly impossible to rope monsters from a hole
  185. height_minimum_for_idle = 2
  186.  
  187. -- Should the level requirements on runes be used [default: false]
  188. use_rune_level_requirements = false
  189.  
  190. -- Remove ammunition
  191. -- If false, ammunition will not be removed when using distance weapons
  192. -- (or other weapons that use ammunition)
  193. remove_ammunition = true
  194.  
  195. -- Remove rune charges
  196. -- This only applies to runes done using the default functions.
  197. -- Custom runes made using actions will not be affected.
  198. remove_rune_charges = true
  199.  
  200. -- Remove weapon charges
  201. -- Set to false to disable charges disappearing from weapons on use
  202. remove_weapon_charges = true
  203.  
  204. -- Distance weapon configuration
  205. -- Should exhaustion and action time be checked for using a distance weapon?
  206. distance_weapon_interrupt_swing = true
  207.  
  208. -- Wands configuration exhaustion
  209. -- Should exhaustion and action time be checked for using wands?
  210. wands_interrupt_swing = true
  211.  
  212. -- maximum amount of items inside of a container (including the items inside of any container inside of it)
  213. -- Use 0 for infinite
  214. max_amount_items_inside_containers = 2000
  215.  
  216. -- maximum amount of containers inside of a player inventory
  217. -- it fixes some CPU bug so it's not recommended to change this value to very high
  218. max_containers_inside_player_inventory = 100
  219.  
  220. --maximal length for chains of containers (i.e, a container inside of a container which is inside of a container...)
  221. max_deepness_of_chain_of_containers = 500
  222.  
  223. --should OTServ bind only global IP address ?
  224. bind_only_global_address = true
  225.  
  226. -- How many items can be stacked in a single tile (all type of tiles)(client side)? DO NOT CHANGE IT UNLESS THAT YOU KNOW WHAT YOU ARE DOING
  227. max_stack_size = 1000
  228.  
  229. -- How many items can be stacked in a normal tile ? (0 = max_stack_size)
  230. tile_limit = 0
  231.  
  232. -- How many items can be stacked in a protection zone tile ? (0 = max_stack_size)
  233. protection_tile_limit = 0
  234.  
  235. -- How many items can be stacked in a house zone tile ? (0 = max_stack_size)
  236. house_tile_limit = 0
  237.  
  238. -- fist fighting configuration
  239. -- How strong should be the attack using bare hands (fist fighting)?
  240. fist_strength = 7
  241.  
  242. -- Allow gamemaster multiclient login to everybody?
  243. allow_gamemaster_multiclient = true
  244.  
  245. -- despawn configs
  246. -- how many floors can a monster go from his spawn before despawning
  247. despawnrange = 2
  248. -- how many square metters can a monster be far from his spawn before despawning
  249. despawnradius = 50
  250.  
  251. --should players be able to hit invisible creatures using not AOE runes? (default: true)
  252. can_attack_invisible = true
  253.  
  254. --players with a level smaller than this number can't be attacked by other players. Set it to to 0 to disable
  255. min_pvp_level = 0
  256.  
  257. --how much % of the total damage players actually receive when attacked by other players?
  258. --Old Tibia has this in 100%
  259. pvp_damage = 100
  260.  
  261. --should pvp restrictions apply to summons too?
  262. -- (experimental code - requires otserv to be compiled with flag __MIN_PVP_LEVEL_APPLIES_TO_SUMMONS__)
  263. min_pvp_level_applies_to_summons = true
  264.  
  265. -- How many milliseconds (1 sec = 1000) we should wait until the player will be pushed by another player.
  266. push_interval = 2000
  267.  
  268. -- How many milliseconds a player should wait until he can move another item after moving one (0 disables it)
  269. move_item_interval = 500
  270.  
  271. -- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting
  272. maxmessagebuffer = 4
  273.  
  274. -- if you doesn't wish to see errors like this: "Error: Expected an integer/boolean parameter"
  275. --(it means that you are missing an return somewhere but this is not so important and is just spamming your console on a production server) then set this to false
  276. lua_excepted_type_errors_enabled = false
  277.  
  278. -- motd (the message box that you sometimes get before you choose characters)
  279. motd = "Welcome to OTHire."
  280. motdnum = "1"
  281.  
  282. -- login message
  283. loginmsg = "Welcome to OTHire."
  284.  
  285. -- how many logins attempts until ip is temporary disabled
  286. -- set to 0 to disable
  287. logintries = 5
  288.  
  289. -- how long the retry timeout until a new login can be made (without disabling the ip)
  290. retrytimeout = 5000
  291.  
  292. -- how long the player need to wait until the ip is allowed again
  293. logintimeout = 60 * 1000
  294.  
  295. -- What is the maximum number of packages the client can send per second?
  296. max_packets_per_second = 35
  297.  
  298. -- how deep queryDestination should look for free slots (default -1, infinite)
  299. player_querydestination_deepness = -1
  300.  
  301. -- allow clones (multiple logins of the same char)
  302. allowclones = false
  303.  
  304. -- only one player online per account
  305. checkaccounts = false
  306.  
  307. -- max number of players allowed
  308. maxplayers = "900"
  309.  
  310. -- save client debug assertion reports
  311. -- to use this option you have to create file called client_assertions.txt and make sure after client crash to change IP to otserv one then click "send".
  312. saveclientdebug = true
  313.  
  314. -- Set the max query interval for retrieving status information
  315. -- default: 5 minutes / IP
  316. -- set to 0 to disable
  317. statustimeout = 30 * 1000
  318.  
  319. -- accounts password type
  320. -- options: plain, md5, sha1
  321. passwordtype = "sha1"
  322.  
  323. -- Password salt
  324. -- Offers better security against rainbow table attacks etc.
  325. passwordsalt = ""
  326.  
  327. -- House configuration (game_class)
  328. -- House tile price
  329. house_tile_price = 100
  330. -- Only premium players can buy houses?
  331. house_only_premium = true
  332. -- Level to buy houses
  333. house_level = 1
  334. -- Show house price and its rent price when looking at its door?
  335. -- PS: This info is going to be shown just if house has no owner
  336. show_house_prices = false
  337.  
  338. -- SQL type
  339. -- options: mysql, sqlite, odbc or pgsql
  340. sql_type = "mysql"
  341.  
  342. -- SQL connection part (mysql, pgsql, odbc)
  343. sql_db = "otserv"
  344. sql_host = "localhost"
  345. sql_port = 3306
  346. sql_user = "root"
  347. sql_pass = ""
Add Comment
Please, Sign In to add comment