添加配置表

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 = -1162.1, z = -323.7 },
size = { x = 3236.1, z = 1759.9 },
born_pos = { x = 1115.102, y = 203.513, z = 356.679 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -94.05743,
city_id = 1,
vision_anchor = { x = -1162.1, z = -323.7 }
}
-- 所有的区块
blocks = { 50016 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1162.1, z = -323.7 }, max = { x = 2074.0, z = 1436.2 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,61 @@
{
"sceneId": 50016,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 92.18497,
"y": -14.6469116,
"z": 376.224182
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 88.17022,
"y": -7.37949,
"z": 369.053528
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 81.07183,
"y": 16.0,
"z": 448.009827
},
"waitTime": 5.0,
"targetVelocity": 6.0
},
{
"pos": {
"x": 81.52317,
"y": 18.0,
"z": 350.187042
},
"waitTime": 5.0,
"targetVelocity": 6.0
}
]
}
]
}
@@ -0,0 +1,45 @@
-- 所有的group
groups = {
{ id = 250016001, refresh_id = 1002, pos = { x = -53.152, y = -11.000, z = -53.086 } },
{ id = 250016002, refresh_id = 1001, pos = { x = -53.526, y = -10.680, z = -55.300 } },
{ id = 250016003, refresh_id = 1, pos = { x = -53.482, y = -11.000, z = -54.162 } },
{ id = 250016004, refresh_id = 1, pos = { x = -54.085, y = -11.000, z = -131.811 } },
{ id = 250016005, refresh_id = 1001, pos = { x = -52.556, y = -11.000, z = -131.889 } },
{ id = 250016006, refresh_id = 1001, pos = { x = -53.153, y = -11.000, z = -131.835 } },
{ id = 250016007, refresh_id = 1002, pos = { x = -52.565, y = -11.000, z = -132.062 } },
{ id = 250016008, refresh_id = 1001, pos = { x = -54.058, y = -11.000, z = -131.927 } },
{ id = 250016009, refresh_id = 1, pos = { x = -54.455, y = -11.000, z = -214.124 } },
{ id = 250016010, refresh_id = 1001, pos = { x = -52.955, y = -11.000, z = -214.108 } },
{ id = 250016011, refresh_id = 1002, pos = { x = -53.075, y = -14.293, z = -214.286 } },
{ id = 250016012, refresh_id = 1001, pos = { x = -52.643, y = -11.000, z = -214.579 } },
{ id = 250016013, refresh_id = 1, pos = { x = -131.693, y = -10.095, z = -287.080 } },
{ id = 250016014, refresh_id = 1001, pos = { x = -130.526, y = -14.340, z = -296.975 } },
{ id = 250016015, refresh_id = 1001, pos = { x = -131.086, y = -11.000, z = -296.590 } },
{ id = 250016016, refresh_id = 1001, pos = { x = -130.072, y = -13.260, z = -297.589 } },
{ id = 250016017, refresh_id = 1, pos = { x = -211.953, y = -11.000, z = -285.483 } },
{ id = 250016018, refresh_id = 1001, pos = { x = -211.649, y = -14.529, z = -291.118 } },
{ id = 250016019, refresh_id = 1001, pos = { x = -212.321, y = -11.000, z = -291.706 } },
{ id = 250016020, refresh_id = 1001, pos = { x = -210.823, y = -13.314, z = -292.900 } },
{ id = 250016021, refresh_id = 1001, pos = { x = 1117.391, y = 205.191, z = 355.359 } },
{ id = 250016022, refresh_id = 1001, pos = { x = 1324.917, y = 223.190, z = 172.595 } },
{ id = 250016023, refresh_id = 1002, pos = { x = 1497.787, y = 220.330, z = 580.443 } },
{ id = 250016024, refresh_id = 1001, pos = { x = 1139.930, y = 200.169, z = 441.357 } },
{ id = 250016025, refresh_id = 1002, pos = { x = 1570.114, y = 248.940, z = 432.436 } },
{ id = 250016026, refresh_id = 1001, pos = { x = -293.641, y = -11.000, z = -289.881 } },
{ id = 250016027, refresh_id = 1, pos = { x = -53.651, y = -11.000, z = -54.240 } },
{ id = 250016028, refresh_id = 1, pos = { x = -53.791, y = -11.000, z = -133.341 } },
{ id = 250016029, refresh_id = 1, pos = { x = -54.182, y = -11.000, z = -213.772 } },
{ id = 250016030, refresh_id = 1, pos = { x = -131.428, y = -11.000, z = -289.817 } },
{ id = 250016031, refresh_id = 1, pos = { x = -211.853, y = -11.000, z = -281.708 } },
{ id = 250016032, refresh_id = 1002, pos = { x = -21.197, y = -11.000, z = 220.777 } },
{ id = 250016033, refresh_id = 1, pos = { x = -27.705, y = -11.000, z = 128.625 } },
{ id = 250016034, refresh_id = 1, pos = { x = 99.035, y = 18.000, z = 336.498 } },
{ id = 250016035, refresh_id = 1001, pos = { x = 92.946, y = 16.000, z = 612.933 } },
{ id = 250016036, refresh_id = 1001, pos = { x = -375.718, y = 16.000, z = 733.355 } },
{ id = 250016037, refresh_id = 1, pos = { x = -554.217, y = 16.000, z = 731.356 } },
{ id = 250016038, refresh_id = 1001, pos = { x = -904.434, y = 16.756, z = 1170.360 } },
{ id = 250016039, refresh_id = 1001, pos = { x = -367.348, y = -11.000, z = -215.575 } },
{ id = 250016040, refresh_id = 1002, pos = { x = -370.789, y = -11.000, z = -214.855 } },
{ id = 250016041, refresh_id = 1001, pos = { x = 1392.501, y = 200.012, z = 871.071 } },
{ id = 250016042, refresh_id = 1001, pos = { x = 1484.596, y = 264.091, z = 750.185 } }
}
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 20011201, pos = { x = -52.561, y = -11.000, z = -49.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 1002, monster_id = 20011201, pos = { x = -50.090, y = -11.000, z = -51.131 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 1003, monster_id = 20011201, pos = { x = -50.070, y = -11.000, z = -54.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 1004, monster_id = 20011201, pos = { x = -52.674, y = -11.000, z = -56.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 1005, monster_id = 22010101, pos = { x = -48.087, y = -11.000, z = -53.127 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000003, name = "ANY_MONSTER_DIE_3", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3", action = "action_EVENT_ANY_MONSTER_DIE_3", trigger_count = 0 },
{ config_id = 1000086, name = "ANY_MONSTER_DIE_86", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_86", action = "action_EVENT_ANY_MONSTER_DIE_86", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 1001, 1002, 1003, 1004, 1005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_86" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016003, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_86(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_86(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016027, 1)
return 0
end
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8, monster_id = 21010701, pos = { x = -50.746, y = -10.680, z = -50.621 }, rot = { x = 0.000, y = 226.000, z = 0.000 }, level = 5 },
{ config_id = 9, monster_id = 21010701, pos = { x = -48.057, y = -10.680, z = -52.754 }, rot = { x = 0.000, y = 256.212, z = 0.000 }, level = 5 },
{ config_id = 10, monster_id = 21010101, pos = { x = -48.676, y = -10.680, z = -57.482 }, rot = { x = 0.000, y = 306.044, z = 0.000 }, level = 5 },
{ config_id = 11, monster_id = 21010101, pos = { x = -51.143, y = -10.680, z = -59.121 }, rot = { x = 0.000, y = 301.128, z = 0.000 }, level = 5 },
{ config_id = 13, monster_id = 21010101, pos = { x = -46.068, y = -10.680, z = -55.218 }, rot = { x = 0.000, y = 306.044, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000006, name = "ANY_MONSTER_DIE_6", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6", action = "action_EVENT_ANY_MONSTER_DIE_6", trigger_count = 0 },
{ config_id = 1000087, name = "ANY_MONSTER_DIE_87", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_87", action = "action_EVENT_ANY_MONSTER_DIE_87", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 8, 9, 10, 11, 13 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_87" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016003, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_87(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_87(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016027, 1)
return 0
end
@@ -0,0 +1,189 @@
-- 基础信息
local base_info = {
group_id = 250016003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360002, pos = { x = -53.502, y = -11.000, z = -50.499 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70360002, pos = { x = -53.324, y = -11.000, z = -58.035 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70360002, pos = { x = -53.324, y = -11.000, z = -55.670 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70360002, pos = { x = -53.324, y = -11.000, z = -58.049 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1", trigger_count = 0 },
{ config_id = 1000002, name = "SELECT_OPTION_2", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2", action = "action_EVENT_SELECT_OPTION_2", trigger_count = 0 },
{ config_id = 1000004, name = "GADGET_CREATE_4", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4", action = "action_EVENT_GADGET_CREATE_4", trigger_count = 0 },
{ config_id = 1000005, name = "SELECT_OPTION_5", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5", action = "action_EVENT_SELECT_OPTION_5", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_2", "GADGET_CREATE_4", "SELECT_OPTION_5" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016003, 3001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016001, 2)
-- 删除指定group 250016003 ;指定config3001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016003, 3001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016003, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016003, 3002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016002, 2)
-- 删除指定group 250016003 ;指定config3002;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016003, 3002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016003, 1)
return 0
end
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 250016004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360002, pos = { x = -54.104, y = -11.000, z = -124.838 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70360002, pos = { x = -53.926, y = -11.000, z = -129.415 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70360002, pos = { x = -53.926, y = -11.000, z = -134.192 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70360002, pos = { x = -53.926, y = -11.000, z = -138.885 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1000007, name = "GADGET_CREATE_7", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7", action = "action_EVENT_GADGET_CREATE_7", trigger_count = 0 },
{ config_id = 1000008, name = "SELECT_OPTION_8", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8", action = "action_EVENT_SELECT_OPTION_8", trigger_count = 0 },
{ config_id = 1000009, name = "GADGET_CREATE_9", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9", action = "action_EVENT_GADGET_CREATE_9", trigger_count = 0 },
{ config_id = 1000010, name = "SELECT_OPTION_10", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10", action = "action_EVENT_SELECT_OPTION_10", trigger_count = 0 },
{ config_id = 1000014, name = "GADGET_CREATE_14", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_14", action = "action_EVENT_GADGET_CREATE_14", trigger_count = 0 },
{ config_id = 1000015, name = "SELECT_OPTION_15", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_15", action = "action_EVENT_SELECT_OPTION_15", trigger_count = 0 },
{ config_id = 1000017, name = "GADGET_CREATE_17", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17", action = "action_EVENT_GADGET_CREATE_17", trigger_count = 0 },
{ config_id = 1000018, name = "SELECT_OPTION_18", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18", action = "action_EVENT_SELECT_OPTION_18", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14, monster_id = 20010801, pos = { x = -51.964, y = -11.000, z = -128.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 15, monster_id = 20010801, pos = { x = -49.494, y = -11.000, z = -129.934 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 16, monster_id = 20010801, pos = { x = -49.473, y = -11.000, z = -133.566 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 17, monster_id = 20010801, pos = { x = -52.077, y = -11.000, z = -135.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 18, monster_id = 21030201, pos = { x = -47.491, y = -11.000, z = -131.929 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000011, name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11", trigger_count = 0 },
{ config_id = 1000092, name = "ANY_MONSTER_DIE_92", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_92", action = "action_EVENT_ANY_MONSTER_DIE_92", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 14, 15, 16, 17, 18 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_92" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016028, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_92(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_92(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016004, 1)
return 0
end
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 19, monster_id = 20010501, pos = { x = -52.562, y = -11.000, z = -128.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 20, monster_id = 21011001, pos = { x = -40.476, y = -11.000, z = -124.482 }, rot = { x = 0.000, y = 237.852, z = 0.000 }, level = 5 },
{ config_id = 21, monster_id = 21010901, pos = { x = -40.469, y = -11.000, z = -140.099 }, rot = { x = 0.000, y = 306.097, z = 0.000 }, level = 5 },
{ config_id = 22, monster_id = 20010701, pos = { x = -52.675, y = -11.000, z = -135.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 23, monster_id = 20010601, pos = { x = -48.089, y = -11.000, z = -131.875 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000012, name = "ANY_MONSTER_DIE_12", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12", action = "action_EVENT_ANY_MONSTER_DIE_12", trigger_count = 0 },
{ config_id = 1000093, name = "ANY_MONSTER_DIE_93", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_93", action = "action_EVENT_ANY_MONSTER_DIE_93", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 19, 20, 21, 22, 23 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_93" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016004, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_93(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_93(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016028, 1)
return 0
end
@@ -0,0 +1,128 @@
-- 基础信息
local base_info = {
group_id = 250016007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 28, monster_id = 23030101, pos = { x = -47.500, y = -11.000, z = -132.102 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000013, name = "ANY_MONSTER_DIE_13", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13", action = "action_EVENT_ANY_MONSTER_DIE_13", trigger_count = 0 },
{ config_id = 1000094, name = "ANY_MONSTER_DIE_94", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_94", action = "action_EVENT_ANY_MONSTER_DIE_94", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 28 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_94" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_13" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_13(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_13(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016004, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_94(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_94(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016028, 1)
return 0
end
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 29, monster_id = 20011501, pos = { x = -48.587, y = -11.000, z = -131.979 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 },
{ config_id = 30, monster_id = 20010501, pos = { x = -48.650, y = -11.000, z = -129.767 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 },
{ config_id = 31, monster_id = 20010501, pos = { x = -49.208, y = -11.000, z = -133.988 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 },
{ config_id = 32, monster_id = 20010501, pos = { x = -46.808, y = -11.000, z = -131.997 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 },
{ config_id = 33, monster_id = 20010501, pos = { x = -50.757, y = -11.000, z = -131.927 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "ANY_MONSTER_DIE_16", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16", action = "action_EVENT_ANY_MONSTER_DIE_16", trigger_count = 0 },
{ config_id = 1000095, name = "ANY_MONSTER_DIE_95", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_95", action = "action_EVENT_ANY_MONSTER_DIE_95", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 29, 30, 31, 32, 33 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_95" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_16" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016008) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016004, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_95(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016008) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_95(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016028, 1)
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 250016009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9, gadget_id = 70360002, pos = { x = -54.475, y = -11.000, z = -209.087 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 10, gadget_id = 70360002, pos = { x = -54.297, y = -11.000, z = -214.379 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11, gadget_id = 70360002, pos = { x = -54.297, y = -11.000, z = -220.212 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12, gadget_id = 70360002, pos = { x = -54.297, y = -11.000, z = -218.011 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1000019, name = "GADGET_CREATE_19", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_19", action = "action_EVENT_GADGET_CREATE_19", trigger_count = 0 },
{ config_id = 1000020, name = "SELECT_OPTION_20", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_20", action = "action_EVENT_SELECT_OPTION_20", trigger_count = 0 },
{ config_id = 1000021, name = "GADGET_CREATE_21", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_21", action = "action_EVENT_GADGET_CREATE_21", trigger_count = 0 },
{ config_id = 1000022, name = "SELECT_OPTION_22", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_22", action = "action_EVENT_SELECT_OPTION_22", trigger_count = 0 },
{ config_id = 1000023, name = "GADGET_CREATE_23", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_23", action = "action_EVENT_GADGET_CREATE_23", trigger_count = 0 },
{ config_id = 1000024, name = "SELECT_OPTION_24", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_24", action = "action_EVENT_SELECT_OPTION_24", trigger_count = 0 },
{ config_id = 1000025, name = "GADGET_CREATE_25", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_25", action = "action_EVENT_GADGET_CREATE_25", trigger_count = 0 },
{ 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 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9, 10, 11 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 250016010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 34, monster_id = 20011401, pos = { x = -52.364, y = -11.000, z = -210.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 35, monster_id = 20011401, pos = { x = -49.893, y = -11.000, z = -212.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 36, monster_id = 20011401, pos = { x = -49.873, y = -11.000, z = -215.786 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 37, monster_id = 20011401, pos = { x = -52.477, y = -11.000, z = -217.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 38, monster_id = 20011501, pos = { x = -47.891, y = -11.000, z = -214.149 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1000027, name = "ANY_MONSTER_DIE_27", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_27", action = "action_EVENT_ANY_MONSTER_DIE_27", trigger_count = 0 },
{ config_id = 1000099, name = "ANY_MONSTER_DIE_99", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_99", action = "action_EVENT_ANY_MONSTER_DIE_99", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 34, 35, 36, 37, 38 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 250016011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39, monster_id = 21010401, pos = { x = -43.626, y = -7.793, z = -214.637 }, rot = { x = 0.000, y = 298.972, z = 0.000 }, level = 5 },
{ config_id = 40, monster_id = 21010401, pos = { x = -44.011, y = -7.793, z = -216.096 }, rot = { x = 0.000, y = 251.439, z = 0.000 }, level = 5 },
{ config_id = 41, monster_id = 21011001, pos = { x = -61.774, y = -7.793, z = -206.896 }, rot = { x = 0.000, y = 155.259, z = 0.000 }, level = 5 },
{ config_id = 42, monster_id = 21011001, pos = { x = -60.445, y = -7.793, z = -206.256 }, rot = { x = 0.000, y = 135.602, z = 0.000 }, level = 5 },
{ config_id = 43, monster_id = 21020101, pos = { x = -46.779, y = -14.293, z = -214.363 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 },
{ config_id = 47, monster_id = 21010501, pos = { x = -59.896, y = -7.793, z = -226.451 }, rot = { x = 0.000, y = 52.300, z = 0.000 }, level = 5 },
{ config_id = 48, monster_id = 21010501, pos = { x = -60.887, y = -7.793, z = -225.279 }, rot = { x = 0.000, y = 30.715, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16, gadget_id = 70220018, pos = { x = -42.678, y = -14.293, z = -216.821 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 17, gadget_id = 70220018, pos = { x = -42.677, y = -14.293, z = -214.610 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18, gadget_id = 70220018, pos = { x = -44.877, y = -14.293, z = -214.623 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19, gadget_id = 70220018, pos = { x = -44.850, y = -14.293, z = -216.753 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20, gadget_id = 70220018, pos = { x = -59.848, y = -14.293, z = -207.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 21, gadget_id = 70220018, pos = { x = -59.848, y = -14.293, z = -205.288 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 22, gadget_id = 70220018, pos = { x = -62.048, y = -14.293, z = -205.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23, gadget_id = 70220018, pos = { x = -62.020, y = -14.293, z = -207.431 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 24, gadget_id = 70220018, pos = { x = -59.417, y = -14.293, z = -227.274 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25, gadget_id = 70220018, pos = { x = -59.417, y = -14.293, z = -225.063 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 26, gadget_id = 70220018, pos = { x = -61.617, y = -14.293, z = -225.076 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27, gadget_id = 70220018, pos = { x = -61.589, y = -14.293, z = -227.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000028, name = "ANY_MONSTER_DIE_28", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_28", action = "action_EVENT_ANY_MONSTER_DIE_28", trigger_count = 0 },
{ config_id = 1000100, name = "ANY_MONSTER_DIE_100", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_100", action = "action_EVENT_ANY_MONSTER_DIE_100", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 39, 40, 41, 42, 43, 47, 48 },
gadgets = { 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 },
regions = { },
triggers = { "ANY_MONSTER_DIE_100" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_28" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_28(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_28(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016009, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016011, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_100(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016011) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_100(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016029, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016011, 2)
return 0
end
@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 250016012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 44, monster_id = 20011501, pos = { x = -52.051, y = -11.000, z = -211.061 }, rot = { x = 0.000, y = 271.593, z = 0.000 }, level = 5 },
{ config_id = 45, monster_id = 20011501, pos = { x = -48.304, y = -11.000, z = -214.381 }, rot = { x = 0.000, y = 267.255, z = 0.000 }, level = 5 },
{ config_id = 46, monster_id = 20011501, pos = { x = -52.234, y = -11.000, z = -217.982 }, rot = { x = 0.000, y = 271.985, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13, gadget_id = 70220005, pos = { x = -44.947, y = -11.000, z = -209.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14, gadget_id = 70220005, pos = { x = -44.823, y = -11.000, z = -208.672 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15, gadget_id = 70220005, pos = { x = -43.820, y = -11.000, z = -209.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000029, name = "ANY_MONSTER_DIE_29", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_29", action = "action_EVENT_ANY_MONSTER_DIE_29", trigger_count = 0 },
{ config_id = 1000101, name = "ANY_MONSTER_DIE_101", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_101", action = "action_EVENT_ANY_MONSTER_DIE_101", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 44, 45, 46 },
gadgets = { 13, 14, 15 },
regions = { },
triggers = { "ANY_MONSTER_DIE_101" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_29" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_29(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_29(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016009, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016012, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_101(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016012) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_101(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016029, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016012, 2)
return 0
end
@@ -0,0 +1,285 @@
-- 基础信息
local base_info = {
group_id = 250016013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70360002, pos = { x = -126.019, y = -10.095, z = -291.096 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70360002, pos = { x = -131.532, y = -10.095, z = -291.056 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70360002, pos = { x = -137.050, y = -10.095, z = -291.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13004, gadget_id = 70360002, pos = { x = -131.534, y = -10.095, z = -290.968 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000030, name = "GADGET_CREATE_30", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_30", action = "action_EVENT_GADGET_CREATE_30", trigger_count = 0 },
{ config_id = 1000031, name = "SELECT_OPTION_31", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_31", action = "action_EVENT_SELECT_OPTION_31", trigger_count = 0 },
{ config_id = 1000032, name = "GADGET_CREATE_32", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_32", action = "action_EVENT_GADGET_CREATE_32", trigger_count = 0 },
{ config_id = 1000033, name = "SELECT_OPTION_33", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_33", action = "action_EVENT_SELECT_OPTION_33", trigger_count = 0 },
{ config_id = 1000034, name = "GADGET_CREATE_34", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_34", action = "action_EVENT_GADGET_CREATE_34", trigger_count = 0 },
{ config_id = 1000035, name = "SELECT_OPTION_35", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_35", action = "action_EVENT_SELECT_OPTION_35", trigger_count = 0 },
{ config_id = 1000036, name = "GADGET_CREATE_36", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_36", action = "action_EVENT_GADGET_CREATE_36", trigger_count = 0 },
{ config_id = 1000037, name = "SELECT_OPTION_37", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_37", action = "action_EVENT_SELECT_OPTION_37", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001, 13002, 13003 },
regions = { },
triggers = { "GADGET_CREATE_30", "SELECT_OPTION_31", "GADGET_CREATE_32", "SELECT_OPTION_33", "GADGET_CREATE_34", "SELECT_OPTION_35" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_30(context, evt)
if 13001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_30(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016013, 13001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_31(context, evt)
if 13001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_31(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016014, 2)
-- 删除指定group 250016013 ;指定config9;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016013, 9, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016013, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_32(context, evt)
if 13002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_32(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016013, 13002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_33(context, evt)
if 13002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_33(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016015, 2)
-- 删除指定group 250016013 ;指定config13002;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016013, 13002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016013, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_34(context, evt)
if 13003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_34(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016013, 13003, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_35(context, evt)
if 13003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_35(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016016, 2)
-- 删除指定group 250016013 ;指定config13003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016013, 13003, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016013, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_36(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_36(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016004, 4003, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_37(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_37(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016008, 2)
-- 删除指定group 250016004 ;指定config4004;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016004, 4004, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016004, 1)
return 0
end
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 250016014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 49, monster_id = 21010401, pos = { x = -120.982, y = -7.840, z = -299.652 }, rot = { x = 0.000, y = 327.174, z = 0.000 }, level = 5 },
{ config_id = 50, monster_id = 21010401, pos = { x = -137.738, y = -7.840, z = -284.715 }, rot = { x = 0.000, y = 122.437, z = 0.000 }, level = 5 },
{ config_id = 51, monster_id = 21011001, pos = { x = -139.398, y = -7.840, z = -300.423 }, rot = { x = 0.000, y = 45.862, z = 0.000 }, level = 5 },
{ config_id = 52, monster_id = 21011001, pos = { x = -121.152, y = -7.840, z = -284.803 }, rot = { x = 0.000, y = 225.047, z = 0.000 }, level = 5 },
{ config_id = 53, monster_id = 20011201, pos = { x = -126.501, y = -14.340, z = -295.012 }, rot = { x = 0.000, y = 303.716, z = 0.000 }, level = 1 },
{ config_id = 54, monster_id = 20011201, pos = { x = -136.196, y = -14.340, z = -294.977 }, rot = { x = 0.000, y = 52.300, z = 0.000 }, level = 5 },
{ config_id = 55, monster_id = 20011201, pos = { x = -131.457, y = -14.340, z = -287.285 }, rot = { x = 0.000, y = 181.633, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40, gadget_id = 70220018, pos = { x = -121.020, y = -14.340, z = -300.238 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 41, gadget_id = 70220018, pos = { x = -121.192, y = -14.340, z = -284.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42, gadget_id = 70220018, pos = { x = -139.699, y = -14.340, z = -300.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43, gadget_id = 70220018, pos = { x = -138.012, y = -14.340, z = -284.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000038, name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38", trigger_count = 0 },
{ config_id = 1000105, name = "ANY_MONSTER_DIE_105", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_105", action = "action_EVENT_ANY_MONSTER_DIE_105", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 49, 50, 51, 52, 53, 54, 55 },
gadgets = { 40, 41, 42, 43 },
regions = { },
triggers = { "ANY_MONSTER_DIE_105" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_38" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016014) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016014, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_105(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016014) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_105(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016014, 2)
return 0
end
@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 250016015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 56, monster_id = 20011201, pos = { x = -128.800, y = -11.000, z = -294.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 57, monster_id = 20011201, pos = { x = -133.143, y = -11.000, z = -294.042 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 58, monster_id = 20011201, pos = { x = -127.159, y = -11.000, z = -291.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 59, monster_id = 20011201, pos = { x = -135.121, y = -11.000, z = -291.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 60, monster_id = 20011301, pos = { x = -131.060, y = -11.000, z = -296.481 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000039, name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39", trigger_count = 0 },
{ config_id = 1000106, name = "ANY_MONSTER_DIE_106", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_106", action = "action_EVENT_ANY_MONSTER_DIE_106", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 56, 57, 58, 59, 60 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_106" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_39" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_39(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016015) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_39(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016013, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_106(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016015) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_106(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
return 0
end
@@ -0,0 +1,145 @@
-- 基础信息
local base_info = {
group_id = 250016016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 61, monster_id = 20011301, pos = { x = -131.054, y = -8.271, z = -301.398 }, rot = { x = 0.000, y = 298.972, z = 0.000 }, level = 5 },
{ config_id = 62, monster_id = 20011201, pos = { x = -128.203, y = -8.271, z = -298.466 }, rot = { x = 0.000, y = 251.439, z = 0.000 }, level = 5 },
{ config_id = 63, monster_id = 20011201, pos = { x = -134.329, y = -8.271, z = -298.348 }, rot = { x = 0.000, y = 155.259, z = 0.000 }, level = 5 },
{ config_id = 64, monster_id = 20011201, pos = { x = -134.620, y = -8.271, z = -304.377 }, rot = { x = 0.000, y = 50.139, z = 0.000 }, level = 5 },
{ config_id = 65, monster_id = 20011201, pos = { x = -128.160, y = -8.271, z = -304.380 }, rot = { x = 0.000, y = 311.747, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 44, gadget_id = 70220018, pos = { x = -127.973, y = -14.772, z = -300.338 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45, gadget_id = 70220018, pos = { x = -127.972, y = -14.772, z = -298.126 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 46, gadget_id = 70220018, pos = { x = -130.172, y = -14.772, z = -298.139 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 47, gadget_id = 70220018, pos = { x = -130.145, y = -14.772, z = -300.269 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 48, gadget_id = 70220018, pos = { x = -127.999, y = -14.772, z = -304.685 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 49, gadget_id = 70220018, pos = { x = -127.999, y = -14.772, z = -302.474 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50, gadget_id = 70220018, pos = { x = -130.199, y = -14.772, z = -302.487 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51, gadget_id = 70220018, pos = { x = -130.171, y = -14.772, z = -304.617 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 52, gadget_id = 70220018, pos = { x = -132.445, y = -14.772, z = -304.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53, gadget_id = 70220018, pos = { x = -132.445, y = -14.772, z = -302.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54, gadget_id = 70220018, pos = { x = -134.645, y = -14.772, z = -302.463 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 55, gadget_id = 70220018, pos = { x = -134.617, y = -14.772, z = -304.593 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 56, gadget_id = 70220018, pos = { x = -132.334, y = -14.772, z = -300.372 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 57, gadget_id = 70220018, pos = { x = -132.333, y = -14.772, z = -298.160 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58, gadget_id = 70220018, pos = { x = -134.533, y = -14.772, z = -298.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 59, gadget_id = 70220018, pos = { x = -134.506, y = -14.772, z = -300.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000040, name = "ANY_MONSTER_DIE_40", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_40", action = "action_EVENT_ANY_MONSTER_DIE_40", trigger_count = 0 },
{ config_id = 1000107, name = "ANY_MONSTER_DIE_107", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_107", action = "action_EVENT_ANY_MONSTER_DIE_107", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 61, 62, 63, 64, 65 },
gadgets = { 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59 },
regions = { },
triggers = { "ANY_MONSTER_DIE_107" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016016) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016013, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016016, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_107(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016016) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_107(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016030, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016016, 2)
return 0
end
@@ -0,0 +1,285 @@
-- 基础信息
local base_info = {
group_id = 250016017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 60, gadget_id = 70360002, pos = { x = -204.985, y = -11.000, z = -288.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61, gadget_id = 70360002, pos = { x = -211.803, y = -10.975, z = -287.989 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62, gadget_id = 70360002, pos = { x = -219.736, y = -11.000, z = -287.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 63, gadget_id = 70360002, pos = { x = -211.795, y = -11.000, z = -289.370 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000041, name = "GADGET_CREATE_41", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_41", action = "action_EVENT_GADGET_CREATE_41", trigger_count = 0 },
{ config_id = 1000042, name = "SELECT_OPTION_42", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_42", action = "action_EVENT_SELECT_OPTION_42", trigger_count = 0 },
{ config_id = 1000043, name = "GADGET_CREATE_43", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_43", action = "action_EVENT_GADGET_CREATE_43", trigger_count = 0 },
{ config_id = 1000044, name = "SELECT_OPTION_44", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_44", action = "action_EVENT_SELECT_OPTION_44", trigger_count = 0 },
{ config_id = 1000045, name = "GADGET_CREATE_45", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_45", action = "action_EVENT_GADGET_CREATE_45", trigger_count = 0 },
{ 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 },
{ config_id = 1000047, name = "GADGET_CREATE_47", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_47", action = "action_EVENT_GADGET_CREATE_47", trigger_count = 0 },
{ config_id = 1000048, name = "SELECT_OPTION_48", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_48", action = "action_EVENT_SELECT_OPTION_48", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 60, 61, 62 },
regions = { },
triggers = { "GADGET_CREATE_41", "SELECT_OPTION_42", "GADGET_CREATE_43", "SELECT_OPTION_44", "GADGET_CREATE_45", "SELECT_OPTION_46" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_41(context, evt)
if 60 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_41(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016017, 60, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_42(context, evt)
if 60 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_42(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016018, 2)
-- 删除指定group 250016017 ;指定config60;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016017, 60, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016017, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_43(context, evt)
if 61 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_43(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016017, 61, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_44(context, evt)
if 61 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_44(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016019, 2)
-- 删除指定group 250016017 ;指定config61;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016017, 61, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016017, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_45(context, evt)
if 62 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_45(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016017, 62, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46(context, evt)
if 62 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016020, 2)
-- 删除指定group 250016017 ;指定config62;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016017, 62, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016017, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_47(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_47(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250016004, 4003, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_48(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_48(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016008, 2)
-- 删除指定group 250016004 ;指定config4004;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250016004, 4004, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016004, 1)
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 250016018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 18001, monster_id = 21010501, pos = { x = -202.199, y = -8.028, z = -291.468 }, rot = { x = 0.000, y = 298.972, z = 0.000 }, level = 5 },
{ config_id = 18002, monster_id = 21010501, pos = { x = -202.585, y = -8.028, z = -292.927 }, rot = { x = 0.000, y = 251.439, z = 0.000 }, level = 5 },
{ config_id = 18003, monster_id = 21010501, pos = { x = -220.347, y = -8.028, z = -283.728 }, rot = { x = 0.000, y = 155.259, z = 0.000 }, level = 5 },
{ config_id = 18004, monster_id = 21010501, pos = { x = -219.018, y = -8.028, z = -283.087 }, rot = { x = 0.000, y = 135.602, z = 0.000 }, level = 5 },
{ config_id = 18005, monster_id = 21010501, pos = { x = -218.469, y = -8.028, z = -303.283 }, rot = { x = 0.000, y = 52.300, z = 0.000 }, level = 5 },
{ config_id = 18006, monster_id = 21010501, pos = { x = -219.460, y = -8.028, z = -302.110 }, rot = { x = 0.000, y = 30.715, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18007, gadget_id = 70220018, pos = { x = -201.251, y = -14.529, z = -293.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18008, gadget_id = 70220018, pos = { x = -201.251, y = -14.529, z = -291.441 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18009, gadget_id = 70220018, pos = { x = -203.451, y = -14.529, z = -291.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18010, gadget_id = 70220018, pos = { x = -203.423, y = -14.529, z = -293.584 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18011, gadget_id = 70220018, pos = { x = -218.422, y = -14.529, z = -284.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18012, gadget_id = 70220018, pos = { x = -218.421, y = -14.529, z = -282.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18013, gadget_id = 70220018, pos = { x = -220.621, y = -14.529, z = -282.132 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18014, gadget_id = 70220018, pos = { x = -220.593, y = -14.529, z = -284.262 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18015, gadget_id = 70220018, pos = { x = -217.991, y = -14.529, z = -304.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18016, gadget_id = 70220018, pos = { x = -217.990, y = -14.529, z = -301.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18017, gadget_id = 70220018, pos = { x = -220.190, y = -14.529, z = -301.908 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18018, gadget_id = 70220018, pos = { x = -220.163, y = -14.529, z = -304.038 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000049, name = "ANY_MONSTER_DIE_49", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_49", action = "action_EVENT_ANY_MONSTER_DIE_49", trigger_count = 0 },
{ config_id = 1000111, name = "ANY_MONSTER_DIE_111", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_111", action = "action_EVENT_ANY_MONSTER_DIE_111", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 18001, 18002, 18003, 18004, 18005, 18006 },
gadgets = { 18007, 18008, 18009, 18010, 18011, 18012, 18013, 18014, 18015, 18016, 18017, 18018 },
regions = { },
triggers = { "ANY_MONSTER_DIE_111" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_49(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016018) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_49(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016017, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016018, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_111(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016018) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_111(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016031, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016018, 2)
return 0
end
@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 250016019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 73, monster_id = 20011001, pos = { x = -211.730, y = -11.000, z = -288.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 74, monster_id = 20011001, pos = { x = -209.259, y = -11.000, z = -289.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 75, monster_id = 20011001, pos = { x = -209.238, y = -11.000, z = -293.384 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 76, monster_id = 20011001, pos = { x = -211.842, y = -11.000, z = -295.028 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 77, monster_id = 20011101, pos = { x = -207.256, y = -11.000, z = -291.747 }, rot = { x = 0.000, y = 271.696, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000050, name = "ANY_MONSTER_DIE_50", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_50", action = "action_EVENT_ANY_MONSTER_DIE_50", trigger_count = 0 },
{ config_id = 1000112, name = "ANY_MONSTER_DIE_112", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_112", action = "action_EVENT_ANY_MONSTER_DIE_112", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 73, 74, 75, 76, 77 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_112" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_50(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016019) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_50(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016017, 1)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_112(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016019) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_112(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016031, 1)
return 0
end
@@ -0,0 +1,145 @@
-- 基础信息
local base_info = {
group_id = 250016020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 20001, monster_id = 20011201, pos = { x = -211.804, y = -8.325, z = -296.709 }, rot = { x = 0.000, y = 298.972, z = 0.000 }, level = 5 },
{ config_id = 20002, monster_id = 20011201, pos = { x = -208.954, y = -8.325, z = -293.777 }, rot = { x = 0.000, y = 251.439, z = 0.000 }, level = 5 },
{ config_id = 20003, monster_id = 20011201, pos = { x = -215.079, y = -8.325, z = -293.660 }, rot = { x = 0.000, y = 155.259, z = 0.000 }, level = 5 },
{ config_id = 20004, monster_id = 20011201, pos = { x = -215.371, y = -8.325, z = -299.689 }, rot = { x = 0.000, y = 50.139, z = 0.000 }, level = 5 },
{ config_id = 20005, monster_id = 20011201, pos = { x = -208.911, y = -8.325, z = -299.691 }, rot = { x = 0.000, y = 311.747, z = 0.000 }, level = 5 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20006, gadget_id = 70220018, pos = { x = -208.724, y = -14.825, z = -295.649 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20007, gadget_id = 70220018, pos = { x = -208.723, y = -14.825, z = -293.438 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20008, gadget_id = 70220018, pos = { x = -210.923, y = -14.825, z = -293.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20009, gadget_id = 70220018, pos = { x = -210.896, y = -14.825, z = -295.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20010, gadget_id = 70220018, pos = { x = -208.750, y = -14.825, z = -299.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20011, gadget_id = 70220018, pos = { x = -208.750, y = -14.825, z = -297.785 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20012, gadget_id = 70220018, pos = { x = -210.950, y = -14.825, z = -297.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20013, gadget_id = 70220018, pos = { x = -210.922, y = -14.825, z = -299.928 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20014, gadget_id = 70220018, pos = { x = -213.196, y = -14.825, z = -299.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20015, gadget_id = 70220018, pos = { x = -213.196, y = -14.825, z = -297.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20016, gadget_id = 70220018, pos = { x = -215.396, y = -14.825, z = -297.774 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20017, gadget_id = 70220018, pos = { x = -215.368, y = -14.825, z = -299.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20018, gadget_id = 70220018, pos = { x = -213.084, y = -14.825, z = -295.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20019, gadget_id = 70220018, pos = { x = -213.084, y = -14.825, z = -293.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20020, gadget_id = 70220018, pos = { x = -215.284, y = -14.825, z = -293.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20021, gadget_id = 70220018, pos = { x = -215.256, y = -14.825, z = -295.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000051, name = "ANY_MONSTER_DIE_51", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_51", action = "action_EVENT_ANY_MONSTER_DIE_51", trigger_count = 0 },
{ config_id = 1000113, name = "ANY_MONSTER_DIE_113", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_113", action = "action_EVENT_ANY_MONSTER_DIE_113", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 20001, 20002, 20003, 20004, 20005 },
gadgets = { 20006, 20007, 20008, 20009, 20010, 20011, 20012, 20013, 20014, 20015, 20016, 20017, 20018, 20019, 20020, 20021 },
regions = { },
triggers = { "ANY_MONSTER_DIE_113" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_51(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016016) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_51(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016017, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016020, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_113(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016020) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_113(context, evt)
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 250016031, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016020, 2)
return 0
end
@@ -0,0 +1,201 @@
-- 基础信息
local base_info = {
group_id = 250016021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 83, monster_id = 20011201, pos = { x = 1082.282, y = 211.289, z = 364.512 }, rot = { x = 0.000, y = 103.914, z = 0.000 }, level = 1 },
{ config_id = 84, monster_id = 20011201, pos = { x = 1082.843, y = 211.138, z = 363.002 }, rot = { x = 0.000, y = 62.134, z = 0.000 }, level = 1 },
{ config_id = 85, monster_id = 20011201, pos = { x = 1083.484, y = 210.977, z = 365.416 }, rot = { x = 0.000, y = 139.307, z = 0.000 }, level = 1 },
{ config_id = 86, monster_id = 20011201, pos = { x = 1121.627, y = 202.945, z = 351.640 }, rot = { x = 0.000, y = 321.783, z = 0.000 }, level = 1 },
{ config_id = 87, monster_id = 20011201, pos = { x = 1121.054, y = 202.839, z = 357.308 }, rot = { x = 0.000, y = 217.548, z = 0.000 }, level = 1 },
{ config_id = 88, monster_id = 20011301, pos = { x = 1116.563, y = 203.306, z = 350.602 }, rot = { x = 0.000, y = 26.362, z = 0.000 }, level = 1 },
{ config_id = 89, monster_id = 20011201, pos = { x = 1125.571, y = 206.788, z = 379.028 }, rot = { x = 0.000, y = 206.139, z = 0.000 }, level = 1 },
{ config_id = 90, monster_id = 20011201, pos = { x = 1144.499, y = 208.475, z = 340.616 }, rot = { x = 0.000, y = 281.569, z = 0.000 }, level = 1 },
{ config_id = 91, monster_id = 20011201, pos = { x = 1113.613, y = 203.743, z = 357.900 }, rot = { x = 0.000, y = 154.408, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 92, gadget_id = 70900049, pos = { x = 1117.200, y = 203.244, z = 355.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000053, name = "GADGET_STATE_CHANGE_53", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_53", action = "action_EVENT_GADGET_STATE_CHANGE_53", trigger_count = 0 },
{ config_id = 1000054, name = "ANY_MONSTER_DIE_54", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000056, name = "CHALLENGE_FAIL_56", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_56", trigger_count = 0 },
{ config_id = 1000057, name = "CHALLENGE_SUCCESS_57", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_57", trigger_count = 0 },
{ config_id = 1000058, name = "ANY_MONSTER_DIE_58", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_58", action = "action_EVENT_ANY_MONSTER_DIE_58", trigger_count = 0 },
{ config_id = 1000059, name = "ANY_MONSTER_DIE_59", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_59", action = "action_EVENT_ANY_MONSTER_DIE_59", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 92 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_53", "ANY_MONSTER_DIE_54", "CHALLENGE_FAIL_56", "CHALLENGE_SUCCESS_57" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 83, 84, 85 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_58" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 86, 87, 88 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_59" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 89, 90, 91 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_53(context, evt)
if 92 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_53(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016021, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为2003的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 2003, 60, 1, 666, 9) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_56(context, evt)
-- 改变指定group组250016021中, configid为92的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016021, 92, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_57(context, evt)
-- 改变指定group组250016021中, configid为92的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016021, 92, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_58(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016021) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_58(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250016021, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016021, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_59(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016021) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_59(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250016021, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016021, 3)
return 0
end
@@ -0,0 +1,203 @@
-- 基础信息
local base_info = {
group_id = 250016022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 22001, monster_id = 20011201, pos = { x = 1354.801, y = 203.818, z = 163.423 }, rot = { x = 0.000, y = 276.142, z = 0.000 }, level = 1 },
{ config_id = 22002, monster_id = 20011201, pos = { x = 1355.802, y = 203.769, z = 161.677 }, rot = { x = 0.000, y = 288.318, z = 0.000 }, level = 1 },
{ config_id = 22003, monster_id = 20011201, pos = { x = 1355.463, y = 203.899, z = 164.745 }, rot = { x = 0.000, y = 266.057, z = 0.000 }, level = 1 },
{ config_id = 22004, monster_id = 20011301, pos = { x = 1329.153, y = 200.119, z = 168.876 }, rot = { x = 0.000, y = 321.783, z = 0.000 }, level = 1 },
{ config_id = 22005, monster_id = 20011301, pos = { x = 1328.580, y = 200.106, z = 174.544 }, rot = { x = 0.000, y = 217.548, z = 0.000 }, level = 1 },
{ config_id = 22006, monster_id = 20011301, pos = { x = 1324.088, y = 200.313, z = 167.838 }, rot = { x = 0.000, y = 26.362, z = 0.000 }, level = 1 },
{ config_id = 22007, monster_id = 26060101, pos = { x = 1328.205, y = 201.992, z = 169.813 }, rot = { x = 0.000, y = 308.297, z = 0.000 }, level = 1 },
{ config_id = 22008, monster_id = 26060101, pos = { x = 1327.324, y = 201.992, z = 173.162 }, rot = { x = 0.000, y = 281.569, z = 0.000 }, level = 1 },
{ config_id = 22009, monster_id = 26060101, pos = { x = 1325.960, y = 201.992, z = 169.766 }, rot = { x = 0.000, y = 320.518, z = 0.000 }, level = 1 },
{ config_id = 22010, monster_id = 26060101, pos = { x = 1326.003, y = 202.457, z = 171.653 }, rot = { x = 0.000, y = 320.518, z = 0.000 }, level = 1 },
{ config_id = 22011, monster_id = 26060101, pos = { x = 1323.935, y = 202.390, z = 171.635 }, rot = { x = 0.000, y = 320.518, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22012, gadget_id = 70900008, pos = { x = 1325.749, y = 200.106, z = 171.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000060, name = "GADGET_STATE_CHANGE_60", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60", action = "action_EVENT_GADGET_STATE_CHANGE_60", trigger_count = 0 },
{ config_id = 1000061, name = "ANY_MONSTER_DIE_61", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000062, name = "CHALLENGE_FAIL_62", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_62", trigger_count = 0 },
{ config_id = 1000063, name = "CHALLENGE_SUCCESS_63", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_63", trigger_count = 0 },
{ config_id = 1000064, name = "ANY_MONSTER_DIE_64", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_64", action = "action_EVENT_ANY_MONSTER_DIE_64", trigger_count = 0 },
{ config_id = 1000065, name = "ANY_MONSTER_DIE_65", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_65", action = "action_EVENT_ANY_MONSTER_DIE_65", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 22012 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_60", "ANY_MONSTER_DIE_61", "CHALLENGE_FAIL_62", "CHALLENGE_SUCCESS_63" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 22001, 22002, 22003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_64" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 22004, 22005, 22006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_65" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 22007, 22008, 22009, 22010, 22011 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_60(context, evt)
if 22012 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_60(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016022, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为2003的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 2003, 60, 1, 666, 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_62(context, evt)
-- 改变指定group组250016022中, configid为22012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016022, 22012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_63(context, evt)
-- 改变指定group组250016022中, configid为22012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016022, 22012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_64(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016022) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_64(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250016022, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016022, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_65(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016022) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_65(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250016022, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016022, 3)
return 0
end
@@ -0,0 +1,207 @@
-- 基础信息
local base_info = {
group_id = 250016023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 103, monster_id = 20010101, pos = { x = 1496.637, y = 220.229, z = 579.864 }, rot = { x = 0.000, y = 276.142, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 104, monster_id = 20010101, pos = { x = 1497.639, y = 220.276, z = 578.119 }, rot = { x = 0.000, y = 288.318, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 105, monster_id = 20010101, pos = { x = 1497.299, y = 220.273, z = 581.187 }, rot = { x = 0.000, y = 266.057, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 106, monster_id = 20011501, pos = { x = 1502.023, y = 220.396, z = 576.724 }, rot = { x = 0.000, y = 321.783, z = 0.000 }, level = 1 },
{ config_id = 107, monster_id = 20011501, pos = { x = 1501.451, y = 220.366, z = 582.392 }, rot = { x = 0.000, y = 217.548, z = 0.000 }, level = 1 },
{ config_id = 108, monster_id = 20011501, pos = { x = 1496.959, y = 220.197, z = 575.686 }, rot = { x = 0.000, y = 26.362, z = 0.000 }, level = 1 },
{ config_id = 109, monster_id = 21011001, pos = { x = 1507.798, y = 226.813, z = 566.308 }, rot = { x = 0.000, y = 308.297, z = 0.000 }, level = 1 },
{ config_id = 110, monster_id = 21011001, pos = { x = 1509.519, y = 225.702, z = 587.825 }, rot = { x = 0.000, y = 209.064, z = 0.000 }, level = 1 },
{ config_id = 111, monster_id = 21011001, pos = { x = 1486.251, y = 224.132, z = 589.975 }, rot = { x = 0.000, y = 160.027, z = 0.000 }, level = 1 },
{ config_id = 112, monster_id = 21011001, pos = { x = 1488.192, y = 225.327, z = 568.528 }, rot = { x = 0.000, y = 36.326, z = 0.000 }, level = 1 },
{ config_id = 113, monster_id = 23030101, pos = { x = 1496.806, y = 220.245, z = 579.483 }, rot = { x = 0.000, y = 320.518, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 94, gadget_id = 70900007, pos = { x = 1498.619, y = 220.335, z = 579.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95, gadget_id = 70300090, pos = { x = 1510.164, y = 220.208, z = 588.789 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 96, gadget_id = 70300090, pos = { x = 1508.428, y = 221.318, z = 565.806 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97, gadget_id = 70300090, pos = { x = 1485.844, y = 218.637, z = 590.443 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98, gadget_id = 70300090, pos = { x = 1487.865, y = 219.833, z = 568.281 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000066, name = "GADGET_STATE_CHANGE_66", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_66", action = "action_EVENT_GADGET_STATE_CHANGE_66", trigger_count = 0 },
{ config_id = 1000067, name = "ANY_MONSTER_DIE_67", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000068, name = "CHALLENGE_FAIL_68", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_68", trigger_count = 0 },
{ config_id = 1000069, name = "CHALLENGE_SUCCESS_69", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_69", trigger_count = 0 },
{ config_id = 1000070, name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70", trigger_count = 0 },
{ config_id = 1000071, name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 94, 95, 96, 97, 98 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_66", "ANY_MONSTER_DIE_67", "CHALLENGE_FAIL_68", "CHALLENGE_SUCCESS_69" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 103, 104, 105 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_70" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 106, 107, 108 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_71" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 109, 110, 111, 112, 113 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_66(context, evt)
if 94 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_66(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016023, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为2003的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 2003, 90, 1, 666, 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_68(context, evt)
-- 改变指定group组250016023中, configid为92的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016023, 92, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_69(context, evt)
-- 改变指定group组250016023中, configid为92的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016023, 92, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016023) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250016023, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016023, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016023) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250016023, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016023, 3)
return 0
end
@@ -0,0 +1,209 @@
-- 基础信息
local base_info = {
group_id = 250016024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 114, monster_id = 20010101, pos = { x = 1138.780, y = 200.169, z = 440.779 }, rot = { x = 0.000, y = 276.142, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 115, monster_id = 20010101, pos = { x = 1139.781, y = 200.169, z = 439.034 }, rot = { x = 0.000, y = 288.318, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 116, monster_id = 20010201, pos = { x = 1139.442, y = 200.167, z = 442.101 }, rot = { x = 0.000, y = 266.057, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 117, monster_id = 21010401, pos = { x = 1141.976, y = 206.051, z = 459.591 }, rot = { x = 0.000, y = 201.970, z = 0.000 }, level = 1 },
{ config_id = 118, monster_id = 21010401, pos = { x = 1157.772, y = 206.051, z = 444.362 }, rot = { x = 0.000, y = 252.161, z = 0.000 }, level = 1 },
{ config_id = 119, monster_id = 21010401, pos = { x = 1158.215, y = 206.051, z = 446.106 }, rot = { x = 0.000, y = 287.598, z = 0.000 }, level = 1 },
{ config_id = 120, monster_id = 20010601, pos = { x = 1151.336, y = 200.507, z = 451.183 }, rot = { x = 0.000, y = 220.378, z = 0.000 }, level = 1 },
{ config_id = 121, monster_id = 20011501, pos = { x = 1147.530, y = 200.295, z = 448.166 }, rot = { x = 0.000, y = 46.103, z = 0.000 }, level = 1 },
{ config_id = 125, monster_id = 21010401, pos = { x = 1140.639, y = 206.051, z = 459.803 }, rot = { x = 0.000, y = 205.597, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 99, gadget_id = 70900007, pos = { x = 1140.762, y = 200.169, z = 440.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100, gadget_id = 70220019, pos = { x = 1157.700, y = 199.531, z = 446.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101, gadget_id = 70220019, pos = { x = 1157.670, y = 199.531, z = 444.243 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 102, gadget_id = 70220019, pos = { x = 1159.827, y = 199.531, z = 446.447 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 103, gadget_id = 70220019, pos = { x = 1159.767, y = 199.531, z = 444.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 104, gadget_id = 70220019, pos = { x = 1142.954, y = 199.531, z = 461.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 105, gadget_id = 70220019, pos = { x = 1143.042, y = 199.531, z = 459.732 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 106, gadget_id = 70220019, pos = { x = 1140.827, y = 199.531, z = 459.721 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 107, gadget_id = 70220019, pos = { x = 1140.771, y = 199.531, z = 461.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000072, name = "GADGET_STATE_CHANGE_72", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_72", action = "action_EVENT_GADGET_STATE_CHANGE_72", trigger_count = 0 },
{ config_id = 1000073, name = "ANY_MONSTER_DIE_73", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000074, name = "CHALLENGE_FAIL_74", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_74", trigger_count = 0 },
{ config_id = 1000075, name = "CHALLENGE_SUCCESS_75", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_75", trigger_count = 0 },
{ config_id = 1000076, name = "ANY_MONSTER_DIE_76", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_76", action = "action_EVENT_ANY_MONSTER_DIE_76", trigger_count = 0 },
{ config_id = 1000077, name = "ANY_MONSTER_DIE_77", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_77", action = "action_EVENT_ANY_MONSTER_DIE_77", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 99, 100, 101, 102, 103, 104, 105, 106, 107 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_72", "ANY_MONSTER_DIE_73", "CHALLENGE_FAIL_74", "CHALLENGE_SUCCESS_75" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 114, 115, 116 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_76" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 117, 118, 119, 125 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_77" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 120, 121 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_72(context, evt)
if 99 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_72(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016024, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为2003的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 2003, 90, 1, 666, 9) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_74(context, evt)
-- 改变指定group组250016024中, configid为99的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016024, 99, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_75(context, evt)
-- 改变指定group组250016024中, configid为99的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016024, 99, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_76(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016024) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_76(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250016024, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016024, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_77(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016024) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_77(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250016024, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016024, 3)
return 0
end
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 250016025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 126, monster_id = 20011201, pos = { x = 1568.964, y = 248.933, z = 431.858 }, rot = { x = 0.000, y = 276.142, z = 0.000 }, level = 1 },
{ config_id = 127, monster_id = 20011201, pos = { x = 1569.965, y = 248.863, z = 430.113 }, rot = { x = 0.000, y = 288.318, z = 0.000 }, level = 1 },
{ config_id = 128, monster_id = 20011201, pos = { x = 1569.626, y = 248.983, z = 433.180 }, rot = { x = 0.000, y = 266.057, z = 0.000 }, level = 1 },
{ config_id = 129, monster_id = 21010101, pos = { x = 1574.779, y = 249.043, z = 436.185 }, rot = { x = 0.000, y = 201.970, z = 0.000 }, level = 1 },
{ config_id = 130, monster_id = 21010101, pos = { x = 1575.925, y = 248.976, z = 435.143 }, rot = { x = 0.000, y = 252.161, z = 0.000 }, level = 1 },
{ config_id = 131, monster_id = 21010101, pos = { x = 1574.224, y = 248.977, z = 434.597 }, rot = { x = 0.000, y = 229.941, z = 0.000 }, level = 1 },
{ config_id = 132, monster_id = 22010101, pos = { x = 1567.907, y = 248.911, z = 430.561 }, rot = { x = 0.000, y = 62.581, z = 0.000 }, level = 1 },
{ config_id = 134, monster_id = 21010101, pos = { x = 1573.429, y = 249.110, z = 437.164 }, rot = { x = 0.000, y = 205.597, z = 0.000 }, level = 1 },
{ config_id = 135, monster_id = 21011001, pos = { x = 1564.389, y = 255.323, z = 440.962 }, rot = { x = 0.000, y = 142.971, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 136, monster_id = 21011001, pos = { x = 1575.773, y = 255.422, z = 422.969 }, rot = { x = 0.000, y = 321.974, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 137, monster_id = 21010101, pos = { x = 1573.336, y = 249.041, z = 435.670 }, rot = { x = 0.000, y = 224.372, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 108, gadget_id = 70900049, pos = { x = 1570.946, y = 248.885, z = 431.296 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 109, gadget_id = 70220019, pos = { x = 1587.884, y = 249.367, z = 446.404 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 110, gadget_id = 70220019, pos = { x = 1587.854, y = 249.033, z = 429.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 111, gadget_id = 70220019, pos = { x = 1593.169, y = 249.201, z = 437.526 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 112, gadget_id = 70220019, pos = { x = 1575.822, y = 248.901, z = 422.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 113, gadget_id = 70220019, pos = { x = 1573.695, y = 249.184, z = 447.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 114, gadget_id = 70220019, pos = { x = 1564.442, y = 248.803, z = 441.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70220019, pos = { x = 1560.769, y = 248.934, z = 430.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 116, gadget_id = 70220019, pos = { x = 1565.871, y = 248.907, z = 423.061 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000078, name = "GADGET_STATE_CHANGE_78", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_78", action = "action_EVENT_GADGET_STATE_CHANGE_78", trigger_count = 0 },
{ config_id = 1000079, name = "ANY_MONSTER_DIE_79", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000080, name = "CHALLENGE_FAIL_80", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_80", trigger_count = 0 },
{ config_id = 1000081, name = "CHALLENGE_SUCCESS_81", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_81", trigger_count = 0 },
{ config_id = 1000082, name = "ANY_MONSTER_DIE_82", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_82", action = "action_EVENT_ANY_MONSTER_DIE_82", trigger_count = 0 },
{ config_id = 1000083, name = "ANY_MONSTER_DIE_83", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_83", action = "action_EVENT_ANY_MONSTER_DIE_83", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 108, 109, 110, 111, 112, 113, 114, 115, 116 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_78", "ANY_MONSTER_DIE_79", "CHALLENGE_FAIL_80", "CHALLENGE_SUCCESS_81" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 126, 127, 128, 135, 136 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_82" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 129, 130, 131, 134, 137 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_83" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 132 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_78(context, evt)
if 108 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_78(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016025, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为2003的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 2003, 90, 1, 666, 11) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_80(context, evt)
-- 改变指定group组250016025中, configid为108的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016025, 108, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_81(context, evt)
-- 改变指定group组250016025中, configid为108的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250016025, 108, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_82(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016025) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_82(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250016025, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016025, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_83(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016025) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_83(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250016025, 4)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016025, 3)
return 0
end
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 250016026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 138, monster_id = 21010101, pos = { x = -274.058, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 139, monster_id = 21010101, pos = { x = -277.966, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 140, monster_id = 21010101, pos = { x = -281.721, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9002 },
{ config_id = 141, monster_id = 21010101, pos = { x = -285.294, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 142, monster_id = 21010101, pos = { x = -289.278, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9010 },
{ config_id = 143, monster_id = 21010101, pos = { x = -292.700, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9015 },
{ config_id = 144, monster_id = 21010101, pos = { x = -296.095, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9011 },
{ config_id = 145, monster_id = 21010101, pos = { x = -299.138, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9016 },
{ config_id = 146, monster_id = 21010101, pos = { x = -302.497, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 147, monster_id = 21010101, pos = { x = -305.865, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 148, monster_id = 21010101, pos = { x = -309.102, y = -11.000, z = -291.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9014 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 250016027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 117, gadget_id = 70900049, pos = { x = -56.925, y = -11.000, z = -48.959 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 118, gadget_id = 70900049, pos = { x = -56.925, y = -11.000, z = -60.262 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000084, name = "GADGET_STATE_CHANGE_84", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_84", action = "action_EVENT_GADGET_STATE_CHANGE_84", trigger_count = 0 },
{ config_id = 1000085, name = "GADGET_STATE_CHANGE_85", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_85", action = "action_EVENT_GADGET_STATE_CHANGE_85", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 117, 118 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_84", "GADGET_STATE_CHANGE_85" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_84(context, evt)
if 117 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_84(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016001, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016027, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_85(context, evt)
if 118 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_85(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016002, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016027, 1)
return 0
end
@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 250016028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 119, gadget_id = 70900007, pos = { x = -57.064, y = -11.000, z = -125.027 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 120, gadget_id = 70900007, pos = { x = -57.064, y = -11.000, z = -129.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 121, gadget_id = 70900007, pos = { x = -57.064, y = -11.000, z = -134.140 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 122, gadget_id = 70900007, pos = { x = -57.064, y = -11.000, z = -138.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000088, name = "GADGET_STATE_CHANGE_88", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_88", action = "action_EVENT_GADGET_STATE_CHANGE_88", trigger_count = 0 },
{ config_id = 1000089, name = "GADGET_STATE_CHANGE_89", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_89", action = "action_EVENT_GADGET_STATE_CHANGE_89", trigger_count = 0 },
{ config_id = 1000090, name = "GADGET_STATE_CHANGE_90", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90", action = "action_EVENT_GADGET_STATE_CHANGE_90", trigger_count = 0 },
{ config_id = 1000091, name = "GADGET_STATE_CHANGE_91", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_91", action = "action_EVENT_GADGET_STATE_CHANGE_91", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 119, 120, 121, 122 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_88", "GADGET_STATE_CHANGE_89", "GADGET_STATE_CHANGE_90", "GADGET_STATE_CHANGE_91" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_88(context, evt)
if 119 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_88(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016005, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016028, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_89(context, evt)
if 120 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_89(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016006, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016028, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90(context, evt)
if 121 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016007, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016028, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_91(context, evt)
if 122 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_91(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016008, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016028, 1)
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250016029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 123, gadget_id = 70900007, pos = { x = -57.455, y = -11.000, z = -211.628 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 124, gadget_id = 70900007, pos = { x = -57.455, y = -11.000, z = -216.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 125, gadget_id = 70900007, pos = { x = -57.455, y = -11.000, z = -220.741 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000096, name = "GADGET_STATE_CHANGE_96", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_96", action = "action_EVENT_GADGET_STATE_CHANGE_96", trigger_count = 0 },
{ config_id = 1000097, name = "GADGET_STATE_CHANGE_97", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_97", action = "action_EVENT_GADGET_STATE_CHANGE_97", trigger_count = 0 },
{ config_id = 1000098, name = "GADGET_STATE_CHANGE_98", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_98", action = "action_EVENT_GADGET_STATE_CHANGE_98", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 123, 124 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_96", "GADGET_STATE_CHANGE_97" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_96(context, evt)
if 123 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_96(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016010, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016029, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_97(context, evt)
if 124 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_97(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016011, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016029, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_98(context, evt)
if 125 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_98(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016012, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016029, 1)
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250016030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 126, gadget_id = 70900049, pos = { x = -125.823, y = -11.000, z = -294.462 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127, gadget_id = 70900049, pos = { x = -130.986, y = -11.000, z = -294.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 128, gadget_id = 70900049, pos = { x = -136.442, y = -11.000, z = -294.107 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000102, name = "GADGET_STATE_CHANGE_102", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_102", action = "action_EVENT_GADGET_STATE_CHANGE_102", trigger_count = 0 },
{ config_id = 1000103, name = "GADGET_STATE_CHANGE_103", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_103", action = "action_EVENT_GADGET_STATE_CHANGE_103", trigger_count = 0 },
{ config_id = 1000104, name = "GADGET_STATE_CHANGE_104", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_104", action = "action_EVENT_GADGET_STATE_CHANGE_104", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 126, 127, 128 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_102", "GADGET_STATE_CHANGE_103", "GADGET_STATE_CHANGE_104" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_102(context, evt)
if 126 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_102(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016014, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016030, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_103(context, evt)
if 127 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_103(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016015, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016030, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_104(context, evt)
if 128 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_104(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016016, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016030, 1)
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250016031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 129, gadget_id = 70900008, pos = { x = -206.247, y = -11.000, z = -286.353 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 130, gadget_id = 70900008, pos = { x = -211.411, y = -11.000, z = -286.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 131, gadget_id = 70900008, pos = { x = -216.866, y = -11.000, z = -285.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000108, name = "GADGET_STATE_CHANGE_108", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_108", action = "action_EVENT_GADGET_STATE_CHANGE_108", trigger_count = 0 },
{ config_id = 1000109, name = "GADGET_STATE_CHANGE_109", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_109", action = "action_EVENT_GADGET_STATE_CHANGE_109", trigger_count = 0 },
{ config_id = 1000110, name = "GADGET_STATE_CHANGE_110", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_110", action = "action_EVENT_GADGET_STATE_CHANGE_110", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 129, 130, 131 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_108", "GADGET_STATE_CHANGE_109", "GADGET_STATE_CHANGE_110" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_108(context, evt)
if 129 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_108(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016018, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016031, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_109(context, evt)
if 130 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_109(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016019, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016031, 1)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_110(context, evt)
if 131 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_110(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016020, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016031, 1)
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 250016032
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32001, monster_id = 21010601, pos = { x = -31.512, y = -11.000, z = 222.952 }, rot = { x = 0.000, y = 90.113, z = 0.000 }, level = 1 },
{ config_id = 32002, monster_id = 21010601, pos = { x = -22.085, y = -11.000, z = 223.133 }, rot = { x = 0.000, y = 272.936, z = 0.000 }, level = 1 },
{ config_id = 32003, monster_id = 21010601, pos = { x = -27.713, y = -11.000, z = 229.806 }, rot = { x = 0.000, y = 178.170, z = 0.000 }, level = 1 },
{ config_id = 32005, monster_id = 21020101, pos = { x = -14.185, y = -11.000, z = 225.716 }, rot = { x = 0.000, y = 269.478, z = 0.000 }, level = 1, pose_id = 401 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 32004, gadget_id = 70300107, pos = { x = -26.873, y = -11.000, z = 223.422 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1032006, name = "ANY_MONSTER_DIE_32006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32006", action = "action_EVENT_ANY_MONSTER_DIE_32006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 32001, 32002, 32003, 32005 },
gadgets = { 32004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_32006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32006(context, evt)
-- 解锁目标1
if 0 ~= ScriptLib.UnlockForce(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_force")
return -1
end
return 0
end
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 250016033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 33001, gadget_id = 70350004, pos = { x = -24.745, y = -11.000, z = 166.857 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33002, gadget_id = 70350004, pos = { x = -18.746, y = -11.000, z = 166.897 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33003, gadget_id = 70350004, pos = { x = -12.803, y = -11.000, z = 166.858 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33004, gadget_id = 70900055, pos = { x = -19.939, y = -11.000, z = 150.219 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1033005, name = "GADGET_STATE_CHANGE_33005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_33005", action = "action_EVENT_GADGET_STATE_CHANGE_33005", trigger_count = 0 },
{ config_id = 1033006, name = "TIMER_EVENT_33006", event = EventType.EVENT_TIMER_EVENT, source = "delay", condition = "", action = "action_EVENT_TIMER_EVENT_33006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 33001, 33002, 33003, 33004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_33005", "TIMER_EVENT_33006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_33005(context, evt)
if 33004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_33005(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 33002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 33003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟1秒后,向groupId为:250016033的对象,请求一次调用,并将string参数:"delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250016033, "delay", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_33006(context, evt)
-- 将configid为 33001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 33003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 33002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 33004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 250016034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34001, gadget_id = 70380003, pos = { x = 83.909, y = -1.340, z = 363.986 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 34002, gadget_id = 70900007, pos = { x = 83.896, y = 0.277, z = 364.927 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34003, gadget_id = 70380003, pos = { x = 81.156, y = 14.329, z = 445.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2, start_route = false },
{ config_id = 34005, gadget_id = 70350004, pos = { x = 83.530, y = 5.776, z = 360.458 }, rot = { x = 81.175, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34006, gadget_id = 70350004, pos = { x = 77.426, y = 5.789, z = 360.479 }, rot = { x = 81.175, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34007, gadget_id = 70350004, pos = { x = 89.659, y = 5.806, z = 360.385 }, rot = { x = 81.175, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1034004, name = "GADGET_STATE_CHANGE_34004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_34004", action = "action_EVENT_GADGET_STATE_CHANGE_34004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 34001, 34002, 34003, 34005, 34006, 34007 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_34004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_34004(context, evt)
if 34002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_34004(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 34003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 250016035
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 35001, monster_id = 20010801, pos = { x = 100.510, y = 16.000, z = 635.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35002, monster_id = 20010801, pos = { x = 108.572, y = 16.000, z = 624.398 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35003, monster_id = 20010801, pos = { x = 96.957, y = 16.000, z = 624.277 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35004, monster_id = 20010801, pos = { x = 83.125, y = 16.000, z = 629.357 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35005, monster_id = 20010801, pos = { x = 94.888, y = 16.000, z = 640.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35006, monster_id = 20010801, pos = { x = 106.656, y = 16.000, z = 633.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35007, monster_id = 20010801, pos = { x = 87.459, y = 16.000, z = 631.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35008, gadget_id = 70350004, pos = { x = 87.500, y = 16.000, z = 678.272 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35009, gadget_id = 70350004, pos = { x = 93.464, y = 16.000, z = 678.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35010, gadget_id = 70350004, pos = { x = 99.632, y = 16.000, z = 678.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35011, gadget_id = 70350004, pos = { x = 105.555, y = 16.000, z = 677.676 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1035012, name = "ANY_MONSTER_DIE_35012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_35012", action = "action_EVENT_ANY_MONSTER_DIE_35012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 35001, 35002, 35003, 35004, 35005, 35006, 35007 },
gadgets = { 35008, 35009, 35010, 35011 },
regions = { },
triggers = { "ANY_MONSTER_DIE_35012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_35012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_35012(context, evt)
-- 将configid为 35008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 35009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 35010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 35011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 250016036
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 36005, monster_id = 20010801, pos = { x = -380.739, y = 16.000, z = 735.309 }, rot = { x = 0.000, y = 88.653, z = 0.000 }, level = 1 },
{ config_id = 36006, monster_id = 20010801, pos = { x = -373.015, y = 16.000, z = 723.879 }, rot = { x = 0.000, y = 16.490, z = 0.000 }, level = 1 },
{ config_id = 36007, monster_id = 20010801, pos = { x = -370.540, y = 16.000, z = 744.530 }, rot = { x = 0.000, y = 151.549, z = 0.000 }, level = 1 },
{ config_id = 36008, monster_id = 20010801, pos = { x = -363.981, y = 16.000, z = 724.326 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 },
{ config_id = 36009, monster_id = 20010801, pos = { x = -364.778, y = 16.000, z = 754.765 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 },
{ config_id = 36010, monster_id = 20010801, pos = { x = -363.284, y = 16.000, z = 740.449 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 },
{ config_id = 36011, monster_id = 20010801, pos = { x = -376.071, y = 16.000, z = 752.814 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 },
{ config_id = 36012, monster_id = 20010801, pos = { x = -380.345, y = 16.000, z = 722.679 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 },
{ config_id = 36013, monster_id = 20010801, pos = { x = -368.488, y = 16.000, z = 712.666 }, rot = { x = 0.000, y = 336.685, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36001, gadget_id = 70350004, pos = { x = -392.983, y = 16.000, z = 727.657 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 36002, gadget_id = 70350004, pos = { x = -392.772, y = 16.000, z = 733.832 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 36003, gadget_id = 70350004, pos = { x = -392.541, y = 16.000, z = 739.892 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 36004, gadget_id = 70350004, pos = { x = -392.312, y = 16.000, z = 745.908 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1036014, name = "ANY_MONSTER_DIE_36014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_36014", action = "action_EVENT_ANY_MONSTER_DIE_36014" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 36005, 36006, 36007, 36008, 36009, 36010, 36011, 36012, 36013 },
gadgets = { 36001, 36002, 36003, 36004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_36014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_36014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_36014(context, evt)
-- 将configid为 36001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 36002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 36003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 36004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 250016037
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 37001, gadget_id = 70900055, pos = { x = -670.074, y = 16.000, z = 730.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37002, gadget_id = 70900206, pos = { x = -674.224, y = 16.000, z = 735.632 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action02 },
{ config_id = 37003, gadget_id = 70360022, pos = { x = -574.717, y = 20.940, z = 695.083 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37004, gadget_id = 70360022, pos = { x = -583.527, y = 18.610, z = 694.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37005, gadget_id = 70360022, pos = { x = -577.957, y = 18.610, z = 695.589 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37006, gadget_id = 70360022, pos = { x = -580.869, y = 19.680, z = 695.371 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37007, gadget_id = 70360022, pos = { x = -573.737, y = 18.610, z = 695.899 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37008, gadget_id = 70360022, pos = { x = -575.750, y = 19.742, z = 695.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37009, gadget_id = 70360022, pos = { x = -577.495, y = 21.429, z = 695.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 37010, gadget_id = 70360022, pos = { x = -577.519, y = 23.375, z = 695.631 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1037011, name = "GADGET_STATE_CHANGE_37011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37011", action = "action_EVENT_GADGET_STATE_CHANGE_37011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 37001, 37002, 37003, 37004, 37005, 37006, 37007, 37008, 37009, 37010 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_37011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37011(context, evt)
if 37001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37011(context, evt)
-- 将configid为 37003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37009 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 37010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 250016038
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 38001, monster_id = 20010901, pos = { x = -908.358, y = 16.756, z = 1167.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1008, 1011, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 38001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 250016039
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39001, monster_id = 21010501, pos = { x = -371.279, y = -11.000, z = -221.357 }, rot = { x = 0.000, y = 81.866, z = 0.000 }, level = 1 },
{ config_id = 39002, monster_id = 21010501, pos = { x = -372.155, y = -11.000, z = -218.448 }, rot = { x = 0.000, y = 84.962, z = 0.000 }, level = 1 },
{ config_id = 39003, monster_id = 21010501, pos = { x = -373.073, y = -11.000, z = -215.258 }, rot = { x = 0.000, y = 70.464, z = 0.000 }, level = 1 },
{ config_id = 39004, monster_id = 21010501, pos = { x = -372.162, y = -11.000, z = -212.414 }, rot = { x = 0.000, y = 88.040, z = 0.000 }, level = 1 },
{ config_id = 39005, monster_id = 21010501, pos = { x = -371.725, y = -11.000, z = -209.502 }, rot = { x = 0.000, y = 92.749, z = 0.000 }, level = 1 },
{ config_id = 39006, monster_id = 21010501, pos = { x = -369.865, y = -11.000, z = -207.319 }, rot = { x = 0.000, y = 90.734, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 39007, gadget_id = 70220019, pos = { x = -366.528, y = -11.000, z = -222.775 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 39008, gadget_id = 70310004, pos = { x = -370.879, y = -11.000, z = -219.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 39009, gadget_id = 70310004, pos = { x = -370.785, y = -11.000, z = -211.232 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 39010, gadget_id = 70220007, pos = { x = -369.930, y = -11.000, z = -205.102 }, rot = { x = 0.000, y = 333.380, z = 0.000 }, level = 1 },
{ config_id = 39011, gadget_id = 70220015, pos = { x = -370.233, y = -11.000, z = -208.824 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 39012, gadget_id = 70310001, pos = { x = -370.380, y = -11.000, z = -214.068 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1039013, name = "ANY_MONSTER_DIE_39013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39013", action = "action_EVENT_ANY_MONSTER_DIE_39013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 39001, 39002, 39003, 39004, 39005, 39006 },
gadgets = { 39008, 39009, 39010, 39011, 39012 },
regions = { },
triggers = { "ANY_MONSTER_DIE_39013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_39013(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250016039) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_39013(context, evt)
-- 创建id为39007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 39007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,251 @@
-- 基础信息
local base_info = {
group_id = 250016040
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 40003, monster_id = 21010201, pos = { x = -365.663, y = -11.000, z = -217.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40004, monster_id = 21010201, pos = { x = -366.555, y = -11.000, z = -214.561 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40005, monster_id = 21010201, pos = { x = -365.440, y = -11.000, z = -211.849 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40006, monster_id = 21010201, pos = { x = -368.444, y = -11.000, z = -211.449 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40007, monster_id = 21010201, pos = { x = -369.280, y = -11.000, z = -216.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40008, monster_id = 21020101, pos = { x = -363.529, y = -11.000, z = -214.272 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40009, monster_id = 21020301, pos = { x = -376.782, y = -11.000, z = -214.388 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40010, monster_id = 21010501, pos = { x = -376.459, y = -11.000, z = -220.659 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40011, monster_id = 21010501, pos = { x = -377.587, y = -11.000, z = -218.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40012, monster_id = 21010501, pos = { x = -380.691, y = -11.000, z = -216.051 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40013, monster_id = 21010501, pos = { x = -377.914, y = -11.000, z = -209.603 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40014, monster_id = 21010501, pos = { x = -379.637, y = -11.000, z = -211.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 },
{ config_id = 40015, monster_id = 21010501, pos = { x = -376.009, y = -11.000, z = -207.174 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40001, gadget_id = 70300101, pos = { x = -368.639, y = -11.000, z = -221.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 40002, gadget_id = 70300101, pos = { x = -368.585, y = -11.000, z = -207.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1040016, name = "SPECIFIC_GADGET_HP_CHANGE_40016", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "40001", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_40016", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_40016" },
{ config_id = 1040017, name = "SPECIFIC_GADGET_HP_CHANGE_40017", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "40002", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_40017", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_40017" }
}
-- 变量
variables = {
{ config_id = 1, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 40003, 40004, 40005, 40006, 40007, 40008 },
gadgets = { 40001, 40002 },
regions = { },
triggers = { "SPECIFIC_GADGET_HP_CHANGE_40016", "SPECIFIC_GADGET_HP_CHANGE_40017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_40016(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) < 2 then
return false
end
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_40016(context, evt)
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=-371, y=-11, z=-215}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40009, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40010, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40011, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40012, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40013, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40014, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40015, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_40017(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_40017(context, evt)
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=-371, y=-11, z=-215}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40009, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40010, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40011, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40012, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40013, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40014, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40015, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250016041
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 41001, monster_id = 20010801, pos = { x = 1373.712, y = 200.000, z = 873.061 }, rot = { x = 0.000, y = 343.637, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 41002, monster_id = 20010801, pos = { x = 1369.243, y = 200.000, z = 876.334 }, rot = { x = 0.000, y = 343.637, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 41003, monster_id = 20010801, pos = { x = 1364.426, y = 200.000, z = 880.482 }, rot = { x = 0.000, y = 343.637, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 41011, monster_id = 20010801, pos = { x = 1360.512, y = 200.000, z = 885.858 }, rot = { x = 0.000, y = 343.637, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 41012, monster_id = 20010801, pos = { x = 1354.957, y = 200.000, z = 892.617 }, rot = { x = 0.000, y = 343.637, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 41004, gadget_id = 70900008, pos = { x = 1377.317, y = 200.000, z = 871.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 41005, gadget_id = 70360025, pos = { x = 1349.486, y = 200.012, z = 901.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 41006, gadget_id = 70900201, pos = { x = 1349.486, y = 200.012, z = 901.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 41007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 1349.500, y = 200.012, z = 901.914 } }
}
-- 触发器
triggers = {
{ config_id = 1041007, name = "ENTER_REGION_41007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_41007", action = "", tag = "222", forbid_guest = false },
{ config_id = 1041008, name = "CHALLENGE_SUCCESS_41008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "111", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_41008", trigger_count = 0 },
{ config_id = 1041009, name = "CHALLENGE_FAIL_41009", event = EventType.EVENT_CHALLENGE_FAIL, source = "111", condition = "", action = "action_EVENT_CHALLENGE_FAIL_41009", trigger_count = 0 },
{ config_id = 1041010, name = "GADGET_STATE_CHANGE_41010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_41010", action = "action_EVENT_GADGET_STATE_CHANGE_41010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 41004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_41010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 41001, 41002, 41003, 41011, 41012 },
gadgets = { 41005, 41006 },
regions = { 41007 },
triggers = { "ENTER_REGION_41007", "CHALLENGE_SUCCESS_41008", "CHALLENGE_FAIL_41009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_41007(context, evt)
if evt.param1 ~= 41007 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_CHALLENGE_SUCCESS_41008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016041, 2)
-- 将configid为 41004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 41004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_41009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016041, 2)
-- 将configid为 41004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 41004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_41010(context, evt)
if 41004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_41010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016041, 2)
-- 创建编号为111(该挑战的识别id),挑战内容为189的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 111, 189, 10, 4, 222, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 250016042
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 42001, monster_id = 20011201, pos = { x = 1492.312, y = 264.932, z = 751.678 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42002, monster_id = 20011201, pos = { x = 1488.447, y = 264.426, z = 750.574 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42003, monster_id = 20011201, pos = { x = 1489.698, y = 264.756, z = 755.700 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42011, monster_id = 20011401, pos = { x = 1536.486, y = 267.086, z = 732.825 }, rot = { x = 0.000, y = 307.251, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42012, monster_id = 20011401, pos = { x = 1535.665, y = 266.976, z = 731.913 }, rot = { x = 0.000, y = 307.251, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42014, monster_id = 20011401, pos = { x = 1564.009, y = 272.329, z = 754.143 }, rot = { x = 0.000, y = 283.845, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 42015, monster_id = 20010501, pos = { x = 1564.510, y = 272.250, z = 752.791 }, rot = { x = 0.000, y = 283.845, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42004, gadget_id = 70900008, pos = { x = 1476.312, y = 263.572, z = 759.968 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42005, gadget_id = 70360025, pos = { x = 1578.158, y = 275.111, z = 738.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42006, gadget_id = 70900201, pos = { x = 1578.172, y = 275.116, z = 738.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42013, gadget_id = 70220005, pos = { x = 1536.512, y = 267.082, z = 731.980 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 42007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 1578.172, y = 275.116, z = 738.880 } }
}
-- 触发器
triggers = {
{ config_id = 1042007, name = "ENTER_REGION_42007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_42007", action = "", tag = "666", forbid_guest = false },
{ config_id = 1042008, name = "CHALLENGE_SUCCESS_42008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_42008", trigger_count = 0 },
{ config_id = 1042009, name = "CHALLENGE_FAIL_42009", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_42009", trigger_count = 0 },
{ config_id = 1042010, name = "GADGET_STATE_CHANGE_42010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_42010", action = "action_EVENT_GADGET_STATE_CHANGE_42010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 42004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_42010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 42001, 42002, 42003, 42011, 42012, 42014, 42015 },
gadgets = { 42005, 42006, 42013 },
regions = { 42007 },
triggers = { "ENTER_REGION_42007", "CHALLENGE_SUCCESS_42008", "CHALLENGE_FAIL_42009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_42007(context, evt)
if evt.param1 ~= 42007 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_CHALLENGE_SUCCESS_42008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016042, 2)
-- 将configid为 42004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 42004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_42009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250016042, 2)
-- 将configid为 42004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 42004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_42010(context, evt)
if 42004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_42010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250016042, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为189的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 189, 10, 4, 666, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
@@ -0,0 +1,155 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 40000007,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 97.18858,
"y": 7.814568,
"z": 399.631
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 8.23,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 80.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": 40000007,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 97.78393,
"y": -31.9275,
"z": 400.7783
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 80.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {
"1": {
"$type": "ConfigAirflowField",
"alias": "",
"areaId": 0,
"autoFly": false,
"colliderBlackList": [],
"colliderWhiteList": [],
"enterEffect": "Eff_Windfield_Enter",
"forceHor": false,
"gadgetId": 40200001,
"groupLimit": false,
"isModelHidden": false,
"pointType": "Other",
"pos": {
"x": 25.25967,
"y": -11.0,
"z": 276.939
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"scale": 2.0,
"stayEffect": "Eff_Windfield_Stay",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false,
"velocity": 50.0
}
},
"points": {},
"transRadius": 0.0
}