; NWNX2 configuration file
; These are the default values for NWNX2. Values specified on the command
; line take precedence.

[NWNX]
ServerPort = 5121
ModuleName = "Resident Evil Online v16"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = no
UpdateIntervalGamespy = 20
GamespyRetries = 5
OldGamespyProtocol = no
RestartDelay = 5

[LogDir]
logdir=logs.0

[ODBC2]
; Log file
MaxLogSize = 512 ; in KByte
debuglevel = 2 ; 0=nothing, 1=only errors, 2=everything

; Use these five settings for MySQL connections
source = mysql
server = localhost
user   = root
pass    = mysqlpassword
db     = reo

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true

[RESOURCEMANAGER]
MaxLogSize = 512 ; in KByte
debuglevel   = 2 ; 0= nothing, 1=Resource Manager specific info, 2=list of all loaded resources
; Where Resource Manager loads the scripts from. Note the trailing backslash.
;SourcePath = scripts\chapter1\
SourcePath = REO/
Folders=1

[RUBY]
;preload=/path/to/preload.rb

[PROFILER]
MaxLogSize = 512 ; in KByte
debuglevel = 0 ; 1=overall statistics, 2=full script callstack

[CHAT]
chat_script=reo_mod_chatnwnx
server_script=fky_chat_srv
processnpc=0
ignore_silent=0


[FIXES]
copy_vars = 1                      # Copy local variables on stack split and on store transaction,
                                   # fire OnDisturbed when you merge a stack from a placeable
compare_vars = 1                   # If set to 1, items with different local vars don't stack
keep_hidden_in_conversation = 0    # If set to 1, creatures don't unhide when they start a conversation
hp_limit = -10                     # Negative HP limit - values up to -127 are allowed

hide_charlist_all = 0              # Hide the whole online characters list on login (appears empty)
hide_charlist_levels = 1           # Hide the class(es) (displays nothing instead of class list)
hide_charlist_portraits = 0        # Hide the portrait (shows default male/female portrait)

cap_ability_inc = 0                # If greater than zero, set ability increase cap.
cap_ability_dec = 0                # If greater than zero, set ability decrease cap.
cap_atkbonus_inc = 0               # If greater than zero, set attack bonus increase cap.
cap_atkbonus_dec = 0               # If greater than zero, set attack bonus decrease cap.
cap_skill_inc = 0                  # If greater than zero, set skill increase cap.
cap_skill_dec = 0                  # If greater than zero, set skill decrease cap.

[FUNCS]
Last_Skill_Number=28	         #Last_Skill_Number is the id of the last skill in skills.2da
DebugLevel=1 			 #debugLevel: 1 should only show basic information, 2 should include errors and 3 should log pretty much everything
HOOK_CustomTrapGeometry=1

;Hook for a new OnPlayerLeave event which runs before OnClientLeave
;Makes it possible to retrieve information about the player object as usual (GetName, GetArea, etc)
;In the onplayerleaving script, OBJECT_SELF is the player object about to leave
HOOK_OnPlayerLeaving=1
OnPlayerLeavingScript=reo_mod_leaving

[EVENTS]
event_script=nwnx_events_l
log=1
DownloadCharacter=1
PickPocket=1
Attack=1
ExamineItem=1
ExamineCreature=1
ExaminePlaceable=1
ExamineDoor=1
ToggleMode=1
StealthMode=1
DevastatingCritical=0
UnPolymorph=0
TrapTrigger=0
EndDialog=0
RemoveSanctuary=0

[TMI]
Limitlevel=4
Unlimited=0

[EXTEND]
examine_cr_npc_only=0
party_percentage_hp=1
party_hide_areas=1
maxdexbonus_ip=0      ;AdjustMaxDexBonus index in itempropdef.2da | 0 to disable
ineffective_umd_ip=0 ;IneffectiveUseMagicalDevice index in itempropdef.2da | 0 to disable
equip_unidentified=1
