添加配置表

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 = -230.0, z = -430.0 },
size = { x = 504.0, z = 440.0 },
born_pos = { x = 183.341, y = 4.000, z = -33.292 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -200,
city_id = 1,
vision_anchor = { x = -230.0, z = -430.0 }
}
-- 所有的区块
blocks = { 50009 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -230.0, z = -430.0 }, max = { x = 274.0, z = 10.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,221 @@
{
"sceneId": 50009,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 39.4444962,
"y": 8.44000149,
"z": -137.987213
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": -9.190356E-06,
"y": 180.345779,
"z": 3.18055472E-15
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": -9.190356E-06,
"y": 180.345779,
"z": 3.18055472E-15
},
"rotRoundWaitRounds": 0,
"reachStop": true
},
{
"pos": {
"x": 39.3070068,
"y": 8.440005,
"z": -160.7689
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": -9.190356E-06,
"y": 180.345779,
"z": 3.18055472E-15
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": -9.190356E-06,
"y": 180.345779,
"z": 3.18055472E-15
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 39.300972,
"y": 8.440005,
"z": -161.76889
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 90.9911652,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.9911652,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 67.92999,
"y": 8.440005,
"z": -162.264191
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 90.9911652,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.9911652,
"z": 0.0
},
"rotRoundWaitRounds": 0,
"reachStop": true
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 97.1923752,
"y": 21.0542183,
"z": -201.599991
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 98.27745,
"y": 21.5924282,
"z": -192.107437
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 33.8800163,
"y": 21.5924225,
"z": -194.202774
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 32.31127,
"y": 21.592432,
"z": -207.952621
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 46.46076,
"y": 11.65109,
"z": -126.266495
},
"waitTime": 0.0,
"reachStop": true
},
{
"pos": {
"x": 46.26392,
"y": 14.9830275,
"z": -126.062416
},
"waitTime": 0.0
},
{
"pos": {
"x": 45.94256,
"y": 14.9528208,
"z": -133.123245
},
"waitTime": 0.0
},
{
"pos": {
"x": 50.9145775,
"y": 14.74177,
"z": -133.4601
},
"waitTime": 0.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 13.9204788,
"y": 9.070003,
"z": -156.9584
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -2.63723946,
"y": 9.070003,
"z": -156.691681
},
"waitTime": 0.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,21 @@
-- 所有的group
groups = {
{ id = 250009003, refresh_id = 999999, pos = { x = 155.404, y = 3.990, z = -4.808 } },
{ id = 250009004, refresh_id = 1, pos = { x = 187.959, y = 3.990, z = -8.913 } },
{ id = 250009005, refresh_id = 1, pos = { x = 149.948, y = 8.950, z = -80.187 } },
{ id = 250009006, refresh_id = 1, pos = { x = 198.355, y = 3.990, z = -111.727 } },
{ id = 250009007, refresh_id = 1, pos = { x = 202.386, y = 3.990, z = -73.684 } },
{ id = 250009008, refresh_id = 1001, pos = { x = 187.964, y = 3.990, z = -85.613 } },
{ id = 250009009, pos = { x = 197.081, y = 3.990, z = -41.755 } },
{ id = 250009010, refresh_id = 1000, pos = { x = 146.277, y = 4.159, z = -44.121 } },
{ id = 250009011, refresh_id = 1000, pos = { x = 109.987, y = 4.159, z = -44.364 } },
{ id = 250009012, refresh_id = 1001, pos = { x = 141.043, y = 3.990, z = -18.075 } },
{ id = 250009013, refresh_id = 1001, pos = { x = 136.459, y = 3.990, z = -5.933 } },
{ id = 250009014, refresh_id = 1, pos = { x = 146.311, y = 3.990, z = -115.399 } },
{ id = 250009015, refresh_id = 1, pos = { x = 100.201, y = 3.990, z = -174.111 } },
{ id = 250009016, refresh_id = 1002, pos = { x = 7.894, y = 3.990, z = -143.924 } },
{ id = 250009017, pos = { x = 111.530, y = 3.990, z = -150.635 } },
{ id = 250009018, pos = { x = 146.071, y = 3.990, z = -183.945 } },
{ id = 250009019, pos = { x = 111.982, y = 3.990, z = -185.836 } },
{ id = 250009020, refresh_id = 1, pos = { x = 60.145, y = 3.990, z = -37.352 } }
}
@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 250009003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6, monster_id = 20010901, pos = { x = 155.604, y = 3.990, z = -4.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13, gadget_id = 70211001, pos = { x = 154.317, y = 3.990, z = -7.327 }, rot = { x = 0.000, y = 353.493, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 20, gadget_id = 70500000, pos = { x = 151.110, y = 3.990, z = -5.680 }, rot = { x = 0.000, y = 285.112, z = 0.000 }, level = 1, point_type = 3007 },
{ config_id = 21, gadget_id = 70500000, pos = { x = 158.050, y = 3.990, z = -3.350 }, rot = { x = 0.000, y = 285.112, z = 0.000 }, level = 1, point_type = 3007 },
{ config_id = 22, gadget_id = 70500000, pos = { x = 155.394, y = 3.990, z = -1.287 }, rot = { x = 0.000, y = 285.112, z = 0.000 }, level = 1, point_type = 3007 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000009, name = "GADGET_STATE_CHANGE_9", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9", action = "action_EVENT_GADGET_STATE_CHANGE_9" },
{ config_id = 1000010, name = "ANY_MONSTER_DIE_10", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_10" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 20, 21, 22 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_9", "ANY_MONSTER_DIE_10" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9(context, evt)
if 12 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10(context, evt)
-- 创建id为13的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 250009004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70900303, pos = { x = 174.786, y = 10.488, z = -20.118 }, rot = { x = 0.000, y = 52.970, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70211001, pos = { x = 198.535, y = 3.990, z = -8.368 }, rot = { x = 0.000, y = 102.012, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 4003, gadget_id = 70360001, pos = { x = 187.330, y = 5.010, z = -11.884 }, rot = { x = 0.000, y = 327.647, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14, shape = RegionShape.CUBIC, size = { x = 1.000, y = 1.000, z = 1.000 }, pos = { x = 203.492, y = 5.089, z = -0.520 } }
}
-- 触发器
triggers = {
{ config_id = 1000014, name = "ENTER_REGION_14", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_14", forbid_guest = false },
{ config_id = 1000015, name = "CLIENT_EXECUTE_15", event = EventType.EVENT_CLIENT_EXECUTE, source = "View", condition = "", action = "action_EVENT_CLIENT_EXECUTE_15" },
{ 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" },
{ 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", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4003 },
regions = { 14 },
triggers = { "ENTER_REGION_14", "CLIENT_EXECUTE_15", "GADGET_CREATE_17", "SELECT_OPTION_18" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_14(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_15(context, evt)
-- 创建id为4002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17(context, evt)
if 4003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009004, 4003, {172}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18(context, evt)
-- 判断是gadgetid 4003 option_id 172
if 4003 ~= evt.param1 then
return false
end
if 172 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18(context, evt)
-- 调用提示id为 500090101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500090101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,85 @@
-- 基础信息
local base_info = {
group_id = 250009005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70211001, pos = { x = 147.201, y = 8.950, z = -88.604 }, rot = { x = 0.000, y = 133.129, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 16, shape = RegionShape.CUBIC, size = { x = 10.000, y = 3.000, z = 10.000 }, pos = { x = 147.330, y = 5.606, z = -80.851 } }
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_16", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 16 },
triggers = { "ENTER_REGION_16" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_16(context, evt)
-- 创建id为18的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 18 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 250009006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23, gadget_id = 70900304, pos = { x = 189.757, y = 3.990, z = -119.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 23 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,175 @@
-- 基础信息
local base_info = {
group_id = 250009007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24, gadget_id = 70900307, pos = { x = 204.431, y = 3.990, z = -70.808 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25, gadget_id = 70211001, pos = { x = 202.516, y = 3.990, z = -73.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 26, gadget_id = 70900307, pos = { x = 198.821, y = 3.990, z = -73.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27, gadget_id = 70900307, pos = { x = 203.999, y = 3.990, z = -77.103 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000019, name = "GADGET_STATE_CHANGE_19", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19", action = "action_EVENT_GADGET_STATE_CHANGE_19" },
{ config_id = 1000020, name = "GADGET_STATE_CHANGE_20", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_20", action = "action_EVENT_GADGET_STATE_CHANGE_20" },
{ config_id = 1000021, name = "GADGET_STATE_CHANGE_21", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_21", action = "action_EVENT_GADGET_STATE_CHANGE_21" },
{ config_id = 1000022, name = "VARIABLE_CHANGE_22", event = EventType.EVENT_VARIABLE_CHANGE, source = "count", condition = "condition_EVENT_VARIABLE_CHANGE_22", action = "action_EVENT_VARIABLE_CHANGE_22" },
{ config_id = 1000023, name = "TIMER_EVENT_23", event = EventType.EVENT_TIMER_EVENT, source = "SpawnChest", condition = "", action = "action_EVENT_TIMER_EVENT_23" }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24, 26, 27 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_19", "GADGET_STATE_CHANGE_20", "GADGET_STATE_CHANGE_21", "VARIABLE_CHANGE_22", "TIMER_EVENT_23" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
if 24 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19(context, evt)
-- 创建id为25的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 25 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_20(context, evt)
if 26 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_20(context, evt)
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_21(context, evt)
if 27 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_21(context, evt)
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_22(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_22(context, evt)
-- 延迟1秒后,向groupId为:250009007的对象,请求一次调用,并将string参数:"SpawnChest" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250009007, "SpawnChest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_23(context, evt)
-- 创建id为25的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 25 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,93 @@
-- 基础信息
local base_info = {
group_id = 250009008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7, monster_id = 20010101, pos = { x = 187.071, y = 3.990, z = -87.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28, gadget_id = 70211001, pos = { x = 185.702, y = 3.990, z = -84.419 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 24, shape = RegionShape.SPHERE, radius = 5, pos = { x = 179.900, y = 3.990, z = -95.995 } }
}
-- 触发器
triggers = {
{ config_id = 1000024, name = "ENTER_REGION_24", event = EventType.EVENT_ENTER_REGION, source = "2", condition = "condition_EVENT_ENTER_REGION_24", action = "action_EVENT_ENTER_REGION_24", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 7 },
gadgets = { },
regions = { 24 },
triggers = { "ENTER_REGION_24" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_24(context, evt)
if evt.param1 ~= 24 or evt.param3 ~= 7 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_24(context, evt)
if 0~= ScriptLib.CreateGadget(context, { config_id = 28}) then
return -1
end
return 0
end
@@ -0,0 +1,231 @@
-- 基础信息
local base_info = {
group_id = 250009009
}
-- Trigger变量
local defs = {
group_id = 250009009,
gadget_target_1 = 9002,
monster_mole_1 = 9001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 28050201, pos = { x = 196.735, y = 4.072, z = -41.866 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 9007, monster_id = 28050201, pos = { x = 199.792, y = 4.036, z = -37.256 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9002, gadget_id = 70360027, pos = { x = 199.729, y = 3.990, z = -37.251 }, rot = { x = 0.000, y = 104.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9003, gadget_id = 70360015, pos = { x = 197.029, y = 3.990, z = -41.751 }, rot = { x = 0.000, y = 15.100, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009004, name = "ANY_MONSTER_DIE_9004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_9004" },
{ config_id = 1009005, name = "SELECT_OPTION_9005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9005", action = "action_EVENT_SELECT_OPTION_9005", forbid_guest = false },
{ config_id = 1009006, name = "GADGET_STATE_CHANGE_9006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9006", action = "action_EVENT_GADGET_STATE_CHANGE_9006", trigger_count = 0 },
{ config_id = 1009008, name = "GADGET_STATE_CHANGE_9008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_9008", action = "action_EVENT_GADGET_STATE_CHANGE_9008" },
{ config_id = 1009009, name = "GADGET_CREATE_9009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9009", action = "action_EVENT_GADGET_CREATE_9009" }
}
-- 变量
variables = {
{ config_id = 1, name = "isActive", value = 0, no_refresh = true },
{ config_id = 2, name = "isFinish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 9001 },
gadgets = { 9002, 9003 },
regions = { },
triggers = { "ANY_MONSTER_DIE_9004", "SELECT_OPTION_9005", "GADGET_STATE_CHANGE_9006", "GADGET_STATE_CHANGE_9008", "GADGET_CREATE_9009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9004(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250009009, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将本组内变量名为 "isFinish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isFinish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9005(context, evt)
-- 判断是gadgetid 9003 option_id 171
if 9003 ~= evt.param1 then
return false
end
if 171 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9005(context, evt)
-- 改变指定group组250009009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250009009, 9003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 250009009 ;指定config9003;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250009009, 9003, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9006(context, evt)
if 9003 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009009, 9003, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "isActive" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isActive", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_9008(context, evt)
if 9002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_9008(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 9007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9009(context, evt)
-- 判断变量"isActive"为1
if ScriptLib.GetGroupVariableValue(context, "isActive") ~= 1 then
return false
end
-- 判断变量"isFinish"为0
if ScriptLib.GetGroupVariableValue(context, "isFinish") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9009(context, evt)
-- 将configid为 9003 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9003, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,190 @@
-- 基础信息
local base_info = {
group_id = 250009010
}
-- Trigger变量
local defs = {
group_id = 250009010,
gadget_target_1 = 10003,
monster_mole_1 = 10002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 28050202, pos = { x = 145.932, y = 4.242, z = -44.233 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 10002, monster_id = 28050202, pos = { x = 148.989, y = 4.205, z = -39.623 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10003, gadget_id = 70360027, pos = { x = 148.926, y = 4.159, z = -39.618 }, rot = { x = 0.000, y = 104.100, z = 0.000 }, level = 1 },
{ config_id = 10004, gadget_id = 70360015, pos = { x = 146.226, y = 4.159, z = -44.118 }, rot = { x = 0.000, y = 15.100, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010005, name = "ANY_MONSTER_DIE_10005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_10005" },
{ config_id = 1010006, name = "SELECT_OPTION_10006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10006", action = "action_EVENT_SELECT_OPTION_10006", forbid_guest = false },
{ config_id = 1010007, name = "GADGET_STATE_CHANGE_10007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10007", action = "action_EVENT_GADGET_STATE_CHANGE_10007", trigger_count = 0 },
{ config_id = 1010008, name = "GADGET_STATE_CHANGE_10008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10008", action = "action_EVENT_GADGET_STATE_CHANGE_10008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 10001 },
gadgets = { 10003, 10004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_10005", "SELECT_OPTION_10006", "GADGET_STATE_CHANGE_10007", "GADGET_STATE_CHANGE_10008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10005(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250009010, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_10006(context, evt)
-- 判断是gadgetid 10004 option_id 171
if 10004 ~= evt.param1 then
return false
end
if 171 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10006(context, evt)
-- 改变指定group组250009010中, configid为10004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250009010, 10004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 250009010 ;指定config10004;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250009010, 10004, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10007(context, evt)
if 10004 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009010, 10004, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
if 10003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 10002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,190 @@
-- 基础信息
local base_info = {
group_id = 250009011
}
-- Trigger变量
local defs = {
group_id = 250009011,
gadget_target_1 = 11003,
monster_mole_1 = 11001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 28050203, pos = { x = 109.641, y = 4.242, z = -44.475 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 11002, monster_id = 28050203, pos = { x = 112.698, y = 4.205, z = -39.866 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, pose_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11003, gadget_id = 70360027, pos = { x = 112.635, y = 4.159, z = -39.860 }, rot = { x = 0.000, y = 104.100, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70360015, pos = { x = 109.935, y = 4.159, z = -44.360 }, rot = { x = 0.000, y = 15.100, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011005, name = "ANY_MONSTER_DIE_11005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_11005" },
{ config_id = 1011006, name = "SELECT_OPTION_11006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11006", action = "action_EVENT_SELECT_OPTION_11006", forbid_guest = false },
{ config_id = 1011007, name = "GADGET_STATE_CHANGE_11007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11007", action = "action_EVENT_GADGET_STATE_CHANGE_11007", trigger_count = 0 },
{ config_id = 1011008, name = "GADGET_STATE_CHANGE_11008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11008", action = "action_EVENT_GADGET_STATE_CHANGE_11008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 11001 },
gadgets = { 11003, 11004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_11005", "SELECT_OPTION_11006", "GADGET_STATE_CHANGE_11007", "GADGET_STATE_CHANGE_11008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11005(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250009011, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_11006(context, evt)
-- 判断是gadgetid 11004 option_id 171
if 11004 ~= evt.param1 then
return false
end
if 171 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_11006(context, evt)
-- 改变指定group组250009011中, configid为11004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250009011, 11004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 250009011 ;指定config11004;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250009011, 11004, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11007(context, evt)
if 11004 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009011, 11004, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11008(context, evt)
if 11003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11008(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 11002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,170 @@
-- 基础信息
local base_info = {
group_id = 250009012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12005, monster_id = 20010901, pos = { x = 140.952, y = 3.990, z = -18.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70510014, pos = { x = 140.975, y = 3.990, z = -18.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12006, gadget_id = 70211101, pos = { x = 141.040, y = 3.990, z = -17.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012002, name = "GADGET_CREATE_12002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_12002", action = "action_EVENT_GADGET_CREATE_12002" },
{ config_id = 1012003, name = "SELECT_OPTION_12003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12003", action = "action_EVENT_SELECT_OPTION_12003" },
{ config_id = 1012004, name = "GADGET_STATE_CHANGE_12004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12004", action = "action_EVENT_GADGET_STATE_CHANGE_12004" },
{ config_id = 1012007, name = "ANY_MONSTER_DIE_12007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12007", action = "action_EVENT_ANY_MONSTER_DIE_12007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001 },
regions = { },
triggers = { "GADGET_CREATE_12002", "SELECT_OPTION_12003", "GADGET_STATE_CHANGE_12004", "ANY_MONSTER_DIE_12007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_12002(context, evt)
if 12001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_12002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009012, 12001, {174}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_12003(context, evt)
-- 判断是gadgetid 12001 option_id 174
if 12001 ~= evt.param1 then
return false
end
if 174 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_12003(context, evt)
-- 将configid为 12001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250009012 ;指定config12001;物件身上指定option174
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250009012, 12001, 174) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12004(context, evt)
if 12001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12004(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 12005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12007(context, evt)
if 12005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12007(context, evt)
-- 创建id为12006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 12006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,170 @@
-- 基础信息
local base_info = {
group_id = 250009013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 13001, monster_id = 20010901, pos = { x = 136.561, y = 3.990, z = -5.893 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13002, gadget_id = 70510013, pos = { x = 136.391, y = 3.990, z = -6.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70211101, pos = { x = 136.750, y = 3.990, z = -5.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013004, name = "GADGET_CREATE_13004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_13004", action = "action_EVENT_GADGET_CREATE_13004" },
{ config_id = 1013005, name = "SELECT_OPTION_13005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_13005", action = "action_EVENT_SELECT_OPTION_13005" },
{ config_id = 1013006, name = "GADGET_STATE_CHANGE_13006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13006", action = "action_EVENT_GADGET_STATE_CHANGE_13006" },
{ config_id = 1013007, name = "ANY_MONSTER_DIE_13007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13007", action = "action_EVENT_ANY_MONSTER_DIE_13007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13002 },
regions = { },
triggers = { "GADGET_CREATE_13004", "SELECT_OPTION_13005", "GADGET_STATE_CHANGE_13006", "ANY_MONSTER_DIE_13007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_13004(context, evt)
if 13002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_13004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250009013, 13002, {173}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_13005(context, evt)
-- 判断是gadgetid 13002 option_id 173
if 13002 ~= evt.param1 then
return false
end
if 173 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_13005(context, evt)
-- 将configid为 13002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250009013 ;指定config13002;物件身上指定option173
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250009013, 13002, 173) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13006(context, evt)
if 13002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13006(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 13001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_13007(context, evt)
if 13001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_13007(context, evt)
-- 创建id为13003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 250009014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70330001, pos = { x = 42.877, y = 9.850, z = -130.531 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14002, gadget_id = 70330003, pos = { x = 65.670, y = 8.950, z = -122.933 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14003, gadget_id = 70900314, pos = { x = 50.239, y = 11.433, z = -143.109 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14006, gadget_id = 70900314, pos = { x = 71.778, y = 0.916, z = -162.543 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14007, gadget_id = 70330003, pos = { x = 55.293, y = 9.070, z = -137.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014004, name = "GADGET_STATE_CHANGE_14004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_14004", action = "action_EVENT_GADGET_STATE_CHANGE_14004" },
{ config_id = 1014005, name = "GADGET_STATE_CHANGE_14005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_14005", action = "action_EVENT_GADGET_STATE_CHANGE_14005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14001, 14002, 14003, 14006, 14007 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_14004", "GADGET_STATE_CHANGE_14005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_14004(context, evt)
if 14001 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_14004(context, evt)
-- 将configid为 14003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_14005(context, evt)
if 14001 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_14005(context, evt)
-- 将configid为 14006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,127 @@
-- 基础信息
local base_info = {
group_id = 250009015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15001, gadget_id = 70330003, pos = { x = 112.688, y = 9.070, z = -172.118 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15002, gadget_id = 70330001, pos = { x = 95.815, y = 23.240, z = -206.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15003, gadget_id = 70900314, pos = { x = 78.546, y = 20.494, z = -209.095 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 15004, gadget_id = 70900314, pos = { x = 34.336, y = 26.202, z = -210.508 }, rot = { x = 0.000, y = 0.000, z = 268.500 }, level = 1 },
{ config_id = 15006, gadget_id = 70211131, pos = { x = 19.597, y = 36.440, z = -215.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜超级蒙德", isOneoff = true, persistent = true },
{ config_id = 15007, gadget_id = 40000001, pos = { x = 112.670, y = 8.620, z = -164.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15008, gadget_id = 70330001, pos = { x = 112.513, y = 8.878, z = -164.909 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15009, gadget_id = 70900314, pos = { x = 105.054, y = 10.129, z = -173.433 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015005, name = "GADGET_STATE_CHANGE_15005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_15005", action = "action_EVENT_GADGET_STATE_CHANGE_15005" },
{ config_id = 1015010, name = "GADGET_STATE_CHANGE_15010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_15010", action = "action_EVENT_GADGET_STATE_CHANGE_15010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15001, 15002, 15003, 15004, 15006, 15007, 15008, 15009 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_15005", "GADGET_STATE_CHANGE_15010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_15005(context, evt)
if 15002 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_15005(context, evt)
-- 将configid为 15003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 15004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_15010(context, evt)
if 15008 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_15010(context, evt)
-- 将configid为 15009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 250009016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16003, monster_id = 21020101, pos = { x = 14.062, y = 9.070, z = -156.645 }, rot = { x = 0.000, y = 274.118, z = 0.000 }, level = 30 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70330001, pos = { x = 10.635, y = 8.973, z = -116.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16002, gadget_id = 70330003, pos = { x = -7.811, y = 9.070, z = -114.138 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16004, gadget_id = 70900314, pos = { x = -1.750, y = 11.678, z = -166.498 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1016005, name = "GADGET_STATE_CHANGE_16005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_16005", action = "action_EVENT_GADGET_STATE_CHANGE_16005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 16003 },
gadgets = { 16001, 16002, 16004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_16005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_16005(context, evt)
if 16001 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_16005(context, evt)
-- 将configid为 16004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 16004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 250009017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 250009018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 250009019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,80 @@
-- 基础信息
local base_info = {
group_id = 250009020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20001, gadget_id = 70130001, pos = { x = 36.732, y = 3.990, z = -70.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20002, gadget_id = 70130002, pos = { x = 38.784, y = 3.990, z = -36.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20003, gadget_id = 70130003, pos = { x = 36.670, y = 3.990, z = -10.050 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20004, gadget_id = 70120003, pos = { x = 59.313, y = 3.990, z = -3.263 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20005, gadget_id = 70220001, pos = { x = 63.605, y = 3.990, z = -19.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20006, gadget_id = 70220001, pos = { x = 63.176, y = 3.990, z = -26.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20007, gadget_id = 70220003, pos = { x = 61.350, y = 3.990, z = -10.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20008, gadget_id = 70220005, pos = { x = 63.303, y = 3.990, z = -23.028 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20009, gadget_id = 70220034, pos = { x = 63.404, y = 3.990, z = -28.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}