文档库 最新最全的文档下载
当前位置:文档库 › 剑侠世界单机版GM数据整理

剑侠世界单机版GM数据整理

剑侠世界单机版GM数据整理
剑侠世界单机版GM数据整理

修改日志

1. 游戏服务器外网IP, gameserver\servercfg.ini

[GameServer]

ServerID=1 //分服务器时由这个ID 区分

OutIp = 11.22.33.4

2. 修改经验倍率gameserver\setting\gamesetting.ini

[System]

ExpRate=100

MoneyRate=100

MaxFreeLevel=60

PathStep=4

RemoveForItemAbradeToZero=0

PkValueForbidSkill=99

bClientLoginByLocalIp=0

3. 防火墙端口设置5622 6041 6042 - 6048 (多GameServer的情况)

4. 等级经验值配置gameserver\setting\player\attrib_level.txt 客户端:

setting\player\attrib_level.txt

5. 服务器加载地图(多服务器无效)gameserver\servercfg.ini

;服务器自身加载地图(只对MiniServer有效)

[WorldSet]

Count=9

World00=1

World01=2

World02=3

World03=4

World04=5

World05=6

World06=7

World07=8

World08=36

6. 地图编号gameserver\setting\map\ maplist.txt maplist.ini

7. 新手礼包gameserver\script\event\minievent\newplayergift.lua

NewPlayerGift.tbData = {

[1] = {1, -- 所需等级

{{18,1,195,1 },1, nil, 7*24*60}, -- {{物品GDPL}, 个数, GenInfo(可选), 时限}

{"BindMoney", 50000},

{"BindCoin", 50000},

},

[2] = {10,

{{18,1,85,1},1},

{"BindMoney", 50000},

{"BindCoin", 50000},

{18,1,195,1 } 物品GDPL 四元组标识

8. 物品gameserver\setting\item\001 分类存放文件很多

8. 任务相关gameserver\setting\task\ 分类存放

经验倍率:gameserver\script\task\actions.lua

-- 增加经验

function TaskAct:AddExp(nExp)

me.AddExp(nExp);

end;

-- 增加金钱

function TaskAct:AddMoney(nMoney)

me.AddBindMoney(nMoney, Player.emKBINDMONEY_ADD_TASK_ACT);

end;

9. 开放等级设置gameserver\setting\timeframe\timeframe.txt

把里面的天数修改为0就可以开放所有等级

10. GM功能gameserver\script\misc

按脚本的意思,用户角色的阵营属性为6表示是GM,可以行使GM的相关功能

具体脚本功能函数参考gameserver\setting\event\manager\tooluse\functionlibrary.txt

11. 多游戏服务器配置

gamecenter\setting\worldset.txt 这个是配置各服务器装载地图的情况,

gamecenter\setting\worldset.txt 里面配置了各个服务器加载的地图

[Init]

ServerCount=8

gameserver 目录复制成8个,gameserver\servercfg.ini

[GameServer]

ServerID=2

InAdapterIdx=1

OutAdapterIdx=1

InIp=

OutIp=66.85.150.2

Port=6042

SendInterval=4

12. 金币卡数据库jxcoincard 中

礼官绑银兑换银两gameserver\script\event\coinexchange\coinexchange_gs.lua

金币卡gameserver\script\event\presendcard\presendcard.lua

gameserver\script\npc\tuiguangyuan.lua

古枫霞活动推广员处金币卡换金币

金币卡号码30位长之内

13. 商城gameserver\setting\ibshop

14. 爆率gameserver\setting\npc\droprate 打怪暴钱和暴物品都在此配置

gameserver\script\event\manager\function_exeparam.lua

function tbFun:ExeDropNpc(szParam, tbGParam)

script\event\extendaward\extendevent.lua

function ExtendEvent:Npc_Death(pNpc, pKillPlayer)

gameserver\script\event\manager\function_exeparam.lua

function tbFun:ExeDropNpc(szParam, tbGParam)

gameserver\script\event\manager\manager.lua

function EventManager:NpcDeathApi(szClassName, pNpc, pPlayer, ...)

gameserver\script\event\jieri\20100501_labor_day\death.lua

function tbNpc:OnDeath(pKiller)

gameserver\script\npc\npc.lua

15. 防沉迷系统

gamecenter\setting\tiredwarning.ini

16. 物品合成强化

gameserver\script\item\function

玄晶合成:概率计算:compose.lua

nMinLevelRate = tbCrystal[nMinLevel + 1].nValue - nTotalValue;

1 级- 2级100 360 60 2个的话160

nMaxLevelRate = nTotalValue - tbCrystal[nMinLevel].nValue; 100

300 100 200

local szSucc = "成功率:"..nMaxLevelRate.."/"..(nMinLevelRate + nMaxLevelRate).."的概率能合成"..nMaxLevel.."级玄晶";

200/260

100/260

2级- 3级 360 * 3

x1 = pH - 3*pL

x2 = 2*pL

r = x2/(x1+x2) = 2*PL / (pH - pL)

2*PL = r * (pH - pL)

pH - pL = 2*pL / r

pH = 2*pL/r + pL

相关文档