# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http://l2j.sourceforge.net
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit http://www.whatismyip.com
# ===================================================================================================

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=*
GameserverPort=7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname=

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname=127.0.0.1

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=*
LoginserverPort=2106
LoginTryBeforeBan=20

# The Loginserver host and port
LoginPort=9014
LoginHost=127.0.0.1

# This is the server id that the gameserver will request (i.e. 0 is Bartz)
RequestServerID = 1
# If set to true, the login will give an other id to the server  if the requested id is allready reserved
AcceptAlternateID = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=pass
MaximumDbConnections=10

# Datapack root directory, defaults to current directory from which the server is started
#DatapackRoot = C:/Work/tmp/DataPackC3

# Define character name template
# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
# will allow names with first capital letter, next three small letters,
# and any (capital or not) letter or number, like ZbigN1eW
# Most rational to have CnameTemplate=[A-Z][a-z]*
# meaning names only of letters with first one capital, like Zbigniew
# Default .* - any namy of any symbols
CnameTemplate=.*

# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers=100

# ==============================================================
# Test server setting, shoudnt be touched in online game server
# ==============================================================

Debug = False
Assert = False
Developer = False
# if true the server will be a test server (listed by clients setted up to list testserver)
TestServer = False

# =================================================================
# Additional server setting, not required, can be left at defaults
# =================================================================

# Setting for serverList
# Displays [] in front of server name
ServerListBrackets = False
# Displays a clock next to the server name
ServerListClock = False
# If true, the server will be set as gm only at startup
ServerGMOnly = False

MaximumUpdateDistance = 50

# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 1
MaxProtocolRevision = 999

# Rate control, float values
RateXp = 1.
RateSp = 1.
RatePartyXp = 1.
RatePartySp = 1.
RateDropAdena = 1.
RateConsumableCost = 1.
RateDropItems = 1.
RateDropSpoil = 1.
RateQuestsReward = 1
RateKarmaExpLost = 1
RateSiegeGuardsPrice = 1
RatePetExp = 1
RatePetSp = 1

# Player Drop Rate control, values are the percent values
PlayerDropLimit = 1
PlayerRateDrop = 1
PlayerRateDropItem = 1
PlayerRateDropEquip = 1
PlayerRateDropEquipWeapon = 1

# Karma Drop Rate control, values are the percent values
KarmaDropLimit = 5
KarmaRateDrop = 70
KarmaRateDropItem = 50
KarmaRateDropEquip = 40
KarmaRateDropEquipWeapon = 10

# delete from world dropped reward items after n seconds. 0 - disabled
AutoDestroyDroppedItemAfter = 0

# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - partial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - partial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = -1

# If you are experiencing problems with Warehouse or Freight transactions,
# feel free to disable them here. (They are both enabled by default).
AllowWarehouse = True
AllowFreight   = True
AllowWear      = True
#Enable water test
AllowWater     = False

#Enable pet for rent(wyvern&strider) from pet managers
AllowRentPet   = False

# Allow players to drop items on the ground
AllowDiscardItem = True

# If next switch set to true every created character will have access level 200.
EverybodyHasAdminRights = False

# Allow L2Walker client (Default False)
# Can be True, False, GM
# Note: L2Walker
AllowL2Walker    = False
L2WalkerRevision = 552
# Ban account if account using l2walker and is not GM, AllowL2Walker = False
AutobanL2WalkerAcc    = False

# Activate the position recorder
# valid 3D points will be recorded and written to data/universe.txt on shutdown
ActivatePositionRecorder = False

#Global/Trade Chat usablitly - ON, OFF, GM
GlobalChat=ON

# Logging ChatWindow
LogChat = True
LogItems = False

# show level of character to others in Community Board
ShowLevelOnCommunityBoard = False
ShowStatusOnCommunityBoard = True
NamePageSizeOnCommunityBoard = 50
NamePerRowOnCommunityBoard = 5

#Zone Setting
#0 = Peace All the Time
#1 = PVP During Siege
#2 = PVP All the Time
ZoneTown=0

# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 200

# Minimum and maximum variable in seconds for npc animation delay.
# You must keep MinNPCAnimation <= MaxNPCAnimation.
# "0" is default value.
MinNPCAnimation = 0
MaxNPCAnimation = 0

# You can choose NPC name either of client side one or server side one.
# Client side NPC name is useful for non english client.
# You can overwrite client side NPC name if you choose server side NPC name.
# Client side name is default value.
ServerSideNpcName = False
# Show L2Monster level and aggro, ServerSideNpcName must be enabled
ServerSideNpcNameWithLvl = False

AutoDeleteInvalidQuestData = False

# Day/Night Status
# Hours are from 0 - 23
DayStatusSunRiseAt = 6
DayStatusSunSetAt = 18
# Forces the client to change their day and night status
DayStatusForceClientUpdate = True

# The Size of the 3 Thread pools used for scheduled tasks
# The 3 thread pools have differant priorities (high, medium low)
# You should modify this with care, setting this too high could harm
# the server. This should be increased on multi-proc/core computers
# Default is 4, 10 and 4
ThreadPoolSizeHigh = 4
ThreadPoolSizeMed = 10
ThreadPoolSizeLow = 4

# P4(800) w. HT runs well with this
# ThreadPoolSizeHigh = 8
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 8

# For multi cpu's and multi core cpu's
# ThreadPoolSizeHigh = 12
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 16

# Allow delete chars after nnn days, 0 - feature disabled
DeleteCharAfterDays = 7

# Player punishment for illegal acions
# 1 - broadcast warning to gms only
# 2 - kick player(default)
# 3 - kick & ban player
# 4 - jail player
DefaultPunish=1

# Set the html cache's lazy loading on or off
# (Load html's into cache only on first time requested)
LazyCache=True

# Thread pools execution priority
# default values are -1,0,1 (low/med/high pools)
ExecutorPriLow=-1
ExecutorPriMed=0
ExecutorPriHigh=1
