添加配置表

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 = -1024.0, z = -1024.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = -10.570, y = 53.762, z = 12.898 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = 38.3,
city_id = 2,
vision_anchor = { x = -1024.0, z = -1024.0 }
}
-- 所有的区块
blocks = { 1055 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1024.0, z = -1024.0 }, max = { x = 1024.0, z = 1024.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,414 @@
{
"sceneId": 1055,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -25.33243,
"y": 48.39721,
"z": 22.32096
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -25.33243,
"y": 53.836,
"z": 22.32096
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"reachStop": true
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -56.5300179,
"y": 64.1,
"z": -107.522667
},
"waitTime": 0.0,
"targetVelocity": 6.0
},
{
"pos": {
"x": -56.53,
"y": 64.1,
"z": -89.36597
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": -56.53,
"y": 64.1,
"z": -83.83716
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": -56.53,
"y": 64.1,
"z": -65.118
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -7.8,
"y": 64.1,
"z": -65.118
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"reachStop": true
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 36.15596,
"y": 57.22206,
"z": -52.01534
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 36.15596,
"y": 56.1847458,
"z": -52.01534
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"reachStop": true
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 36.18745,
"y": 58.80303,
"z": -52.64849
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 36.18745,
"y": 57.2722244,
"z": -52.64849
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"reachStop": true
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 21.82874,
"y": 57.07348,
"z": -52.08291
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 21.82874,
"y": 56.0963936,
"z": -52.08291
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"reachStop": true
}
]
},
{
"localId": 6,
"name": "Route_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 21.86022,
"y": 58.65445,
"z": -52.64849
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 21.86022,
"y": 57.043766,
"z": -52.64849
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"reachStop": true
}
]
},
{
"localId": 7,
"name": "Route_005",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 28.3685379,
"y": 55.0,
"z": -61.3684959
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 28.3685379,
"y": 61.0,
"z": -61.3684959
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 28.3685379,
"y": 55.0,
"z": -61.3684959
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 8,
"name": "Route_005",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 35.925972,
"y": 61.0146675,
"z": -61.8805962
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 35.925972,
"y": 55.0,
"z": -61.8805962
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 35.925972,
"y": 61.0146675,
"z": -61.8805962
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 9,
"name": "Route_009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -2.88,
"y": 58.18,
"z": -97.17848
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -2.88,
"y": 58.18,
"z": -90.024
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 51.974,
"y": 58.18,
"z": -90.024
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 51.69899,
"y": 58.18,
"z": -110.673164
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 37.56707,
"y": 58.18,
"z": -111.085861
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"reachStop": true
}
]
},
{
"localId": 10,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -25.33243,
"y": 53.836,
"z": 22.32096
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -25.33243,
"y": 48.39721,
"z": 22.32096
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"reachStop": true
}
]
},
{
"localId": 11,
"name": "Route_009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2.1,
"y": 58.18,
"z": -90.024
},
"waitTime": 0.1,
"targetVelocity": 2.0
},
{
"pos": {
"x": 51.974,
"y": 58.18,
"z": -90.024
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 51.74234,
"y": 58.18,
"z": -110.699104
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 38.48301,
"y": 59.011013,
"z": -110.781708
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"reachStop": true
}
]
}
]
}

View File

@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 201055001, refresh_id = 1, pos = { x = -10.839, y = 53.762, z = 5.597 } },
{ id = 201055002, refresh_id = 1001, pos = { x = -32.614, y = 58.474, z = -19.017 } },
{ id = 201055003, refresh_id = 1001, pos = { x = -55.237, y = 48.832, z = -73.718 } },
{ id = 201055004, refresh_id = 1, pos = { x = 28.766, y = 53.762, z = -72.976 } },
{ id = 201055005, refresh_id = 1002, pos = { x = 87.489, y = 47.852, z = -64.705 } },
{ id = 201055006, refresh_id = 1, pos = { x = -16.720, y = 53.762, z = 8.511 } },
{ id = 201055007, refresh_id = 1001, pos = { x = -11.758, y = 53.762, z = 7.190 } }
}

View File

@@ -0,0 +1,47 @@
dummy_points = {
["Q1101202Avatar"] = { pos = { x = 95.722, y = 47.852, z = -41.846 }, rot = { x = 0.000, y = 259.141, z = 0.000 } },
["Q1101202Paimon"] = { pos = { x = 95.551, y = 47.852, z = -42.798 }, rot = { x = 0.000, y = 324.775, z = 0.000 } },
["Q1101203Avatar"] = { pos = { x = 77.232, y = 47.880, z = -75.338 }, rot = { x = 0.000, y = 274.516, z = 0.000 } },
["Q1101203Paimon"] = { pos = { x = 76.568, y = 47.879, z = -74.632 }, rot = { x = 0.000, y = 190.594, z = 0.000 } },
["Q1101203Tok"] = { pos = { x = 76.022, y = 47.979, z = -75.825 }, rot = { x = 0.000, y = 25.793, z = 0.000 } },
["Q1101206Avatar"] = { pos = { x = -2.600, y = 53.848, z = -78.434 }, rot = { x = 0.000, y = 45.100, z = 0.000 } },
["Q1101206Gongzi"] = { pos = { x = -2.789, y = 53.851, z = -76.810 }, rot = { x = 0.000, y = 113.726, z = 0.000 } },
["Q1101206Paimon"] = { pos = { x = -3.044, y = 53.856, z = -77.676 }, rot = { x = 0.000, y = 91.480, z = 0.000 } },
["Q1101206Tok"] = { pos = { x = -2.882, y = 53.886, z = -49.357 }, rot = { x = 0.000, y = 110.294, z = 0.000 } },
["Q1101207Avatar"] = { pos = { x = 62.683, y = 47.852, z = -63.573 }, rot = { x = 0.000, y = 307.939, z = 0.000 } },
["Q1101207Paimon"] = { pos = { x = 62.804, y = 47.852, z = -62.348 }, rot = { x = 0.000, y = 236.493, z = 0.000 } },
["Q1101208Avatar"] = { pos = { x = -11.243, y = 53.881, z = 13.219 }, rot = { x = 0.000, y = 204.842, z = 0.000 } },
["Q1101208Paimon"] = { pos = { x = -13.450, y = 53.846, z = 12.715 }, rot = { x = 0.000, y = 128.507, z = 0.000 } },
["Q1101208Tok"] = { pos = { x = -12.355, y = 53.825, z = 13.033 }, rot = { x = 0.000, y = 169.815, z = 0.000 } },
["Q1101209Avatar"] = { pos = { x = -28.849, y = 60.240, z = -20.482 }, rot = { x = 0.000, y = 216.817, z = 0.000 } },
["Q1101209Gongzi"] = { pos = { x = -30.880, y = 60.196, z = -21.064 }, rot = { x = 0.000, y = 132.427, z = 0.000 } },
["Q1101209Paimon"] = { pos = { x = -30.133, y = 60.196, z = -20.082 }, rot = { x = 0.000, y = 175.366, z = 0.000 } },
["Q1101209Tok"] = { pos = { x = -10.367, y = 53.838, z = -39.801 }, rot = { x = 0.000, y = 177.641, z = 0.000 } },
["Q1101210Gongzi"] = { pos = { x = 61.887, y = 47.852, z = -63.812 }, rot = { x = 0.000, y = 12.254, z = 0.000 } },
["Q1101219Tok"] = { pos = { x = 33.646, y = 53.889, z = -56.401 }, rot = { x = 0.000, y = 91.686, z = 0.000 } },
["Q11012Gongzi"] = { pos = { x = -11.289, y = 53.906, z = 11.902 }, rot = { x = 0.000, y = 316.226, z = 0.000 } },
["Q11012Gongzi2"] = { pos = { x = 101.491, y = 47.852, z = -43.999 }, rot = { x = 0.000, y = 358.950, z = 0.000 } },
["Q11012Guardian"] = { pos = { x = 91.224, y = 47.852, z = -64.004 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11012Invisiable"] = { pos = { x = -31.087, y = 60.196, z = -19.364 }, rot = { x = 0.000, y = 130.325, z = 0.000 } },
["Q11012Invisiable2"] = { pos = { x = -2.325, y = 53.784, z = -73.404 }, rot = { x = 0.000, y = 209.389, z = 0.000 } },
["Q11012Route1"] = { pos = { x = 4.044, y = 53.895, z = -55.555 }, rot = { x = 0.000, y = 91.106, z = 0.000 } },
["Q11012Route10"] = { pos = { x = -7.758, y = 53.872, z = -14.236 }, rot = { x = 0.000, y = 85.293, z = 0.000 } },
["Q11012Route11"] = { pos = { x = -7.836, y = 53.863, z = -25.640 }, rot = { x = 0.000, y = 89.041, z = 0.000 } },
["Q11012Route12"] = { pos = { x = -7.968, y = 53.873, z = -37.000 }, rot = { x = 0.000, y = 90.103, z = 0.000 } },
["Q11012Route13"] = { pos = { x = -12.983, y = 53.838, z = -36.532 }, rot = { x = 0.000, y = 265.443, z = 0.000 } },
["Q11012Route14"] = { pos = { x = -12.577, y = 53.869, z = -18.638 }, rot = { x = 0.000, y = 272.118, z = 0.000 } },
["Q11012Route15"] = { pos = { x = 73.079, y = 47.875, z = -65.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11012Route16"] = { pos = { x = 80.386, y = 47.801, z = -62.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11012Route17"] = { pos = { x = 15.809, y = 53.837, z = -56.149 }, rot = { x = 0.000, y = 88.350, z = 0.000 } },
["Q11012Route18"] = { pos = { x = 46.640, y = 48.699, z = -56.656 }, rot = { x = 0.000, y = 102.736, z = 0.000 } },
["Q11012Route19"] = { pos = { x = 54.225, y = 47.724, z = -57.878 }, rot = { x = 0.000, y = 116.736, z = 0.000 } },
["Q11012Route2"] = { pos = { x = 39.501, y = 52.769, z = -55.538 }, rot = { x = 0.000, y = 98.523, z = 0.000 } },
["Q11012Route3"] = { pos = { x = 66.761, y = 47.852, z = -65.700 }, rot = { x = 0.000, y = 89.296, z = 0.000 } },
["Q11012Route4"] = { pos = { x = 81.357, y = 47.815, z = -68.712 }, rot = { x = 0.000, y = 25.105, z = 0.000 } },
["Q11012Route5"] = { pos = { x = 84.600, y = 47.805, z = -57.944 }, rot = { x = 0.000, y = 99.939, z = 0.000 } },
["Q11012Route6"] = { pos = { x = 85.411, y = 47.979, z = -51.944 }, rot = { x = 0.000, y = 129.317, z = 0.000 } },
["Q11012Route7"] = { pos = { x = 92.351, y = 47.848, z = -56.637 }, rot = { x = 0.000, y = 201.077, z = 0.000 } },
["Q11012Route8"] = { pos = { x = 89.162, y = 47.873, z = -64.224 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11012Route9"] = { pos = { x = 85.733, y = 47.896, z = -62.901 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11012Tok"] = { pos = { x = 61.743, y = 47.852, z = -63.005 }, rot = { x = 0.000, y = 89.416, z = 0.000 } }
}

View File

@@ -0,0 +1,199 @@
-- 基础信息
local base_info = {
group_id = 201055001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350002, pos = { x = -10.165, y = 53.897, z = -6.731 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1002, gadget_id = 70900049, pos = { x = -31.853, y = 48.457, z = 17.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01 },
{ config_id = 1003, gadget_id = 70380020, pos = { x = -25.332, y = 48.397, z = 22.321 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 1007, gadget_id = 70211001, pos = { x = -47.242, y = 52.766, z = 16.648 }, rot = { x = 0.000, y = 89.823, z = 0.000 }, level = 11, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 1005, shape = RegionShape.SPHERE, radius = 10, pos = { x = -48.480, y = 58.474, z = -2.518 } }
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "GADGET_STATE_CHANGE_1004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1004", action = "action_EVENT_GADGET_STATE_CHANGE_1004", trigger_count = 0 },
{ config_id = 1001005, name = "ENTER_REGION_1005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1005", action = "action_EVENT_ENTER_REGION_1005" },
{ 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" },
{ config_id = 1001008, name = "TIMER_EVENT_1008", event = EventType.EVENT_TIMER_EVENT, source = "water2", condition = "", action = "action_EVENT_TIMER_EVENT_1008", trigger_count = 0 },
{ config_id = 1001009, name = "TIMER_EVENT_1009", event = EventType.EVENT_TIMER_EVENT, source = "water1", condition = "", action = "action_EVENT_TIMER_EVENT_1009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1007 },
regions = { 1005 },
triggers = { "GADGET_STATE_CHANGE_1004", "ENTER_REGION_1005", "QUEST_FINISH_1006", "TIMER_EVENT_1008", "TIMER_EVENT_1009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
if 1002 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1003, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 延迟4.5秒后,向groupId为201055001的对象,请求一次调用,并将string参数"water1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055001, "water1", 4.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟6秒后,向groupId为201055001的对象,请求一次调用,并将string参数"water2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055001, "water2", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1005(context, evt)
if evt.param1 ~= 1005 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_1005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 1)
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_1006(context, evt)
--检查ID为1101221的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1101221 ~= 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)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1008(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1009(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1003, 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end

View File

@@ -0,0 +1,431 @@
-- 基础信息
local base_info = {
group_id = 201055002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2017, monster_id = 20011201, pos = { x = -42.469, y = 58.629, z = -24.460 }, rot = { x = 0.000, y = 315.807, z = 0.000 }, level = 1 },
{ config_id = 2018, monster_id = 20011201, pos = { x = -43.903, y = 58.541, z = -27.382 }, rot = { x = 0.000, y = 335.334, z = 0.000 }, level = 1 },
{ config_id = 2019, monster_id = 20011201, pos = { x = -42.133, y = 58.629, z = -17.758 }, rot = { x = 0.000, y = 244.113, z = 0.000 }, level = 1 },
{ config_id = 2020, monster_id = 20011201, pos = { x = -44.297, y = 58.541, z = -14.975 }, rot = { x = 0.000, y = 213.789, z = 0.000 }, level = 1 },
{ config_id = 2021, monster_id = 20011301, pos = { x = -36.000, y = 60.342, z = -20.857 }, rot = { x = 0.000, y = 266.474, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360002, pos = { x = -29.786, y = 60.147, z = -21.533 }, rot = { x = 0.000, y = 269.515, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2002, gadget_id = 70350002, pos = { x = -10.190, y = 53.880, z = -46.573 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70350002, pos = { x = -47.412, y = 58.370, z = -31.652 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70900049, pos = { x = -34.481, y = 60.147, z = -15.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2008, gadget_id = 70900049, pos = { x = -34.344, y = 60.147, z = -26.473 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2009, gadget_id = 70900049, pos = { x = -49.869, y = 58.474, z = -21.459 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
{ config_id = 2022, shape = RegionShape.SPHERE, radius = 10, pos = { x = -43.766, y = 58.474, z = -19.621 } }
}
-- 触发器
triggers = {
{ config_id = 1002004, name = "GADGET_STATE_CHANGE_2004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2004", action = "action_EVENT_GADGET_STATE_CHANGE_2004" },
{ config_id = 1002005, name = "SELECT_OPTION_2005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2005", action = "action_EVENT_SELECT_OPTION_2005" },
{ config_id = 1002006, name = "ANY_MONSTER_DIE_2006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2006", action = "action_EVENT_ANY_MONSTER_DIE_2006" },
{ config_id = 1002010, name = "GADGET_STATE_CHANGE_2010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2010", action = "action_EVENT_GADGET_STATE_CHANGE_2010", trigger_count = 0 },
{ config_id = 1002011, name = "GADGET_STATE_CHANGE_2011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2011", action = "action_EVENT_GADGET_STATE_CHANGE_2011", trigger_count = 0 },
{ config_id = 1002012, name = "GADGET_STATE_CHANGE_2012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2012", action = "action_EVENT_GADGET_STATE_CHANGE_2012", trigger_count = 0 },
{ config_id = 1002013, name = "TIMER_EVENT_2013", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_2013", trigger_count = 0 },
{ config_id = 1002014, name = "TIMER_EVENT_2014", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_2014", trigger_count = 0 },
{ config_id = 1002015, name = "TIMER_EVENT_2015", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_2015", trigger_count = 0 },
{ config_id = 1002016, name = "VARIABLE_CHANGE_2016", event = EventType.EVENT_VARIABLE_CHANGE, source = "count", condition = "condition_EVENT_VARIABLE_CHANGE_2016", action = "action_EVENT_VARIABLE_CHANGE_2016", trigger_count = 0 },
{ config_id = 1002022, name = "ENTER_REGION_2022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2022", action = "action_EVENT_ENTER_REGION_2022" }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2007, 2008, 2009 },
regions = { 2022 },
triggers = { "GADGET_STATE_CHANGE_2004", "SELECT_OPTION_2005", "ANY_MONSTER_DIE_2006", "GADGET_STATE_CHANGE_2010", "GADGET_STATE_CHANGE_2011", "GADGET_STATE_CHANGE_2012", "TIMER_EVENT_2013", "TIMER_EVENT_2014", "TIMER_EVENT_2015", "VARIABLE_CHANGE_2016", "ENTER_REGION_2022" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2017, 2018, 2019, 2020, 2021 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2004(context, evt)
if 2001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201055002, 2001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2005(context, evt)
-- 判断是gadgetid 2001 option_id 7
if 2001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2005(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 201055002 指定config2001物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201055002, 2001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20105500201") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 将configid为 2007 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2008 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2009 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2010(context, evt)
if 2007 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2010(context, evt)
-- 延迟7秒后,向groupId为201055002的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055002, "time1", 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2011(context, evt)
if 2008 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2011(context, evt)
-- 延迟7秒后,向groupId为201055002的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055002, "time2", 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
if 2009 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
-- 延迟7秒后,向groupId为201055002的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055002, "time3", 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2013(context, evt)
-- 将configid为 2007 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2014(context, evt)
-- 将configid为 2008 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2015(context, evt)
-- 将configid为 2009 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2016(context, evt)
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055002, "time1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055002, "time2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055002, "time3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2960-21持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-29, y=60, z=-21}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 1,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2022(context, evt)
if evt.param1 ~= 2022 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_2022(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201055002, 2)
return 0
end

View File

@@ -0,0 +1,653 @@
-- 基础信息
local base_info = {
group_id = 201055003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3004, monster_id = 20010601, pos = { x = -47.835, y = 50.425, z = -86.411 }, rot = { x = 0.000, y = 346.915, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3005, monster_id = 20010604, pos = { x = -56.431, y = 50.110, z = -83.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1027 } },
{ config_id = 3006, monster_id = 20010601, pos = { x = -66.687, y = 50.445, z = -85.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3027, monster_id = 20010601, pos = { x = -47.872, y = 50.417, z = -86.127 }, rot = { x = 0.000, y = 321.133, z = 0.000 }, level = 1 },
{ config_id = 3028, monster_id = 20011304, pos = { x = -56.546, y = 50.110, z = -82.852 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6105 } },
{ config_id = 3029, monster_id = 20010601, pos = { x = -66.733, y = 50.443, z = -85.653 }, rot = { x = 0.000, y = 13.625, z = 0.000 }, level = 1 },
{ config_id = 3030, monster_id = 20010501, pos = { x = -48.511, y = 49.841, z = -82.476 }, rot = { x = 0.000, y = 325.542, z = 0.000 }, level = 1 },
{ config_id = 3031, monster_id = 20010501, pos = { x = -65.944, y = 49.841, z = -81.949 }, rot = { x = 0.000, y = 16.006, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70710197, pos = { x = -56.530, y = 64.100, z = -107.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3003, gadget_id = 70350002, pos = { x = -37.972, y = 48.103, z = -76.672 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70350004, pos = { x = -77.021, y = 49.044, z = -76.732 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70350004, pos = { x = -56.592, y = 59.233, z = -87.084 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3010, gadget_id = 70360002, pos = { x = -1.375, y = 53.762, z = -49.223 }, rot = { x = 0.000, y = 271.849, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70360002, pos = { x = -1.638, y = 53.762, z = -73.361 }, rot = { x = 0.000, y = 269.199, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70350003, pos = { x = 2.873, y = 53.641, z = -55.760 }, rot = { x = 0.000, y = 90.730, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70350003, pos = { x = 2.793, y = 53.736, z = -74.955 }, rot = { x = 0.000, y = 90.730, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70710197, pos = { x = -56.530, y = 64.100, z = -107.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3018, gadget_id = 70710197, pos = { x = -56.530, y = 64.100, z = -107.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3019, gadget_id = 70710197, pos = { x = -56.530, y = 64.100, z = -107.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 }
}
-- 区域
regions = {
{ config_id = 3002, shape = RegionShape.SPHERE, radius = 10, pos = { x = -46.891, y = 53.762, z = -53.344 } },
{ config_id = 3016, shape = RegionShape.CUBIC, size = { x = 10.000, y = 20.000, z = 15.000 }, pos = { x = 19.690, y = 53.763, z = -74.633 } },
{ config_id = 3034, shape = RegionShape.SPHERE, radius = 15, pos = { x = -64.640, y = 48.832, z = -77.572 } },
{ config_id = 3035, shape = RegionShape.SPHERE, radius = 5, pos = { x = -0.111, y = 53.839, z = -73.053 } },
{ config_id = 3038, shape = RegionShape.SPHERE, radius = 8, pos = { x = -48.432, y = 57.002, z = -40.745 } }
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "ENTER_REGION_3002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3002", action = "action_EVENT_ENTER_REGION_3002" },
{ config_id = 1003007, name = "ANY_MONSTER_DIE_3007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3007", action = "action_EVENT_ANY_MONSTER_DIE_3007", trigger_count = 3 },
{ config_id = 1003015, name = "QUEST_FINISH_3015", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_3015", action = "action_EVENT_QUEST_FINISH_3015" },
{ config_id = 1003016, name = "ENTER_REGION_3016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3016", action = "action_EVENT_ENTER_REGION_3016" },
{ config_id = 1003020, name = "TIMER_EVENT_3020", event = EventType.EVENT_TIMER_EVENT, source = "start2", condition = "", action = "action_EVENT_TIMER_EVENT_3020" },
{ config_id = 1003021, name = "TIMER_EVENT_3021", event = EventType.EVENT_TIMER_EVENT, source = "start3", condition = "", action = "action_EVENT_TIMER_EVENT_3021" },
{ config_id = 1003022, name = "TIMER_EVENT_3022", event = EventType.EVENT_TIMER_EVENT, source = "start4", condition = "", action = "action_EVENT_TIMER_EVENT_3022" },
{ config_id = 1003023, name = "TIMER_EVENT_3023", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_3023", trigger_count = 0 },
{ config_id = 1003024, name = "TIMER_EVENT_3024", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_3024", trigger_count = 0 },
{ config_id = 1003025, name = "TIMER_EVENT_3025", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_3025", trigger_count = 0 },
{ config_id = 1003026, name = "TIMER_EVENT_3026", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_3026", trigger_count = 0 },
{ config_id = 1003032, name = "VARIABLE_CHANGE_3032", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_3032", action = "action_EVENT_VARIABLE_CHANGE_3032" },
{ config_id = 1003033, name = "VARIABLE_CHANGE_3033", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_3033", action = "action_EVENT_VARIABLE_CHANGE_3033" },
{ config_id = 1003034, name = "ENTER_REGION_3034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3034", action = "action_EVENT_ENTER_REGION_3034" },
{ config_id = 1003035, name = "ENTER_REGION_3035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3035", action = "action_EVENT_ENTER_REGION_3035" },
{ config_id = 1003036, name = "PLATFORM_REACH_POINT_3036", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_3036", action = "action_EVENT_PLATFORM_REACH_POINT_3036", trigger_count = 0 },
{ config_id = 1003037, name = "PLATFORM_REACH_POINT_3037", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_3037", action = "action_EVENT_PLATFORM_REACH_POINT_3037", trigger_count = 0 },
{ config_id = 1003038, name = "ENTER_REGION_3038", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3038", action = "action_EVENT_ENTER_REGION_3038" }
}
-- 变量
variables = {
{ config_id = 1, name = "wave", value = 0, no_refresh = false },
{ config_id = 2, name = "die", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3004, 3005, 3006 },
gadgets = { 3003, 3008, 3009, 3010, 3011, 3012, 3013 },
regions = { 3002, 3016, 3034, 3035, 3038 },
triggers = { "ENTER_REGION_3002", "ANY_MONSTER_DIE_3007", "QUEST_FINISH_3015", "ENTER_REGION_3016", "TIMER_EVENT_3020", "TIMER_EVENT_3021", "TIMER_EVENT_3022", "TIMER_EVENT_3023", "TIMER_EVENT_3024", "TIMER_EVENT_3025", "TIMER_EVENT_3026", "VARIABLE_CHANGE_3032", "VARIABLE_CHANGE_3033", "ENTER_REGION_3034", "ENTER_REGION_3035", "PLATFORM_REACH_POINT_3036", "PLATFORM_REACH_POINT_3037", "ENTER_REGION_3038" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3002(context, evt)
if evt.param1 ~= 3002 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_3002(context, evt)
-- 调用提示id为 10550101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10550101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 触发镜头注目,注目位置为坐标(-5159-64持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=-51, y=59, z=-64}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 针对当前group内变量名为 "wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_3015(context, evt)
--检查ID为1101210的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1101210 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_3015(context, evt)
-- 将configid为 3010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 5)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 6)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3016(context, evt)
if evt.param1 ~= 3016 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_3016(context, evt)
-- 调用提示id为 10550201 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10550201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3020(context, evt)
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time2", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 创建id为3017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3021(context, evt)
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time3", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 创建id为3018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3022(context, evt)
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time4", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 创建id为3019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3023(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201055003, EntityType.GADGET, 3001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time1", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3024(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201055003, EntityType.GADGET, 3017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time2", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3025(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201055003, EntityType.GADGET, 3018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time3", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3026(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201055003, EntityType.GADGET, 3019 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time4", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3032(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为1
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3032(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3027, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3028, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3029, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3030, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3031, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3033(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为2
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3033(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 5)
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
return -1
end
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "start2")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "start3")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "start4")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "time1")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "time2")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "time3")
-- 取消group中对应名称的TimerEvent
ScriptLib.CancelGroupTimerEvent(context, 201055003, "time4")
-- 停止移动平台
ScriptLib.StopPlatform(context, 3001)
-- 停止移动平台
ScriptLib.StopPlatform(context, 3017)
-- 停止移动平台
ScriptLib.StopPlatform(context, 3018)
-- 停止移动平台
ScriptLib.StopPlatform(context, 3019)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3034(context, evt)
if evt.param1 ~= 3034 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_3034(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3035(context, evt)
if evt.param1 ~= 3035 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_3035(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20105500301") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_3036(context, evt)
-- 判断是gadgetid 为 3001的移动平台是否到达了2 的路线中的 1 点
if (3001 ~= evt.param1) and (3017 ~= evt.param1) and (3018 ~= evt.param1) and (3019 ~= evt.param1) then
return false
end
if 2 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_3036(context, evt)
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_3037(context, evt)
-- 判断是gadgetid 为 3001的移动平台是否到达了2 的路线中的 2 点
if (3001 ~= evt.param1) and (3017 ~= evt.param1) and (3018 ~= evt.param1) and (3019 ~= evt.param1) then
return false
end
if 2 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_3037(context, evt)
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3038(context, evt)
if evt.param1 ~= 3038 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_3038(context, evt)
-- 创建id为3001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟80秒后,向groupId为201055003的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "time1", 80) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟20秒后,向groupId为201055003的对象,请求一次调用,并将string参数"start2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "start2", 20) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟40秒后,向groupId为201055003的对象,请求一次调用,并将string参数"start3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "start3", 40) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟60秒后,向groupId为201055003的对象,请求一次调用,并将string参数"start4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055003, "start4", 60) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 4)
return 0
end

View File

@@ -0,0 +1,440 @@
-- 基础信息
local base_info = {
group_id = 201055004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360100, pos = { x = 17.185, y = 55.992, z = -99.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4002, gadget_id = 70360100, pos = { x = 17.200, y = 55.174, z = -99.462 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4003, gadget_id = 70360100, pos = { x = 17.232, y = 54.354, z = -99.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4004, gadget_id = 70360100, pos = { x = 28.830, y = 55.936, z = -70.052 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4006, gadget_id = 70350002, pos = { x = 68.515, y = 47.756, z = -64.534 }, rot = { x = 0.000, y = 90.716, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4007, gadget_id = 70360100, pos = { x = 28.828, y = 55.012, z = -70.052 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4008, gadget_id = 70360016, pos = { x = 41.406, y = 58.857, z = -52.485 }, rot = { x = 272.281, y = 115.000, z = 244.758 }, level = 1 },
{ config_id = 4009, gadget_id = 70360019, pos = { x = 34.577, y = 60.208, z = -51.294 }, rot = { x = 0.000, y = 90.000, z = 274.542 }, level = 1 },
{ config_id = 4010, gadget_id = 70360100, pos = { x = 28.841, y = 54.146, z = -70.052 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4011, gadget_id = 70360020, pos = { x = 43.647, y = 57.396, z = -52.786 }, rot = { x = 30.000, y = 90.000, z = 268.399 }, level = 1 },
{ config_id = 4012, gadget_id = 70350006, pos = { x = 48.038, y = 52.449, z = -56.825 }, rot = { x = 0.000, y = 270.374, z = 180.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70360100, pos = { x = 36.165, y = 55.369, z = -52.648 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 6, start_route = false },
{ config_id = 4015, gadget_id = 70360100, pos = { x = 36.156, y = 57.222, z = -52.648 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 3, start_route = false },
{ config_id = 4016, gadget_id = 70360100, pos = { x = 36.187, y = 58.803, z = -52.648 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 4, start_route = false },
{ config_id = 4017, gadget_id = 70360100, pos = { x = 40.011, y = 56.068, z = -99.620 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4018, gadget_id = 70360100, pos = { x = 39.984, y = 55.183, z = -99.352 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4019, gadget_id = 70360100, pos = { x = 39.979, y = 54.347, z = -99.195 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, start_route = false },
{ config_id = 4020, gadget_id = 70710197, pos = { x = 2.100, y = 58.180, z = -90.024 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 4022, gadget_id = 70360100, pos = { x = 21.837, y = 55.221, z = -52.648 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 6, start_route = false },
{ config_id = 4024, gadget_id = 70710197, pos = { x = -2.880, y = 58.180, z = -97.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 4026, gadget_id = 70710197, pos = { x = -2.880, y = 58.180, z = -97.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 4031, gadget_id = 70710197, pos = { x = -2.880, y = 58.180, z = -97.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 4032, gadget_id = 70360100, pos = { x = 21.829, y = 57.073, z = -52.536 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 5, start_route = false },
{ config_id = 4033, gadget_id = 70360100, pos = { x = 21.860, y = 58.654, z = -52.543 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 20, state = GadgetState.GearStart, route_id = 6, start_route = false },
{ config_id = 4034, gadget_id = 70360016, pos = { x = 38.196, y = 59.942, z = -52.569 }, rot = { x = 272.281, y = 115.000, z = 244.758 }, level = 1 },
{ config_id = 4035, gadget_id = 70360020, pos = { x = 43.647, y = 57.396, z = -52.786 }, rot = { x = 30.000, y = 90.000, z = 268.399 }, level = 1 },
{ config_id = 4036, gadget_id = 70710197, pos = { x = 56.794, y = 64.100, z = -51.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false }
}
-- 区域
regions = {
{ config_id = 4013, shape = RegionShape.SPHERE, radius = 10, pos = { x = 55.448, y = 52.840, z = -67.831 } },
{ config_id = 4021, shape = RegionShape.CUBIC, size = { x = 10.000, y = 20.000, z = 20.000 }, pos = { x = 10.773, y = 53.762, z = -73.324 } },
{ config_id = 4037, shape = RegionShape.SPHERE, radius = 10, pos = { x = 56.291, y = 47.852, z = -55.961 } }
}
-- 触发器
triggers = {
{ config_id = 1004005, name = "GADGET_STATE_CHANGE_4005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4005", action = "action_EVENT_GADGET_STATE_CHANGE_4005" },
{ config_id = 1004013, name = "ENTER_REGION_4013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4013", action = "action_EVENT_ENTER_REGION_4013" },
{ config_id = 1004021, name = "ENTER_REGION_4021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4021", action = "action_EVENT_ENTER_REGION_4021" },
{ config_id = 1004023, name = "TIMER_EVENT_4023", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans2start", condition = "", action = "action_EVENT_TIMER_EVENT_4023", trigger_count = 0 },
{ config_id = 1004025, name = "TIMER_EVENT_4025", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans2", condition = "", action = "action_EVENT_TIMER_EVENT_4025", trigger_count = 0 },
{ config_id = 1004027, name = "TIMER_EVENT_4027", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans3start", condition = "", action = "action_EVENT_TIMER_EVENT_4027", trigger_count = 0 },
{ config_id = 1004028, name = "TIMER_EVENT_4028", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans3", condition = "", action = "action_EVENT_TIMER_EVENT_4028", trigger_count = 0 },
{ config_id = 1004029, name = "TIMER_EVENT_4029", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans4start", condition = "", action = "action_EVENT_TIMER_EVENT_4029", trigger_count = 0 },
{ config_id = 1004030, name = "TIMER_EVENT_4030", event = EventType.EVENT_TIMER_EVENT, source = "timeTrans4", condition = "", action = "action_EVENT_TIMER_EVENT_4030", trigger_count = 0 },
{ config_id = 1004037, name = "ENTER_REGION_4037", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4037", action = "action_EVENT_ENTER_REGION_4037" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4004, 4006, 4007, 4008, 4009, 4010, 4011, 4012, 4014, 4015, 4016, 4017, 4018, 4019, 4022, 4032, 4033, 4034, 4035, 4036 },
regions = { 4013, 4021, 4037 },
triggers = { "GADGET_STATE_CHANGE_4005", "ENTER_REGION_4013", "ENTER_REGION_4021", "TIMER_EVENT_4023", "TIMER_EVENT_4025", "TIMER_EVENT_4027", "TIMER_EVENT_4028", "TIMER_EVENT_4029", "TIMER_EVENT_4030", "ENTER_REGION_4037" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
if 4011 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
-- 将configid为 4006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20105500401") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 7)
-- 将configid为 4014 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4014, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4015 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4015, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4016 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4016, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4022 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4022, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4032 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4032, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 4033 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4033, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目注目位置为坐标3658-52持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=36, y=58, z=-52}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 4015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 4016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 4032) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 4033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4013(context, evt)
if evt.param1 ~= 4013 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_4013(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 201055006, 7)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201055006, 6)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4021(context, evt)
if evt.param1 ~= 4021 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_4021(context, evt)
-- 触发镜头注目注目位置为坐标1657-96持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=16, y=57, z=-96}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 创建id为4020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟15秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans2start" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans2start", 15) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟30秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans3start" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans3start", 30) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans4start" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans4start", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4023(context, evt)
-- 创建id为4024的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans2", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4025(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为4024的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans2", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4027(context, evt)
-- 创建id为4026的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans3", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4028(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为4026的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans3", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4029(context, evt)
-- 创建id为4031的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4031 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans4", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4030(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4031 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为4031的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4031 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟45秒后,向groupId为201055004的对象,请求一次调用,并将string参数"timeTrans4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055004, "timeTrans4", 45) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4037(context, evt)
if evt.param1 ~= 4037 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_4037(context, evt)
-- 触发镜头注目注目位置为坐标4357-52持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=43, y=57, z=-52}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 1,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end

View File

@@ -0,0 +1,392 @@
-- 基础信息
local base_info = {
group_id = 201055005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 24010101, pos = { x = 97.536, y = 47.940, z = -69.710 }, rot = { x = 0.000, y = 279.087, z = 0.000 }, level = 1, disableWander = true, affix = { 1021 }, pose_id = 101 },
{ config_id = 5002, monster_id = 24010101, pos = { x = 97.900, y = 47.932, z = -58.790 }, rot = { x = 0.000, y = 234.432, z = 0.000 }, level = 1, disableWander = true, affix = { 1021 }, pose_id = 101 },
{ config_id = 5007, monster_id = 24010101, pos = { x = 85.469, y = 47.852, z = -49.096 }, rot = { x = 2.335, y = 184.014, z = 4.028 }, level = 1, affix = { 1007, 1021 }, pose_id = 100 },
{ config_id = 5008, monster_id = 24010101, pos = { x = 85.354, y = 47.852, z = -79.495 }, rot = { x = 0.000, y = 351.534, z = 0.000 }, level = 1, affix = { 1007, 1021 }, pose_id = 100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5005, gadget_id = 70350004, pos = { x = 98.406, y = 48.317, z = -45.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70350004, pos = { x = 97.917, y = 48.262, z = -84.040 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5010, gadget_id = 70950010, pos = { x = 68.234, y = 47.852, z = -64.104 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 5011, gadget_id = 70710198, pos = { x = 88.624, y = 48.310, z = -67.939 }, rot = { x = 355.903, y = 332.454, z = 357.789 }, level = 1 },
{ config_id = 5012, gadget_id = 70710199, pos = { x = 91.004, y = 48.480, z = -72.039 }, rot = { x = 0.000, y = 252.913, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70710200, pos = { x = 82.645, y = 48.360, z = -74.348 }, rot = { x = 0.000, y = 68.303, z = 0.000 }, level = 1 },
{ config_id = 5014, gadget_id = 70710201, pos = { x = 95.060, y = 48.470, z = -57.640 }, rot = { x = 2.314, y = 11.545, z = 2.222 }, level = 1 },
{ config_id = 5018, gadget_id = 70710199, pos = { x = 78.430, y = 48.276, z = -56.760 }, rot = { x = 0.000, y = 237.267, z = 0.000 }, level = 1 },
{ config_id = 5019, gadget_id = 70710200, pos = { x = 103.080, y = 48.260, z = -59.860 }, rot = { x = 0.000, y = 312.588, z = 0.000 }, level = 1 },
{ config_id = 5021, gadget_id = 70211021, pos = { x = 97.619, y = 47.940, z = -70.049 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 11, drop_tag = "战斗高级璃月", isOneoff = true, persistent = true },
{ config_id = 5023, gadget_id = 70900201, pos = { x = 101.476, y = 49.239, z = -44.006 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5024, shape = RegionShape.SPHERE, radius = 5, pos = { x = 98.263, y = 47.774, z = -50.338 } }
}
-- 触发器
triggers = {
{ config_id = 1005003, name = "CHALLENGE_SUCCESS_5003", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "100", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_5003" },
{ config_id = 1005004, name = "MONSTER_BATTLE_5004", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_5004", action = "action_EVENT_MONSTER_BATTLE_5004" },
{ config_id = 1005009, name = "TIMER_EVENT_5009", event = EventType.EVENT_TIMER_EVENT, source = "createTime", condition = "", action = "action_EVENT_TIMER_EVENT_5009" },
{ config_id = 1005015, name = "TIMER_EVENT_5015", event = EventType.EVENT_TIMER_EVENT, source = "timeEnd", condition = "", action = "action_EVENT_TIMER_EVENT_5015" },
{ config_id = 1005016, name = "TIMER_EVENT_5016", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_5016" },
{ config_id = 1005017, name = "TIMER_EVENT_5017", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_5017" },
{ config_id = 1005020, name = "CHALLENGE_FAIL_5020", event = EventType.EVENT_CHALLENGE_FAIL, source = "100", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5020" },
{ config_id = 1005022, name = "QUEST_FINISH_5022", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_5022", action = "action_EVENT_QUEST_FINISH_5022" },
{ config_id = 1005024, name = "ENTER_REGION_5024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5024", action = "action_EVENT_ENTER_REGION_5024" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5001, 5002 },
gadgets = { 5005, 5006, 5010 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_5003", "MONSTER_BATTLE_5004", "TIMER_EVENT_5009", "TIMER_EVENT_5015", "TIMER_EVENT_5016", "TIMER_EVENT_5017", "CHALLENGE_FAIL_5020", "QUEST_FINISH_5022" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5021 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 5007, 5008 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 5023 },
regions = { 5024 },
triggers = { "ENTER_REGION_5024" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_5003(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20105500501") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将configid为 5005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201055005, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201055005, 4)
-- 创建id为5011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5012的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201055005, EntityType.GADGET, 5010 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_5004(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_5004(context, evt)
-- 调用提示id为 10550301 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10550301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建编号为100该挑战的识别id),挑战内容为56的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 100, 56, 60, 0, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 延迟30秒后,向groupId为201055005的对象,请求一次调用,并将string参数"createTime" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055005, "createTime", 30) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟12秒后,向groupId为201055005的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055005, "time1", 12) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟33秒后,向groupId为201055005的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055005, "time3", 33) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟50秒后,向groupId为201055005的对象,请求一次调用,并将string参数"timeEnd" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201055005, "timeEnd", 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 通知groupid为201055005中,configid为5001的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 5001, 201055005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为201055005中,configid为5002的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 5002, 201055005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5009(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5015(context, evt)
-- 终止识别id为100的挑战并判定成功
ScriptLib.StopChallenge(context, 100, 1)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5016(context, evt)
-- 调用提示id为 10550303 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10550303) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5017(context, evt)
-- 调用提示id为 10550307 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10550307) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5020(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055005, "createTime") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055005, "timeEnd") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055005, "time1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 201055005, "time3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201055005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_5022(context, evt)
--检查ID为1101208的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1101208 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_5022(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201055005, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5024(context, evt)
if evt.param1 ~= 5024 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_5024(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 201055006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70900201, pos = { x = -49.401, y = 61.569, z = -1.901 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70900201, pos = { x = -29.717, y = 61.500, z = -21.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70900201, pos = { x = -46.087, y = 55.902, z = -48.948 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70900201, pos = { x = -60.112, y = 50.023, z = -76.845 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70900201, pos = { x = -1.573, y = 54.848, z = -73.345 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6006, gadget_id = 70900201, pos = { x = 59.582, y = 50.376, z = -64.741 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70900201, pos = { x = 43.613, y = 57.477, z = -53.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 6004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 6005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 6006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 6007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,162 @@
-- 基础信息
local base_info = {
group_id = 201055007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7004, monster_id = 20011201, pos = { x = -19.680, y = 48.832, z = -89.968 }, rot = { x = 0.000, y = 276.429, z = 0.000 }, level = 1 },
{ config_id = 7005, monster_id = 20011201, pos = { x = -19.697, y = 48.832, z = -87.212 }, rot = { x = 0.000, y = 271.430, z = 0.000 }, level = 1 },
{ config_id = 7006, monster_id = 20011301, pos = { x = -18.606, y = 48.832, z = -88.561 }, rot = { x = 0.000, y = 270.741, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70211001, pos = { x = -30.572, y = 53.813, z = -48.631 }, rot = { x = 0.000, y = 267.497, z = 0.000 }, level = 11, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true },
{ config_id = 7002, gadget_id = 70211102, pos = { x = -15.845, y = 48.578, z = -88.293 }, rot = { x = 0.000, y = 269.425, z = 0.000 }, level = 11, drop_tag = "解谜低级璃月", isOneoff = true, persistent = true },
{ config_id = 7007, gadget_id = 70211011, pos = { x = 19.692, y = 50.996, z = -96.166 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 11, drop_tag = "战斗中级璃月", isOneoff = true, persistent = true },
{ config_id = 7008, gadget_id = 70220014, pos = { x = -38.610, y = 54.755, z = 8.779 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7009, gadget_id = 70220014, pos = { x = -37.812, y = 54.918, z = 7.409 }, rot = { x = 15.151, y = 57.165, z = 80.426 }, level = 1 },
{ config_id = 7010, gadget_id = 70220014, pos = { x = -48.591, y = 54.968, z = 11.360 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7011, gadget_id = 70220014, pos = { x = -47.435, y = 54.927, z = 12.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7012, gadget_id = 70220014, pos = { x = -48.580, y = 54.962, z = 12.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7013, gadget_id = 70220013, pos = { x = -47.858, y = 54.897, z = 9.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7014, gadget_id = 70220013, pos = { x = -37.326, y = 53.546, z = -43.487 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7015, gadget_id = 70220014, pos = { x = -39.001, y = 53.648, z = -43.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7016, gadget_id = 70220014, pos = { x = -38.945, y = 53.555, z = -44.186 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7017, gadget_id = 70220013, pos = { x = -75.326, y = 53.766, z = -69.356 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7018, gadget_id = 70220014, pos = { x = -75.402, y = 53.766, z = -67.828 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7019, gadget_id = 70220014, pos = { x = -73.747, y = 53.779, z = -69.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7021, gadget_id = 70220013, pos = { x = -29.235, y = 48.902, z = -71.391 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7023, gadget_id = 70220014, pos = { x = -15.513, y = 48.657, z = -84.435 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7024, gadget_id = 70220014, pos = { x = -15.277, y = 48.604, z = -85.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7025, gadget_id = 70220036, pos = { x = -28.500, y = 50.943, z = -88.128 }, rot = { x = 358.208, y = 326.364, z = 343.304 }, level = 1 },
{ config_id = 7026, gadget_id = 70220014, pos = { x = -42.371, y = 48.837, z = -63.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7027, gadget_id = 70220014, pos = { x = -39.157, y = 48.830, z = -65.591 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7028, gadget_id = 70220014, pos = { x = -40.181, y = 48.762, z = -66.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7029, gadget_id = 70220013, pos = { x = -40.823, y = 48.830, z = -64.619 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7030, gadget_id = 70220014, pos = { x = -80.295, y = 48.400, z = -75.389 }, rot = { x = 0.000, y = 0.000, z = 264.254 }, level = 1 },
{ config_id = 7031, gadget_id = 70220014, pos = { x = -81.367, y = 48.400, z = -76.086 }, rot = { x = 276.054, y = 180.000, z = 180.000 }, level = 1 },
{ config_id = 7032, gadget_id = 70220013, pos = { x = 56.847, y = 49.391, z = -47.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7033, gadget_id = 70220014, pos = { x = 58.351, y = 49.386, z = -47.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7034, gadget_id = 70220013, pos = { x = 59.059, y = 49.345, z = -49.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7035, gadget_id = 70220014, pos = { x = 60.590, y = 49.309, z = -47.704 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7003, shape = RegionShape.SPHERE, radius = 5, pos = { x = -17.915, y = 48.832, z = -88.619 } }
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "ENTER_REGION_7003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7003", action = "action_EVENT_ENTER_REGION_7003" },
{ config_id = 1007036, name = "ANY_MONSTER_DIE_7036", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7036", action = "action_EVENT_ANY_MONSTER_DIE_7036" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7007, 7008, 7009, 7010, 7011, 7012, 7013, 7014, 7015, 7016, 7017, 7018, 7019, 7021, 7023, 7024, 7025, 7026, 7027, 7028, 7029, 7030, 7031, 7032, 7033, 7034, 7035 },
regions = { 7003 },
triggers = { "ENTER_REGION_7003", "ANY_MONSTER_DIE_7036" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7004, 7005, 7006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7003(context, evt)
if evt.param1 ~= 7003 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_7003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201055007, 2)
-- 将configid为 7002 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7036(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7036(context, evt)
-- 将configid为 7002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,907 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -56.42391,
"y": 59.09775,
"z": -112.9685
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 8.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": true
},
"10": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -78.69705,
"y": 63.26495,
"z": 24.0054
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 40.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": true
},
"11": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -101.0842,
"y": 54.47247,
"z": -69.79355
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 40.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": true
},
"12": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -2.856156,
"y": 50.94046,
"z": 85.89388
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 40.0,
"useHeight": true,
"width": 150.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": true
},
"13": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 64.18674,
"y": 50.95122,
"z": 51.10801
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.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": true
},
"14": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -32.12982,
"y": 15.29246,
"z": 42.61732
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 60.0,
"useHeight": true,
"width": 100.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": true
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -58.76065,
"y": 58.79701,
"z": -116.5616
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 40.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": true
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -17.74907,
"y": 56.93722,
"z": -120.1561
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 40.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": true
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 55.80878,
"y": 58.12329,
"z": -128.479
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 100.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": true
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 30.4108,
"y": 66.42896,
"z": -24.7238
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 40.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": true
},
"6": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 62.22939,
"y": 67.5561,
"z": -19.82431
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 40.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": true
},
"7": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 70.44527,
"y": 63.23341,
"z": -110.0757
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 40.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": true
},
"8": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 82.47742,
"y": 63.63947,
"z": -20.3522
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 10.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": true
},
"9": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 89.34082,
"y": 50.92041,
"z": 13.07271
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 40.0,
"useHeight": true,
"width": 150.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": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 102.7504,
"y": 47.93954,
"z": -69.9653
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -31.86461,
"y": 53.76244,
"z": -56.29281
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 5.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 8.525692,
"y": 53.80259,
"z": -75.55295
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 10.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 71.43069,
"y": 49.58866,
"z": -50.75461
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 50.0,
"y": 10.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}