添加配置表

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 = -378.0, z = -449.5 },
size = { x = 750.4, z = 741.4 },
born_pos = { x = -109.920, y = -8.052, z = 8.708 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -50,
city_id = 1,
vision_anchor = { x = -378.0, z = -449.5 }
}
-- 所有的区块
blocks = { 50041 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -378.0, z = -449.5 }, max = { x = 372.5, z = 292.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,313 @@
{
"sceneId": 50041,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.37168,
"y": 71.70897,
"z": -76.47118
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 6.843994,
"y": 47.1791,
"z": -77.34299
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.438446,
"y": 71.7271652,
"z": -79.9113846
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 6.84423828,
"y": 47.18093,
"z": -80.1033554
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.34383,
"y": 71.6931,
"z": -83.20707
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 6.84423828,
"y": 47.18032,
"z": -82.99083
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.5035,
"y": 71.70897,
"z": -76.41154
},
"waitTime": 0.0,
"targetVelocity": 8.0
},
{
"pos": {
"x": 6.975816,
"y": 47.1791,
"z": -77.28334
},
"waitTime": 0.0,
"targetVelocity": 8.0
}
]
},
{
"localId": 5,
"name": "Platform_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.47565,
"y": 71.6931,
"z": -83.14742
},
"waitTime": 0.0,
"targetVelocity": 8.0
},
{
"pos": {
"x": 6.97606,
"y": 47.18032,
"z": -82.93118
},
"waitTime": 0.0,
"targetVelocity": 8.0
}
]
},
{
"localId": 6,
"name": "Platform_006",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 98.57027,
"y": 71.7271652,
"z": -79.85174
},
"waitTime": 0.0,
"targetVelocity": 8.0
},
{
"pos": {
"x": 6.97606,
"y": 47.18093,
"z": -80.04371
},
"waitTime": 0.0,
"targetVelocity": 8.0
}
]
},
{
"localId": 7,
"name": "Platform_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 99.78134,
"y": 71.7989655,
"z": -102.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.253654,
"y": 47.2691,
"z": -102.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 8,
"name": "Platform_008",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 99.75349,
"y": 71.7831,
"z": -105.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.253898,
"y": 47.27032,
"z": -105.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 9,
"name": "Platform_009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 99.84811,
"y": 71.81717,
"z": -108.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.253898,
"y": 47.27093,
"z": -108.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 10,
"name": "Platform_009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 99.84811,
"y": 71.81717,
"z": -111.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.253898,
"y": 47.27093,
"z": -111.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 11,
"name": "Platform_009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 99.84811,
"y": 71.81717,
"z": -114.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.253898,
"y": 47.27093,
"z": -114.0
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
}
]
}
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 250041001, refresh_id = 1, pos = { x = -158.781, y = 1.140, z = -60.585 } },
{ id = 250041002, refresh_id = 1, pos = { x = 31.047, y = 40.132, z = -73.900 } },
{ id = 250041003, refresh_id = 1, pos = { x = -4.332, y = 45.500, z = -74.312 } },
{ id = 250041004, refresh_id = 1, pos = { x = -4.200, y = 45.500, z = -74.252 } },
{ id = 250041005, refresh_id = 1, pos = { x = -2.922, y = 45.590, z = -99.272 } },
{ id = 250041006, refresh_id = 1001, pos = { x = 0.195, y = 0.002, z = -0.204 } }
}
@@ -0,0 +1,8 @@
dummy_points = {
["Q8000AbyssInvoker"] = { pos = { x = -28.568, y = 44.520, z = -79.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q8000Avatar"] = { pos = { x = -157.595, y = 1.140, z = -59.772 }, rot = { x = 0.000, y = 198.156, z = 0.000 } },
["Q8000Paimon"] = { pos = { x = -156.407, y = 1.140, z = -59.200 }, rot = { x = 0.000, y = 219.319, z = 0.000 } },
["Q8000Thoarder"] = { pos = { x = -156.575, y = 1.140, z = -68.781 }, rot = { x = 0.000, y = 187.987, z = 0.000 } },
["Q8000Traveler"] = { pos = { x = -153.892, y = 1.140, z = -67.432 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q8003Dainsleif"] = { pos = { x = -158.051, y = 1.140, z = -58.457 }, rot = { x = 0.000, y = 165.186, z = 0.000 } }
}
@@ -0,0 +1,260 @@
-- 基础信息
local base_info = {
group_id = 250041001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 随机用
{ config_id = 1001, gadget_id = 70360002, pos = { x = -21.025, y = 35.550, z = -81.270 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70350139, pos = { x = -30.000, y = 35.550, z = -70.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 重置用
{ config_id = 1009, gadget_id = 70360002, pos = { x = -24.448, y = 35.550, z = -83.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70350140, pos = { x = -29.999, y = 38.097, z = -69.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "GADGET_CREATE_1003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1003", action = "action_EVENT_GADGET_CREATE_1003" },
{ config_id = 1001004, name = "SELECT_OPTION_1004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1004", action = "action_EVENT_SELECT_OPTION_1004" },
{ config_id = 1001005, name = "CHALLENGE_FAIL_1005", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1005" },
{ config_id = 1001006, name = "TIMER_EVENT_1006", event = EventType.EVENT_TIMER_EVENT, source = "SS1", condition = "", action = "action_EVENT_TIMER_EVENT_1006", trigger_count = 50 },
{ config_id = 1001007, name = "TIMER_EVENT_1007", event = EventType.EVENT_TIMER_EVENT, source = "SS2", condition = "", action = "action_EVENT_TIMER_EVENT_1007", trigger_count = 50 },
{ config_id = 1001008, name = "SELECT_OPTION_1008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1008", action = "action_EVENT_SELECT_OPTION_1008" },
{ config_id = 1001010, name = "GADGET_CREATE_1010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1010", action = "action_EVENT_GADGET_CREATE_1010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1009, 1012 },
regions = { },
triggers = { "GADGET_CREATE_1003", "SELECT_OPTION_1004", "CHALLENGE_FAIL_1005", "TIMER_EVENT_1006", "TIMER_EVENT_1007", "SELECT_OPTION_1008", "GADGET_CREATE_1010" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1003(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1004(context, evt)
-- 判断是gadgetid 1001 option_id 2
if 1001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1004(context, evt)
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 60, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 延迟3秒后,向groupId为:250041001的对象,请求一次调用,并将string参数:"SS1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041001, "SS1", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1005(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041001, "SS1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041001, "SS2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1006(context, evt)
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041001, "SS2", 8) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1007(context, evt)
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041001, "SS1", 8) then
return -1
end
--ChangeBulletType(context)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1008(context, evt)
-- 判断是gadgetid 1009 option_id 4
if 1009 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1008(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041001, "SS1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041001, "SS2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1010(context, evt)
if 1009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1010(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250041001, 1009, {4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,438 @@
-- 基础信息
local base_info = {
group_id = 250041002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 222
{ config_id = 2001, gadget_id = 70360002, pos = { x = 1.122, y = 45.500, z = -65.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70950010, pos = { x = 15.331, y = 47.946, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70950010, pos = { x = 30.534, y = 52.019, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70950010, pos = { x = 36.425, y = 53.598, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70950010, pos = { x = 58.670, y = 59.559, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70950010, pos = { x = 72.107, y = 63.159, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70950010, pos = { x = 71.998, y = 63.130, z = -75.016 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70950010, pos = { x = 13.960, y = 47.578, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70950010, pos = { x = 35.658, y = 53.392, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70950010, pos = { x = 45.900, y = 56.137, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70950010, pos = { x = 54.393, y = 58.412, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70950010, pos = { x = 76.426, y = 64.316, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70950010, pos = { x = 77.596, y = 64.629, z = -84.753 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70310020, pos = { x = 24.729, y = 49.859, z = -88.045 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2024, gadget_id = 70310020, pos = { x = 47.489, y = 56.017, z = -72.034 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2025, gadget_id = 70310020, pos = { x = 65.413, y = 60.814, z = -87.173 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70310020, pos = { x = 83.289, y = 65.540, z = -72.114 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1 },
{ config_id = 2028, gadget_id = 70120004, pos = { x = 108.427, y = 69.957, z = -80.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2035, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2036, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2037, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2038, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2039, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2040, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2041, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2042, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2043, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2044, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2045, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2046, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2047, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2048, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2049, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2050, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2051, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2052, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2053, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2054, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2055, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2056, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2057, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2058, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2059, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2060, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2061, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2062, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2063, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2064, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2065, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2066, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2067, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2068, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2069, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2070, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2071, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2072, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2073, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2074, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2075, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2076, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 },
{ config_id = 2077, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 1 },
{ config_id = 2078, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 2 },
{ config_id = 2079, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, route_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002029, name = "GADGET_CREATE_2029", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2029", action = "action_EVENT_GADGET_CREATE_2029" },
{ config_id = 1002030, name = "SELECT_OPTION_2030", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2030", action = "action_EVENT_SELECT_OPTION_2030" },
{ config_id = 1002031, name = "CHALLENGE_FAIL_2031", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2031" },
{ config_id = 1002032, name = "TIMER_EVENT_2032", event = EventType.EVENT_TIMER_EVENT, source = "aa", condition = "", action = "action_EVENT_TIMER_EVENT_2032", trigger_count = 50 },
{ config_id = 1002034, name = "TIMER_EVENT_2034", event = EventType.EVENT_TIMER_EVENT, source = "aa2", condition = "", action = "action_EVENT_TIMER_EVENT_2034", trigger_count = 50 }
}
-- 变量
variables = {
{ config_id = 1, name = "WindFloraNum", value = 1, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { },
triggers = { "GADGET_CREATE_2029", "SELECT_OPTION_2030", "CHALLENGE_FAIL_2031" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "TIMER_EVENT_2032", "TIMER_EVENT_2034" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 2023, 2024, 2025, 2026, 2028 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 2035, 2036, 2037 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 2038, 2039, 2040 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 2041, 2042, 2043 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 2044, 2045, 2046 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 2047, 2048, 2049 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 2050, 2051, 2052 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 2053, 2054, 2055 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 2056, 2057, 2058 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 14,
-- description = ,
monsters = { },
gadgets = { 2059, 2060, 2061 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 15,
-- description = ,
monsters = { },
gadgets = { 2062, 2063, 2064 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 16,
-- description = ,
monsters = { },
gadgets = { 2065, 2066, 2067 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 17,
-- description = ,
monsters = { },
gadgets = { 2068, 2069, 2070 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 18,
-- description = ,
monsters = { },
gadgets = { 2071, 2072, 2073 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 19,
-- description = ,
monsters = { },
gadgets = { 2074, 2075, 2076 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 20,
-- description = ,
monsters = { },
gadgets = { 2077, 2078, 2079 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2029(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2029(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
-- 将本组内变量名为 "WindFloraNum" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "WindFloraNum", 1, 250041002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2030(context, evt)
-- 判断是gadgetid 2001 option_id 2
if 2001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2030(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250041002, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250041002, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250041002, 4)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250041002, 5)
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 60, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 延迟3秒后,向groupId为:250041002的对象,请求一次调用,并将string参数:"aa" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041002, "aa", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2031(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041002, "aa") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041002, "aa2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "WindFloraNum" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "WindFloraNum", 1, 250041002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2032(context, evt)
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041002, "aa2", 4) then
return -1
end
--BubblePlatform(context)
RandomBubbleNum(context)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2034(context, evt)
-- 延迟5秒后,向groupId为:250041002的对象,请求一次调用,并将string参数:"aa" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041002, "aa", 4) then
return -1
end
--BubblePlatform(context)
RandomBubbleNum(context)
return 0
end
require "BubbleGame"
@@ -0,0 +1,501 @@
-- 基础信息
local base_info = {
group_id = 250041003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360002, pos = { x = -3.303, y = 45.500, z = -74.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3005, gadget_id = 70950010, pos = { x = 15.425, y = 45.848, z = -74.939 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3007, gadget_id = 70950010, pos = { x = 27.223, y = 50.143, z = -74.939 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3009, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3010, gadget_id = 70950010, pos = { x = 36.982, y = 53.695, z = -74.939 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3012, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3013, gadget_id = 70950010, pos = { x = 59.607, y = 59.203, z = -74.939 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70950010, pos = { x = 73.158, y = 60.945, z = -74.939 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3016, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3017, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3018, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3020, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3021, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3022, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3023, gadget_id = 70950010, pos = { x = 14.546, y = 45.528, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70950010, pos = { x = 36.004, y = 53.338, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3026, gadget_id = 70950010, pos = { x = 53.444, y = 57.252, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3027, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3028, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3029, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3030, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3031, gadget_id = 70950010, pos = { x = 76.384, y = 65.310, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3032, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -79.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3033, gadget_id = 70950010, pos = { x = 79.003, y = 63.072, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3034, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -76.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 3035, gadget_id = 70950010, pos = { x = 88.227, y = 65.420, z = -84.802 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 3036, gadget_id = 70350138, pos = { x = 98.383, y = 71.636, z = -83.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3 },
{ config_id = 3047, gadget_id = 70120004, pos = { x = 108.686, y = 71.100, z = -81.037 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "GADGET_CREATE_3002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3002", action = "action_EVENT_GADGET_CREATE_3002" },
{ config_id = 1003003, name = "SELECT_OPTION_3003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3003", action = "action_EVENT_SELECT_OPTION_3003" },
{ config_id = 1003037, name = "TIMER_EVENT_3037", event = EventType.EVENT_TIMER_EVENT, source = "AA10", condition = "", action = "action_EVENT_TIMER_EVENT_3037", trigger_count = 10 },
{ config_id = 1003038, name = "TIMER_EVENT_3038", event = EventType.EVENT_TIMER_EVENT, source = "AA9", condition = "", action = "action_EVENT_TIMER_EVENT_3038", trigger_count = 10 },
{ config_id = 1003039, name = "TIMER_EVENT_3039", event = EventType.EVENT_TIMER_EVENT, source = "AA8", condition = "", action = "action_EVENT_TIMER_EVENT_3039", trigger_count = 10 },
{ config_id = 1003040, name = "TIMER_EVENT_3040", event = EventType.EVENT_TIMER_EVENT, source = "AA7", condition = "", action = "action_EVENT_TIMER_EVENT_3040", trigger_count = 10 },
{ config_id = 1003041, name = "TIMER_EVENT_3041", event = EventType.EVENT_TIMER_EVENT, source = "AA6", condition = "", action = "action_EVENT_TIMER_EVENT_3041", trigger_count = 10 },
{ config_id = 1003042, name = "TIMER_EVENT_3042", event = EventType.EVENT_TIMER_EVENT, source = "AA5", condition = "", action = "action_EVENT_TIMER_EVENT_3042", trigger_count = 10 },
{ config_id = 1003043, name = "TIMER_EVENT_3043", event = EventType.EVENT_TIMER_EVENT, source = "AA4", condition = "", action = "action_EVENT_TIMER_EVENT_3043", trigger_count = 10 },
{ config_id = 1003044, name = "TIMER_EVENT_3044", event = EventType.EVENT_TIMER_EVENT, source = "AA3", condition = "", action = "action_EVENT_TIMER_EVENT_3044", trigger_count = 10 },
{ config_id = 1003045, name = "TIMER_EVENT_3045", event = EventType.EVENT_TIMER_EVENT, source = "AA2", condition = "", action = "action_EVENT_TIMER_EVENT_3045", trigger_count = 10 },
{ config_id = 1003046, name = "TIMER_EVENT_3046", event = EventType.EVENT_TIMER_EVENT, source = "AA1", condition = "", action = "action_EVENT_TIMER_EVENT_3046", trigger_count = 10 },
{ config_id = 1003048, name = "SELECT_OPTION_3048", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3048", action = "action_EVENT_SELECT_OPTION_3048" },
{ config_id = 1003049, name = "CHALLENGE_FAIL_3049", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_3049" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { },
triggers = { "GADGET_CREATE_3002", "SELECT_OPTION_3003", "TIMER_EVENT_3037", "TIMER_EVENT_3038", "TIMER_EVENT_3039", "TIMER_EVENT_3040", "TIMER_EVENT_3041", "TIMER_EVENT_3042", "TIMER_EVENT_3043", "TIMER_EVENT_3044", "TIMER_EVENT_3045", "TIMER_EVENT_3046", "SELECT_OPTION_3048", "CHALLENGE_FAIL_3049" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3004, 3006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3011, 3012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 3015 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 3016, 3017, 3018 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 3020, 3021 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 3022 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 3025, 3027 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 3028, 3029, 3030 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 3032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 3034, 3036 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 3008, 3009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 3005, 3007, 3010, 3013, 3014, 3023, 3024, 3026, 3031, 3033, 3035, 3047 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3002(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3003(context, evt)
-- 判断是gadgetid 3001 option_id 2
if 3001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
-- 延迟1秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite13的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 13)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3037(context, evt)
-- 添加suite12的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 12)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA1", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3038(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 11)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA10" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA10", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3039(context, evt)
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 10)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA9" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA9", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3040(context, evt)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 9)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA8" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA8", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3041(context, evt)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 8)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA7" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA7", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3042(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 7)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA6" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA6", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3043(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 6)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA5", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3044(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 5)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA4", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3045(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 4)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA3", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3046(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250041003, 3)
-- 延迟4秒后,向groupId为:250041003的对象,请求一次调用,并将string参数:"AA2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041003, "AA2", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3048(context, evt)
-- 判断是gadgetid 3001 option_id 2
if 3001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3048(context, evt)
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 90, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_3049(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041003, "AA1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041003, "AA3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041003, "AA5") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041003, "AA7") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041003, "AA9") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
return 0
end
@@ -0,0 +1,503 @@
-- 基础信息
local base_info = {
group_id = 250041004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360002, pos = { x = -5.360, y = 45.500, z = -74.307 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4003, gadget_id = 70950010, pos = { x = 15.556, y = 45.848, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4005, gadget_id = 70950010, pos = { x = 27.355, y = 50.143, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
{ config_id = 4007, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4008, gadget_id = 70950010, pos = { x = 37.114, y = 53.695, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4009, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
{ config_id = 4010, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4011, gadget_id = 70950010, pos = { x = 59.739, y = 59.203, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70950010, pos = { x = 73.290, y = 60.945, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4016, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4017, gadget_id = 70950010, pos = { x = 72.781, y = 59.750, z = -74.879 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4019, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4020, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4021, gadget_id = 70950010, pos = { x = 14.677, y = 45.528, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4022, gadget_id = 70950010, pos = { x = 36.135, y = 53.338, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4023, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4024, gadget_id = 70950010, pos = { x = 53.576, y = 57.252, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4025, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4026, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4027, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
{ config_id = 4028, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -83.278 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 4029, gadget_id = 70950010, pos = { x = 76.516, y = 65.310, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4030, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
{ config_id = 4031, gadget_id = 70950010, pos = { x = 87.582, y = 66.147, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4032, gadget_id = 70350138, pos = { x = 98.464, y = 71.727, z = -76.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 4033, gadget_id = 70950010, pos = { x = 88.940, y = 65.632, z = -84.742 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 4034, gadget_id = 70350138, pos = { x = 98.515, y = 71.636, z = -79.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6 },
{ config_id = 4035, gadget_id = 70120004, pos = { x = 108.817, y = 71.100, z = -80.977 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4048, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -76.492 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4049, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -79.944 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4050, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -83.184 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004014, name = "SELECT_OPTION_4014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4014", action = "action_EVENT_SELECT_OPTION_4014" },
{ config_id = 1004015, name = "CHALLENGE_FAIL_4015", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4015" },
{ config_id = 1004036, name = "GADGET_CREATE_4036", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4036", action = "action_EVENT_GADGET_CREATE_4036" },
{ config_id = 1004037, name = "SELECT_OPTION_4037", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4037", action = "action_EVENT_SELECT_OPTION_4037" },
{ config_id = 1004038, name = "TIMER_EVENT_4038", event = EventType.EVENT_TIMER_EVENT, source = "AA10", condition = "", action = "action_EVENT_TIMER_EVENT_4038", trigger_count = 10 },
{ config_id = 1004039, name = "TIMER_EVENT_4039", event = EventType.EVENT_TIMER_EVENT, source = "AA9", condition = "", action = "action_EVENT_TIMER_EVENT_4039", trigger_count = 10 },
{ config_id = 1004040, name = "TIMER_EVENT_4040", event = EventType.EVENT_TIMER_EVENT, source = "AA8", condition = "", action = "action_EVENT_TIMER_EVENT_4040", trigger_count = 10 },
{ config_id = 1004041, name = "TIMER_EVENT_4041", event = EventType.EVENT_TIMER_EVENT, source = "AA7", condition = "", action = "action_EVENT_TIMER_EVENT_4041", trigger_count = 10 },
{ config_id = 1004042, name = "TIMER_EVENT_4042", event = EventType.EVENT_TIMER_EVENT, source = "AA6", condition = "", action = "action_EVENT_TIMER_EVENT_4042", trigger_count = 10 },
{ config_id = 1004043, name = "TIMER_EVENT_4043", event = EventType.EVENT_TIMER_EVENT, source = "AA5", condition = "", action = "action_EVENT_TIMER_EVENT_4043", trigger_count = 10 },
{ config_id = 1004044, name = "TIMER_EVENT_4044", event = EventType.EVENT_TIMER_EVENT, source = "AA4", condition = "", action = "action_EVENT_TIMER_EVENT_4044", trigger_count = 10 },
{ config_id = 1004045, name = "TIMER_EVENT_4045", event = EventType.EVENT_TIMER_EVENT, source = "AA3", condition = "", action = "action_EVENT_TIMER_EVENT_4045", trigger_count = 10 },
{ config_id = 1004046, name = "TIMER_EVENT_4046", event = EventType.EVENT_TIMER_EVENT, source = "AA2", condition = "", action = "action_EVENT_TIMER_EVENT_4046", trigger_count = 10 },
{ config_id = 1004047, name = "TIMER_EVENT_4047", event = EventType.EVENT_TIMER_EVENT, source = "AA1", condition = "", action = "action_EVENT_TIMER_EVENT_4047", trigger_count = 10 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { "SELECT_OPTION_4014", "CHALLENGE_FAIL_4015", "GADGET_CREATE_4036", "SELECT_OPTION_4037", "TIMER_EVENT_4038", "TIMER_EVENT_4039", "TIMER_EVENT_4040", "TIMER_EVENT_4041", "TIMER_EVENT_4042", "TIMER_EVENT_4043", "TIMER_EVENT_4044", "TIMER_EVENT_4045", "TIMER_EVENT_4046", "TIMER_EVENT_4047" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4002, 4004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4009, 4010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 4016, 4018, 4034 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 4019 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 4020 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 4023, 4025 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 4026, 4027, 4028 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 4030 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 4032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 4006, 4007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 4003, 4005, 4008, 4011, 4012, 4017, 4021, 4022, 4024, 4029, 4031, 4033, 4035, 4048, 4049, 4050 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4014(context, evt)
-- 判断是gadgetid 4001 option_id 2
if 4001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4014(context, evt)
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 90, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4015(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA5") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA7") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041004, "AA9") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4036(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4036(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4037(context, evt)
-- 判断是gadgetid 4001 option_id 2
if 4001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4037(context, evt)
-- 延迟1秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite13的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 13)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4038(context, evt)
-- 添加suite12的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 12)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA1", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4039(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 11)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA10" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA10", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4040(context, evt)
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 10)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA9" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA9", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4041(context, evt)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 9)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA8" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA8", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4042(context, evt)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 8)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA7" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA7", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4043(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 7)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA6" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA6", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4044(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 6)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA5", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4045(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 5)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA4", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4046(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 4)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA3", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4047(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250041004, 3)
-- 延迟3秒后,向groupId为:250041004的对象,请求一次调用,并将string参数:"AA2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041004, "AA2", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
@@ -0,0 +1,526 @@
-- 基础信息
local base_info = {
group_id = 250041005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360002, pos = { x = -1.893, y = 45.590, z = -98.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5003, gadget_id = 70950010, pos = { x = 16.834, y = 45.938, z = -100.464 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5005, gadget_id = 70950010, pos = { x = 28.633, y = 50.233, z = -100.464 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5008, gadget_id = 70950010, pos = { x = 38.392, y = 53.785, z = -100.464 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5009, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5010, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5011, gadget_id = 70950010, pos = { x = 61.017, y = 59.293, z = -100.464 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5012, gadget_id = 70950010, pos = { x = 74.568, y = 61.035, z = -100.464 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5014, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -101.979 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5015, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5016, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5018, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5019, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -104.860 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5020, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5021, gadget_id = 70950010, pos = { x = 15.955, y = 45.618, z = -115.198 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5022, gadget_id = 70950010, pos = { x = 37.413, y = 53.428, z = -115.238 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5023, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5024, gadget_id = 70950010, pos = { x = 54.853, y = 57.342, z = -115.238 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5025, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -107.891 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5026, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5027, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5028, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -110.942 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5029, gadget_id = 70950010, pos = { x = 77.794, y = 65.400, z = -115.238 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5030, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5031, gadget_id = 70950010, pos = { x = 89.688, y = 66.538, z = -115.238 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5032, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5033, gadget_id = 70950010, pos = { x = 89.135, y = 65.328, z = -115.238 }, rot = { x = 0.000, y = 0.000, z = 20.000 }, level = 1 },
{ config_id = 5034, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5035, gadget_id = 70120004, pos = { x = 110.095, y = 71.190, z = -107.770 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5048, gadget_id = 70320002, pos = { x = 101.975, y = 70.849, z = -113.788 }, rot = { x = 15.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5049, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5050, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5051, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5052, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5054, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5055, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5056, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5057, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5058, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5059, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5060, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5063, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5064, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5065, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5066, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5067, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5068, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5069, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5071, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -113.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 11 },
{ config_id = 5072, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 5074, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5075, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5077, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -111.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10 },
{ config_id = 5078, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -108.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 9 },
{ config_id = 5079, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -101.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 5080, gadget_id = 70350138, pos = { x = 99.792, y = 71.726, z = -105.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "SELECT_OPTION_5002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5002", action = "action_EVENT_SELECT_OPTION_5002" },
{ config_id = 1005007, name = "CHALLENGE_FAIL_5007", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5007" },
{ config_id = 1005036, name = "GADGET_CREATE_5036", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5036", action = "action_EVENT_GADGET_CREATE_5036" },
{ config_id = 1005037, name = "SELECT_OPTION_5037", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5037", action = "action_EVENT_SELECT_OPTION_5037" },
{ config_id = 1005038, name = "TIMER_EVENT_5038", event = EventType.EVENT_TIMER_EVENT, source = "AA10", condition = "", action = "action_EVENT_TIMER_EVENT_5038", trigger_count = 10 },
{ config_id = 1005039, name = "TIMER_EVENT_5039", event = EventType.EVENT_TIMER_EVENT, source = "AA9", condition = "", action = "action_EVENT_TIMER_EVENT_5039", trigger_count = 10 },
{ config_id = 1005040, name = "TIMER_EVENT_5040", event = EventType.EVENT_TIMER_EVENT, source = "AA8", condition = "", action = "action_EVENT_TIMER_EVENT_5040", trigger_count = 10 },
{ config_id = 1005041, name = "TIMER_EVENT_5041", event = EventType.EVENT_TIMER_EVENT, source = "AA7", condition = "", action = "action_EVENT_TIMER_EVENT_5041", trigger_count = 10 },
{ config_id = 1005042, name = "TIMER_EVENT_5042", event = EventType.EVENT_TIMER_EVENT, source = "AA6", condition = "", action = "action_EVENT_TIMER_EVENT_5042", trigger_count = 10 },
{ config_id = 1005043, name = "TIMER_EVENT_5043", event = EventType.EVENT_TIMER_EVENT, source = "AA5", condition = "", action = "action_EVENT_TIMER_EVENT_5043", trigger_count = 10 },
{ config_id = 1005044, name = "TIMER_EVENT_5044", event = EventType.EVENT_TIMER_EVENT, source = "AA4", condition = "", action = "action_EVENT_TIMER_EVENT_5044", trigger_count = 10 },
{ config_id = 1005045, name = "TIMER_EVENT_5045", event = EventType.EVENT_TIMER_EVENT, source = "AA3", condition = "", action = "action_EVENT_TIMER_EVENT_5045", trigger_count = 10 },
{ config_id = 1005046, name = "TIMER_EVENT_5046", event = EventType.EVENT_TIMER_EVENT, source = "AA2", condition = "", action = "action_EVENT_TIMER_EVENT_5046", trigger_count = 10 },
{ config_id = 1005047, name = "TIMER_EVENT_5047", event = EventType.EVENT_TIMER_EVENT, source = "AA1", condition = "", action = "action_EVENT_TIMER_EVENT_5047", trigger_count = 10 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "SELECT_OPTION_5002", "CHALLENGE_FAIL_5007", "GADGET_CREATE_5036", "SELECT_OPTION_5037", "TIMER_EVENT_5038", "TIMER_EVENT_5039", "TIMER_EVENT_5040", "TIMER_EVENT_5041", "TIMER_EVENT_5042", "TIMER_EVENT_5043", "TIMER_EVENT_5044", "TIMER_EVENT_5045", "TIMER_EVENT_5046", "TIMER_EVENT_5047" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5049, 5050, 5051, 5052 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 5077, 5078, 5079, 5080 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 5004, 5006, 5009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 5010, 5013, 5015, 5016 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 5018, 5020, 5023 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 5026, 5027, 5030, 5032 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 5034, 5054, 5055, 5056 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 5057, 5058, 5059, 5060 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 5063, 5064, 5065, 5066 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 5067, 5068, 5069, 5071 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 5072, 5074, 5075 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 5003, 5005, 5008, 5011, 5012, 5014, 5019, 5021, 5022, 5024, 5025, 5028, 5029, 5031, 5033, 5035, 5048 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_5002(context, evt)
-- 判断是gadgetid 5001 option_id 2
if 5001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5002(context, evt)
-- 创建编号为666(该挑战的识别id),挑战内容为127的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 90, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041005, "AA1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041005, "AA3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041005, "AA5") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041005, "AA7") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 250041005, "AA9") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5036(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5036(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5037(context, evt)
-- 判断是gadgetid 5001 option_id 2
if 5001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5037(context, evt)
-- 延迟1秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite13的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 13)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5038(context, evt)
-- 添加suite12的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 12)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA1", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5039(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 11)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA10" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA10", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5040(context, evt)
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 10)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA9" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA9", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5041(context, evt)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 9)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA8" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA8", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5042(context, evt)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 8)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA7" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA7", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5043(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 7)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA6" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA6", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5044(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 6)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA5", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5045(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 5)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA4", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5046(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 4)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA3", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5047(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250041005, 3)
-- 延迟4秒后,向groupId为:250041005的对象,请求一次调用,并将string参数:"AA2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250041005, "AA2", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 250041006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 20011201, pos = { x = 0.237, y = 0.002, z = -0.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70270004, pos = { x = 0.392, y = -0.422, z = 0.113 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70300088, pos = { x = 0.271, y = -0.154, z = -26.840 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70360002, pos = { x = 0.334, y = -0.012, z = -24.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 刷新无相火
{ config_id = 1006002, name = "SELECT_OPTION_6002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6002", action = "action_EVENT_SELECT_OPTION_6002", trigger_count = 0 },
{ config_id = 1006006, name = "GADGET_CREATE_6006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6006", action = "action_EVENT_GADGET_CREATE_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001 },
gadgets = { 6003, 6004, 6005 },
regions = { },
triggers = { "SELECT_OPTION_6002", "GADGET_CREATE_6006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_6002(context, evt)
-- 判断是gadgetid 6005 option_id 4
if 6005 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6006(context, evt)
if 6005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250041006, 6005, {4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,85 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -48.32092,
"y": 21.86,
"z": -70.23141
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 0.09180348,
"y": 0.001747399,
"z": -20.50893
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 0.1623944,
"y": 0.0017473998,
"z": -20.5089283
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}