添加配置表

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 = 95.2, z = 118.0 },
size = { x = 714.4, z = 742.7 },
born_pos = { x = 554.256, y = 20.325, z = 566.775 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = 0,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20132 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 95.2, z = 118.0 }, max = { x = 809.6, z = 860.8 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,163 @@
{
"sceneId": 20132,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 462.5674,
"y": 29.1637917,
"z": 475.7159
},
"waitTime": 2.0,
"targetVelocity": 2.5
},
{
"pos": {
"x": 452.1797,
"y": 24.8141,
"z": 481.46344
},
"waitTime": 2.0,
"targetVelocity": 2.5
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 429.341,
"y": 40.1424141,
"z": 492.0646
},
"waitTime": 2.0,
"targetVelocity": 2.5
},
{
"pos": {
"x": 437.1694,
"y": 30.3925629,
"z": 502.210175
},
"waitTime": 2.0,
"targetVelocity": 2.5
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 478.3779,
"y": 66.50782,
"z": 385.8265
},
"waitTime": 1.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 478.3779,
"y": 89.5954,
"z": 385.8265
},
"waitTime": 5.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 426.2754,
"y": 22.8082924,
"z": 592.160339
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 430.076874,
"y": 22.86876,
"z": 592.0187
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 436.375916,
"y": 22.8268433,
"z": 596.1723
},
"waitTime": 2.0,
"speedLevel": 1
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 451.405,
"y": 13.6521149,
"z": 491.550232
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 451.292877,
"y": 13.6722364,
"z": 488.11145
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 455.4187,
"y": 13.6521149,
"z": 484.672821
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,17 @@
-- 所有的group
groups = {
{ id = 220132001, refresh_id = 1, pos = { x = 471.477, y = 25.240, z = 540.595 } },
{ id = 220132002, refresh_id = 1, pos = { x = 451.688, y = 13.462, z = 500.914 } },
{ id = 220132003, refresh_id = 1002, pos = { x = 445.006, y = 20.607, z = 601.032 } },
{ id = 220132004, refresh_id = 1, pos = { x = 477.133, y = 17.274, z = 487.473 } },
{ id = 220132005, refresh_id = 1, pos = { x = 474.442, y = 48.816, z = 499.400 } },
{ id = 220132006, refresh_id = 1002, pos = { x = 521.888, y = 104.437, z = 373.645 } },
{ id = 220132007, refresh_id = 1, pos = { x = 455.747, y = 13.619, z = 479.100 } },
{ id = 220132008, refresh_id = 1, pos = { x = 495.939, y = 35.590, z = 442.700 } },
{ id = 220132009, refresh_id = 1, pos = { x = 446.708, y = 22.369, z = 567.920 } },
{ id = 220132010, refresh_id = 1, pos = { x = 431.929, y = 49.785, z = 474.932 } },
{ id = 220132011, refresh_id = 1, pos = { x = 452.834, y = 13.631, z = 485.110 } },
{ id = 220132012, refresh_id = 1001, pos = { x = 453.920, y = 17.314, z = 496.643 } },
{ id = 220132013, refresh_id = 1, pos = { x = 454.453, y = 13.632, z = 485.071 } },
{ id = 220132014, refresh_id = 1, pos = { x = 449.390, y = 65.248, z = 385.638 } }
}
@@ -0,0 +1,26 @@
dummy_points = {
["Q300303_N10000005"] = { pos = { x = 553.113, y = 19.994, z = 564.486 }, rot = { x = 0.000, y = 133.400, z = 0.000 } },
["Q300303_N12554"] = { pos = { x = 554.407, y = 20.277, z = 561.889 }, rot = { x = 0.000, y = 220.900, z = 0.000 } },
["Q300304_guide"] = { pos = { x = 529.142, y = 19.366, z = 555.995 }, rot = { x = 0.000, y = 280.000, z = 0.000 } },
["Q300304_N1005"] = { pos = { x = 528.994, y = 19.127, z = 557.261 }, rot = { x = 0.000, y = 257.100, z = 0.000 } },
["Q300305_N10000005"] = { pos = { x = 514.368, y = 103.246, z = 389.660 }, rot = { x = 0.000, y = 162.700, z = 0.000 } },
["Q300305_N12560"] = { pos = { x = 520.055, y = 104.068, z = 372.458 }, rot = { x = 0.000, y = 300.500, z = 0.000 } },
["Q300312_guide1"] = { pos = { x = 461.309, y = 13.550, z = 506.954 }, rot = { x = 0.000, y = 198.210, z = 0.000 } },
["Q300312_guide2"] = { pos = { x = 440.950, y = 33.583, z = 512.029 }, rot = { x = 0.000, y = 163.000, z = 0.000 } },
["Q300312_guide3"] = { pos = { x = 430.155, y = 80.244, z = 480.956 }, rot = { x = 0.000, y = 152.583, z = 0.000 } },
["Q300312_Taget"] = { pos = { x = 448.222, y = 59.264, z = 467.573 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q300313_guide"] = { pos = { x = 511.306, y = 103.184, z = 390.167 }, rot = { x = 0.000, y = 117.000, z = 0.000 } },
["Q300315_guide"] = { pos = { x = 491.627, y = 35.590, z = 452.026 }, rot = { x = 0.000, y = 150.300, z = 0.000 } },
["Q300315_guide_avatar"] = { pos = { x = 490.665, y = 35.619, z = 454.574 }, rot = { x = 0.000, y = 154.400, z = 0.000 } },
["Q300316_guide"] = { pos = { x = 500.809, y = 19.245, z = 475.040 }, rot = { x = 0.000, y = 328.990, z = 0.000 } },
["Q300317_guide"] = { pos = { x = 449.000, y = 60.000, z = 445.000 }, rot = { x = 0.000, y = 182.200, z = 0.000 } },
["Q300317_guide_avatar"] = { pos = { x = 447.506, y = 59.998, z = 454.645 }, rot = { x = 0.000, y = 182.880, z = 0.000 } },
["Q300318_guide"] = { pos = { x = 491.040, y = 89.759, z = 385.266 }, rot = { x = 0.000, y = 96.400, z = 0.000 } },
["Q300321_Dungeon_T1"] = { pos = { x = 449.374, y = 74.549, z = 344.436 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q300321_Dungeon_T2"] = { pos = { x = 459.217, y = 66.983, z = 353.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q300321_Dungeon_T3"] = { pos = { x = 434.067, y = 64.214, z = 350.481 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q300321_Dungeon_VP1camera"] = { pos = { x = 439.836, y = 67.012, z = 372.492 }, rot = { x = 6.253, y = 147.532, z = 0.000 } },
["Q300321_Dungeon_VPPlayer"] = { pos = { x = 441.997, y = 65.373, z = 369.327 }, rot = { x = 0.000, y = 154.240, z = 0.000 } },
["Q300321_Rock01"] = { pos = { x = 450.090, y = 66.350, z = 346.540 }, rot = { x = 358.594, y = 3.450, z = 31.368 } },
["Q300321_Rock02"] = { pos = { x = 443.880, y = 66.948, z = 362.990 }, rot = { x = 358.595, y = 359.085, z = 218.300 } }
}
@@ -0,0 +1,249 @@
-- 基础信息
local base_info = {
group_id = 220132001
}
-- Trigger变量
local defs = {
target_x = 469.4,
target_y = 61,
target_z = 325.9,
camera_x = 439.8357,
camera_y = 67.01164,
camera_z = 372.4916
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70360001, pos = { x = 463.980, y = 65.601, z = 385.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70290137, pos = { x = 449.461, y = 65.730, z = 401.692 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1008, gadget_id = 70290576, pos = { x = 439.836, y = 67.012, z = 372.492 }, rot = { x = 6.253, y = 147.532, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70290137, pos = { x = 463.980, y = 65.601, z = 385.739 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70360282, pos = { x = 478.378, y = 66.508, z = 385.827 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3, start_route = false, persistent = true }
}
-- 区域
regions = {
{ config_id = 1011, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 478.378, y = 66.508, z = 385.827 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "TIMER_EVENT_1001", event = EventType.EVENT_TIMER_EVENT, source = "2", condition = "", action = "action_EVENT_TIMER_EVENT_1001" },
{ config_id = 1001004, name = "QUEST_FINISH_1004", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_1004", action = "action_EVENT_QUEST_FINISH_1004" },
{ config_id = 1001007, name = "TIMER_EVENT_1007", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_1007" },
{ config_id = 1001011, name = "ENTER_REGION_1011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1011", action = "action_EVENT_ENTER_REGION_1011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1008 },
regions = { },
triggers = { "TIMER_EVENT_1001", "QUEST_FINISH_1004", "TIMER_EVENT_1007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1010 },
regions = { 1011 },
triggers = { "ENTER_REGION_1011" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 1003, 1009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_1001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220132001, 3)
-- 将configid为 1009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_1004(context, evt)
--检查ID为300321的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300321 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_1004(context, evt)
local pos = { x=defs.target_x, y=defs.target_y, z=defs.target_z}
local pos_follow = { x=defs.camera_x, y=defs.camera_y, z=defs.camera_z}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false, screen_x = 0, screen_y = 0, is_set_screenXY = false }) then
ScriptLib.PrintContextLog(context, "@@Lua_warning : active_cameralook_begin")
return -1
end
-- 延迟3秒后,向groupId为:220132001的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132001, "1", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟8秒后,向groupId为:220132001的对象,请求一次调用,并将string参数:"2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132001, "2", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132011, EntityType.GADGET, 11012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1007(context, evt)
-- 将configid为 1008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1011(context, evt)
if evt.param1 ~= 1011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1011(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 1010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1010, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,462 @@
-- 基础信息
local base_info = {
group_id = 220132002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70900201, pos = { x = 460.697, y = 14.914, z = 489.634 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70900201, pos = { x = 440.191, y = 34.689, z = 513.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70900201, pos = { x = 463.480, y = 15.050, z = 513.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70900201, pos = { x = 484.638, y = 15.659, z = 561.044 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70900201, pos = { x = 445.500, y = 29.284, z = 489.078 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2010, gadget_id = 70900201, pos = { x = 488.079, y = 19.120, z = 482.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70900201, pos = { x = 432.182, y = 28.509, z = 548.435 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70900201, pos = { x = 446.978, y = 22.929, z = 570.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70360001, pos = { x = 443.552, y = 27.703, z = 488.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70900201, pos = { x = 471.996, y = 36.374, z = 477.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70900201, pos = { x = 492.478, y = 36.464, z = 450.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70900201, pos = { x = 515.189, y = 15.622, z = 558.859 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2005, shape = RegionShape.SPHERE, radius = 6, pos = { x = 441.133, y = 36.897, z = 512.766 } },
{ config_id = 2007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 484.638, y = 17.713, z = 561.044 } },
{ config_id = 2009, shape = RegionShape.SPHERE, radius = 3, pos = { x = 460.733, y = 14.914, z = 489.634 } },
{ config_id = 2011, shape = RegionShape.CYLINDER, radius = 8, pos = { x = 513.284, y = 23.266, z = 559.441 }, height = 20.000 },
{ config_id = 2014, shape = RegionShape.CYLINDER, radius = 8, pos = { x = 434.053, y = 32.812, z = 549.205 }, height = 15.000 },
{ config_id = 2015, shape = RegionShape.SPHERE, radius = 6, pos = { x = 446.291, y = 22.929, z = 572.871 } },
{ config_id = 2016, shape = RegionShape.SPHERE, radius = 5, pos = { x = 445.500, y = 29.284, z = 489.078 } },
{ config_id = 2017, shape = RegionShape.SPHERE, radius = 8, pos = { x = 474.418, y = 36.374, z = 473.589 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "QUEST_FINISH_2003", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_2003", action = "action_EVENT_QUEST_FINISH_2003" },
{ config_id = 1002005, name = "ENTER_REGION_2005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2005", action = "action_EVENT_ENTER_REGION_2005" },
{ config_id = 1002007, name = "ENTER_REGION_2007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2007", action = "action_EVENT_ENTER_REGION_2007" },
{ config_id = 1002009, name = "ENTER_REGION_2009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2009", action = "action_EVENT_ENTER_REGION_2009" },
{ config_id = 1002011, name = "ENTER_REGION_2011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2011", action = "action_EVENT_ENTER_REGION_2011" },
{ config_id = 1002014, name = "ENTER_REGION_2014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2014", action = "action_EVENT_ENTER_REGION_2014" },
{ config_id = 1002015, name = "ENTER_REGION_2015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2015", action = "action_EVENT_ENTER_REGION_2015" },
{ config_id = 1002016, name = "ENTER_REGION_2016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2016", action = "action_EVENT_ENTER_REGION_2016" },
{ config_id = 1002017, name = "ENTER_REGION_2017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2017", action = "action_EVENT_ENTER_REGION_2017" },
{ config_id = 1002023, name = "QUEST_FINISH_2023", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_2023", action = "action_EVENT_QUEST_FINISH_2023" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2018 },
regions = { },
triggers = { "QUEST_FINISH_2023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2006 },
regions = { 2007 },
triggers = { "ENTER_REGION_2007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2004 },
regions = { },
triggers = { "QUEST_FINISH_2003" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { 2009 },
triggers = { "ENTER_REGION_2009" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 2019 },
regions = { 2017 },
triggers = { "ENTER_REGION_2017" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 2021 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 2010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 2008 },
regions = { 2016 },
triggers = { "ENTER_REGION_2016" },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 2002 },
regions = { 2005 },
triggers = { "ENTER_REGION_2005" },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 2012 },
regions = { 2014 },
triggers = { "ENTER_REGION_2014" },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 2013 },
regions = { 2015 },
triggers = { "ENTER_REGION_2015" },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 2022 },
regions = { 2011 },
triggers = { "ENTER_REGION_2011" },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_2003(context, evt)
--检查ID为300312的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300312 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2005(context, evt)
if evt.param1 ~= 2005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2007(context, evt)
if evt.param1 ~= 2007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2009(context, evt)
if evt.param1 ~= 2009 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2011(context, evt)
if evt.param1 ~= 2011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2014(context, evt)
if evt.param1 ~= 2014 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2014(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2015(context, evt)
if evt.param1 ~= 2015 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2015(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2016(context, evt)
if evt.param1 ~= 2016 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2016(context, evt)
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyCount", 220132011) ~= 3 then
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyFlower", 220132011) ~= 1 then
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 9 })
else
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 2 })
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 })
end
else
ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 2 })
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 })
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2017(context, evt)
if evt.param1 ~= 2017 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2017(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_2023(context, evt)
--检查ID为300304的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300304 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2023(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 12 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,521 @@
-- 基础信息
local base_info = {
group_id = 220132003
}
-- Trigger变量
local defs = {
groupID = 220132003,
gadget_teleport = 3004,
pointarray_move = 1
}
-- DEFS_MISCS
function TeleportAction(context,pointarray_id,routelist)
ScriptLib.MoveAvatarByPointArrayWithTemplate(context,context.uid,pointarray_id, routelist, 300 , {speed=10})
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21020201, pos = { x = 424.354, y = 22.708, z = 601.507 }, rot = { x = 0.000, y = 105.000, z = 0.000 }, level = 1, pose_id = 401 },
{ config_id = 3002, monster_id = 21010101, pos = { x = 439.400, y = 22.773, z = 599.788 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 9015 },
{ config_id = 3003, monster_id = 21010201, pos = { x = 426.275, y = 22.808, z = 592.160 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1 },
{ config_id = 3020, monster_id = 21011001, pos = { x = 435.009, y = 22.705, z = 603.708 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, pose_id = 32 },
{ config_id = 3035, monster_id = 21010101, pos = { x = 423.378, y = 22.419, z = 599.585 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3036, monster_id = 21010101, pos = { x = 425.146, y = 22.879, z = 595.126 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3038, monster_id = 21020201, pos = { x = 435.348, y = 22.661, z = 593.638 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3039, monster_id = 21011001, pos = { x = 436.751, y = 22.929, z = 604.601 }, rot = { x = 0.000, y = 225.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3040, monster_id = 21010901, pos = { x = 434.005, y = 22.759, z = 607.161 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3042, monster_id = 21030201, pos = { x = 430.456, y = 22.859, z = 599.215 }, rot = { x = 0.000, y = 145.000, z = 0.000 }, level = 1, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3004, gadget_id = 70290486, pos = { x = 430.368, y = 23.983, z = 599.534 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70290508, pos = { x = 379.325, y = 75.063, z = 503.612 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70290528, pos = { x = 422.590, y = 85.760, z = 484.240 }, rot = { x = 0.000, y = 92.586, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70290480, pos = { x = 429.341, y = 40.142, z = 492.065 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 3011, gadget_id = 70360001, pos = { x = 379.337, y = 75.620, z = 503.612 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70290487, pos = { x = 379.551, y = 74.985, z = 498.926 }, rot = { x = 357.858, y = 69.904, z = 4.336 }, level = 1 },
{ config_id = 3014, gadget_id = 70290487, pos = { x = 383.075, y = 74.933, z = 503.332 }, rot = { x = 356.787, y = 10.240, z = 1.056 }, level = 1 },
{ config_id = 3017, gadget_id = 70220103, pos = { x = 409.728, y = 82.980, z = 488.152 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70220013, pos = { x = 431.252, y = 22.552, z = 610.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70220013, pos = { x = 429.316, y = 22.364, z = 613.052 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70310226, pos = { x = 433.899, y = 82.691, z = 596.756 }, rot = { x = 0.000, y = 205.000, z = 0.000 }, level = 1 },
{ config_id = 3022, gadget_id = 70220013, pos = { x = 424.213, y = 22.642, z = 610.620 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1 },
{ config_id = 3023, gadget_id = 70220026, pos = { x = 424.561, y = 22.682, z = 608.124 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70220013, pos = { x = 442.757, y = 22.607, z = 600.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70220026, pos = { x = 441.754, y = 22.631, z = 598.524 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70310226, pos = { x = 419.735, y = 120.000, z = 565.958 }, rot = { x = 0.000, y = 225.000, z = 0.000 }, level = 1 },
{ config_id = 3030, gadget_id = 70310226, pos = { x = 382.000, y = 123.000, z = 525.000 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1 },
{ config_id = 3031, gadget_id = 70310226, pos = { x = 380.000, y = 122.000, z = 504.000 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3032, gadget_id = 70290577, pos = { x = 423.312, y = 42.828, z = 487.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3034, gadget_id = 70211012, pos = { x = 427.558, y = 22.623, z = 609.567 }, rot = { x = 5.000, y = 0.000, z = 355.000 }, level = 1, drop_tag = "战斗中级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 3037, gadget_id = 70310226, pos = { x = 372.265, y = 76.052, z = 502.684 }, rot = { x = 0.000, y = 80.000, z = 0.000 }, level = 1 },
{ config_id = 3043, gadget_id = 70300088, pos = { x = 437.728, y = 22.551, z = 607.017 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1 },
{ config_id = 3044, gadget_id = 70220014, pos = { x = 424.601, y = 22.715, z = 590.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3045, gadget_id = 70220014, pos = { x = 424.759, y = 22.627, z = 589.375 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3012, shape = RegionShape.SPHERE, radius = 2, pos = { x = 430.368, y = 23.983, z = 599.534 } },
{ config_id = 3016, shape = RegionShape.SPHERE, radius = 5, pos = { x = 373.808, y = 75.627, z = 502.614 } },
{ config_id = 3027, shape = RegionShape.SPHERE, radius = 5, pos = { x = 433.899, y = 82.691, z = 596.756 } },
{ config_id = 3028, shape = RegionShape.SPHERE, radius = 5, pos = { x = 419.735, y = 120.000, z = 565.958 } },
{ config_id = 3029, shape = RegionShape.SPHERE, radius = 5, pos = { x = 382.000, y = 123.000, z = 525.000 } },
{ config_id = 3033, shape = RegionShape.SPHERE, radius = 5, pos = { x = 380.000, y = 122.000, z = 504.000 } }
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "ANY_MONSTER_DIE_3005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3005", action = "action_EVENT_ANY_MONSTER_DIE_3005" },
{ config_id = 1003007, name = "GADGET_CREATE_3007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3007", action = "action_EVENT_GADGET_CREATE_3007" },
{ config_id = 1003008, name = "SELECT_OPTION_3008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3008", action = "action_EVENT_SELECT_OPTION_3008" },
{ config_id = 1003012, name = "ENTER_REGION_3012", event = EventType.EVENT_ENTER_REGION, source = "1", condition = "condition_EVENT_ENTER_REGION_3012", action = "action_EVENT_ENTER_REGION_3012", trigger_count = 0 },
{ config_id = 1003016, name = "ENTER_REGION_3016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3016", action = "action_EVENT_ENTER_REGION_3016", trigger_count = 0 },
{ config_id = 1003027, name = "ENTER_REGION_3027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3027", action = "action_EVENT_ENTER_REGION_3027", trigger_count = 0 },
{ config_id = 1003028, name = "ENTER_REGION_3028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3028", action = "action_EVENT_ENTER_REGION_3028", trigger_count = 0 },
{ config_id = 1003029, name = "ENTER_REGION_3029", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3029", action = "action_EVENT_ENTER_REGION_3029", trigger_count = 0 },
{ config_id = 1003033, name = "ENTER_REGION_3033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3033", action = "action_EVENT_ENTER_REGION_3033", trigger_count = 0 },
{ config_id = 1003041, name = "ANY_MONSTER_DIE_3041", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3041", action = "action_EVENT_ANY_MONSTER_DIE_3041" },
{ config_id = 1003046, name = "TIMER_EVENT_3046", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_3046" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003, 3020, 3042 },
gadgets = { 3006, 3009, 3010, 3011, 3013, 3014, 3018, 3019, 3022, 3023, 3024, 3025, 3032, 3034, 3043, 3044, 3045 },
regions = { 3016 },
triggers = { "GADGET_CREATE_3007", "SELECT_OPTION_3008", "ENTER_REGION_3016", "ANY_MONSTER_DIE_3041" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3004 },
regions = { 3027, 3028, 3029, 3033 },
triggers = { "ENTER_REGION_3027", "ENTER_REGION_3028", "ENTER_REGION_3029", "ENTER_REGION_3033" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 3035, 3036, 3038, 3039, 3040 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3005", "TIMER_EVENT_3046" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { 3012 },
triggers = { "ENTER_REGION_3012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 延迟2秒后,向groupId为:220132003的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132003, "1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220132003, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 3034 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3034, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3007(context, evt)
if 3011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220132003, 3011, {68}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3008(context, evt)
-- 判断是gadgetid 3011 option_id 68
if 3011 ~= evt.param1 then
return false
end
if 68 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3008(context, evt)
-- 将configid为 3006 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220132003 ;指定config3011;物件身上指定option68
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220132003, 3011, 68) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220132003, 3)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "KeyFlower" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "KeyFlower", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 针对当前group内变量名为 "KeyCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyCount", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3012(context, evt)
if evt.param1 ~= 3012 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3012(context, evt)
-- 将configid为 3004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
TeleportAction(context,defs.pointarray_move,{1,2,3,4,5,6})
-- 创建id为3021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3016(context, evt)
if evt.param1 ~= 3016 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3016(context, evt)
-- 将configid为 3013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3014 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132003, EntityType.GADGET, 3037 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3027(context, evt)
if evt.param1 ~= 3027 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3027(context, evt)
-- 创建id为3026的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 触发镜头注目,注目位置为坐标(391.424375.18393505.376),持续时间为16秒,并且为强制注目形式,不广播其他玩家
local pos = {x=391.4243, y=75.18393, z=505.376}
local pos_follow = {x=0.05, y=-0.65, z=-5}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 16, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132003, EntityType.GADGET, 3021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3028(context, evt)
if evt.param1 ~= 3028 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3028(context, evt)
-- 创建id为3030的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132003, EntityType.GADGET, 3026 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3029(context, evt)
if evt.param1 ~= 3029 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3029(context, evt)
-- 创建id为3031的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3031 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132003, EntityType.GADGET, 3030 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3033(context, evt)
if evt.param1 ~= 3033 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3033(context, evt)
-- 创建id为3037的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3037 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132003, EntityType.GADGET, 3031 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3041(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3041(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220132003, 4)
-- 调用提示id为 400070 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400070) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3046(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220132003, 5)
return 0
end
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220132004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70290528, pos = { x = 480.570, y = 22.890, z = 484.080 }, rot = { x = 0.000, y = 288.803, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70290508, pos = { x = 487.941, y = 18.533, z = 482.800 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70220103, pos = { x = 471.996, y = 35.416, z = 477.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70290480, pos = { x = 462.567, y = 29.164, z = 475.716 }, rot = { x = 0.000, y = 140.000, z = 0.000 }, level = 1, route_id = 1 },
{ config_id = 4007, gadget_id = 70290577, pos = { x = 445.500, y = 27.637, z = 489.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4008, gadget_id = 70290577, pos = { x = 456.036, y = 23.849, z = 495.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4009, gadget_id = 70220103, pos = { x = 447.826, y = 64.558, z = 466.121 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4010, gadget_id = 70360001, pos = { x = 487.982, y = 18.956, z = 482.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4011, gadget_id = 70220103, pos = { x = 433.917, y = 59.069, z = 467.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70290577, pos = { x = 452.719, y = 27.537, z = 514.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70290577, pos = { x = 460.779, y = 13.540, z = 489.469 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70290577, pos = { x = 470.809, y = 19.439, z = 506.937 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004003, name = "GADGET_CREATE_4003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4003", action = "action_EVENT_GADGET_CREATE_4003" },
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4005, 4006, 4007, 4008, 4009, 4010, 4011, 4012, 4013, 4014 },
regions = { },
triggers = { "GADGET_CREATE_4003", "SELECT_OPTION_4004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4003(context, evt)
if 4010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220132004, 4010, {68}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4010 option_id 68
if 4010 ~= evt.param1 then
return false
end
if 68 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 将configid为 4002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将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
-- 删除指定group 220132004 ;指定config4010;物件身上指定option68
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220132004, 4010, 68) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "KeyU" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "KeyU", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 针对当前group内变量名为 "KeyCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyCount", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 220132005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5003, gadget_id = 70290508, pos = { x = 429.015, y = 49.720, z = 473.619 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70220103, pos = { x = 452.527, y = 50.019, z = 513.618 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70360001, pos = { x = 429.055, y = 50.135, z = 473.588 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70211101, pos = { x = 455.813, y = 47.408, z = 514.842 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true },
{ config_id = 5007, gadget_id = 70290577, pos = { x = 436.267, y = 45.744, z = 480.160 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "GADGET_CREATE_5001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5001", action = "action_EVENT_GADGET_CREATE_5001" },
{ 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5003, 5004, 5005, 5006, 5007 },
regions = { },
triggers = { "GADGET_CREATE_5001", "SELECT_OPTION_5002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5001(context, evt)
if 5005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220132005, 5005, {68}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5002(context, evt)
-- 判断是gadgetid 5005 option_id 68
if 5005 ~= evt.param1 then
return false
end
if 68 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5002(context, evt)
-- 将configid为 5003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220132005 ;指定config5005;物件身上指定option68
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220132005, 5005, 68) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "KeyHigh" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "KeyHigh", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 针对当前group内变量名为 "KeyCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyCount", 1, 220132011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyCount", 220132011) ~= 3 then
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyU", 220132011) ~= 1 then
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 5 })
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 1 })
else
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 1 })
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 9 })
end
else
ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 2 })
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 })
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 1 })
end
return 0
end
@@ -0,0 +1,286 @@
-- 基础信息
local base_info = {
group_id = 220132006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 22020103, pos = { x = 520.445, y = 104.076, z = 372.474 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101, title_id = 10122, special_name_id = 10170 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6002, gadget_id = 70290506, pos = { x = 448.442, y = 59.203, z = 458.634 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70360001, pos = { x = 448.528, y = 60.286, z = 459.762 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70950156, pos = { x = 520.263, y = 104.073, z = 372.141 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "GADGET_STATE_CHANGE_6003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6003", action = "action_EVENT_GADGET_STATE_CHANGE_6003" },
{ config_id = 1006004, name = "SELECT_OPTION_6004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6004", action = "action_EVENT_SELECT_OPTION_6004" },
{ config_id = 1006006, name = "SPECIFIC_MONSTER_HP_CHANGE_6006", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "6001", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_6006", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_6006" },
{ config_id = 1006007, name = "QUEST_FINISH_6007", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_6007", action = "action_EVENT_QUEST_FINISH_6007" },
{ config_id = 1006008, name = "TIMER_EVENT_6008", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_6008" },
{ config_id = 1006010, name = "DUNGEON_ALL_AVATAR_DIE_6010", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_6010", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_6010" }
}
-- 变量
variables = {
{ config_id = 1, name = "BossSheild", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6002, 6005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6003", "SELECT_OPTION_6004", "QUEST_FINISH_6007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001 },
gadgets = { 6009 },
regions = { },
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_6006", "TIMER_EVENT_6008", "DUNGEON_ALL_AVATAR_DIE_6010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6003(context, evt)
-- 检测config_id为6002的gadget是否从GadgetState.Action02变为GadgetState.Action03
if 6002 ~= evt.param2 or GadgetState.Action03 ~= evt.param1 or GadgetState.Action02 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220132006, 6005, {769}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 删除suite11的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220132002, 11)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6004(context, evt)
-- 判断是gadgetid 6005 option_id 769
if 6005 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6004(context, evt)
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220132006 ;指定config6005;物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220132006, 6005, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_6006(context, evt)
--[[判断指定configid的怪物的血量小于%21时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 21 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_6006(context, evt)
-- 延迟25秒后,向groupId为:220132006的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132006, "1", 25) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将本组内变量名为 "BossSheild" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "BossSheild", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_6007(context, evt)
--检查ID为300313的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300313 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_6007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220132006, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
ScriptLib.ActivateDungeonCheckPoint(context, 10)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_6008(context, evt)
-- 移除指定monster
ScriptLib.RemoveEntityByConfigId(context, 220132006, EntityType.MONSTER, 6001)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "300314") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_6010(context, evt)
-- 判断变量"BossSheild"为1
if ScriptLib.GetGroupVariableValue(context, "BossSheild") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_6010(context, evt)
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 220132006, "1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 移除指定monster
ScriptLib.RemoveEntityByConfigId(context, 220132006, EntityType.MONSTER, 6001)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "300314") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,349 @@
-- 基础信息
local base_info = {
group_id = 220132007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70220103, pos = { x = 535.578, y = 106.922, z = 355.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70211101, pos = { x = 521.062, y = 18.560, z = 473.049 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true },
{ config_id = 7003, gadget_id = 70220103, pos = { x = 551.221, y = 93.745, z = 371.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7012, gadget_id = 70220103, pos = { x = 513.475, y = 90.851, z = 371.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007004, name = "TIMER_EVENT_7004", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_7004" },
{ config_id = 1007005, name = "QUEST_FINISH_7005", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7005", action = "action_EVENT_QUEST_FINISH_7005" },
{ config_id = 1007006, name = "QUEST_FINISH_7006", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7006", action = "action_EVENT_QUEST_FINISH_7006" },
{ config_id = 1007007, name = "QUEST_FINISH_7007", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7007", action = "action_EVENT_QUEST_FINISH_7007" },
{ config_id = 1007008, name = "QUEST_FINISH_7008", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7008", action = "action_EVENT_QUEST_FINISH_7008" },
{ config_id = 1007009, name = "TIMER_EVENT_7009", event = EventType.EVENT_TIMER_EVENT, source = "2", condition = "", action = "action_EVENT_TIMER_EVENT_7009" },
{ config_id = 1007010, name = "TIMER_EVENT_7010", event = EventType.EVENT_TIMER_EVENT, source = "3", condition = "", action = "action_EVENT_TIMER_EVENT_7010" },
{ config_id = 1007011, name = "TIMER_EVENT_7011", event = EventType.EVENT_TIMER_EVENT, source = "4", condition = "", action = "action_EVENT_TIMER_EVENT_7011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "TIMER_EVENT_7004", "QUEST_FINISH_7005", "QUEST_FINISH_7006", "QUEST_FINISH_7007", "QUEST_FINISH_7008", "TIMER_EVENT_7009", "TIMER_EVENT_7010", "TIMER_EVENT_7011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7001, 7003, 7012 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_7004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_7005(context, evt)
--检查ID为300315的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300315 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7005(context, evt)
ScriptLib.SetWeatherAreaState(context, 10134, 1)
if 0 ~= ScriptLib.EnterWeatherArea(context, 10134) then
return -1
end
-- 延迟6秒后,向groupId为:220132007的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132007, "1", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
ScriptLib.ActivateDungeonCheckPoint(context, 6)
-- 创建id为7002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132002, EntityType.GADGET, 2021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_7006(context, evt)
--检查ID为300316的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300316 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7006(context, evt)
ScriptLib.SetWeatherAreaState(context, 10134, 0)
-- 延迟6秒后,向groupId为:220132007的对象,请求一次调用,并将string参数:"2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132007, "2", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
ScriptLib.ActivateDungeonCheckPoint(context, 7)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
if 0 ~= ScriptLib.EnterWeatherArea(context, 10134) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_7007(context, evt)
--检查ID为300317的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300317 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7007(context, evt)
ScriptLib.SetWeatherAreaState(context, 10135, 1)
if 0 ~= ScriptLib.EnterWeatherArea(context, 10135) then
return -1
end
-- 延迟6秒后,向groupId为:220132007的对象,请求一次调用,并将string参数:"3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132007, "3", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220132001, 5)
ScriptLib.ActivateDungeonCheckPoint(context, 9)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_7008(context, evt)
--检查ID为300318的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 300318 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7008(context, evt)
ScriptLib.SetWeatherAreaState(context, 10135, 0)
ScriptLib.SetWeatherAreaState(context, 10136, 1)
-- 延迟6秒后,向groupId为:220132007的对象,请求一次调用,并将string参数:"4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220132007, "4", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
ScriptLib.ActivateDungeonCheckPoint(context, 11)
if 0 ~= ScriptLib.EnterWeatherArea(context, 10136) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220132007, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_7009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_7010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_7011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 11 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,218 @@
-- 基础信息
local base_info = {
group_id = 220132008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70900201, pos = { x = 501.085, y = 32.810, z = 435.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70360001, pos = { x = 500.798, y = 32.294, z = 436.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8004, gadget_id = 70900201, pos = { x = 509.426, y = 29.760, z = 447.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8006, gadget_id = 70900201, pos = { x = 511.197, y = 19.787, z = 467.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8009, gadget_id = 70900201, pos = { x = 500.824, y = 19.820, z = 474.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8003, shape = RegionShape.CYLINDER, radius = 5, pos = { x = 501.085, y = 35.839, z = 435.392 }, height = 15.000 },
{ config_id = 8005, shape = RegionShape.CYLINDER, radius = 5, pos = { x = 509.426, y = 34.350, z = 447.059 }, height = 15.000 },
{ config_id = 8007, shape = RegionShape.CUBIC, size = { x = 25.000, y = 10.000, z = 6.000 }, pos = { x = 518.285, y = 23.298, z = 467.540 } },
{ config_id = 8008, shape = RegionShape.SPHERE, radius = 6, pos = { x = 497.084, y = 37.921, z = 442.103 } }
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "ENTER_REGION_8003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8003", action = "action_EVENT_ENTER_REGION_8003" },
{ config_id = 1008005, name = "ENTER_REGION_8005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8005", action = "action_EVENT_ENTER_REGION_8005" },
{ config_id = 1008007, name = "ENTER_REGION_8007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8007", action = "action_EVENT_ENTER_REGION_8007" },
{ config_id = 1008008, name = "ENTER_REGION_8008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8008", action = "action_EVENT_ENTER_REGION_8008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { 8003, 8008 },
triggers = { "ENTER_REGION_8003", "ENTER_REGION_8008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 8004 },
regions = { 8005 },
triggers = { "ENTER_REGION_8005" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 8006 },
regions = { 8007 },
triggers = { "ENTER_REGION_8007" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 8009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8003(context, evt)
if evt.param1 ~= 8003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220132002, EntityType.GADGET, 2021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8005(context, evt)
if evt.param1 ~= 8005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8007(context, evt)
if evt.param1 ~= 8007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132008, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8008(context, evt)
if evt.param1 ~= 8008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8008(context, evt)
-- 调用提示id为 201320201 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201320201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,231 @@
-- 基础信息
local base_info = {
group_id = 220132009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70360001, pos = { x = 447.916, y = 22.037, z = 568.073 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70900201, pos = { x = 430.368, y = 25.282, z = 599.534 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9004, gadget_id = 70900201, pos = { x = 379.428, y = 77.470, z = 503.694 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9005, gadget_id = 70900201, pos = { x = 409.728, y = 83.789, z = 488.152 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9007, gadget_id = 70900201, pos = { x = 426.893, y = 81.082, z = 483.981 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9003, shape = RegionShape.SPHERE, radius = 15, pos = { x = 379.325, y = 83.910, z = 503.612 } },
{ config_id = 9006, shape = RegionShape.SPHERE, radius = 6, pos = { x = 410.919, y = 83.789, z = 487.020 } },
{ config_id = 9008, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 10.000 }, pos = { x = 425.910, y = 83.052, z = 483.981 } },
{ config_id = 9009, shape = RegionShape.SPHERE, radius = 5, pos = { x = 480.492, y = 21.235, z = 484.191 } }
}
-- 触发器
triggers = {
{ config_id = 1009003, name = "ENTER_REGION_9003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9003", action = "action_EVENT_ENTER_REGION_9003" },
{ config_id = 1009006, name = "ENTER_REGION_9006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9006", action = "action_EVENT_ENTER_REGION_9006" },
{ config_id = 1009008, name = "ENTER_REGION_9008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9008", action = "action_EVENT_ENTER_REGION_9008" },
{ config_id = 1009009, name = "ENTER_REGION_9009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9009", action = "action_EVENT_ENTER_REGION_9009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { 9003 },
triggers = { "ENTER_REGION_9003" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 9005 },
regions = { 9006, 9009 },
triggers = { "ENTER_REGION_9006", "ENTER_REGION_9009" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 9007 },
regions = { 9008, 9009 },
triggers = { "ENTER_REGION_9008", "ENTER_REGION_9009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9003(context, evt)
if evt.param1 ~= 9003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9006(context, evt)
if evt.param1 ~= 9006 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9008(context, evt)
if evt.param1 ~= 9008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9008(context, evt)
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyCount", 220132011) ~= 3 then
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyU", 220132011) ~= 1 then
ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 5 })
else
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 2 })
end
else
ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 2 })
end
ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 1 })
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9009(context, evt)
if evt.param1 ~= 9009 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9009(context, evt)
if ScriptLib.GetGroupVariableValueByGroup(context, "KeyHigh", 220132011) ~= 1 then
ScriptLib.RefreshGroup(context, { group_id = 220132010, suite = 2 })
else
ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 2 })
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,82 @@
-- 基础信息
local base_info = {
group_id = 220132010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70900201, pos = { x = 429.080, y = 52.205, z = 473.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70360001, pos = { x = 428.755, y = 50.313, z = 474.070 }, 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 = { 10002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,459 @@
-- 基础信息
local base_info = {
group_id = 220132011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11003, gadget_id = 70360001, pos = { x = 535.578, y = 106.933, z = 355.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70900201, pos = { x = 447.826, y = 65.415, z = 466.121 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70900201, pos = { x = 448.435, y = 59.887, z = 460.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11007, gadget_id = 70900201, pos = { x = 449.000, y = 62.807, z = 434.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11008, gadget_id = 70900201, pos = { x = 449.518, y = 62.074, z = 413.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11009, gadget_id = 70900201, pos = { x = 441.959, y = 65.882, z = 369.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11012, gadget_id = 70710058, pos = { x = 441.959, y = 65.373, z = 369.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11015, gadget_id = 70900201, pos = { x = 463.450, y = 65.765, z = 385.645 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11017, gadget_id = 70900201, pos = { x = 478.378, y = 67.349, z = 385.860 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11018, gadget_id = 70900201, pos = { x = 494.460, y = 90.379, z = 385.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11019, gadget_id = 70900201, pos = { x = 549.056, y = 91.777, z = 367.026 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11020, gadget_id = 70900201, pos = { x = 535.578, y = 107.967, z = 355.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11023, gadget_id = 70900201, pos = { x = 520.155, y = 104.620, z = 372.406 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11001, shape = RegionShape.SPHERE, radius = 7, pos = { x = 447.826, y = 62.401, z = 463.614 } },
{ config_id = 11002, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 15.000 }, pos = { x = 475.320, y = 36.110, z = 473.363 } },
{ config_id = 11004, shape = RegionShape.SPHERE, radius = 6, pos = { x = 445.254, y = 24.871, z = 575.739 } },
{ config_id = 11010, shape = RegionShape.CYLINDER, radius = 6, pos = { x = 449.518, y = 66.941, z = 413.717 }, height = 20.000 },
{ config_id = 11011, shape = RegionShape.SPHERE, radius = 5, pos = { x = 441.959, y = 65.373, z = 369.414 } },
{ config_id = 11016, shape = RegionShape.CUBIC, size = { x = 10.000, y = 25.000, z = 10.000 }, pos = { x = 464.944, y = 65.765, z = 385.645 } },
{ config_id = 11021, shape = RegionShape.CUBIC, size = { x = 20.000, y = 15.000, z = 10.000 }, pos = { x = 449.521, y = 65.395, z = 433.962 } },
{ config_id = 11022, shape = RegionShape.CUBIC, size = { x = 20.000, y = 50.000, z = 60.000 }, pos = { x = 551.024, y = 104.148, z = 374.185 } },
{ config_id = 11024, shape = RegionShape.CUBIC, size = { x = 50.000, y = 20.000, z = 50.000 }, pos = { x = 520.155, y = 112.317, z = 372.406 } }
}
-- 触发器
triggers = {
{ config_id = 1011001, name = "ENTER_REGION_11001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11001", action = "action_EVENT_ENTER_REGION_11001" },
{ config_id = 1011002, name = "ENTER_REGION_11002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11002", action = "action_EVENT_ENTER_REGION_11002", trigger_count = 0 },
{ config_id = 1011004, name = "ENTER_REGION_11004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11004", action = "action_EVENT_ENTER_REGION_11004" },
{ config_id = 1011010, name = "ENTER_REGION_11010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11010", action = "action_EVENT_ENTER_REGION_11010" },
{ config_id = 1011011, name = "ENTER_REGION_11011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11011", action = "action_EVENT_ENTER_REGION_11011" },
{ config_id = 1011016, name = "ENTER_REGION_11016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11016", action = "action_EVENT_ENTER_REGION_11016" },
{ config_id = 1011021, name = "ENTER_REGION_11021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11021", action = "action_EVENT_ENTER_REGION_11021" },
{ config_id = 1011022, name = "ENTER_REGION_11022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11022", action = "action_EVENT_ENTER_REGION_11022" },
{ config_id = 1011024, name = "ENTER_REGION_11024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11024", action = "action_EVENT_ENTER_REGION_11024" }
}
-- 变量
variables = {
{ config_id = 1, name = "KeyU", value = 0, no_refresh = false },
{ config_id = 2, name = "KeyFlower", value = 0, no_refresh = false },
{ config_id = 3, name = "KeyHigh", value = 0, no_refresh = false },
{ config_id = 4, name = "KeyCount", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 11014, gadget_id = 70360001, pos = { x = 450.326, y = 13.668, z = 487.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
regions = {
{ config_id = 11013, shape = RegionShape.CUBIC, size = { x = 30.000, y = 25.000, z = 20.000 }, pos = { x = 449.476, y = 76.384, z = 369.414 } }
},
triggers = {
{ config_id = 1011013, name = "ENTER_REGION_11013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11013", action = "action_EVENT_ENTER_REGION_11013" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11003 },
regions = { 11002, 11004 },
triggers = { "ENTER_REGION_11002", "ENTER_REGION_11004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11005 },
regions = { 11001 },
triggers = { "ENTER_REGION_11001" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 11006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 11007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 11008 },
regions = { 11010, 11021 },
triggers = { "ENTER_REGION_11010", "ENTER_REGION_11021" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 11009 },
regions = { 11011 },
triggers = { "ENTER_REGION_11011" },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 11012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 11015 },
regions = { 11016 },
triggers = { "ENTER_REGION_11016" },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 11017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 11018 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 11019 },
regions = { 11022 },
triggers = { "ENTER_REGION_11022" },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 11020 },
regions = { 11024 },
triggers = { "ENTER_REGION_11024" },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 11023 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11001(context, evt)
if evt.param1 ~= 11001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11002(context, evt)
if evt.param1 ~= 11002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"KeyU"为0
if ScriptLib.GetGroupVariableValue(context, "KeyU") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11004(context, evt)
if evt.param1 ~= 11004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"KeyFlower"为0
if ScriptLib.GetGroupVariableValue(context, "KeyFlower") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132009, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11010(context, evt)
if evt.param1 ~= 11010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11011(context, evt)
if evt.param1 ~= 11011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组220132001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220132001, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220132014, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11016(context, evt)
if evt.param1 ~= 11016 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11016(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11021(context, evt)
if evt.param1 ~= 11021 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11021(context, evt)
-- 调用提示id为 201320301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201320301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11022(context, evt)
if evt.param1 ~= 11022 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11022(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 12 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11024(context, evt)
if evt.param1 ~= 11024 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11024(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220132011, suite = 13 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 220132012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 26090401, pos = { x = 451.405, y = 13.652, z = 491.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 12003, monster_id = 26090501, pos = { x = 450.679, y = 13.550, z = 497.334 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 12004, monster_id = 26090701, pos = { x = 447.827, y = 13.550, z = 493.138 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12002, gadget_id = 70211002, pos = { x = 451.108, y = 13.625, z = 494.196 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012005, name = "ANY_MONSTER_DIE_12005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12005", action = "action_EVENT_ANY_MONSTER_DIE_12005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 12001, 12003, 12004 },
gadgets = { 12002 },
regions = { },
triggers = { "ANY_MONSTER_DIE_12005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220132013, 2)
-- 将configid为 12002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,341 @@
-- 基础信息
local base_info = {
group_id = 220132013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70360001, pos = { x = 455.223, y = 13.667, z = 483.578 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 琥珀台座
{ config_id = 13002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 487.941, y = 18.533, z = 482.800 } },
-- 琥珀台座
{ config_id = 13003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 379.325, y = 75.063, z = 503.612 } },
-- 琥珀台座
{ config_id = 13004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 429.015, y = 51.756, z = 473.619 } },
-- 琥珀门
{ config_id = 13005, shape = RegionShape.SPHERE, radius = 8, pos = { x = 448.442, y = 63.479, z = 461.888 } },
-- 弹跳蘑菇
{ config_id = 13006, shape = RegionShape.SPHERE, radius = 4, pos = { x = 436.267, y = 47.025, z = 480.160 } },
-- 弹跳蘑菇
{ config_id = 13007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 470.809, y = 21.096, z = 506.937 } },
-- 弹跳蘑菇
{ config_id = 13008, shape = RegionShape.SPHERE, radius = 5, pos = { x = 460.779, y = 13.540, z = 489.469 } },
-- 弹跳蘑菇
{ config_id = 13009, shape = RegionShape.SPHERE, radius = 4, pos = { x = 452.719, y = 29.217, z = 514.787 } },
-- 弹跳蘑菇
{ config_id = 13010, shape = RegionShape.SPHERE, radius = 3, pos = { x = 456.036, y = 25.192, z = 495.904 } },
-- 弹跳蘑菇
{ config_id = 13011, shape = RegionShape.SPHERE, radius = 5, pos = { x = 445.500, y = 29.219, z = 489.000 } }
}
-- 触发器
triggers = {
-- 琥珀台座
{ config_id = 1013002, name = "ENTER_REGION_13002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13002", action = "action_EVENT_ENTER_REGION_13002" },
-- 琥珀台座
{ config_id = 1013003, name = "ENTER_REGION_13003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13003", action = "action_EVENT_ENTER_REGION_13003" },
-- 琥珀台座
{ config_id = 1013004, name = "ENTER_REGION_13004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13004", action = "action_EVENT_ENTER_REGION_13004" },
-- 琥珀门
{ config_id = 1013005, name = "ENTER_REGION_13005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13005", action = "action_EVENT_ENTER_REGION_13005" },
-- 弹跳蘑菇
{ config_id = 1013006, name = "ENTER_REGION_13006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13006", action = "action_EVENT_ENTER_REGION_13006" },
-- 弹跳蘑菇
{ config_id = 1013007, name = "ENTER_REGION_13007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13007", action = "action_EVENT_ENTER_REGION_13007" },
-- 弹跳蘑菇
{ config_id = 1013008, name = "ENTER_REGION_13008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13008", action = "action_EVENT_ENTER_REGION_13008" },
-- 弹跳蘑菇
{ config_id = 1013009, name = "ENTER_REGION_13009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13009", action = "action_EVENT_ENTER_REGION_13009" },
-- 弹跳蘑菇
{ config_id = 1013010, name = "ENTER_REGION_13010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13010", action = "action_EVENT_ENTER_REGION_13010" },
-- 弹跳蘑菇
{ config_id = 1013011, name = "ENTER_REGION_13011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13011", action = "action_EVENT_ENTER_REGION_13011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001 },
regions = { 13002, 13003, 13004, 13005, 13006, 13007, 13009, 13010, 13011 },
triggers = { "ENTER_REGION_13002", "ENTER_REGION_13003", "ENTER_REGION_13004", "ENTER_REGION_13005", "ENTER_REGION_13006", "ENTER_REGION_13007", "ENTER_REGION_13009", "ENTER_REGION_13010", "ENTER_REGION_13011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 13008 },
triggers = { "ENTER_REGION_13008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13002(context, evt)
if evt.param1 ~= 13002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13002(context, evt)
-- 显示id为203的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,203,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13003(context, evt)
if evt.param1 ~= 13003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13003(context, evt)
-- 显示id为203的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,203,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13004(context, evt)
if evt.param1 ~= 13004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13004(context, evt)
-- 显示id为203的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,203,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13005(context, evt)
if evt.param1 ~= 13005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13005(context, evt)
-- 显示id为203的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,203,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13006(context, evt)
if evt.param1 ~= 13006 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13006(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13007(context, evt)
if evt.param1 ~= 13007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13007(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13008(context, evt)
if evt.param1 ~= 13008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13008(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13009(context, evt)
if evt.param1 ~= 13009 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13009(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13010(context, evt)
if evt.param1 ~= 13010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13010(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13011(context, evt)
if evt.param1 ~= 13011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13011(context, evt)
-- 显示id为202的reminder
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,202,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
@@ -0,0 +1,131 @@
-- 基础信息
local base_info = {
group_id = 220132014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70360001, pos = { x = 449.272, y = 65.248, z = 385.045 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14002, shape = RegionShape.CUBIC, size = { x = 10.000, y = 30.000, z = 10.000 }, pos = { x = 449.390, y = 67.648, z = 422.226 } },
{ config_id = 14003, shape = RegionShape.CUBIC, size = { x = 30.000, y = 25.000, z = 15.000 }, pos = { x = 449.518, y = 75.056, z = 385.645 } }
}
-- 触发器
triggers = {
{ config_id = 1014002, name = "ENTER_REGION_14002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14002", action = "action_EVENT_ENTER_REGION_14002", trigger_count = 0 },
{ config_id = 1014003, name = "ENTER_REGION_14003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14003", action = "action_EVENT_ENTER_REGION_14003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14002, 14003 },
triggers = { "ENTER_REGION_14002", "ENTER_REGION_14003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14002(context, evt)
if evt.param1 ~= 14002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14002(context, evt)
-- 改变指定group组220132001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220132001, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14003(context, evt)
if evt.param1 ~= 14003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14003(context, evt)
-- 改变指定group组220132001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220132001, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,145 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 432.455536,
"y": 25.8028145,
"z": 597.89325
},
"rotation": {
"x": 0.0,
"y": 135.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 433.8988,
"y": 82.69089,
"z": 596.7557
},
"rotation": {
"x": 0.0,
"y": 205.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 3,
"position": {
"x": 419.7354,
"y": 120.0,
"z": 565.9584
},
"rotation": {
"x": 0.0,
"y": 224.999985,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 4,
"position": {
"x": 382.0,
"y": 123.0,
"z": 525.0
},
"rotation": {
"x": 0.0,
"y": 190.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 5,
"position": {
"x": 380.0,
"y": 122.0,
"z": 504.0
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 6,
"position": {
"x": 372.2649,
"y": 76.05178,
"z": 502.6839
},
"rotation": {
"x": 0.0,
"y": 80.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.5,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]
@@ -0,0 +1,205 @@
[
{
"area_id": 10137,
"bottom": 60.0,
"isUseHeightBorder": true,
"points": [
{
"x": 326.362366,
"y": 632.9371
},
{
"x": 477.2829,
"y": 638.186157
},
{
"x": 398.142151,
"y": 467.8015
},
{
"x": 335.906982,
"y": 465.501953
}
],
"top": 1000.0
},
{
"area_id": 10136,
"points": [
{
"x": 523.0546,
"y": 302.822479
},
{
"x": 576.047363,
"y": 322.6595
},
{
"x": 580.504333,
"y": 374.982727
},
{
"x": 559.5273,
"y": 420.820557
},
{
"x": 495.4161,
"y": 440.3264
},
{
"x": 457.147949,
"y": 385.3464
},
{
"x": 460.162872,
"y": 353.5976
},
{
"x": 494.848969,
"y": 314.134338
}
]
},
{
"area_id": 10134,
"points": [
{
"x": 482.751343,
"y": 471.849579
},
{
"x": 487.9773,
"y": 490.0296
},
{
"x": 514.761841,
"y": 495.5538
},
{
"x": 527.978333,
"y": 489.373718
},
{
"x": 541.0774,
"y": 481.054626
},
{
"x": 540.6072,
"y": 454.044739
},
{
"x": 521.276062,
"y": 436.536957
},
{
"x": 512.3138,
"y": 432.598022
},
{
"x": 498.57135,
"y": 422.278564
},
{
"x": 487.70874,
"y": 420.935883
},
{
"x": 475.513519,
"y": 440.6883
},
{
"x": 471.783936,
"y": 447.320526
},
{
"x": 482.302734,
"y": 455.777832
}
]
},
{
"area_id": 10135,
"points": [
{
"x": 439.04187,
"y": 436.995728
},
{
"x": 458.530823,
"y": 440.2754
},
{
"x": 465.067749,
"y": 419.652679
},
{
"x": 471.0644,
"y": 404.441864
},
{
"x": 482.6895,
"y": 396.511963
},
{
"x": 512.722,
"y": 395.67804
},
{
"x": 526.258,
"y": 389.340485
},
{
"x": 525.4625,
"y": 379.500458
},
{
"x": 506.611969,
"y": 378.885773
},
{
"x": 492.665955,
"y": 368.8775
},
{
"x": 477.764648,
"y": 366.7134
},
{
"x": 463.5171,
"y": 363.862732
},
{
"x": 461.6525,
"y": 363.7121
},
{
"x": 442.7236,
"y": 364.00116
},
{
"x": 432.188354,
"y": 367.300781
},
{
"x": 432.49472,
"y": 387.155
},
{
"x": 430.624878,
"y": 400.032166
},
{
"x": 438.133179,
"y": 408.125244
},
{
"x": 436.3504,
"y": 421.686523
},
{
"x": 433.788452,
"y": 429.8141
}
]
}
]