Guest User

Untitled

a guest
Jun 21st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.17 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/world2.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 = "Realesta74"
  24.  
  25. -- server location
  26. location = "France"
  27.  
  28. -- server ip (the ip that server listens on)
  29. ip = "164.132.205.2" --178.212.155.6
  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://Realesta74.net"
  50.  
  51. -- server owner name
  52. ownername = "God Rth"
  53.  
  54. -- server owner email
  55. owneremail = "realesta_server@hotmail.com"
  56.  
  57. -- world name
  58. worldname = "Realesta74"
  59.  
  60. -- world type
  61. -- options: openpvp/pvp, optionalpvp/no-pvp, hardcorepvp/pvp-enforced
  62. worldtype = "pvp-enforced"
  63.  
  64. PromotionCost = 10000
  65.  
  66. EachBlessingCost = 10000
  67.  
  68. AmuletOfLossCost = 50000
  69.  
  70. ChangeGoldByClick = true
  71.  
  72. DjinnQuestsAcces = true
  73.  
  74. FreeBoats = false
  75.  
  76. BoatExhaustion = true
  77.  
  78. BoatExhaustionTime = 5
  79.  
  80.  
  81. RunesBuyableWithBackpacks = true
  82.  
  83. ManaHpRestore = true
  84.  
  85. -- Only last player who entered stacked tile will be able to heal
  86. UHTrap = true
  87.  
  88. -- Auto Stack items in containers (like in newer Tibia versions)
  89. container_items_auto_stack = true
  90.  
  91. -- does player rate (from lua functions) count on experience gained from killings players on pvp-e worlds?
  92. rates_for_player_killing = false
  93.  
  94. -- exhausted time in ms (1000 = 1 second) for "yell" speak type
  95. exhausted = 30000
  96.  
  97. -- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons
  98. fightexhausted = 1500
  99.  
  100. -- exhausted time in ms (1000 = 1 second) for none-aggressive spells
  101. healexhausted = 1000
  102.  
  103. -- how many ms to add if the player is already exhausted and tries to cast a spell/yells (1000 = 1 second)
  104. exhaustedadd = 5000
  105.  
  106. -- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
  107. in_fight_duration = 60000
  108.  
  109. -- how long a field belongs to a player before it no longer causes PZ lock for the owner
  110. field_ownership_duration = 5000
  111.  
  112. -- When a player dies, how many of the assisting players (ie. how many of those who made damage) should be stored in database?
  113. death_assist_count = 0
  114.  
  115. -- Should only the player who did the last hit get the 15-minute pz lock?
  116. last_hit_pzblock_only = true
  117.  
  118. -- minimum amount of time between actions ('Use') (1000 = 1 second)
  119. minactioninterval = 100
  120.  
  121. -- minimum amount of time between extended actions ('Use with...') (1000 = 1 second)
  122. minactionexinterval = 1000
  123.  
  124. -- house rent period
  125. -- options: daily, weekly, monthly
  126. houserentperiod = "never"
  127.  
  128. -- whether or not to check for premium accounts when using beds
  129. premonlybeds = true
  130.  
  131. -- Should the server use account balance system or depot system for paying houses?
  132. use_balance_house_paying = false
  133.  
  134. -- Should the server use account balance system in NPCs?
  135. UseNpcBalance = true
  136.  
  137. -- guest player can/cannot move items in house.
  138. houseGuestPermission = false
  139.  
  140. -- How long time the red skull will last in seconds (default 30 days)
  141. red_skull_duration = 43200
  142.  
  143. -- White skull duration, how long a player will get pz locked/white skull
  144. unjust_skull_duration = 900000
  145.  
  146. hunting_kill_duration = 60000
  147.  
  148. -- Enable this and players will get pzlocked regardless of being the aggressor or not (<8.5 this was set to true)
  149. defensive_pz_lock = true
  150.  
  151. -- How many players you need to kill to gain a red skull per day/week/month
  152. -- Set 0 to disable
  153. kills_per_day_red_skull = 4
  154. kills_per_week_red_skull = 28
  155. kills_per_month_red_skull = 120
  156. -- In Oldschool you would get banned by doubling the needed month unjustified kills for red skull
  157. kills_to_ban = 8
  158.  
  159. -- Broadcast violation window banishments
  160. broadcast_banishments = "no"
  161.  
  162. -- Violation window config
  163. max_violation_comment_size = 255
  164. notations_to_banishment = 3
  165. warnings_to_final_banishment = 4
  166. warnings_to_deletion = 5
  167. banishment_length = 86400 --seconds
  168. final_banishment_length = 86400 --seconds
  169. ip_banishment_length = 86400 --seconds
  170.  
  171. -- Extra experience % per player when sharing experience( 25* (sorc, druid, knight, pall) = 25*4 = 100%)
  172. party_exp_mul = 25
  173. golden_account_exp_mul = 10
  174. cast_exp_bonus = 5
  175.  
  176. -- Anti-MageBomb system
  177. -- This system works as in Tibia, time in milliseconds
  178. login_attack_delay = 200
  179.  
  180. -- AFK Configuration (in milliseconds, but use values for minutes)
  181. -- Maximum time a player can stay away from keyboard before being kicked
  182. max_idle_time = 16*60*1000
  183. -- Player will be warned about being kicked at this time
  184. max_idle_time_warning = 15*60*1000
  185.  
  186. -- Exp Stages configuration is in /data/exp_stages.lua
  187. experience_stages = true
  188.  
  189. skills_boost = 2
  190. magic_boost = 2
  191.  
  192. -- rates (experience, skill, magic level, loot and spawn)
  193. rate_exp = 1
  194. rate_exp_pvp = 2
  195. rate_skill = 14
  196. rate_mag = 3
  197. rate_loot = 3
  198. rate_spawn = 3
  199.  
  200. -- Rookgaard system
  201. -- level_to_rook if player reach this level he is sento to newbie island at level 1
  202. level_to_rook = 5
  203. -- rook_temple_id newbie island temple id
  204. rook_temple_id = 11
  205. storage_sendrook = 49786
  206.  
  207. -- What message should be sent for the player, after its own death? Use "" to disable.
  208. death_msg = "You are dead."
  209.  
  210. --should players be able to rope creatures (like at older versions of tibia)?
  211. can_rope_creatures = true
  212.  
  213. --how many floors away of a player should a monster be to become idle?
  214. --WARNING: setting this as any number bigger than 3 may increase CPU usage and
  215. --setting this to any value smaller than 2 will make nearly impossible to rope monsters from a hole
  216. height_minimum_for_idle = 2
  217.  
  218. -- Should the level requirements on runes be used [default: false]
  219. use_rune_level_requirements = false
  220.  
  221. -- Remove ammunition
  222. -- If false, ammunition will not be removed when using distance weapons
  223. -- (or other weapons that use ammunition)
  224. remove_ammunition = true
  225.  
  226. -- Remove rune charges
  227. -- This only applies to runes done using the default functions.
  228. -- Custom runes made using actions will not be affected.
  229. remove_rune_charges = true
  230.  
  231. -- Remove weapon charges
  232. -- Set to false to disable charges disappearing from weapons on use
  233. remove_weapon_charges = true
  234.  
  235. -- Distance weapon configuration
  236. -- Should exhaustion and action time be checked for using a distance weapon?
  237. distance_weapon_interrupt_swing = false
  238.  
  239. -- Wands configuration exhaustion
  240. -- Should exhaustion and action time be checked for using wands?
  241. wands_interrupt_swing = false
  242.  
  243. -- maximum amount of items inside of a container (including the items inside of any container inside of it)
  244. -- Use 0 for infinite
  245. max_amount_items_inside_containers = 5000
  246.  
  247. -- maximum amount of containers inside of a player inventory
  248. -- it fixes some CPU bug so it's not recommended to change this value to very high
  249. max_containers_inside_player_inventory = 100
  250.  
  251. --maximal length for chains of containers (i.e, a container inside of a container which is inside of a container...)
  252. max_deepness_of_chain_of_containers = 500
  253.  
  254. --should OTServ bind only global IP address ?
  255. bind_only_global_address = true
  256.  
  257. -- 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
  258. max_stack_size = 1000
  259.  
  260. -- How many items can be stacked in a normal tile ? (0 = max_stack_size)
  261. tile_limit = 0
  262.  
  263. -- How many items can be stacked in a protection zone tile ? (0 = max_stack_size)
  264. protection_tile_limit = 0
  265.  
  266. -- How many items can be stacked in a house zone tile ? (0 = max_stack_size)
  267. house_tile_limit = 0
  268.  
  269. -- fist fighting configuration
  270. -- How strong should be the attack using bare hands (fist fighting)?
  271. fist_strength = 7
  272.  
  273. -- Allow gamemaster multiclient login to everybody?
  274. allow_gamemaster_multiclient = true
  275.  
  276. -- despawn configs
  277. -- how many floors can a monster go from his spawn before despawning
  278. despawnrange = 2
  279. -- how many square metters can a monster be far from his spawn before despawning
  280. despawnradius = 500
  281.  
  282. --should players be able to hit invisible creatures using not AOE runes? (default: true)
  283. can_attack_invisible = true
  284.  
  285. --players with a level smaller than this number can't be attacked by other players. Set it to to 0 to disable
  286. min_pvp_level = 1
  287.  
  288. --how much % of the total damage players actually receive when attacked by other players?
  289. --Old Tibia has this in 100%
  290. pvp_damage = 50
  291.  
  292. --should pvp restrictions apply to summons too?
  293. -- (experimental code - requires otserv to be compiled with flag __MIN_PVP_LEVEL_APPLIES_TO_SUMMONS__)
  294. min_pvp_level_applies_to_summons = false
  295.  
  296. -- How many milliseconds (1 sec = 1000) we should wait until the player will be pushed by another player.
  297. push_interval = 1000
  298.  
  299. -- How many milliseconds a player should wait until he can move another item after moving one (0 disables it)
  300. move_item_interval = 50
  301.  
  302. -- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting
  303. maxmessagebuffer = 10
  304.  
  305. -- if you doesn't wish to see errors like this: "Error: Expected an integer/boolean parameter"
  306. --(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
  307. lua_excepted_type_errors_enabled = false
  308.  
  309. -- motd (the message box that you sometimes get before you choose characters)
  310. motd = "Welcome to Realesta 7.4 server."
  311. motdnum = "1"
  312.  
  313. -- login message
  314. loginmsg = "Welcome to Realesta 7.4 server. Official website (www.Realesta74.net). Report bugs[ctrl+z], talk with gamemaster [ctrl+r]."
  315.  
  316. -- how many logins attempts until ip is temporary disabled
  317. -- set to 0 to disable
  318. logintries = 5
  319.  
  320. -- how long the retry timeout until a new login can be made (without disabling the ip)
  321. retrytimeout = 5000
  322.  
  323. -- how long the player need to wait until the ip is allowed again
  324. logintimeout = 60 * 1000
  325.  
  326. -- What is the maximum number of packages the client can send per second?
  327. max_packets_per_second = 81
  328.  
  329. -- how deep queryDestination should look for free slots (default -1, infinite)
  330. player_querydestination_deepness = -1
  331.  
  332. -- allow clones (multiple logins of the same char)
  333. allowclones = false
  334.  
  335. -- only one player online per account
  336. checkaccounts = false
  337.  
  338. -- max number of players allowed
  339. maxplayers = "2000"
  340.  
  341. -- save client debug assertion reports
  342. -- 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".
  343. saveclientdebug = false
  344.  
  345. -- Set the max query interval for retrieving status information
  346. -- default: 5 minutes / IP
  347. -- set to 0 to disable
  348. statustimeout = 30 * 1000
  349.  
  350. -- accounts password type
  351. -- options: plain, md5, sha1
  352. passwordtype = "sha1"
  353.  
  354. -- Password salt
  355. -- Offers better security against rainbow table attacks etc.
  356. passwordsalt = ""
  357.  
  358. -- House configuration (game_class)
  359. -- House tile price
  360. house_tile_price = 100
  361. -- Only premium players can buy houses?
  362. house_only_premium = true
  363. -- Level to buy houses
  364. house_level = 1
  365. -- Show house price and its rent price when looking at its door?
  366. -- PS: This info is going to be shown just if house has no owner
  367. show_house_prices = true
  368.  
  369. -- SQL type
  370. -- options: mysql, sqlite, odbc or pgsql
  371. sql_type = "mysql"
  372.  
  373. -- SQL connection part (mysql, pgsql, odbc)
  374. sql_db = "othire"
  375. sql_host = "127.0.0.1"
  376. sql_port = 3306
  377. sql_user = "root"
  378. sql_pass = "SJ4sS38SksajfueplhgG665"
  379.  
  380. sqlKeepAlive = 3
  381. mysqlReadTimeout = 3
  382. mysqlWriteTimeout = 3
  383.  
  384. -- enable global save at 6:00
  385. globalSave = true
  386.  
  387. -- special save server configuration
  388. special_save = true
  389. special_save_delay = 120000 -- 2 min
Add Comment
Please, Sign In to add comment