This commit is contained in:
Akbar Yahya
2022-11-21 16:30:31 +08:00
commit e0d4d8040c
3326 changed files with 683000 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- 地图配置
scene_config = {
begin_pos = { x = -156.5, z = -394.5 },
size = { x = 875.3, z = 500.0 },
born_pos = { x = 263.1, y = -10.1, z = -154.5 },
born_rot = { x = 0.0, y = 0.0, z = 0.0 },
die_y = -19.60183
}
-- 所有的区块
blocks = { 50004 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -156.5, z = -394.5 }, max = { x = 718.8, z = 105.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,4 @@
{
"sceneId": 50004,
"routes": []
}

View File

@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 250004001, refresh_time = 0, pos = { x = 169.7, y = -10.5, z = -96.7 } },
{ id = 250004002, refresh_time = 0, pos = { x = 223.2, y = -10.5, z = -103.1 } },
{ id = 250004003, refresh_time = 0, pos = { x = 244.6, y = -10.5, z = -103.2 } },
{ id = 250004004, refresh_time = 0, pos = { x = 266.2, y = -10.5, z = -103.3 } },
{ id = 250004005, refresh_time = 0, pos = { x = 290.8, y = -10.5, z = -103.4 } },
{ id = 250004006, refresh_time = 0, pos = { x = 223.8, y = -10.5, z = -137.0 } },
{ id = 250004007, refresh_time = 0, pos = { x = 261.7, y = -10.5, z = -136.6 } }
}

View File

@@ -0,0 +1,78 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70900207, pos = { x = 171.9, y = -10.5, z = -101.5 }, rot = { x = 0.0, y = 181.7, z = 0.0 }, level = 1 },
{ config_id = 2, gadget_id = 70900208, pos = { x = 171.9, y = -10.5, z = -104.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 3, gadget_id = 70900208, pos = { x = 171.4, y = -10.5, z = -107.6 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 4, gadget_id = 70900208, pos = { x = 172.0, y = -10.5, z = -110.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 5, gadget_id = 70900208, pos = { x = 173.9, y = -10.5, z = -112.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 70900208, pos = { x = 176.3, y = -10.5, z = -114.3 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 7, gadget_id = 70900208, pos = { x = 156.5, y = -10.5, z = -103.9 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 8, gadget_id = 70900208, pos = { x = 156.1, y = -10.5, z = -106.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 9, gadget_id = 70900208, pos = { x = 156.7, y = -10.5, z = -109.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 10, gadget_id = 70900208, pos = { x = 158.6, y = -10.5, z = -112.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 11, gadget_id = 70900208, pos = { x = 161.0, y = -10.5, z = -113.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 12, gadget_id = 70320002, pos = { x = 176.7, y = -10.5, z = -109.7 }, rot = { x = 0.0, y = 221.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,87 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13, gadget_id = 70900208, pos = { x = 220.9, y = -10.5, z = -112.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 14, gadget_id = 70900208, pos = { x = 220.8, y = -10.5, z = -109.4 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 15, gadget_id = 70900208, pos = { x = 220.9, y = -10.5, z = -106.3 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 16, gadget_id = 70900208, pos = { x = 220.8, y = -10.5, z = -103.2 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 17, gadget_id = 70900208, pos = { x = 221.0, y = -10.5, z = -99.6 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 19, gadget_id = 70350004, pos = { x = 222.8, y = -10.5, z = -101.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 20, gadget_id = 70900224, pos = { x = 221.0, y = -9.5, z = -97.8 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 223.3, y = -10.5, z = -103.0 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_1", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_1" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 13, 14, 15, 16, 17, 19, 20 },
regions = { 1 },
triggers = { "CLIENT_EXECUTE_1" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_1(context, evt)
-- 将configid为 19 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,95 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 21, gadget_id = 70900207, pos = { x = 242.3, y = -10.5, z = -112.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 22, gadget_id = 70900208, pos = { x = 242.2, y = -10.5, z = -109.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 23, gadget_id = 70900208, pos = { x = 242.2, y = -10.5, z = -106.4 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 24, gadget_id = 70900208, pos = { x = 242.1, y = -10.5, z = -103.3 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 25, gadget_id = 70900208, pos = { x = 242.3, y = -10.5, z = -99.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 26, gadget_id = 70900224, pos = { x = 242.4, y = -9.5, z = -97.9 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 },
{ config_id = 27, gadget_id = 70350004, pos = { x = 244.1, y = -10.5, z = -101.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2, shape = RegionShape.SPHERE, radius = 5, pos = { x = 244.7, y = -10.5, z = -103.1 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_2", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Unhit", condition = "condition_EVENT_CLIENT_EXECUTE_2", action = "action_EVENT_CLIENT_EXECUTE_2" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 21, 22, 23, 24, 25, 26, 27 },
regions = { 2 },
triggers = { "CLIENT_EXECUTE_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_2(context, evt)
-- 判断是gadgetid 57 option_id 0
if 26 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_2(context, evt)
-- 将configid为 27 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,87 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 20010501, pos = { x = 267.2, y = -10.5, z = -103.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28, gadget_id = 70900208, pos = { x = 263.9, y = -10.5, z = -112.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 29, gadget_id = 70900208, pos = { x = 263.8, y = -10.5, z = -109.6 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 30, gadget_id = 70900208, pos = { x = 263.9, y = -10.5, z = -106.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 32, gadget_id = 70900208, pos = { x = 264.0, y = -10.5, z = -99.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 33, gadget_id = 70350004, pos = { x = 265.8, y = -10.5, z = -105.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 34, gadget_id = 70900224, pos = { x = 264.0, y = -9.5, z = -98.0 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 266.3, y = -10.5, z = -103.2 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_3", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_3" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 1 },
gadgets = { 28, 29, 30, 32, 33, 34 },
regions = { 3 },
triggers = { "CLIENT_EXECUTE_3" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_3(context, evt)
-- 将configid为 33 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,118 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35, gadget_id = 70900207, pos = { x = 290.6, y = -10.5, z = -112.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 36, gadget_id = 70900208, pos = { x = 290.6, y = -10.5, z = -109.6 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 37, gadget_id = 70900208, pos = { x = 290.6, y = -10.5, z = -106.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 38, gadget_id = 70900208, pos = { x = 290.5, y = -10.5, z = -103.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 39, gadget_id = 70900208, pos = { x = 290.7, y = -10.5, z = -99.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 40, gadget_id = 70900206, pos = { x = 292.8, y = -10.5, z = -98.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 41, gadget_id = 70900224, pos = { x = 292.8, y = -7.7, z = -98.5 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 },
{ config_id = 81, gadget_id = 70220005, pos = { x = 291.4, y = -10.5, z = -106.7 }, rot = { x = 0.0, y = 317.4, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 290.9, y = -10.5, z = -103.2 } },
{ config_id = 13, shape = RegionShape.SPHERE, radius = 5, pos = { x = 292.1, y = -10.5, z = -97.4 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_4", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Unhit", condition = "condition_EVENT_CLIENT_EXECUTE_4", action = "action_EVENT_CLIENT_EXECUTE_4" },
{ name = "CLIENT_EXECUTE_13", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "condition_EVENT_CLIENT_EXECUTE_13", action = "action_EVENT_CLIENT_EXECUTE_13" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 35, 36, 37, 38, 39, 40, 41, 81 },
regions = { 4, 13 },
triggers = { "CLIENT_EXECUTE_4", "CLIENT_EXECUTE_13" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_4(context, evt)
-- 判断是gadgetid 57 option_id 0
if 41 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_4(context, evt)
-- 将configid为 40 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 40, GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_13(context, evt)
-- 判断是gadgetid 57 option_id 0
if 41 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_13(context, evt)
-- 将configid为 40 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 40, GadgetState.GearAction2) then
return -1
end
return 0
end

View File

@@ -0,0 +1,167 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42, gadget_id = 70900208, pos = { x = 221.4, y = -10.5, z = -146.4 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 43, gadget_id = 70900208, pos = { x = 221.4, y = -10.5, z = -143.3 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 44, gadget_id = 70900208, pos = { x = 221.4, y = -10.5, z = -140.2 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 45, gadget_id = 70900208, pos = { x = 221.3, y = -10.5, z = -137.1 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 46, gadget_id = 70900208, pos = { x = 221.5, y = -10.5, z = -133.5 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 47, gadget_id = 70350004, pos = { x = 221.8, y = -10.5, z = -129.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 48, gadget_id = 70900224, pos = { x = 221.6, y = -9.5, z = -131.7 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 },
{ config_id = 52, gadget_id = 70900208, pos = { x = 231.1, y = -10.5, z = -140.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 53, gadget_id = 70900208, pos = { x = 228.1, y = -10.5, z = -140.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 54, gadget_id = 70900208, pos = { x = 225.1, y = -10.5, z = -139.9 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 56, gadget_id = 70900206, pos = { x = 233.9, y = -10.5, z = -140.1 }, rot = { x = 0.0, y = 190.4, z = 0.0 }, level = 1 },
{ config_id = 58, gadget_id = 70900224, pos = { x = 234.0, y = -7.8, z = -140.1 }, rot = { x = 0.0, y = 359.1, z = 0.0 }, level = 1 },
{ config_id = 60, gadget_id = 70220005, pos = { x = 231.2, y = -10.5, z = -140.9 }, rot = { x = 0.0, y = 317.4, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 221.2, y = -9.6, z = -134.3 } },
{ config_id = 10, shape = RegionShape.SPHERE, radius = 5, pos = { x = 232.7, y = -10.5, z = -138.9 } },
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 231.8, y = -10.5, z = -138.9 } },
{ config_id = 14, shape = RegionShape.SPHERE, radius = 5, pos = { x = 217.5, y = -10.5, z = -131.4 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_8", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "condition_EVENT_CLIENT_EXECUTE_8", action = "action_EVENT_CLIENT_EXECUTE_8" },
{ name = "CLIENT_EXECUTE_10", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "condition_EVENT_CLIENT_EXECUTE_10", action = "action_EVENT_CLIENT_EXECUTE_10" },
{ name = "CLIENT_EXECUTE_12", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Unhit", condition = "condition_EVENT_CLIENT_EXECUTE_12", action = "action_EVENT_CLIENT_EXECUTE_12" },
{ name = "CLIENT_EXECUTE_14", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Unhit", condition = "condition_EVENT_CLIENT_EXECUTE_14", action = "action_EVENT_CLIENT_EXECUTE_14" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 42, 43, 44, 45, 46, 47, 48, 52, 53, 54, 56, 58, 60 },
regions = { 8, 10, 12, 14 },
triggers = { "CLIENT_EXECUTE_8", "CLIENT_EXECUTE_10", "CLIENT_EXECUTE_12", "CLIENT_EXECUTE_14" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_8(context, evt)
-- 判断是gadgetid 57 option_id 0
if 48 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_8(context, evt)
-- 将configid为 47 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 47, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_10(context, evt)
-- 判断是gadgetid 57 option_id 0
if 58 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_10(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.GearAction1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_12(context, evt)
-- 判断是gadgetid 57 option_id 0
if 58 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_12(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_14(context, evt)
-- 判断是gadgetid 57 option_id 0
if 48 == ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return true
end
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_14(context, evt)
-- 将configid为 47 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 47, GadgetState.Default) then
return -1
end
return 0
end

View File

@@ -0,0 +1,119 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2, monster_id = 20011201, pos = { x = 259.5, y = -10.5, z = -131.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, disableWander = true },
{ config_id = 3, monster_id = 20011201, pos = { x = 265.3, y = -10.5, z = -131.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, disableWander = true },
{ config_id = 4, monster_id = 20011201, pos = { x = 271.7, y = -10.5, z = -131.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 61, gadget_id = 70900208, pos = { x = 259.4, y = -10.5, z = -146.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 62, gadget_id = 70900208, pos = { x = 259.4, y = -10.5, z = -142.9 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 63, gadget_id = 70900208, pos = { x = 259.4, y = -10.5, z = -139.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 64, gadget_id = 70900208, pos = { x = 259.3, y = -10.5, z = -136.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 65, gadget_id = 70900208, pos = { x = 259.4, y = -10.6, z = -133.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 66, gadget_id = 70350004, pos = { x = 261.3, y = -10.5, z = -138.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 68, gadget_id = 70900208, pos = { x = 265.5, y = -10.6, z = -146.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 69, gadget_id = 70900208, pos = { x = 265.5, y = -10.6, z = -142.9 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 70, gadget_id = 70900208, pos = { x = 265.5, y = -10.6, z = -139.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 71, gadget_id = 70900208, pos = { x = 265.4, y = -10.6, z = -136.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 72, gadget_id = 70900208, pos = { x = 265.5, y = -10.7, z = -133.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 73, gadget_id = 70350004, pos = { x = 267.4, y = -10.6, z = -138.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 75, gadget_id = 70900208, pos = { x = 271.9, y = -10.6, z = -146.0 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 76, gadget_id = 70900208, pos = { x = 271.8, y = -10.6, z = -142.9 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 77, gadget_id = 70900208, pos = { x = 271.8, y = -10.6, z = -139.8 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 78, gadget_id = 70900208, pos = { x = 271.8, y = -10.6, z = -136.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 79, gadget_id = 70900208, pos = { x = 271.8, y = -10.7, z = -133.7 }, rot = { x = 0.0, y = 74.6, z = 0.0 }, level = 1 },
{ config_id = 80, gadget_id = 70350004, pos = { x = 273.7, y = -10.6, z = -138.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 265.9, y = -10.5, z = -138.3 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 2, 3, 4 },
gadgets = { 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78, 79, 80 },
regions = { 11 },
triggers = { "ANY_MONSTER_DIE_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 将configid为 66 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66, GadgetState.GearStart) then
return -1
end
-- 将configid为 73 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 73, GadgetState.GearStart) then
return -1
end
-- 将configid为 80 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 80, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,112 @@
[
{
"groupId": 250004002,
"configID": 1,
"position": {
"x": 223.303726,
"y": -10.5000019,
"z": -102.965714
},
"tlog_tag": "",
"comment": "情景1-开门"
},
{
"groupId": 250004003,
"configID": 2,
"position": {
"x": 244.655746,
"y": -10.5000019,
"z": -103.087967
},
"tlog_tag": "",
"comment": "情景2-开门"
},
{
"groupId": 250004004,
"configID": 3,
"position": {
"x": 266.314148,
"y": -10.5000019,
"z": -103.174431
},
"tlog_tag": "",
"comment": "情景3-开门"
},
{
"groupId": 250004005,
"configID": 4,
"position": {
"x": 290.913055,
"y": -10.5000019,
"z": -103.236732
},
"tlog_tag": "",
"comment": "情景4-关闭出风机关"
},
{
"groupId": 250004006,
"configID": 8,
"position": {
"x": 221.174744,
"y": -9.591779,
"z": -134.337875
},
"tlog_tag": "",
"comment": "情景5-开门"
},
{
"groupId": 250004006,
"configID": 10,
"position": {
"x": 232.729065,
"y": -10.5000019,
"z": -138.8934
},
"tlog_tag": "",
"comment": "情景5-开启出风机关"
},
{
"groupId": 250004007,
"configID": 11,
"position": {
"x": 265.920624,
"y": -10.5000019,
"z": -138.30867
},
"tlog_tag": "",
"comment": "情景6-消灭怪物开门"
},
{
"groupId": 250004006,
"configID": 12,
"position": {
"x": 231.77916,
"y": -10.5000019,
"z": -138.888885
},
"tlog_tag": "",
"comment": "情景5-出风机关"
},
{
"groupId": 250004005,
"configID": 13,
"position": {
"x": 292.112335,
"y": -10.5000019,
"z": -97.41459
},
"tlog_tag": "",
"comment": "情景4-关闭出风机关"
},
{
"groupId": 250004006,
"configID": 14,
"position": {
"x": 217.518417,
"y": -10.5000019,
"z": -131.40683
},
"tlog_tag": "",
"comment": "情景5-开门"
}
]