添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -3550.7, z = -3396.7 },
size = { x = 7497.4, z = 7497.4 },
born_pos = { x = 51.683, y = 9.150, z = 37.470 },
born_rot = { x = 0.000, y = 91.003, z = 0.000 },
die_y = -100,
city_id = 1,
vision_anchor = { x = -3550.7, z = -3396.7 }
}
-- 所有的区块
blocks = { 20010 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3550.7, z = -3396.7 }, max = { x = 3946.7, z = 4100.7 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,507 @@
{
"sceneId": 20010,
"routes": [
{
"localId": 2,
"name": "Monster76",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 56.41251,
"y": 22.4869766,
"z": 41.2566338
},
"waitTime": 0.5,
"targetVelocity": 2.0
},
{
"pos": {
"x": 56.18094,
"y": 22.48161,
"z": 50.8179626
},
"waitTime": 0.5,
"targetVelocity": 2.0
}
]
},
{
"localId": 3,
"name": "Monster80",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 527.652,
"y": -37.38371,
"z": 76.77782
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 522.113464,
"y": -37.38375,
"z": 76.42726
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 519.6284,
"y": -37.3836479,
"z": 77.32248
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "Monster81",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 510.871216,
"y": -37.4266739,
"z": 71.58596
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 514.4614,
"y": -37.3836327,
"z": 72.50529
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 516.2136,
"y": -37.38327,
"z": 75.74285
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 517.526062,
"y": -37.3834648,
"z": 78.95453
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 5,
"name": "Monster45",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 9.262674,
"y": 13.0162754,
"z": 39.4420471
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 7.608531,
"y": 13.2495251,
"z": 45.6188049
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 3.28875661,
"y": 13.1995239,
"z": 47.54278
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 6,
"name": "Monster46",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 14.9059191,
"y": 13.0165529,
"z": 40.041626
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 15.2387905,
"y": 13.2495174,
"z": 45.9873619
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 20.690876,
"y": 13.1995163,
"z": 48.5149841
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 20010007,
"name": "Platform_20010007",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 410.0321,
"y": -35.51099,
"z": 70.58734
},
"waitTime": 2.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 420.346558,
"y": -31.51267,
"z": 84.3683243
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 426.295532,
"y": -25.6996918,
"z": 97.18816
},
"waitTime": 3.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 20010009,
"name": "Platform_20010009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 380.4,
"y": -41.2,
"z": 25.0
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 380.4,
"y": -35.6,
"z": 25.0
},
"waitTime": 2.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20010010,
"name": "Platform_87",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 466.9137,
"y": -32.59916,
"z": 14.20345
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 466.9137,
"y": -44.6,
"z": 14.20345
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20010011,
"name": "Route_20010011",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 160.0,
"y": -36.0,
"z": 55.0
},
"waitTime": 0.5,
"targetVelocity": 3.0
},
{
"pos": {
"x": 160.0,
"y": -23.0,
"z": 55.0
},
"waitTime": 0.5,
"targetVelocity": 3.0
}
]
},
{
"localId": 20010012,
"name": "Route_20010012",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 160.0,
"y": -10.0,
"z": 10.0
},
"waitTime": 0.5,
"targetVelocity": 3.0
},
{
"pos": {
"x": 160.0,
"y": -23.0,
"z": 10.0
},
"waitTime": 0.5,
"targetVelocity": 3.0
}
]
},
{
"localId": 20010013,
"name": "Route_20010013",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 300.0,
"y": -40.0,
"z": 55.0
},
"waitTime": 0.5,
"targetVelocity": 4.0
},
{
"pos": {
"x": 300.0,
"y": -8.0,
"z": 55.0
},
"waitTime": 0.5,
"targetVelocity": 4.0
}
]
},
{
"localId": 20010014,
"name": "Route_20010014",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 300.0,
"y": -8.0,
"z": 9.2
},
"waitTime": 0.5,
"targetVelocity": 4.0
},
{
"pos": {
"x": 300.0,
"y": -40.0,
"z": 9.2
},
"waitTime": 0.5,
"targetVelocity": 4.0
}
]
},
{
"localId": 20010016,
"name": "Route_20010016",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 232.0,
"y": 5.0,
"z": 44.0
},
"waitTime": 0.5,
"targetVelocity": 2.5
},
{
"pos": {
"x": 232.0,
"y": 5.0,
"z": 22.0
},
"waitTime": 0.5,
"targetVelocity": 2.5
}
]
},
{
"localId": 20010017,
"name": "Route_20010017",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 230.0,
"y": 5.0,
"z": 22.0
},
"waitTime": 0.5,
"targetVelocity": 2.5
},
{
"pos": {
"x": 230.0,
"y": 5.0,
"z": 44.0
},
"waitTime": 0.5,
"targetVelocity": 2.5
}
]
},
{
"localId": 20010018,
"name": "Platform_6005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 380.4,
"y": -40.9,
"z": 18.7
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 380.4,
"y": -35.6,
"z": 18.7
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20010019,
"name": "Platform_6006",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 380.4046,
"y": -41.42537,
"z": 15.884
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 380.4046,
"y": -35.64902,
"z": 15.884
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
}
]
}
@@ -0,0 +1,14 @@
-- 所有的group
groups = {
{ id = 220010001, refresh_id = 1, pos = { x = 55.554, y = 9.516, z = 37.066 } },
{ id = 220010005, refresh_id = 1, pos = { x = 367.863, y = -35.553, z = 22.271 } },
{ id = 220010006, refresh_id = 1, pos = { x = 390.696, y = -40.043, z = 30.921 } },
{ id = 220010007, refresh_id = 1001, pos = { x = 418.353, y = -34.483, z = 32.847 } },
{ id = 220010008, refresh_id = 1002, pos = { x = 428.203, y = -34.310, z = 25.252 } },
{ id = 220010009, refresh_id = 1, pos = { x = 362.814, y = -35.554, z = 19.640 } },
{ id = 220010010, refresh_id = 1, pos = { x = 429.134, y = -34.483, z = 25.476 } },
{ id = 220010011, refresh_id = 1001, pos = { x = 417.199, y = -34.484, z = 32.288 } },
{ id = 220010012, refresh_id = 1001, pos = { x = 367.983, y = -34.574, z = 19.309 } },
{ id = 220010013, refresh_id = 1, pos = { x = 56.181, y = 9.516, z = 49.185 } },
{ id = 220010901, pos = { x = 398.993, y = -37.184, z = 3.063 } }
}
@@ -0,0 +1,14 @@
dummy_points = {
["Q1010108Lisa"] = { pos = { x = 470.540, y = -43.816, z = 14.612 }, rot = { x = 0.000, y = 93.030, z = 0.000 } },
["Q1010108Paimon"] = { pos = { x = 472.759, y = -43.816, z = 13.669 }, rot = { x = 0.000, y = 304.870, z = 0.000 } },
["Q1010108Player"] = { pos = { x = 472.833, y = -43.816, z = 15.884 }, rot = { x = 0.000, y = 233.260, z = 0.000 } },
["Q1010112Abyss"] = { pos = { x = 469.214, y = -31.300, z = 11.238 }, rot = { x = 0.000, y = 246.240, z = 0.000 } },
["Q1010112Lisa"] = { pos = { x = 466.173, y = -31.570, z = 9.682 }, rot = { x = 0.000, y = 66.237, z = 0.000 } },
["Q1010112Paimon"] = { pos = { x = 468.206, y = -31.570, z = 8.086 }, rot = { x = 0.000, y = 18.843, z = 0.000 } },
["Q1010112Player"] = { pos = { x = 466.966, y = -31.570, z = 8.056 }, rot = { x = 0.000, y = 38.762, z = 0.000 } },
["Q10101Abyss2"] = { pos = { x = 393.249, y = -50.823, z = 22.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["test1011102jack"] = { pos = { x = 414.311, y = -37.143, z = 5.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["test1011102stanly"] = { pos = { x = 414.258, y = -37.144, z = 7.294 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["test1011106jack"] = { pos = { x = 467.586, y = -31.570, z = 10.677 }, rot = { x = 0.000, y = 216.330, z = 0.000 } },
["test1011106stanly"] = { pos = { x = 468.344, y = -31.570, z = 9.773 }, rot = { x = 0.000, y = 241.100, z = 0.000 } }
}
@@ -0,0 +1,249 @@
-- 基础信息
local base_info = {
group_id = 220010001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350002, pos = { x = 28.452, y = 12.839, z = 48.155 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70360021, pos = { x = 160.793, y = -10.000, z = 10.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010012 },
{ config_id = 1003, gadget_id = 70360021, pos = { x = 160.278, y = -36.000, z = 55.183 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010011 },
{ config_id = 1004, gadget_id = 70360021, pos = { x = 299.617, y = -8.000, z = 9.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010014 },
{ config_id = 1005, gadget_id = 70360021, pos = { x = 299.617, y = -40.000, z = 54.618 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010013 },
{ config_id = 1007, gadget_id = 70690006, pos = { x = 107.564, y = 5.201, z = 62.076 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1008, gadget_id = 70690006, pos = { x = 105.446, y = -9.735, z = 14.090 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70690006, pos = { x = 231.236, y = -33.904, z = 54.578 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70690006, pos = { x = 233.413, y = -24.319, z = 7.330 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70360021, pos = { x = 299.617, y = -1.997, z = 9.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010014 },
{ config_id = 1012, gadget_id = 70360021, pos = { x = 299.617, y = -45.951, z = 54.620 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010013 },
{ config_id = 1013, gadget_id = 70360021, pos = { x = 299.617, y = 3.695, z = 9.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010014 },
{ config_id = 1014, gadget_id = 70360021, pos = { x = 299.617, y = -51.644, z = 54.589 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010013 },
{ config_id = 1015, gadget_id = 70360021, pos = { x = 232.000, y = 5.000, z = 44.000 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010016 },
{ config_id = 1016, gadget_id = 70360021, pos = { x = 230.000, y = 5.000, z = 22.000 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 20010017 },
{ config_id = 1017, gadget_id = 70690006, pos = { x = 208.559, y = -42.653, z = -22.072 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70690006, pos = { x = 204.498, y = -28.260, z = -70.075 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70900201, pos = { x = 192.809, y = -32.513, z = 31.582 }, rot = { x = 0.000, y = 86.335, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 70900201, pos = { x = 365.738, y = -33.580, z = 32.243 }, rot = { x = 0.000, y = 86.335, z = 0.000 }, level = 1 },
{ config_id = 1021, gadget_id = 70690006, pos = { x = 352.569, y = -70.000, z = 32.793 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 56, shape = RegionShape.CUBIC, size = { x = 20.000, y = 15.000, z = 30.000 }, pos = { x = 66.072, y = 11.319, z = 41.488 } },
{ config_id = 64, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 20.000 }, pos = { x = 196.194, y = -29.973, z = 29.252 } }
}
-- 触发器
triggers = {
{ config_id = 1000056, name = "ENTER_REGION_56", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_56", action = "action_EVENT_ENTER_REGION_56", forbid_guest = false },
{ config_id = 1000058, name = "TIMER_EVENT_58", event = EventType.EVENT_TIMER_EVENT, source = "W1_1", condition = "", action = "action_EVENT_TIMER_EVENT_58", trigger_count = 0 },
{ config_id = 1000059, name = "TIMER_EVENT_59", event = EventType.EVENT_TIMER_EVENT, source = "W1_2", condition = "", action = "action_EVENT_TIMER_EVENT_59", trigger_count = 0 },
{ config_id = 1000064, name = "ENTER_REGION_64", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_64", action = "action_EVENT_ENTER_REGION_64", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1004, 1005, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1021 },
regions = { 56 },
triggers = { "ENTER_REGION_56", "TIMER_EVENT_58", "TIMER_EVENT_59" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1019 },
regions = { 64 },
triggers = { "ENTER_REGION_64" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_56(context, evt)
if evt.param1 ~= 56 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_56(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220010001, 2)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_58(context, evt)
-- 创建id为1007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1008} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为1009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1010} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 改变指定group组220010001中, configid为139的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010001, 139, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220010001中, configid为140的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010001, 140, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:220010001的对象,请求一次调用,并将string参数:"W1_2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220010001, "W1_2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_59(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1007} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为1008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1009} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为1010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟2秒后,向groupId为:220010001的对象,请求一次调用,并将string参数:"W1_1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220010001, "W1_1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组220010001中, configid为139的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010001, 139, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220010001中, configid为140的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010001, 140, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_64(context, evt)
if evt.param1 ~= 64 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_64(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1019} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为1020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,185 @@
-- 基础信息
local base_info = {
group_id = 220010005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34, gadget_id = 70360016, pos = { x = 370.506, y = -30.630, z = 14.343 }, rot = { x = 0.000, y = 99.056, z = 90.000 }, level = 1 },
{ config_id = 35, gadget_id = 70360016, pos = { x = 374.135, y = -28.498, z = 17.175 }, rot = { x = 0.291, y = 3.282, z = 89.545 }, level = 1 },
{ config_id = 36, gadget_id = 70360016, pos = { x = 374.150, y = -28.595, z = 20.406 }, rot = { x = 0.291, y = 3.282, z = 89.545 }, level = 1 },
{ config_id = 39, gadget_id = 70360016, pos = { x = 374.504, y = -27.577, z = 28.223 }, rot = { x = 0.291, y = 3.282, z = 89.545 }, level = 1 },
{ config_id = 40, gadget_id = 70360019, pos = { x = 374.160, y = -27.480, z = 32.794 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 41, gadget_id = 70350003, pos = { x = 374.945, y = -34.435, z = 32.912 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 189, gadget_id = 70900202, pos = { x = 386.865, y = -30.543, z = 16.003 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 199, gadget_id = 70900202, pos = { x = 368.074, y = -33.676, z = 18.730 }, rot = { x = 0.000, y = 86.335, z = 0.000 }, level = 1 },
{ config_id = 5202, gadget_id = 70360016, pos = { x = 374.191, y = -28.636, z = 24.053 }, rot = { x = 0.291, y = 3.282, z = 89.545 }, level = 1 },
{ config_id = 5205, gadget_id = 70360016, pos = { x = 373.624, y = -30.326, z = 14.802 }, rot = { x = 0.000, y = 99.056, z = 90.000 }, level = 1 },
{ config_id = 5206, gadget_id = 70360016, pos = { x = 370.524, y = -34.579, z = 15.844 }, rot = { x = 359.688, y = 59.978, z = 0.744 }, level = 1 },
{ config_id = 5208, gadget_id = 70360016, pos = { x = 368.086, y = -34.600, z = 18.739 }, rot = { x = 0.495, y = 59.978, z = 0.278 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 47, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 14.000 }, pos = { x = 361.093, y = -32.176, z = 32.864 } },
{ config_id = 5001, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 15.000 }, pos = { x = 365.735, y = -34.484, z = 31.784 } }
}
-- 触发器
triggers = {
{ config_id = 1000008, name = "GADGET_STATE_CHANGE_8", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8", action = "action_EVENT_GADGET_STATE_CHANGE_8" },
{ config_id = 1000047, name = "ENTER_REGION_47", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_47", action = "action_EVENT_ENTER_REGION_47", forbid_guest = false },
{ config_id = 1005001, name = "ENTER_REGION_5001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5001", action = "action_EVENT_ENTER_REGION_5001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 34, 35, 36, 39, 40, 41, 5202, 5205, 5206, 5208 },
regions = { 47, 5001 },
triggers = { "GADGET_STATE_CHANGE_8", "ENTER_REGION_47", "ENTER_REGION_5001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8(context, evt)
if 40 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8(context, evt)
-- 将configid为 41 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 41, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010005, monsters = {}, gadgets = {199} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为189的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 189 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_47(context, evt)
if evt.param1 ~= 47 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_47(context, evt)
-- 触发镜头注目,注目位置为坐标(374,-27,32),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=374, y=-27, z=32}
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
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010001, monsters = {}, gadgets = {1020} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为199的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 199 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220010001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5001(context, evt)
if evt.param1 ~= 5001 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_5001(context, evt)
-- 调用提示id为 200050502 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200050502) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 220010006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42, gadget_id = 70380001, pos = { x = 380.439, y = -41.200, z = 24.964 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20010009, start_route = false },
{ config_id = 43, gadget_id = 70350004, pos = { x = 380.510, y = -34.464, z = 15.704 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 44, gadget_id = 70350004, pos = { x = 388.765, y = -34.554, z = 3.352 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 46, gadget_id = 70360016, pos = { x = 388.445, y = -31.898, z = 28.067 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 47, gadget_id = 70360016, pos = { x = 388.660, y = -32.047, z = 25.179 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 48, gadget_id = 70360019, pos = { x = 386.834, y = -31.136, z = 15.619 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50, gadget_id = 70360016, pos = { x = 386.992, y = -27.484, z = 0.366 }, rot = { x = 86.480, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51, gadget_id = 70360016, pos = { x = 384.682, y = -27.348, z = 0.333 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53, gadget_id = 70360019, pos = { x = 388.580, y = -27.753, z = 3.424 }, rot = { x = 90.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 54, gadget_id = 70900023, pos = { x = 379.210, y = -42.168, z = 26.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 84, gadget_id = 70360016, pos = { x = 377.309, y = -32.391, z = 7.232 }, rot = { x = 0.000, y = 180.000, z = 90.000 }, level = 1 },
{ config_id = 85, gadget_id = 70360016, pos = { x = 377.246, y = -29.808, z = 1.000 }, rot = { x = 0.000, y = 180.000, z = 90.000 }, level = 1 },
{ config_id = 89, gadget_id = 70360016, pos = { x = 388.330, y = -32.030, z = 21.507 }, rot = { x = 270.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 92, gadget_id = 70360016, pos = { x = 388.681, y = -32.466, z = 18.238 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 96, gadget_id = 70900023, pos = { x = 389.031, y = -42.168, z = 26.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97, gadget_id = 70900023, pos = { x = 384.131, y = -42.168, z = 26.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98, gadget_id = 70900023, pos = { x = 379.210, y = -42.168, z = 21.385 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 99, gadget_id = 70900023, pos = { x = 384.080, y = -42.168, z = 21.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100, gadget_id = 70900023, pos = { x = 389.074, y = -42.168, z = 21.440 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101, gadget_id = 70900023, pos = { x = 388.119, y = -42.168, z = 16.452 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 102, gadget_id = 70900023, pos = { x = 381.339, y = -42.168, z = 16.492 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 103, gadget_id = 70900023, pos = { x = 381.339, y = -42.168, z = 11.541 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 104, gadget_id = 70900023, pos = { x = 381.339, y = -42.168, z = 6.572 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 105, gadget_id = 70900023, pos = { x = 381.339, y = -42.168, z = 1.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 106, gadget_id = 70900023, pos = { x = 386.346, y = -42.168, z = 1.401 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 107, gadget_id = 70900023, pos = { x = 391.359, y = -42.168, z = 1.401 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 108, gadget_id = 70900023, pos = { x = 396.343, y = -42.168, z = 1.401 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 109, gadget_id = 70900023, pos = { x = 395.984, y = -42.168, z = 6.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 110, gadget_id = 70900023, pos = { x = 391.177, y = -42.168, z = 6.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 111, gadget_id = 70900023, pos = { x = 386.270, y = -42.168, z = 6.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 112, gadget_id = 70900023, pos = { x = 386.215, y = -42.168, z = 11.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 113, gadget_id = 70900023, pos = { x = 378.538, y = -42.168, z = 1.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 114, gadget_id = 70900023, pos = { x = 378.549, y = -42.168, z = 6.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70900023, pos = { x = 378.600, y = -42.168, z = 11.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 116, gadget_id = 70900023, pos = { x = 378.601, y = -42.168, z = 16.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 190, gadget_id = 70900202, pos = { x = 387.502, y = -27.302, z = 3.460 }, rot = { x = 0.000, y = 90.080, z = 0.000 }, level = 1 },
{ config_id = 6001, gadget_id = 70360016, pos = { x = 376.546, y = -32.776, z = 3.890 }, rot = { x = 0.000, y = 180.000, z = 90.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70360016, pos = { x = 377.293, y = -32.642, z = 0.978 }, rot = { x = 0.000, y = 180.000, z = 90.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70360016, pos = { x = 377.404, y = -27.276, z = 0.979 }, rot = { x = 0.000, y = 180.000, z = 90.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70360016, pos = { x = 381.224, y = -27.325, z = 0.336 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70380001, pos = { x = 380.420, y = -40.869, z = 18.729 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20010018, start_route = false },
{ config_id = 6012, gadget_id = 70380001, pos = { x = 393.486, y = -35.628, z = 3.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000009, name = "GADGET_STATE_CHANGE_9", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9", action = "action_EVENT_GADGET_STATE_CHANGE_9" },
{ config_id = 1000010, name = "GADGET_STATE_CHANGE_10", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10", action = "action_EVENT_GADGET_STATE_CHANGE_10" },
{ config_id = 1000049, name = "CLIENT_EXECUTE_49", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "condition_EVENT_CLIENT_EXECUTE_49", action = "action_EVENT_CLIENT_EXECUTE_49" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 42, 43, 44, 46, 47, 48, 50, 51, 53, 54, 84, 85, 89, 92, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 6001, 6002, 6003, 6004, 6005, 6012 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_9", "GADGET_STATE_CHANGE_10", "CLIENT_EXECUTE_49" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9(context, evt)
if 48 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9(context, evt)
-- 将configid为 43 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010005, monsters = {}, gadgets = {189} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为190的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 190 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 42) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 6005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10(context, evt)
if 53 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10(context, evt)
-- 将configid为 44 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010006, monsters = {}, gadgets = {190} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为0的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_49(context, evt)
if 95 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_49(context, evt)
-- 将configid为 44 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 220010007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2, monster_id = 20011101, pos = { x = 455.323, y = -31.373, z = 21.341 }, rot = { x = 0.000, y = 267.523, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4, monster_id = 20011001, pos = { x = 453.177, y = -31.373, z = 22.582 }, rot = { x = 0.000, y = 264.813, z = 0.000 }, level = 1 },
{ config_id = 6, monster_id = 20011001, pos = { x = 453.320, y = -31.373, z = 19.389 }, rot = { x = 0.000, y = 263.085, z = 0.000 }, level = 1 },
{ config_id = 7, monster_id = 20011001, pos = { x = 453.600, y = -31.373, z = 6.421 }, rot = { x = 0.000, y = 268.317, z = 0.000 }, level = 1 },
{ config_id = 8, monster_id = 20011001, pos = { x = 453.638, y = -31.373, z = 9.109 }, rot = { x = 0.000, y = 275.024, z = 0.000 }, level = 1 },
{ config_id = 16, monster_id = 20011101, pos = { x = 455.325, y = -31.546, z = 7.595 }, rot = { x = 0.000, y = 271.206, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000013, name = "MONSTER_BATTLE_13", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_13", action = "action_EVENT_MONSTER_BATTLE_13" },
{ config_id = 1000014, name = "MONSTER_BATTLE_14", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_14", action = "action_EVENT_MONSTER_BATTLE_14" },
{ config_id = 1000063, name = "ANY_MONSTER_DIE_63", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_63", action = "action_EVENT_ANY_MONSTER_DIE_63" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2, 16 },
gadgets = { },
regions = { },
triggers = { "MONSTER_BATTLE_13", "MONSTER_BATTLE_14", "ANY_MONSTER_DIE_63" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_13(context, evt)
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_13(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_14(context, evt)
if 16 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_14(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_63(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220010007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_63(context, evt)
-- 改变指定group组220010010中, configid为76的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 76, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010010, 76, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,280 @@
-- 基础信息
local base_info = {
group_id = 220010008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 22010201, pos = { x = 460.661, y = -31.547, z = 14.172 }, rot = { x = 0.000, y = 85.223, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 }, isElite = true, special_name_id = 10002 },
{ config_id = 30, monster_id = 20010601, pos = { x = 452.956, y = -31.551, z = 13.723 }, rot = { x = 0.000, y = 267.731, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 192, gadget_id = 70900201, pos = { x = 467.013, y = -30.524, z = 17.975 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000020, name = "ANY_MONSTER_DIE_20", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20", action = "action_EVENT_ANY_MONSTER_DIE_20" },
{ config_id = 1000027, name = "CHALLENGE_SUCCESS_27", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_27" },
{ config_id = 1000028, name = "CHALLENGE_FAIL_28", event = EventType.EVENT_CHALLENGE_FAIL, source = "2", condition = "", action = "action_EVENT_CHALLENGE_FAIL_28" },
{ config_id = 1000037, name = "ANY_MONSTER_LIVE_37", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_37", action = "action_EVENT_ANY_MONSTER_LIVE_37" },
{ config_id = 1000038, name = "SPECIFIC_MONSTER_HP_CHANGE_38", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "1", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_38", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_38" },
{ config_id = 1000041, name = "ANY_MONSTER_DIE_41", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_41", action = "action_EVENT_ANY_MONSTER_DIE_41", trigger_count = 0 },
{ config_id = 1008001, name = "QUEST_START_8001", event = EventType.EVENT_QUEST_START, source = "1010116", condition = "", action = "action_EVENT_QUEST_START_8001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_8001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 1 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_20", "CHALLENGE_SUCCESS_27", "CHALLENGE_FAIL_28", "ANY_MONSTER_LIVE_37", "SPECIFIC_MONSTER_HP_CHANGE_38", "ANY_MONSTER_DIE_41" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 改变指定group组220010009中, configid为71的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010009, 71, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200100081") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_27(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2200100081") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220010008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组220010010中, configid为88的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 88, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010010, 88, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(463,-30,12),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=463, y=-30, z=12}
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
-- 改变指定group组220010010中, configid为76的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 76, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创建id为192的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 192 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_28(context, evt)
-- 改变指定group组220010010中, configid为76的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 76, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010010, 76, {12}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220010008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_37(context, evt)
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_37(context, evt)
-- 创建编号为2(该挑战的识别id),挑战内容为173的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 2, 173, 90, 220010008, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "LisaKey1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_38(context, evt)
--[[判断指定configid的怪物的血量小于%70时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 70 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_38(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 30, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220010008中,configid为:30的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 30, 220010008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_41(context, evt)
if 30 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_41(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 30, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220010008中,configid为:30的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 30, 220010008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_8001(context, evt)
-- 改变指定group组220010009中, configid为71的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010009, 71, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220010009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 69, gadget_id = 70211101, pos = { x = 205.543, y = -34.054, z = 32.254 }, rot = { x = 0.000, y = 271.905, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 70, gadget_id = 70211001, pos = { x = 373.326, y = -34.641, z = 19.610 }, rot = { x = 0.000, y = 270.458, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 71, gadget_id = 70211021, pos = { x = 476.138, y = -43.278, z = 14.651 }, rot = { x = 0.000, y = 272.126, z = 0.000 }, level = 6, chest_drop_id = 18000700, drop_count = 1, state = GadgetState.ChestLocked, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009001, name = "GADGET_STATE_CHANGE_9001", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9001", action = "action_EVENT_GADGET_STATE_CHANGE_9001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 69, 70, 71 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_9001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9001(context, evt)
if 71 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "22001000901") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,204 @@
-- 基础信息
local base_info = {
group_id = 220010010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 76, gadget_id = 70360002, pos = { x = 446.074, y = -31.697, z = 14.662 }, rot = { x = 0.000, y = 272.035, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 87, gadget_id = 70380001, pos = { x = 466.914, y = -32.599, z = 14.203 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20010010, start_route = false },
{ config_id = 88, gadget_id = 70360002, pos = { x = 467.013, y = -31.570, z = 17.975 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 10001, gadget_id = 70310016, pos = { x = 466.627, y = -32.128, z = 14.177 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000025, name = "SELECT_OPTION_25", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_25", action = "action_EVENT_SELECT_OPTION_25", trigger_count = 0, forbid_guest = false },
{ config_id = 1000026, name = "SELECT_OPTION_26", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_26", action = "action_EVENT_SELECT_OPTION_26", trigger_count = 0, forbid_guest = false },
{ config_id = 1000046, name = "SELECT_OPTION_46", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_46", action = "action_EVENT_SELECT_OPTION_46", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 76, 87, 88, 10001 },
regions = { },
triggers = { "SELECT_OPTION_25", "SELECT_OPTION_26", "SELECT_OPTION_46" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_25(context, evt)
-- 判断是gadgetid 76 option_id 7
if 76 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_25(context, evt)
-- 删除指定group 220010010 ;指定config76;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220010010, 76, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220010011, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 76 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 76, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_26(context, evt)
-- 判断是gadgetid 76 option_id 12
if 76 ~= evt.param1 then
return false
end
if 12 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_26(context, evt)
-- 删除指定group 220010010 ;指定config76;物件身上指定option12
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220010010, 76, 12) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 76 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 76, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220010008, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46(context, evt)
-- 判断是gadgetid 88 option_id 7
if 88 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220010010, EntityType.GADGET, 10001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 删除指定group 220010010 ;指定config88;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220010010, 88, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 88 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 88, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 87) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010008, monsters = {}, gadgets = {192} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
@@ -0,0 +1,269 @@
-- 基础信息
local base_info = {
group_id = 220010011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5, monster_id = 20010801, pos = { x = 451.872, y = -31.373, z = 18.272 }, rot = { x = 0.000, y = 257.253, z = 0.000 }, level = 1 },
{ config_id = 9, monster_id = 20010801, pos = { x = 452.064, y = -31.373, z = 16.346 }, rot = { x = 0.000, y = 266.540, z = 0.000 }, level = 1 },
{ config_id = 10, monster_id = 20011001, pos = { x = 451.606, y = -31.373, z = 16.432 }, rot = { x = 0.000, y = 264.859, z = 0.000 }, level = 1 },
{ config_id = 11, monster_id = 20011001, pos = { x = 451.589, y = -31.373, z = 18.099 }, rot = { x = 0.000, y = 260.341, z = 0.000 }, level = 1 },
{ config_id = 12, monster_id = 20011001, pos = { x = 451.860, y = -31.373, z = 12.474 }, rot = { x = 0.000, y = 271.090, z = 0.000 }, level = 1 },
{ config_id = 13, monster_id = 20010801, pos = { x = 452.030, y = -31.373, z = 10.103 }, rot = { x = 0.000, y = 257.553, z = 0.000 }, level = 1 },
{ config_id = 14, monster_id = 20011001, pos = { x = 452.294, y = -31.373, z = 10.387 }, rot = { x = 0.000, y = 265.042, z = 0.000 }, level = 1 },
{ config_id = 17, monster_id = 20011101, pos = { x = 451.694, y = -31.547, z = 14.198 }, rot = { x = 0.000, y = 273.142, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 20, monster_id = 20010901, pos = { x = 452.158, y = -31.547, z = 14.333 }, rot = { x = 0.000, y = 265.045, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 21, monster_id = 20010801, pos = { x = 452.212, y = -31.546, z = 12.155 }, rot = { x = 0.000, y = 266.695, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70900205, pos = { x = 456.897, y = -32.644, z = 11.742 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000029, name = "CHALLENGE_SUCCESS_29", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_29" },
{ config_id = 1000030, name = "CHALLENGE_FAIL_30", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_30" },
{ config_id = 1000031, name = "ANY_MONSTER_DIE_31", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31", action = "action_EVENT_ANY_MONSTER_DIE_31" },
{ config_id = 1000032, name = "ANY_MONSTER_DIE_32", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32", action = "action_EVENT_ANY_MONSTER_DIE_32" },
{ config_id = 1000033, name = "ANY_MONSTER_DIE_33", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33", action = "action_EVENT_ANY_MONSTER_DIE_33" },
{ config_id = 1000034, name = "ANY_MONSTER_DIE_34", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_34", action = "action_EVENT_ANY_MONSTER_DIE_34" },
{ config_id = 1000035, name = "ANY_MONSTER_DIE_35", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_35", action = "action_EVENT_ANY_MONSTER_DIE_35" },
{ config_id = 1000036, name = "ANY_MONSTER_LIVE_36", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_36", action = "action_EVENT_ANY_MONSTER_LIVE_36" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 9, 11, 14, 17, 21 },
gadgets = { 11001 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_29", "CHALLENGE_FAIL_30", "ANY_MONSTER_DIE_31", "ANY_MONSTER_DIE_32", "ANY_MONSTER_DIE_33", "ANY_MONSTER_DIE_34", "ANY_MONSTER_DIE_35", "ANY_MONSTER_LIVE_36" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_29(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010010, 76, {12}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220010010中, configid为76的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 76, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目,注目位置为坐标(446,-30,14),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=446, y=-30, z=14}
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
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_30(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010010, 76, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220010010中, configid为76的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220010010, 76, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220010011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31(context, evt)
if 11 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 10, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33(context, evt)
if 17 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 20, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_34(context, evt)
if 21 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_34(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 12, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_35(context, evt)
if 14 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_35(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 13, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_36(context, evt)
if 17 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_36(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为172的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 172, 220010011, 10, 30, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 220010012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 24, monster_id = 20011001, pos = { x = 415.270, y = -37.144, z = 8.960 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 25, monster_id = 20011001, pos = { x = 413.222, y = -37.144, z = 4.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 27, monster_id = 20011001, pos = { x = 415.126, y = -37.144, z = 4.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 28, monster_id = 20011001, pos = { x = 413.269, y = -37.144, z = 8.960 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 86, gadget_id = 70360002, pos = { x = 410.378, y = -37.140, z = 6.390 }, rot = { x = 0.000, y = 270.458, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 191, gadget_id = 70900201, pos = { x = 422.607, y = -26.845, z = 14.478 }, rot = { x = 0.000, y = 89.872, z = 0.000 }, level = 1 },
{ config_id = 12002, gadget_id = 70690008, pos = { x = 410.442, y = -47.309, z = 6.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 43, shape = RegionShape.SPHERE, radius = 5, pos = { x = 410.500, y = -36.862, z = 6.181 } },
{ config_id = 48, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 14.000 }, pos = { x = 397.695, y = -32.164, z = 2.721 } },
{ config_id = 65, shape = RegionShape.SPHERE, radius = 5, pos = { x = 425.495, y = -28.667, z = 13.720 } }
}
-- 触发器
triggers = {
{ config_id = 1000043, name = "ENTER_REGION_43", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43", action = "action_EVENT_ENTER_REGION_43", forbid_guest = false },
{ config_id = 1000044, name = "ANY_MONSTER_DIE_44", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_44", action = "action_EVENT_ANY_MONSTER_DIE_44" },
{ config_id = 1000048, name = "ENTER_REGION_48", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_48", action = "action_EVENT_ENTER_REGION_48", forbid_guest = false },
{ config_id = 1000065, name = "ENTER_REGION_65", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65", action = "action_EVENT_ENTER_REGION_65", forbid_guest = false },
{ config_id = 1012001, name = "SELECT_OPTION_12001", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12001", action = "action_EVENT_SELECT_OPTION_12001" }
}
-- 变量
variables = {
{ config_id = 1, name = "KillNum", value = 1, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 86 },
regions = { 43, 48, 65 },
triggers = { "ENTER_REGION_43", "ENTER_REGION_48", "ENTER_REGION_65", "SELECT_OPTION_12001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 24, 25, 27, 28 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_44" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 12002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_43(context, evt)
if evt.param1 ~= 43 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_43(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220010012, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_44(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220010012) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_44(context, evt)
-- 将configid为 86 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 86, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220010012, 86, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_48(context, evt)
if evt.param1 ~= 48 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_48(context, evt)
-- 创建id为191的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 191 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65(context, evt)
if evt.param1 ~= 65 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_65(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220010012, monsters = {}, gadgets = {191} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_12001(context, evt)
-- 判断是gadgetid 86 option_id 2
if 86 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_12001(context, evt)
-- 删除指定group 220010012 ;指定config86;物件身上指定option2
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220010012, 86, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 86 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 86, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为12002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 12002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,106 @@
-- 基础信息
local base_info = {
group_id = 220010013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 147, gadget_id = 70220014, pos = { x = 55.411, y = 9.516, z = 67.169 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 148, gadget_id = 70220026, pos = { x = 61.715, y = 9.516, z = 48.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 149, gadget_id = 70220013, pos = { x = 55.129, y = 9.516, z = 55.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 150, gadget_id = 70220013, pos = { x = 48.555, y = 9.516, z = 63.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 151, gadget_id = 70220013, pos = { x = 53.339, y = 9.516, z = 56.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 152, gadget_id = 70220014, pos = { x = 61.287, y = 9.516, z = 51.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 153, gadget_id = 70220014, pos = { x = 61.287, y = 9.516, z = 50.865 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 155, gadget_id = 70211101, pos = { x = 52.087, y = 9.480, z = 67.448 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 156, gadget_id = 70220014, pos = { x = 204.812, y = -33.975, z = 20.909 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 157, gadget_id = 70220013, pos = { x = 206.908, y = -33.975, z = 21.927 }, rot = { x = 0.000, y = 328.372, z = 0.000 }, level = 1 },
{ config_id = 158, gadget_id = 70220013, pos = { x = 207.003, y = -33.975, z = 19.769 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 160, gadget_id = 70220014, pos = { x = 204.916, y = -34.014, z = 19.221 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 161, gadget_id = 70220026, pos = { x = 369.660, y = -34.603, z = 24.187 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 162, gadget_id = 70220026, pos = { x = 371.395, y = -34.625, z = 24.310 }, rot = { x = 0.000, y = 42.380, z = 0.000 }, level = 1 },
{ config_id = 166, gadget_id = 70220013, pos = { x = 386.511, y = -34.484, z = 34.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 171, gadget_id = 70220013, pos = { x = 406.845, y = -37.064, z = 18.038 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 172, gadget_id = 70220014, pos = { x = 408.102, y = -36.824, z = 19.447 }, rot = { x = 0.000, y = 53.962, z = 270.000 }, level = 1 },
{ config_id = 173, gadget_id = 70220014, pos = { x = 409.322, y = -36.711, z = 19.143 }, rot = { x = 0.000, y = 333.747, z = 270.000 }, level = 1 },
{ config_id = 174, gadget_id = 70220013, pos = { x = 420.544, y = -28.382, z = 19.417 }, rot = { x = 0.000, y = 328.372, z = 0.000 }, level = 1 },
{ config_id = 175, gadget_id = 70220026, pos = { x = 419.001, y = -28.383, z = 21.806 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 176, gadget_id = 70220013, pos = { x = 447.975, y = -31.591, z = 34.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 177, gadget_id = 70220013, pos = { x = 446.538, y = -31.571, z = 29.983 }, rot = { x = 0.000, y = 324.106, z = 0.000 }, level = 1 },
{ config_id = 178, gadget_id = 70220013, pos = { x = 445.428, y = -31.571, z = 34.149 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 179, gadget_id = 70220013, pos = { x = 453.351, y = -31.571, z = -5.692 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 180, gadget_id = 70220013, pos = { x = 451.075, y = -31.571, z = -5.715 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 181, gadget_id = 70220013, pos = { x = 443.594, y = -31.571, z = -5.429 }, rot = { x = 0.000, y = 44.265, z = 0.000 }, level = 1 },
{ config_id = 182, gadget_id = 70220014, pos = { x = 456.001, y = -31.571, z = -5.860 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 183, gadget_id = 70220014, pos = { x = 454.868, y = -31.571, z = -5.867 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 184, gadget_id = 70220013, pos = { x = 436.530, y = -31.441, z = 19.662 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 185, gadget_id = 70220014, pos = { x = 436.953, y = -31.542, z = 9.293 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 186, gadget_id = 70220014, pos = { x = 436.006, y = -31.571, z = 9.688 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 195, gadget_id = 70220026, pos = { x = 365.720, y = -34.502, z = 37.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 196, gadget_id = 70220026, pos = { x = 365.220, y = -34.512, z = 36.492 }, rot = { x = 0.000, y = 313.763, z = 0.000 }, level = 1 },
{ config_id = 197, gadget_id = 70220026, pos = { x = 366.506, y = -34.543, z = 36.714 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 198, gadget_id = 70220026, pos = { x = 367.419, y = -34.561, z = 26.925 }, 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 = { 147, 148, 149, 150, 151, 152, 153, 155, 156, 157, 158, 160, 161, 162, 166, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 195, 196, 197, 198 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220010901
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 901001, shape = RegionShape.CUBIC, size = { x = 3.100, y = 5.000, z = 9.000 }, pos = { x = 398.005, y = -32.043, z = 3.540 } }
}
-- 触发器
triggers = {
{ config_id = 1901001, name = "ENTER_REGION_901001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_901001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 901001 },
triggers = { "ENTER_REGION_901001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_901001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220010901") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
File diff suppressed because it is too large Load Diff