添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -128.0, z = -128.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 566.225, y = 139.608, z = 767.607 },
born_rot = { x = 0.000, y = 190.000, z = 0.000 },
die_y = 100,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20150 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -128.0, z = -128.0 }, max = { x = 896.0, z = 896.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220150001, refresh_id = 1, pos = { x = 555.000, y = 138.000, z = 776.000 } }
}
@@ -0,0 +1,10 @@
dummy_points = {
["Q300005_guide"] = { pos = { x = 543.390, y = 142.674, z = 737.584 }, rot = { x = 0.000, y = 203.753, z = 0.000 } },
["Q300005_guide_avatar"] = { pos = { x = 564.799, y = 139.382, z = 767.527 }, rot = { x = 0.000, y = 263.390, z = 0.000 } },
["Q300007_guide"] = { pos = { x = 527.402, y = 135.987, z = 677.761 }, rot = { x = 0.000, y = 181.200, z = 0.000 } },
["Q300007_guide_avatar"] = { pos = { x = 529.078, y = 130.774, z = 698.843 }, rot = { x = 0.000, y = 187.800, z = 0.000 } },
["Q302820_guide"] = { pos = { x = 530.314, y = 129.559, z = 646.424 }, rot = { x = 0.000, y = 354.937, z = 0.000 } },
["Q302820_N10000005"] = { pos = { x = 528.738, y = 136.250, z = 675.393 }, rot = { x = 0.000, y = 163.648, z = 0.000 } },
["Q302820_N1005"] = { pos = { x = 530.916, y = 136.338, z = 675.874 }, rot = { x = 0.000, y = 172.139, z = 0.000 } },
["Q302820_N1056"] = { pos = { x = 530.076, y = 129.564, z = 648.025 }, rot = { x = 0.000, y = 173.830, z = 0.000 } }
}
@@ -0,0 +1,186 @@
-- 基础信息
local base_info = {
group_id = 220150001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1003, gadget_id = 70290509, pos = { x = 541.990, y = 129.979, z = 728.873 }, rot = { x = 1.418, y = 109.494, z = 258.160 }, level = 1 },
{ config_id = 1004, gadget_id = 70710829, pos = { x = 513.720, y = 231.170, z = 599.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "QUEST_FINISH_1001", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_1001", action = "action_EVENT_QUEST_FINISH_1001", trigger_count = 0 },
{ config_id = 1001005, name = "QUEST_START_1005", event = EventType.EVENT_QUEST_START, source = "", condition = "condition_EVENT_QUEST_START_1005", action = "action_EVENT_QUEST_START_1005", trigger_count = 0 },
{ config_id = 1001006, name = "QUEST_FINISH_1006", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_1006", action = "action_EVENT_QUEST_FINISH_1006", trigger_count = 0 },
{ config_id = 1001007, name = "QUEST_START_1007", event = EventType.EVENT_QUEST_START, source = "", condition = "condition_EVENT_QUEST_START_1007", action = "action_EVENT_QUEST_START_1007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1003 },
regions = { },
triggers = { "QUEST_FINISH_1001", "QUEST_START_1005", "QUEST_FINISH_1006", "QUEST_START_1007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_1001(context, evt)
--检查ID为300006的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300006 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_1001(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220150001, EntityType.GADGET, 1003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_1005(context, evt)
local curQuestState = ScriptLib.GetHostQuestState(context,300007)
if -1 == curQuestState or 0 == curQuestState then
return false
end
if curQuestState ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_1005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220150001, 2)
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_1006(context, evt)
--检查ID为300007的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300007 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_1006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220150001, 2)
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_1007(context, evt)
local curQuestState = ScriptLib.GetHostQuestState(context,300005)
if -1 == curQuestState or 0 == curQuestState then
return false
end
if curQuestState ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_1007(context, evt)
-- 创建id为1003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,233 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 542.7319,
"y": 110.8898,
"z": 740.7846
},
"rot": {
"x": 0.0,
"y": 18.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 30.0,
"heightType": "Center",
"length": 40.0,
"useHeight": true,
"width": 50.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 516.8896,
"y": 100.0,
"z": 724.2944
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 30.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 516.8896,
"y": 110.6229,
"z": 724.2944
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 30.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 516.8896,
"y": 100.0,
"z": 724.294434
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 529.1572,
"y": 130.392,
"z": 699.1727
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 529.396,
"y": 130.366577,
"z": 699.172668
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}