论坛调整完毕,全面开放注册,无需认证。

服务端设置详细说明

主要为新人初期架设天堂2提供技术资料参考
回复
头像
天堂之手
Mr.GL
Mr.GL
帖子: 254
注册时间: 2018-02-24 21:37

服务端设置详细说明

帖子 天堂之手 » 2018-03-02 15:48

gameserver\config\other.properties
Quote:

#设置创立新角色所给的钱
StartingAdena = 1000000

# 骑乘加值(原本+加值)
WyvernSpeed = 100
StriderSpeed = 80

#允许飞龙主人借出飞龙作为城堡之间的交通工具.
AllowWyvernUpgrader = False

# 若设定True, 技能较高的效果将盖过技能较低的效果
# 若设定False, 技能效果会叠加.
CancelLesserEffect = True

# 若你想要取消警卫攻击主动怪
# 预设为'False'
AllowGuards = False

# 启用后, 以下为使用规则:
# - 从玩家和怪物间相差九级后机率会下降9%以每相差一级做下降处理 (相差9级 = -9%; 相差10级 = -18%; ...相差19级 = -99%)
# 注: 启用后会同时影响掉落倍率以及收收倍率(此规则并无影响金币掉落机率)
UseDeepBlueDropRules = True

# 物品栏置物限制 (注:客户端将只显示80个栏位)
MaximumSlotsForNoDwarf = 80
MaximumSlotsForDwarf = 100
MaximumSlotsForGMPlayer = 250

# 仓库最大容量限制.
# Dwarfs will get bonus from lvl 60
MaximumWarehouseSlotsForDwarf = 150
MaximumWarehouseSlotsForNoDwarf = 80
MaximumWarehouseSlotsForClan = 150
MaximumFreightSlots = 20

# 强化卷轴成功率.
EnchantChance = 90
# 强化最大上限
EnchantMax = 50

# 人物和普通怪恢复速率百分比.
HpRegenMultiplier = 100
MpRegenMultiplier = 100
CpRegenMultiplier = 100

# 狩猎级首领的防御值倍数和他的护卫HP/MP恢复速率.
# 5000 即 50倍的速率
# 如果使用数据修正,
狩猎级首领防御倍数为1倍.
RaidHpRegenMultiplier = 100
RaidMpRegenMultiplier = 100
RaidDefenceMultiplier = 100

# 玩家/脱逃 指令时间,预设300秒.
UnstuckInterval = 300

# 玩家上线和传送保护时间, 0为无保护.
PlayerSpawnProtection = 0

# PARTY XP DISTRIBUTION
# Set the first option here to one of the (auto, percentage, level, none).
# With "auto method" member is cut from Exp/SP distribution when his share is lower
# then party bonus acquired for him (30% for 2 member party)
# In that case he will not receive any Exp/SP from party and is not counted for party bonus
# The second option takes effect when "percentage" method is choosen. Don't use high values for this!
# The third option takes effect when "level" method is choosen. Don't use low values for this!
# If you don't want to have a cutoff point for party members' XP distribution,
# then just set the first option to "none". Defaults are: percentage , 3.0 , 30 ; respectively.
PartyXpCutoffMethod = auto
PartyXpCutoffPercent = 3.0
PartyXpCutoffLevel = 30

# 人物复活后的CP/HP/MP值
# 以下数值为最大值的百分比.
RespawnRestoreCP = 0
RespawnRestoreHP = 70
RespawnRestoreMP = 70

# Allow random respawning in towns, based on a maximum random offset
# from the base respawn co-ordinates.
RespawnRandomInTown = True
RespawnRandomMaxOffset = 50

# 个人店买卖物品的最大栏同数量
# 一般来说,矮人在个人店中有5栏, 而其它种族只有4栏.
MaxPvtStoreSlotsDwarf = 5
MaxPvtStoreSlotsOther = 4

# 玩家下线依然保持魔法状态?
StoreSkillCooltime=True

# List of pet rent (wyvern,strider). etc: 111,222,333
ListPetRentNpc = 7827

# Announce to players the location of the Mammon NPCs during Seal Validation.
AnnounceMammonSpawn = True

# GM命令和的特权设定.
AltPrivilegesAdmin = False
AltPrivilegesSecureCheck = True
AltPrivilegesDefaultLevel = 100

# 公告间隔(单位:分钟)
# 最长30分钟,最短1分钟
AutoAnnouncePeriod = 30


gameserver\config\altsettings.properties
Quote:

#自动捡起掉落道具
AutoLoot = False

# 启用损失经验值(降等级)模式,默认设定为 'true'
Delevel = True

# 如果填'False'魔法攻击成功率为100%,默认设定为'true'
MagicFailures = True

# 须要花费书本学习技能
SpBookNeeded = True

# 物品制作启用/关闭 (预设 True)
CraftingEnabled = True

# 可使用转职管理员
# 若你想要设置转职需要过任务 请设置 '0'
# Default = 1,2,3
AllowClassMasters = 1,2,3

# 物品制作设置(预设为 'false')
# - 制作花费时间
# - 可由物品制作得到EXP/SP
AltGameCreation = True

# 学习技能设置(预设为 'false'):
# - 可以学习全部职业的技能
# - 其他职业需花费 2倍 SP
# - 其他种族需花费 2倍 x2 SP
# - 战士或法师需花费 3倍 SP
AltGameSkillLearn = False

# 攻击取消规则 (bow, cast, all)
AltGameCancelByHit = cast

# 盾牌格档规则 - 若成功格档, 伤害计算 物理攻击-盾牌防御,
# 预设计算 物理攻击 /(盾牌防御 + 物理防御)
AltShieldBlocks = False

# 选择怪物攻击AI,类似C1 预设False
AltGameMobAttackAI = False

# 技能成功率计算公式设定 sleep(睡眠)/Root(固定)/Stun(击晕)/Dagger ones(要害剌击),
# 'none'或'false'为标准设定, 'alt' - for alternative and
AltGameSkillFormulas = none

# 设置货运模式. 若true, 货运存入可以用任何价钱.
# 也可以改变每个物品的存储价格.
# 说明: AltGameFreightPrice 不会改变玩家所看到的价格, 但是玩家实际上会受到设定的影响.
AltGameFreights = False
AltGameFreightPrice = 1000

# Xp/Sp回报设定,如果设定不为 0,则按照2倍的((怪物等级-玩家等级)/ 系数),
# 一个新的例子 "AltGameExponentXp = 5." and "AltGameExponentSp = 3."
# diff = 0 (玩家与怪物同等级,下面是相应系数!), XP bonus rate = 1, SP bonus rate = 1
# diff = 3 (怪物比玩家高3级,下面是相应系数!), XP bonus rate = 1.52, SP bonus rate = 2
# diff = 5 (怪物比玩家高5级,下面是相应系数!), XP bonus rate = 2, SP bonus rate = 3.17
# diff = -8 (怪物比玩家低8级,下面是相应系数!), XP bonus rate = 0.4, SP bonus rate = 0.16
#AltGameExponentXp = 0
#AltGameExponentSp = 0
AltGameExponentXp = 0
AltGameExponentSp = 0

# 使用战意累积模式 (实装CP值)
AltGameTiredness = False

# 技能攻击时间设定
AltGameSkillHitRate = 1.

# EnableMuliplierHp of mobs HP by skills (sql db already with multiplier)
EnableRateHp = False

# 对非正常情况下杀害其他玩家的惩罚设定.
AltKarmaPlayerCanBeKilledInPeaceZone = False
AltKarmaPlayerCanShop = True
AltKarmaPlayerCanTeleport = True
AltKarmaPlayerCanTrade = True
AltKarmaPlayerCanUseWareHouse = True
AltKarmaPlayerCanUseGateKeeper = False

# 要求玩家拥有城堡或同盟时才可加入黎明.
AltRequireCastleForDawn = False

# 城堡的所有权由血盟或同盟决定.
# 默认由同盟决定,与公服相同.
AltRequireClanCastle = False

# 允许玩家免费传送到任何地方.
AltFreeTeleporting = False

# 允许玩家不做任务增加副职业.
AltSubClassWithoutQuests = True

#允许玩家查看NPC信息 .
AltGameViewNpc = False


gameserver\config\custom.properties

Quote:
# 使越南语系统信息成为可能
AltLanguage=False

# 状态时间比率
AltBuffTime = 5

# 选择性设定填 False使用全部, True只使用技能所需要的.
AltCharge = False

# 玩家自动学习技能
AutoLearnSkills= False

# 攻击速率限制 (0 = 无限制)
MaxPAtkSpeed=0
MaxMAtkSpeed=0

# 给解散或退出血盟的玩家以惩罚.
ClanPenalty = True

# 允许玩家随时传送到古墓和祭坛.
AllowSSTeleport = False

# 允许玩家在封印期间加入七封印 (可能会造成数据冲击)
AllowSSRegist = False

# 参加黄昏封印最低组队人数设定.
MinSSParty = 5

# 每个古代金币对金币交换的价值
ValueAA = 1

# 当玩家进入时,显示L2J 许可证.
ShowL2JLicense=False

# 显示7 封印玩家进入的时期
ShowSSPeriod = True

# 当玩家进入时,显示欢迎html 文件
ShowHTMLWelcome = True

# GM登陆时显示信息,同时GM不是隐身(默认为False)
ShowGMLogin = False

# 在使用 /gmlist 命令或者使用聊天面板时隐藏GM显示.
HideGMStatus = False

# 角色名字颜色 (none = disable)
GMNameColor = none
VIPNameColor = 4080FF
VIPAccessLevel = 10
NormalNameColor = none

# False 是不允许宠物因饥饿而死.
HungryPetCanDie = True

# Alternative effect upon DOT type skills, set to False to disallow them to kill
DoTCanKill = True

# 允许玩家在城里杀死全部NPC
AllowKillAllNpc = False

# 允许每天重新计算玩家的推荐数.
RestartRecommandation = True

# 主要语言(默认是英语 = en)
# Example: vn -> when server call to display html name data/html/example.htm
# it will try to display data/html-vn/example.htm
# data/html/example-vn.htm
# data/html/vn/example.htm
# then display orginal data/html/example.htm
MainLanguage = en

# 允许等级惩罚
GradePenalty = True

# 如果填 False, 低8个等级怪会给exp和sp.
# 但是每低一个等级exp和sp的获得就减少9%.
UseDeepBlueExpRules = True

# 最大可购买物品数量 (0 = 无限制)
MaxItemBuy = 0

# 攻城开始后允许召唤城堡守卫
# 关闭会引起攻城延时!
SpawnSiegeGuard = True

# 使用特殊字眼屏闭系统,给你一个干净的聊天窗口^_^
# 开启聊天特殊字眼屏闭系统 (?)
UseSayFilter = False


gameserver\config\server.properties

Quote:

# 以下是服务器设定说明(修正、汉化由L2Jcn工作组完成,设定说明汉化-乾坤无极).
# 一般情况下ExternalHostname设为127.0.0.1 (如果你想玩单机的话)
# - LAN IP* (如果你想去其它内网电脑玩)
# - WAN IP** (如果想和朋友通过互联网一起玩)
# * = 如果你网获得你的LAN IP, 很简单点击"开始" =>"运行..." 然后输入 "cmd" => "ipconfig"
# **= 如果你想获得你的外网 WAN IP,访问以下:

#

===============================================================================================

====

# ================================================================
#重要内容设定 !!! 设置将影响每一个玩家 !!!
# ================================================================

# 邦定IP和端口, 用 * 邦定所有IP.
GameserverHostname=*
GameserverPort=7777

# 这个是外网设置, 外网玩家客户端IP需与此相同,所以它必须是连接的外网IP
.
# 如果此IP由登入

决定请填 * 号.
ExternalHostname=127.0.0.1

# 客户端IP设定要与下面相同, 所以以下必须为本地IP.
# 如果此IP由登入决定请填 *
号.
InternalHostname=127.0.0.1

# 邦定登陆IP和端口,用 * 邦定所有IP.
LoginserverHostname=*
LoginserverPort=2106
LoginTryBeforeBan=20

# 登陆IP和端口
LoginPort=9014
LoginHost=127.0.0.1

# 这里是 id 设定 (i.e. 0 is Bartz)
RequestServerID = 0
# 如果设定为true,当服务器ID已被占用时,登陆会给定另一个ID.
AcceptAlternateID = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb?useUnicode=true&characterEncoding=UTF-8
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=root
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=.*

# 同时在线人数最大值设定.
MaximumOnlineUsers=100

# ==============================================================
# 测试设定,在开启后请勿改动.
# ==============================================================

Debug = False
Assert = False
Developer = False
# 如果填True,为测试状态 (listed by clients setted up to list testserver)
TestServer = False

# =================================================================
# 副加设定,可以保护原设定
# =================================================================

# 列表设定
# 在名前显示 []
ServerListBrackets = False
# 在名旁显示时间
ServerListClock = False
# 如果设定为True,则只有GM可进入.
ServerGMOnly = False

MaximumUpdateDistance = 50

# 允许连接的客户端限制设定.
# 你必须让 MinProtocolRevision 的值小于等于MaxProtocolRevision.
MinProtocolRevision = 557
MaxProtocolRevision = 660

# 倍设定,浮动值.
RateXp = 10.
RateSp = 15.
RatePartyXp = 2.
RatePartySp = 2.
RateDropAdena = 20.
RateConsumableCost = 1.
RateDropItems = 10.
RateDropSpoil = 10.
RateQuestsReward = 20
RateKarmaExpLost = 10
RateSiegeGuardsPrice = 1
RatePetExp = 10
RatePetSp = 10

# 玩家被怪示死物品掉落机率,数值为百分比.
PlayerDropLimit = 3
PlayerRateDrop = 5
PlayerRateDropItem = 70
PlayerRateDropEquip = 25
PlayerRateDropEquipWeapon = 5

# 玩家互战死亡物品掉落机率,数值为百分比.
KarmaDropLimit = 5
KarmaRateDrop = 70
KarmaRateDropItem = 50
KarmaRateDropEquip = 40
KarmaRateDropEquipWeapon = 10

# 物品掉落消失时间设定. 0 - 为不消失.
AutoDestroyDroppedItemAfter = 0

# 和玩家动作协调同步设定,
# 0 - 完全不协调同步
# 1 - 客户端跟协调同步* 使用此项会减少玩家回避的机率
# 2 - 跟

客户端协调同步
# 3 - 完全协调同步
# -1 - Old system: will synchronize Z only
CoordSynchronize = 3

# 开启仓库系统
AllowWarehouse = True
# 开启负重系统
AllowFreight = True
#开启装备试穿系统
AllowWear = True
# 开启奖券系统
AllowLottery = False
# 开启怪物竞速系统
AllowRace = False
# 开启溺水死亡系统
AllowWater = False

#开启宠物可从宠物主人处租借(飞龙和龙座)
AllowRentPet = False

# 允许玩家抛弃物品.
AllowDiscardItem = True

# 如果此项设定为 true,则所有玩家角色为GM,权限等级为 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

# 动态位置记录.
# 玩家坐标在关闭时会被记录进 data/universe.txt
ActivatePositionRecorder = False

#全区聊天设定 - ON, OFF, GM
GlobalChat=OFF

# 记录聊天内容.
LogChat = True
LogItems = False

# 在聊天控制面板中可查看玩家等级.
ShowLevelOnCommunityBoard = False
ShowStatusOnCommunityBoard = True
NamePageSizeOnCommunityBoard = 50
NamePerRowOnCommunityBoard = 5

# 玩家互战区域设定.
#0 = 始终不允许玩家互战
#1 = 在攻城或特殊事件时允许
#2 = 始终允许玩家互战
ZoneTown=1

# NPC的走动范围设定.
MaxDriftRange = 200

# NPC动作延时设定.
# 你必须让 MinNPCAnimation 的值小于或等于 MaxNPCAnimation.
# "0" is default value.
MinNPCAnimation = 0
MaxNPCAnimation = 0

# 由服务端决定NPC名称显(False为默认).
ServerSideNpcName = False
# 显示怪物等级和是否主攻(建意开启)
ServerSideNpcNameWithLvl = True

#自动删除无效的任务数据
AutoDeleteInvalidQuestData = False

# 白天、黑暗设定
# 时间设定范围是 0 - 23
DayStatusSunRiseAt = 6
DayStatusSunSetAt = 18
# 强制客户端跟椐设定白天黑夜!
DayStatusForceClientUpdate = True

# 你需要按照实际情况设定,过高或过低都不好.
# 如果使用高性能或多核心CPU请调整设定.
# 默认为 8, 20 and 8(说明:因大多数电脑主频或性能都超过2.0GHz,所以我把默认设定成8,20,8 经我测试

其实还更高! by乾坤无极)
ThreadPoolSizeHigh = 8
ThreadPoolSizeMed = 20
ThreadPoolSizeLow = 8

# P4(800) w. HT的芯片优化设定
# ThreadPoolSizeHigh = 8
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 8

# 对于多倍CPU及多核心CP
U设定推荐数值.
# ThreadPoolSizeHigh = 12
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 16

# 允许玩家删除角色时间, 0 - 不允许玩家删除.
DeleteCharAfterDays = 7

# 对于玩家不合法行为惩罚设定.
# 1 - 仅仅告知GM
# 2 - 踢他下线(默认设定)
# 3 - 踢他下线然后封号
DefaultPunish=1

# 是否开启html缓存预读功能
# (将html预读进入内存)
LazyCache=False

# Thread pools execution priority
# default values are -1,0,1 (low/med/high pools)
ExecutorPriLow=-1
ExecutorPriMed=0
ExecutorPriHigh=1
#Packet LifeTime in miliseconds, 0 - disabled feature
PacketLifeTime=0

# bypass exploit protection
BypassValid False
图片

回复