添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -250.0, z = -250.0 },
size = { x = 1500.0, z = 1500.0 },
born_pos = { x = 507.058, y = 100.542, z = 493.818 },
born_rot = { x = 0.000, y = 251.600, z = 0.000 },
die_y = -10,
city_id = 3,
vision_anchor = { x = -250.0, z = -250.0 }
}
-- 所有的区块
blocks = { 20116 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -250.0, z = -250.0 }, max = { x = 1250.0, z = 1250.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220116001, refresh_id = 1, pos = { x = 492.296, y = 100.544, z = 489.477 } }
}

View File

@@ -0,0 +1,5 @@
dummy_points = {
["Q12015Born2"] = { pos = { x = 507.207, y = 100.542, z = 493.766 }, rot = { x = 0.000, y = 251.100, z = 0.000 } },
["Q12015Player4"] = { pos = { x = 494.573, y = 100.542, z = 489.129 }, rot = { x = 0.000, y = 243.900, z = 0.000 } },
["Q12015ShougunYing1"] = { pos = { x = 492.366, y = 100.542, z = 488.059 }, rot = { x = 0.000, y = 68.300, z = 0.000 } }
}

View File

@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 220116001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70290109, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
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" },
{ config_id = 1001003, name = "TIMER_EVENT_1003", event = EventType.EVENT_TIMER_EVENT, source = "timer", condition = "", action = "action_EVENT_TIMER_EVENT_1003" },
{ config_id = 1001004, name = "QUEST_START_1004", event = EventType.EVENT_QUEST_START, source = "1201510", condition = "", action = "action_EVENT_QUEST_START_1004" },
{ config_id = 1001005, name = "GROUP_LOAD_1005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_1005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { "QUEST_FINISH_1001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_1001(context, evt)
--检查ID为1201510的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1201510 ~= 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)
-- 解锁当前场景中pointid 为%force_id%的 传送点或者地城入口
if 0 ~= ScriptLib.UnlockScenePoint(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_scenePoint_curScene")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1003(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_1004(context, evt)
-- 延迟1.5秒后,向groupId为220116001的对象,请求一次调用,并将string参数"timer" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220116001, "timer", 1.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_1005(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220116001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 延迟2秒后,向groupId为220116001的对象,请求一次调用,并将string参数"timer" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220116001, "timer", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 2.0,
"y": 2.0,
"z": 2.0
},
"tranPos": {
"x": 492.046661,
"y": 100.543884,
"z": 488.571838
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}

View File

@@ -0,0 +1,23 @@
[
{
"area_id": 10063,
"points": [
{
"x": 477.633667,
"y": 403.663635
},
{
"x": 598.0736,
"y": 471.016846
},
{
"x": 502.698944,
"y": 553.068054
},
{
"x": 433.0789,
"y": 497.653931
}
]
}
]