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 = -2748.7, z = -412.8 },
size = { x = 3106.5, z = 1211.8 },
born_pos = { x = -31.2, y = 1.6, z = 52.9 },
born_rot = { x = 0.0, y = 89.4, z = 0.0 },
die_y = -100
}
-- 所有的区块
blocks = { 1006 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2748.7, z = -412.8 }, max = { x = 357.8, z = 798.9 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,305 @@
{
"sceneId": 1006,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 47.7233429,
"y": 6.986432,
"z": -48.68429
},
"targetVelocity": 7.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 77.2115,
"y": 17.7920551,
"z": -47.44591
},
"targetVelocity": 7.0
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 75.85294,
"y": 8.032935,
"z": -48.5315628
},
"targetVelocity": 3.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 76.98319,
"y": 17.8096466,
"z": -47.43639
},
"targetVelocity": 3.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 81.62434,
"y": 17.7835312,
"z": -42.9849052
},
"targetVelocity": 5.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 81.82933,
"y": 29.6664543,
"z": -21.0719681
},
"targetVelocity": 5.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 82.82904,
"y": 55.7292175,
"z": -20.681076
},
"targetVelocity": 5.0
},
{
"waitTime": 4.0,
"speedLevel": 1,
"pos": {
"x": 95.1884842,
"y": 54.72327,
"z": -21.84179
},
"targetVelocity": 5.0
}
]
},
{
"localId": 4,
"name": "111",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 104.3847,
"y": 55.2743263,
"z": -12.8778238
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 104.197121,
"y": 54.67263,
"z": -21.8528328
},
"targetVelocity": 2.0
}
]
},
{
"localId": 5,
"name": "222",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 108.276428,
"y": 54.9636955,
"z": -31.0634689
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 108.280235,
"y": 54.6376457,
"z": -21.82377
},
"targetVelocity": 2.0
}
]
},
{
"localId": 6,
"name": "444",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 121.521851,
"y": 55.44587,
"z": -12.7404995
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 120.833572,
"y": 54.4166374,
"z": -21.8670063
},
"targetVelocity": 2.0
}
]
},
{
"localId": 7,
"name": "666",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 127.195412,
"y": 55.6023331,
"z": -10.5235872
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 128.719421,
"y": 54.41063,
"z": -21.8306179
},
"targetVelocity": 2.0
}
]
},
{
"localId": 8,
"name": "Platform_008",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 208.440277,
"y": 59.8876381,
"z": -22.1855354
},
"targetVelocity": 3.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 208.875656,
"y": 76.8011856,
"z": -21.5269318
},
"targetVelocity": 3.0
},
{
"waitTime": 3.0,
"speedLevel": 1,
"pos": {
"x": 190.573746,
"y": 77.7347946,
"z": -21.7056713
},
"targetVelocity": 3.0
}
]
},
{
"localId": 1006009,
"name": "333",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 112.670174,
"y": 54.0269051,
"z": -11.9717827
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 112.13739,
"y": 54.2916336,
"z": -21.8898144
},
"targetVelocity": 2.0
}
]
},
{
"localId": 1006010,
"name": "555",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 125.026657,
"y": 56.155117,
"z": -31.6830311
},
"targetVelocity": 3.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 124.790405,
"y": 54.38647,
"z": -21.8032284
},
"targetVelocity": 3.0
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 201006004, refresh_time = 0, pos = { x = 3.3, y = 0.5, z = 10.1 } },
{ id = 201006005, refresh_time = 0, pos = { x = 4.4, y = 1.0, z = -38.4 } },
{ id = 201006006, refresh_time = 0, pos = { x = 144.2, y = 60.7, z = -21.7 } },
{ id = 201006007, refresh_time = 0, pos = { x = 167.1, y = 60.7, z = -22.4 } },
{ id = 201006008, refresh_time = 0, pos = { x = 173.8, y = 81.5, z = -16.9 } }
}

View File

@@ -0,0 +1,8 @@
dummy_points = {
["DUMMY_POS 1006001"] = { pos = { x = 165.4, y = 82.4, z = -22.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 } },
["DUMMY_POS 1006002"] = { pos = { x = 171.0, y = 81.3, z = -22.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 } },
["Q381Paimon"] = { pos = { x = 167.0, y = 82.1, z = -22.1 }, rot = { x = 0.0, y = 85.9, z = 0.0 } },
["Q381Qin"] = { pos = { x = 167.4, y = 81.5, z = -21.1 }, rot = { x = 0.0, y = 130.8, z = 0.0 } },
["Q381Diluc"] = { pos = { x = 165.4, y = 81.5, z = -23.6 }, rot = { x = 0.0, y = 300.8, z = 0.0 } },
["Q381Player"] = { pos = { x = 168.8, y = 81.5, z = -22.3 }, rot = { x = 0.0, y = 275.2, z = 0.0 } }
}

View File

@@ -0,0 +1,242 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11, monster_id = 21010501, pos = { x = 3.6, y = -2.9, z = 27.0 }, rot = { x = 0.0, y = 356.9, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 12, monster_id = 21010901, pos = { x = -7.9, y = 8.0, z = -14.9 }, rot = { x = 0.0, y = 5.3, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 13, monster_id = 21011001, pos = { x = 13.8, y = 8.1, z = -15.0 }, rot = { x = 0.0, y = 349.6, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 15, monster_id = 20011201, pos = { x = 1.2, y = 1.1, z = -7.0 }, rot = { x = 0.0, y = 85.1, z = 0.0 }, level = 1, drop_id = 100020 },
{ config_id = 16, monster_id = 20011201, pos = { x = 6.5, y = 1.1, z = -7.1 }, rot = { x = 0.0, y = 263.8, z = 0.0 }, level = 1, drop_id = 100020 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22, gadget_id = 70220005, pos = { x = 15.3, y = 8.0, z = -15.1 }, rot = { x = 0.0, y = 210.9, z = 0.0 }, level = 15 },
{ config_id = 24, gadget_id = 70210011, pos = { x = -10.2, y = 0.0, z = 5.0 }, rot = { x = 0.0, y = 15.1, z = 0.0 }, level = 1, chest_drop_id = 1400601, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 25, gadget_id = 70350005, pos = { x = 3.9, y = 0.7, z = -21.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 45, gadget_id = 70310001, pos = { x = 17.5, y = 1.0, z = 19.7 }, rot = { x = 0.0, y = 156.4, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 46, gadget_id = 70310001, pos = { x = -9.5, y = 0.9, z = 19.5 }, rot = { x = 0.0, y = 73.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 49, gadget_id = 70210021, pos = { x = 5.4, y = -3.0, z = 55.2 }, rot = { x = 0.0, y = 185.7, z = 0.0 }, level = 1, chest_drop_id = 1400602, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 50, gadget_id = 70210021, pos = { x = -9.9, y = 8.0, z = -18.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 1400602, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 63, gadget_id = 70220004, pos = { x = -0.3, y = -2.8, z = 45.6 }, rot = { x = 0.0, y = 277.6, z = 0.0 }, level = 15 },
{ config_id = 64, gadget_id = 70220004, pos = { x = 13.7, y = 1.0, z = -3.5 }, rot = { x = 0.0, y = 313.4, z = 0.0 }, level = 15 },
{ config_id = 65, gadget_id = 70220013, pos = { x = 14.6, y = 8.0, z = -16.7 }, rot = { x = 0.0, y = 215.3, z = 0.0 }, level = 1 },
{ config_id = 66, gadget_id = 70220013, pos = { x = -5.7, y = 8.0, z = -16.4 }, rot = { x = 0.0, y = 37.3, z = 0.0 }, level = 1 },
{ config_id = 67, gadget_id = 70220014, pos = { x = -7.4, y = 8.0, z = -17.2 }, rot = { x = 0.0, y = 235.2, z = 0.0 }, level = 1 },
{ config_id = 68, gadget_id = 70220002, pos = { x = 1.2, y = 1.0, z = -6.8 }, rot = { x = 0.0, y = 230.2, z = 0.0 }, level = 1 },
{ config_id = 69, gadget_id = 70220002, pos = { x = 6.4, y = 1.0, z = -6.9 }, rot = { x = 0.0, y = 274.4, z = 0.0 }, level = 1 },
{ config_id = 70, gadget_id = 70220004, pos = { x = -7.4, y = 1.0, z = -5.5 }, rot = { x = 0.0, y = 188.1, z = 0.0 }, level = 15 },
{ config_id = 81, gadget_id = 70210022, pos = { x = 4.0, y = 1.0, z = -6.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 1001002, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST }
}
-- 区域
regions = {
{ config_id = 24, shape = RegionShape.SPHERE, radius = 5, pos = { x = 4.3, y = 1.0, z = -12.7 } },
{ config_id = 50, shape = RegionShape.CUBIC, size = { x = 40.0, y = 5.0, z = 10.0 }, pos = { x = 2.6, y = 1.0, z = -3.8 } },
{ config_id = 51, shape = RegionShape.SPHERE, radius = 5, pos = { x = 3.3, y = 1.0, z = -4.3 } },
{ config_id = 52, shape = RegionShape.SPHERE, radius = 5, pos = { x = -4.1, y = 1.1, z = -3.4 } },
{ config_id = 53, shape = RegionShape.SPHERE, radius = 5, pos = { x = -10.9, y = 1.1, z = -6.7 } },
{ config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = -3.6, y = 1.1, z = -1.3 } }
}
-- 触发器
triggers = {
{ name = "VARIABLE_CHANGE_24", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_24", action = "action_EVENT_VARIABLE_CHANGE_24" },
{ name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "action_EVENT_ENTER_REGION_50" },
{ name = "ANY_MONSTER_DIE_51", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_51", action = "action_EVENT_ANY_MONSTER_DIE_51" },
{ name = "ANY_MONSTER_DIE_52", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_52", action = "action_EVENT_ANY_MONSTER_DIE_52" },
{ name = "ANY_MONSTER_DIE_53", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_53", action = "action_EVENT_ANY_MONSTER_DIE_53" },
{ name = "ANY_MONSTER_DIE_54", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_54", action = "action_EVENT_ANY_MONSTER_DIE_54" }
}
-- 变量
variables = {
{ name = "door", value = 0, persistent = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 11, 12, 13 },
gadgets = { 22, 24, 25, 45, 46, 49, 50, 63, 64, 65, 66, 67, 68, 69, 70, 81 },
regions = { 24, 50, 51, 52, 53, 54 },
triggers = { "VARIABLE_CHANGE_24", "ENTER_REGION_50", "ANY_MONSTER_DIE_51", "ANY_MONSTER_DIE_52", "ANY_MONSTER_DIE_53", "ANY_MONSTER_DIE_54" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_24(context, evt)
-- 判断变量"door"为4
if ScriptLib.GetGroupVariableValue(context, "door") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_24(context, evt)
-- 将configid为 81 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 81, GadgetState.Default) then
return -1
end
-- 将configid为 25 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 25, GadgetState.GearStart) then
return -1
end
-- 触发镜头注目注目位置为坐标45-20持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=4, y=5, z=-20}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if evt.param1 ~= 50 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_50(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 15, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 16, delay_time = 0 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_51(context, evt)
--判断死亡怪物的configid是否为 12
if evt.param1 ~= 12 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_51(context, evt)
-- 针对当前group内变量名为 "door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "door", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_52(context, evt)
--判断死亡怪物的configid是否为 13
if evt.param1 ~= 13 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_52(context, evt)
-- 针对当前group内变量名为 "door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "door", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_53(context, evt)
--判断死亡怪物的configid是否为 15
if evt.param1 ~= 15 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_53(context, evt)
-- 针对当前group内变量名为 "door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "door", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_54(context, evt)
--判断死亡怪物的configid是否为 16
if evt.param1 ~= 16 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_54(context, evt)
-- 针对当前group内变量名为 "door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "door", 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,137 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17, monster_id = 20011301, pos = { x = -2.0, y = 1.0, z = -38.5 }, rot = { x = 0.0, y = 12.8, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 18, monster_id = 21011001, pos = { x = 15.1, y = 1.1, z = -39.5 }, rot = { x = 0.0, y = 305.3, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 20, monster_id = 20011201, pos = { x = 3.4, y = 1.0, z = -39.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 100020 },
{ config_id = 21, monster_id = 21010501, pos = { x = -4.2, y = 1.0, z = -45.1 }, rot = { x = 0.0, y = 31.1, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 47, gadget_id = 70210031, pos = { x = 14.0, y = 12.0, z = -52.9 }, rot = { x = 0.0, y = 330.7, z = 0.0 }, level = 1, chest_drop_id = 1400604, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 52, gadget_id = 70210032, pos = { x = 17.6, y = 1.0, z = -46.9 }, rot = { x = 0.0, y = 327.5, z = 0.0 }, level = 1, chest_drop_id = 1400604, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 54, gadget_id = 70220004, pos = { x = -8.2, y = 0.9, z = -41.5 }, rot = { x = 0.0, y = 306.0, z = 0.0 }, level = 15 },
{ config_id = 55, gadget_id = 70220004, pos = { x = 1.3, y = 1.0, z = -49.4 }, rot = { x = 0.0, y = 219.8, z = 0.0 }, level = 15 },
{ config_id = 76, gadget_id = 70900201, pos = { x = 21.6, y = 8.0, z = -50.5 }, rot = { x = 0.0, y = 76.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = 3.4, y = 1.0, z = -37.8 } },
{ config_id = 44, shape = RegionShape.SPHERE, radius = 5, pos = { x = 25.2, y = 8.1, z = -51.1 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_15", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15", action = "action_EVENT_ANY_MONSTER_DIE_15" },
{ name = "ENTER_REGION_44", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_44", action = "action_EVENT_ENTER_REGION_44" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 17, 18, 20, 21 },
gadgets = { 47, 52, 54, 55 },
regions = { 15, 44 },
triggers = { "ANY_MONSTER_DIE_15", "ENTER_REGION_44" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15(context, evt)
-- 解锁目标2
if 0 ~= ScriptLib.UnlockForce(context, 2) then
return -1
end
-- 将configid为 52 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 52, GadgetState.Default) then
return -1
end
-- 创生gadget 76
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 76 }) then
return -1
end
-- 触发镜头注目,注目位置为坐标(-64-47持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-6, y=4, z=-47}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_44(context, evt)
if evt.param1 ~= 44 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_44(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006005, monsters = {}, gadgets = {76} }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,310 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 26, gadget_id = 70380003, pos = { x = 47.7, y = 7.0, z = -48.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 1, start_route = false },
{ config_id = 28, gadget_id = 70380003, pos = { x = 81.6, y = 17.6, z = -42.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 3, start_route = false },
{ config_id = 30, gadget_id = 70380003, pos = { x = 104.3, y = 54.7, z = -12.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 4, start_route = false },
{ config_id = 31, gadget_id = 70380003, pos = { x = 108.2, y = 54.6, z = -32.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 5, start_route = false },
{ config_id = 33, gadget_id = 70380003, pos = { x = 120.9, y = 54.5, z = -10.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 6, start_route = false },
{ config_id = 34, gadget_id = 70380003, pos = { x = 124.8, y = 54.4, z = -32.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 1006010, start_route = false },
{ config_id = 35, gadget_id = 70350005, pos = { x = 151.5, y = 60.5, z = -22.0 }, rot = { x = 0.0, y = 270.1, z = 0.0 }, level = 1 },
{ config_id = 77, gadget_id = 70900201, pos = { x = 146.6, y = 60.5, z = -22.0 }, rot = { x = 0.0, y = 99.3, z = 0.0 }, level = 1 },
{ config_id = 79, gadget_id = 70900201, pos = { x = 165.4, y = 82.0, z = -21.6 }, rot = { x = 0.0, y = 156.4, z = 0.0 }, level = 1 },
{ config_id = 80, gadget_id = 70900201, pos = { x = 81.7, y = 19.4, z = -43.2 }, rot = { x = 0.0, y = 45.3, z = 0.0 }, level = 1 },
{ config_id = 82, gadget_id = 70380003, pos = { x = 112.0, y = 54.6, z = -14.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 1006009, start_route = false },
{ config_id = 83, gadget_id = 70380003, pos = { x = 128.8, y = 54.4, z = -14.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 7, start_route = false }
}
-- 区域
regions = {
{ config_id = 22, shape = RegionShape.CUBIC, size = { x = 15.0, y = 3.0, z = 10.0 }, pos = { x = 144.5, y = 60.6, z = -22.2 } },
{ config_id = 32, shape = RegionShape.CUBIC, size = { x = 5.0, y = 5.0, z = 5.0 }, pos = { x = 81.3, y = 19.4, z = -41.5 } },
{ config_id = 45, shape = RegionShape.SPHERE, radius = 5, pos = { x = 41.1, y = 9.0, z = -49.8 } },
{ config_id = 46, shape = RegionShape.CUBIC, size = { x = 5.0, y = 5.0, z = 35.0 }, pos = { x = 172.2, y = 81.5, z = -21.1 } },
{ config_id = 47, shape = RegionShape.SPHERE, radius = 5, pos = { x = 199.7, y = 72.2, z = -22.5 } },
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = 99.7, y = 56.4, z = -21.7 } },
{ config_id = 49, shape = RegionShape.SPHERE, radius = 5, pos = { x = 114.4, y = 56.2, z = -22.7 } },
{ config_id = 55, shape = RegionShape.CUBIC, size = { x = 4.0, y = 5.0, z = 4.0 }, pos = { x = 48.4, y = 8.8, z = -48.7 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_22", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22", action = "action_EVENT_ENTER_REGION_22" },
{ name = "ENTER_REGION_32", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_32", action = "action_EVENT_ENTER_REGION_32" },
{ name = "ENTER_REGION_45", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45", action = "action_EVENT_ENTER_REGION_45" },
{ name = "ENTER_REGION_46", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_46", action = "action_EVENT_ENTER_REGION_46" },
{ name = "ENTER_REGION_47", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_47", action = "action_EVENT_ENTER_REGION_47" },
{ name = "ENTER_REGION_48", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_48", action = "action_EVENT_ENTER_REGION_48" },
{ name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "action_EVENT_ENTER_REGION_49" },
{ name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "action_EVENT_ENTER_REGION_55" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 26, 28, 30, 31, 33, 34, 35, 82, 83 },
regions = { 22, 32, 45, 46, 47, 48, 49, 55 },
triggers = { "ENTER_REGION_22", "ENTER_REGION_32", "ENTER_REGION_45", "ENTER_REGION_46", "ENTER_REGION_47", "ENTER_REGION_48", "ENTER_REGION_49", "ENTER_REGION_55" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_22(context, evt)
if evt.param1 ~= 22 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_22(context, evt)
-- 将configid为 35 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35, GadgetState.GearStart) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006006, monsters = {}, gadgets = {77} }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_32(context, evt)
if evt.param1 ~= 32 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_32(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 28) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006006, monsters = {}, gadgets = {80} }) then
return -1
end
-- 创生gadget 77
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 77 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45(context, evt)
if evt.param1 ~= 45 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_45(context, evt)
-- 创生gadget 80
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 80 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_46(context, evt)
if evt.param1 ~= 46 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_46(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006006, monsters = {}, gadgets = {79} }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_47(context, evt)
if evt.param1 ~= 47 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_47(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006007, monsters = {}, gadgets = {78} }) then
return -1
end
-- 创生gadget 79
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 79 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_48(context, evt)
if evt.param1 ~= 48 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_48(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 30) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 31) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 82) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if evt.param1 ~= 49 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_49(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 33) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 34) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 83) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_55(context, evt)
if evt.param1 ~= 55 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_55(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 26) then
return -1
end
return 0
end

View File

@@ -0,0 +1,276 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 22, monster_id = 22010101, pos = { x = 180.8, y = 60.6, z = -21.6 }, rot = { x = 0.0, y = 274.6, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true, affix = { 1001, 1002 }, isElite = true },
{ config_id = 23, monster_id = 21030101, pos = { x = 177.1, y = 60.7, z = -22.3 }, rot = { x = 0.0, y = 271.1, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 24, monster_id = 20010601, pos = { x = 165.7, y = 60.8, z = -26.9 }, rot = { x = 0.0, y = 289.3, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true },
{ config_id = 25, monster_id = 20010701, pos = { x = 162.6, y = 60.4, z = -14.7 }, rot = { x = 0.0, y = 87.2, z = 0.0 }, level = 1, drop_id = 100020, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 44, gadget_id = 70210052, pos = { x = 166.1, y = 81.5, z = -22.1 }, rot = { x = 0.0, y = 90.8, z = 0.0 }, level = 1, chest_drop_id = 403022, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_PASS_CHEST },
{ config_id = 48, gadget_id = 70350005, pos = { x = 185.1, y = 60.4, z = -22.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 57, gadget_id = 70220004, pos = { x = 172.9, y = 81.5, z = -20.6 }, rot = { x = 0.0, y = 161.0, z = 0.0 }, level = 15 },
{ config_id = 58, gadget_id = 70220004, pos = { x = 179.7, y = 81.5, z = -31.0 }, rot = { x = 0.0, y = 8.8, z = 0.0 }, level = 15 },
{ config_id = 59, gadget_id = 70220004, pos = { x = 180.7, y = 81.5, z = -7.0 }, rot = { x = 0.0, y = 258.3, z = 0.0 }, level = 15 },
{ config_id = 60, gadget_id = 70220004, pos = { x = 160.6, y = 81.5, z = -35.9 }, rot = { x = 0.0, y = 283.2, z = 0.0 }, level = 15 },
{ config_id = 61, gadget_id = 70220004, pos = { x = 174.3, y = 81.5, z = -36.8 }, rot = { x = 0.0, y = 350.7, z = 0.0 }, level = 15 },
{ config_id = 62, gadget_id = 70220004, pos = { x = 167.7, y = 81.5, z = -7.4 }, rot = { x = 0.0, y = 266.7, z = 0.0 }, level = 15 },
{ config_id = 71, gadget_id = 70220004, pos = { x = 163.1, y = 60.6, z = -19.3 }, rot = { x = 0.0, y = 339.0, z = 0.0 }, level = 15 },
{ config_id = 72, gadget_id = 70220004, pos = { x = 172.2, y = 60.5, z = -32.9 }, rot = { x = 0.0, y = 207.9, z = 0.0 }, level = 15 },
{ config_id = 73, gadget_id = 70220004, pos = { x = 178.7, y = 60.5, z = -12.5 }, rot = { x = 0.0, y = 304.8, z = 0.0 }, level = 15 },
{ config_id = 74, gadget_id = 70210032, pos = { x = 175.8, y = 60.5, z = -34.4 }, rot = { x = 0.0, y = 317.4, z = 0.0 }, level = 1, chest_drop_id = 1400604, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 78, gadget_id = 70900201, pos = { x = 199.6, y = 62.4, z = -22.3 }, rot = { x = 0.0, y = 233.8, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 33, shape = RegionShape.SPHERE, radius = 5, pos = { x = 169.2, y = 60.5, z = -22.6 } },
{ config_id = 37, shape = RegionShape.SPHERE, radius = 5, pos = { x = 200.1, y = 81.3, z = -22.5 } },
{ config_id = 38, shape = RegionShape.SPHERE, radius = 5, pos = { x = 165.6, y = 60.5, z = -22.7 } },
{ config_id = 39, shape = RegionShape.SPHERE, radius = 5, pos = { x = 167.0, y = 60.4, z = -25.2 } },
{ config_id = 40, shape = RegionShape.SPHERE, radius = 5, pos = { x = 166.2, y = 60.5, z = -21.0 } },
{ config_id = 41, shape = RegionShape.SPHERE, radius = 5, pos = { x = 166.7, y = 60.5, z = -21.9 } },
{ config_id = 42, shape = RegionShape.SPHERE, radius = 5, pos = { x = 167.1, y = 60.4, z = -23.5 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_33", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33", action = "action_EVENT_ANY_MONSTER_DIE_33" },
{ name = "ENTER_REGION_37", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_37", action = "action_EVENT_ENTER_REGION_37" },
{ name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38" },
{ name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39" },
{ name = "ANY_MONSTER_DIE_40", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_40", action = "action_EVENT_ANY_MONSTER_DIE_40" },
{ name = "VARIABLE_CHANGE_41", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_41", action = "action_EVENT_VARIABLE_CHANGE_41" },
{ name = "ANY_MONSTER_LIVE_42", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_42", action = "action_EVENT_ANY_MONSTER_LIVE_42" }
}
-- 变量
variables = {
{ name = "key", value = 0, persistent = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 23, 24, 25 },
gadgets = { 44, 48, 57, 58, 59, 60, 61, 62, 71, 72, 73, 74 },
regions = { 33, 37, 38, 39, 40, 41, 42 },
triggers = { "ANY_MONSTER_DIE_33", "ENTER_REGION_37", "ANY_MONSTER_DIE_38", "ANY_MONSTER_DIE_39", "ANY_MONSTER_DIE_40", "VARIABLE_CHANGE_41", "ANY_MONSTER_LIVE_42" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33(context, evt)
--判断死亡怪物的configid是否为 22
if evt.param1 ~= 22 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
-- 将configid为 48 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 48, GadgetState.GearStart) then
return -1
end
-- 触发镜头注目注目位置为坐标18464-22持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=184, y=64, z=-22}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
-- 将configid为 74 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 74, GadgetState.Default) then
return -1
end
-- 将configid为 44 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44, GadgetState.Default) then
return -1
end
-- 创生gadget 78
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 78 }) then
return -1
end
-- 解锁目标3
if 0 ~= ScriptLib.UnlockForce(context, 3) then
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "DragonTear") then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_37(context, evt)
if evt.param1 ~= 37 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_37(context, evt)
-- 触发镜头注目注目位置为坐标16982-22持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=169, y=82, z=-22}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_38(context, evt)
--判断死亡怪物的configid是否为 23
if evt.param1 ~= 23 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_39(context, evt)
--判断死亡怪物的configid是否为 24
if evt.param1 ~= 24 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_39(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_40(context, evt)
--判断死亡怪物的configid是否为 25
if evt.param1 ~= 25 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_41(context, evt)
-- 判断变量"key"为3
if ScriptLib.GetGroupVariableValue(context, "key") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_41(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22, delay_time = 2 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_42(context, evt)
if 22 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_42(context, evt)
-- 触发镜头注目注目位置为坐标18060-21持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=180, y=60, z=-21}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,91 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 75, gadget_id = 70900201, pos = { x = 4.0, y = 3.0, z = -7.4 }, rot = { x = 0.0, y = 281.2, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 43, shape = RegionShape.CUBIC, size = { x = 40.0, y = 5.0, z = 5.0 }, pos = { x = 0.3, y = 1.0, z = 0.2 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_43", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43", action = "action_EVENT_ENTER_REGION_43" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 75 },
regions = { 43 },
triggers = { "ENTER_REGION_43" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_43(context, evt)
if evt.param1 ~= 43 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_43(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201006008, monsters = {}, gadgets = {75} }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,319 @@
{
"radius": 10.0,
"points": {
"1": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": 11.6215,
"y": -3.07199478,
"z": 50.1528168
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"size": {
"x": 30.0,
"y": 10.0,
"z": 30.0
},
"isBoss": false,
"groupIds": []
},
"2": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": 30.0175648,
"y": 7.784683,
"z": -59.9926949
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"size": {
"x": 20.0,
"y": 10.0,
"z": 30.0
},
"isBoss": false,
"groupIds": []
},
"3": {
"type": "NORMAL",
"$type": "DungeonWayPoint",
"gadgetId": 70120003,
"pos": {
"x": 137.749878,
"y": 60.24847,
"z": -13.9570017
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"worktopGroupId": 201006006,
"size": {
"x": 30.0,
"y": 10.0,
"z": 40.0
},
"isBoss": false,
"groupIds": []
},
"4": {
"type": "NORMAL",
"$type": "DungeonQuitPoint",
"gadgetId": 70120004,
"pos": {
"x": 166.259872,
"y": 81.45801,
"z": -22.1483479
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"titleTextID": "UI_DUNGEON_EXIT"
}
},
"areas": {},
"forces": {
"2": {
"$type": "ConfigAirflowField",
"pos": {
"x": -6.01946735,
"y": -20.2896347,
"z": -46.3509369
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": false,
"gadgetId": 70610102,
"up": false,
"scale": 1.0,
"velocity": 5.0
},
"3": {
"$type": "ConfigAirflowField",
"pos": {
"x": 200.3532,
"y": 52.82291,
"z": -21.9976883
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": false,
"gadgetId": 70610102,
"up": true,
"scale": 1.0,
"velocity": 8.0
}
},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": -49.66979,
"y": 1.05581045,
"z": 86.20032
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "NoReviveRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 50.0,
"centerType": "Center",
"width": 50.0,
"length": 50.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
},
"2": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": -98.21782,
"y": 1.00000143,
"z": 15.7320728
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "NoReviveRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 100.0,
"centerType": "Center",
"width": 100.0,
"length": 100.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
},
"3": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": 51.5723877,
"y": 0.62,
"z": 4.45044041
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "NoReviveRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 100.0,
"centerType": "Center",
"width": 50.0,
"length": 100.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
},
"4": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": 214.128128,
"y": 65.8434,
"z": 74.866806
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "NoReviveRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 100.0,
"centerType": "Center",
"width": 100.0,
"length": 100.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
},
"5": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": 128.515488,
"y": 66.76504,
"z": -117.497192
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "NoReviveRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 100.0,
"centerType": "Center",
"width": 100.0,
"length": 100.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
}
},
"doors": {}
}

View File

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