This commit is contained in:
Akbar Yahya
2022-11-21 16:30:31 +08:00
commit e0d4d8040c
3326 changed files with 683000 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- 地图配置
scene_config = {
begin_pos = { x = -1074.5, z = -744.5 },
size = { x = 2205.3, z = 2938.5 },
born_pos = { x = -35.0, y = -73.9, z = -167.2 },
born_rot = { x = 0.0, y = 0.0, z = 0.0 },
die_y = -100
}
-- 所有的区块
blocks = { 1007 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1074.5, z = -744.5 }, max = { x = 1130.8, z = 2194.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,55 @@
{
"sceneId": 1007,
"routes": [
{
"localId": 1,
"name": "DefaultRouteName",
"type": "Reciprocate",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": -149.026123,
"y": -15.4832945,
"z": 147.76619
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": -134.6232,
"y": -15.48329,
"z": 147.805237
}
}
]
},
{
"localId": 2,
"name": "DefaultRouteName",
"type": "Reciprocate",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": -135.590729,
"y": -15.4833031,
"z": 142.689713
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": -149.349182,
"y": -15.4832783,
"z": 142.90715
}
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 201007001, refresh_time = 0, pos = { x = -34.4, y = -77.0, z = -164.3 } },
{ id = 201007002, refresh_time = 0, pos = { x = -35.6, y = -81.0, z = -131.6 } },
{ id = 201007003, refresh_time = 0, pos = { x = -82.7, y = -40.5, z = 58.2 } },
{ id = 201007004, refresh_time = 0, pos = { x = -141.8, y = -15.5, z = 144.0 } },
{ id = 201007005, refresh_time = 0, pos = { x = 135.9, y = 34.5, z = 167.2 } }
}

View File

@@ -0,0 +1,2 @@
dummy_points = {
}

View File

@@ -0,0 +1,137 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70350003, pos = { x = -35.0, y = -77.1, z = -174.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 2, gadget_id = 70360002, pos = { x = -35.0, y = -77.0, z = -107.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 3, gadget_id = 70690001, pos = { x = -46.1, y = -72.9, z = -52.1 }, rot = { x = 67.6, y = 251.1, z = 0.0 }, level = 1 },
{ config_id = 4, gadget_id = 70690001, pos = { x = -3.6, y = -61.9, z = -23.1 }, rot = { x = 320.0, y = 309.0, z = 0.0 }, level = 1 },
{ config_id = 5, gadget_id = 70220013, pos = { x = -47.3, y = -56.8, z = 0.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 70220013, pos = { x = -47.3, y = -54.7, z = 0.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 7, gadget_id = 70220013, pos = { x = -47.2, y = -52.7, z = 0.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 8, gadget_id = 70220013, pos = { x = -47.2, y = -50.7, z = 0.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 9, gadget_id = 70220013, pos = { x = -47.4, y = -48.7, z = 0.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = -34.4, y = -77.6, z = -111.9 } },
{ config_id = 2, shape = RegionShape.SPHERE, radius = 5, pos = { x = -34.7, y = -77.7, z = -112.1 } }
}
-- 触发器
triggers = {
{ name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
{ name = "SELECT_OPTION_2", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2", action = "action_EVENT_SELECT_OPTION_2", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1, 2, 3, 4, 5, 6, 7, 8, 9 },
regions = { 1, 2 },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2(context, evt)
-- 判断是gadgetid 2
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2(context, evt)
-- 根据不同的选项解锁风场
if 2 == evt.param2 then
if 0 ~= ScriptLib.UnlockForce(context, 1) then
return -1
end
end
-- 根据不同的选项解锁风场
if 2 == evt.param2 then
if 0 ~= ScriptLib.UnlockForce(context, 2) then
return -1
end
end
-- 根据不同的选项解锁风场
if 2 == evt.param2 then
if 0 ~= ScriptLib.UnlockForce(context, 3) then
return -1
end
end
return 0
end

View File

@@ -0,0 +1,70 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 21010301, pos = { x = -35.1, y = -81.0, z = -129.7 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 2, monster_id = 21010201, pos = { x = -39.5, y = -81.0, z = -127.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 3, monster_id = 21010201, pos = { x = -30.9, y = -81.0, z = -127.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 4, monster_id = 21010601, pos = { x = -35.3, y = -77.0, z = -110.6 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 1 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,168 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5, monster_id = 21010501, pos = { x = -63.1, y = -41.5, z = 46.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 6, monster_id = 21010501, pos = { x = -63.1, y = -41.5, z = 54.4 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 7, monster_id = 22010201, pos = { x = -82.2, y = -40.5, z = 58.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 8, monster_id = 20010801, pos = { x = -87.6, y = -41.5, z = 42.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 9, monster_id = 20010801, pos = { x = -84.7, y = -41.5, z = 73.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 10, monster_id = 20010801, pos = { x = -98.0, y = -41.5, z = 57.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10, gadget_id = 70350003, pos = { x = -52.9, y = -46.8, z = 32.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 11, gadget_id = 70350002, pos = { x = -109.4, y = -38.0, z = 58.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = -83.0, y = -40.5, z = 59.0 } },
{ config_id = 4, shape = RegionShape.SPHERE, radius = 8, pos = { x = -52.2, y = -42.3, z = 10.9 } },
{ config_id = 5, shape = RegionShape.CUBIC, size = { x = 22.9, y = 1.0, z = 2.2 }, pos = { x = -53.8, y = -46.5, z = 25.7 } },
{ config_id = 6, shape = RegionShape.CUBIC, size = { x = 16.5, y = 8.6, z = 3.3 }, pos = { x = -57.1, y = -46.5, z = 40.6 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_3", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3", action = "action_EVENT_ANY_MONSTER_DIE_3", trigger_count = 0 },
{ name = "ENTER_REGION_4", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4", action = "action_EVENT_ENTER_REGION_4", trigger_count = 0 },
{ name = "ENTER_REGION_5", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5", action = "action_EVENT_ENTER_REGION_5", trigger_count = 0 },
{ name = "ENTER_REGION_6", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6", action = "action_EVENT_ENTER_REGION_6", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 10 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 将configid为 11 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4(context, evt)
if evt.param1 ~= 4 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4(context, evt)
-- 将configid为 10 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5(context, evt)
if evt.param1 ~= 5 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5(context, evt)
-- 将configid为 10 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6(context, evt)
if evt.param1 ~= 6 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6(context, evt)
-- 将configid为 10 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10, GadgetState.Default) then
return -1
end
return 0
end

View File

@@ -0,0 +1,71 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11, monster_id = 21020201, pos = { x = -141.5, y = -15.5, z = 152.4 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 12, monster_id = 21010701, pos = { x = -147.4, y = -15.5, z = 155.6 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 13, monster_id = 21010701, pos = { x = -135.1, y = -15.5, z = 155.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 14, monster_id = 21010201, pos = { x = -149.5, y = -15.5, z = 148.2 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
{ config_id = 15, monster_id = 21010201, pos = { x = -135.4, y = -15.5, z = 142.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 11 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,122 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16, monster_id = 23040101, pos = { x = 147.6, y = 34.5, z = 168.8 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 17, monster_id = 23040101, pos = { x = 143.5, y = 34.5, z = 186.1 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 18, monster_id = 23040101, pos = { x = 130.4, y = 34.5, z = 186.1 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 19, monster_id = 23040101, pos = { x = 115.6, y = 34.5, z = 185.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 20, monster_id = 23040101, pos = { x = 144.1, y = 34.5, z = 151.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 21, monster_id = 23040101, pos = { x = 131.8, y = 34.5, z = 150.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 22, monster_id = 23040101, pos = { x = 116.5, y = 34.5, z = 151.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12, gadget_id = 70350002, pos = { x = 92.5, y = 38.4, z = 169.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7, shape = RegionShape.SPHERE, radius = 10.19, pos = { x = 48.8, y = 36.2, z = 170.2 } },
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 104.6, y = 38.5, z = 169.0 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_7", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7", action = "action_EVENT_ENTER_REGION_7", trigger_count = 0 },
{ name = "ENTER_REGION_8", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8", action = "action_EVENT_ENTER_REGION_8" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 16 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7(context, evt)
if evt.param1 ~= 7 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_7(context, evt)
-- 将configid为 12 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8(context, evt)
if evt.param1 ~= 8 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8(context, evt)
-- 将configid为 12 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.Default) then
return -1
end
return 0
end

View File

@@ -0,0 +1,146 @@
{
"radius": 10.0,
"points": {
"1": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": -35.0279732,
"y": -76.9834061,
"z": -170.23616
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"worktopGroupId": 201007001,
"size": {
"x": 20.0,
"y": 10.0,
"z": 10.0
},
"isBoss": false,
"groupIds": [
0
]
},
"2": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": -46.1049347,
"y": -46.48351,
"z": 21.3403072
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"worktopGroupId": 201007003,
"size": {
"x": 30.0,
"y": 10.0,
"z": 10.0
},
"isBoss": false,
"groupIds": []
},
"3": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": 36.8013878,
"y": 36.1944351,
"z": 170.126
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"worktopGroupId": 201007005,
"size": {
"x": 20.0,
"y": 20.0,
"z": 30.0
},
"isBoss": false,
"groupIds": []
}
},
"areas": {},
"forces": {
"1": {
"$type": "ConfigAirflowField",
"pos": {
"x": -37.2112579,
"y": -85.0,
"z": -100.3998
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": false,
"gadgetId": 70610102,
"up": false,
"scale": 1.0,
"velocity": 15.0
},
"2": {
"$type": "ConfigAirflowField",
"pos": {
"x": -62.8,
"y": -92.5,
"z": -53.1
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": -36.6
},
"areaId": 0,
"unlocked": false,
"gadgetId": 70610102,
"up": false,
"scale": 1.0,
"velocity": 15.0
},
"3": {
"$type": "ConfigAirflowField",
"pos": {
"x": 18.5,
"y": -74.2,
"z": -31.8
},
"rot": {
"x": 0.0,
"y": 21.6,
"z": 58.7
},
"areaId": 0,
"unlocked": false,
"gadgetId": 70610102,
"up": false,
"scale": 1.0,
"velocity": 15.0
}
},
"entities": {}
}

View File

@@ -0,0 +1,20 @@
routes = {
["DefaultRouteName"] = {
name = "DefaultRouteName",
localId = 1,
type = 2,
points = {
{ pos = { x = -149.0, y = -15.5, z = 147.8 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = -134.6, y = -15.5, z = 147.8 }, waitTime = 0, speedLevel = 1 }
}
},
["DefaultRouteName"] = {
name = "DefaultRouteName",
localId = 2,
type = 2,
points = {
{ pos = { x = -135.6, y = -15.5, z = 142.7 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = -149.3, y = -15.5, z = 142.9 }, waitTime = 0, speedLevel = 1 }
}
}
}