添加配置表

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 = -50.0, z = 0.0 },
size = { x = 200.0, z = 200.0 },
born_pos = { x = 88.800, y = -4.150, z = 112.933 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -10,
city_id = 3,
vision_anchor = { x = -50.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20111 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -50.0, z = 0.0 }, max = { x = 150.0, z = 200.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,509 @@
{
"sceneId": 20111,
"routes": [
{
"localId": 7,
"name": "Platform_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2.70695138,
"y": 2.576636,
"z": 68.69617
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2.70695138,
"y": 12.8133249,
"z": 68.69617
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 8,
"name": "Platform_008",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4.357384,
"y": 1.99921346,
"z": 150.6172
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 4.35738373,
"y": 26.0053616,
"z": 150.6172
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 9,
"name": "Platform_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2.70695138,
"y": 12.8116608,
"z": 68.69617
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 2.70695138,
"y": 2.576636,
"z": 68.69617
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 10,
"name": "Platform_008",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4.35738373,
"y": 26.0053616,
"z": 150.6172
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 4.357384,
"y": 1.99921346,
"z": 150.6172
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 11,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.88099957,
"z": 120.972717
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 24.297245,
"y": 2.88099957,
"z": 121.470886
},
"waitTime": 3.0,
"speedLevel": 1
}
]
},
{
"localId": 12,
"name": "Route_011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 35.98538,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 29.34584,
"y": 2.881,
"z": 120.114853
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 24.45379,
"y": 2.88099957,
"z": 118.651054
},
"waitTime": 3.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,16 @@
-- 所有的group
groups = {
{ id = 220111001, refresh_id = 1001, pos = { x = 18.382, y = 1.170, z = 82.265 } },
{ id = 220111002, refresh_id = 1001, pos = { x = 61.817, y = 1.170, z = 84.478 } },
{ id = 220111003, refresh_id = 1001, pos = { x = 21.208, y = 1.940, z = 59.467 } },
{ id = 220111004, refresh_id = 1001, pos = { x = 4.698, y = 15.660, z = 125.584 } },
{ id = 220111005, refresh_id = 1001, pos = { x = 37.534, y = 16.982, z = 138.867 } },
{ id = 220111006, refresh_id = 1001, pos = { x = 28.436, y = 26.420, z = 94.015 } },
{ id = 220111007, refresh_id = 1, pos = { x = 32.535, y = -7.498, z = 124.602 } },
{ id = 220111008, refresh_id = 1, pos = { x = 32.593, y = 2.960, z = 136.149 } },
{ id = 220111009, refresh_id = 1, pos = { x = 58.736, y = 15.550, z = 117.486 } },
{ id = 220111010, refresh_id = 1, pos = { x = 32.668, y = 2.881, z = 114.488 } },
{ id = 220111011, refresh_id = 1, pos = { x = 58.770, y = 15.550, z = 122.927 } },
{ id = 220111012, refresh_id = 1001, pos = { x = 32.319, y = 2.883, z = 125.418 } },
{ id = 220111013, pos = { x = 33.982, y = 2.883, z = 114.053 } }
}
@@ -0,0 +1,19 @@
dummy_points = {
["DUMMY_POS 15"] = { pos = { x = 34.926, y = 2.881, z = 115.189 }, rot = { x = 0.000, y = 176.910, z = 0.000 } },
["Q200704born"] = { pos = { x = 89.639, y = -4.135, z = 114.476 }, rot = { x = 0.000, y = 252.254, z = 0.000 } },
["Q200704paimon"] = { pos = { x = 89.540, y = -4.150, z = 113.592 }, rot = { x = 0.000, y = 291.935, z = 0.000 } },
["Q200704xiaogong"] = { pos = { x = 88.335, y = -4.150, z = 113.993 }, rot = { x = 0.000, y = 94.517, z = 0.000 } },
["Q200705born"] = { pos = { x = 26.831, y = -6.770, z = 144.888 }, rot = { x = 0.000, y = 67.779, z = 0.000 } },
["Q200705jiu"] = { pos = { x = 22.598, y = -5.054, z = 137.817 }, rot = { x = 0.000, y = 84.685, z = 0.000 } },
["Q200705mass2"] = { pos = { x = 33.167, y = -7.967, z = 119.722 }, rot = { x = 0.000, y = 209.864, z = 0.000 } },
["Q200705mass3"] = { pos = { x = 31.848, y = -7.967, z = 119.730 }, rot = { x = 0.000, y = 162.429, z = 0.000 } },
["Q200705paimon"] = { pos = { x = 27.476, y = -6.770, z = 144.283 }, rot = { x = 0.000, y = 358.748, z = 0.000 } },
["Q200705xiaogong"] = { pos = { x = 27.509, y = -6.770, z = 145.451 }, rot = { x = 0.000, y = 177.867, z = 0.000 } },
["Q200706focus"] = { pos = { x = 32.600, y = 5.387, z = 126.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q200706trigger"] = { pos = { x = 38.345, y = 1.194, z = 83.892 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q200707born"] = { pos = { x = 32.404, y = -7.498, z = 127.277 }, rot = { x = 0.000, y = 184.370, z = 0.000 } },
["Q200707mass1"] = { pos = { x = 32.512, y = -7.967, z = 117.954 }, rot = { x = 0.000, y = 89.855, z = 0.000 } },
["Q200707paimon"] = { pos = { x = 31.353, y = -7.498, z = 126.993 }, rot = { x = 0.000, y = 168.770, z = 0.000 } },
["Q200707task"] = { pos = { x = 32.404, y = -8.522, z = 120.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q200707xiaogong"] = { pos = { x = 33.494, y = -7.498, z = 127.277 }, rot = { x = 0.000, y = 194.330, z = 0.000 } }
}
@@ -0,0 +1,344 @@
-- 基础信息
local base_info = {
group_id = 220111001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1011, monster_id = 25050301, pos = { x = 4.301, y = 25.983, z = 146.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360282, pos = { x = 4.333, y = 1.777, z = 150.617 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8, start_route = false, persistent = true },
{ config_id = 1006, gadget_id = 70290141, pos = { x = 4.430, y = 0.015, z = 105.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70360001, pos = { x = 4.460, y = 0.015, z = 105.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1007, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 40.000 }, pos = { x = 4.330, y = 3.223, z = 123.802 } },
{ config_id = 1010, shape = RegionShape.SPHERE, radius = 5, pos = { x = 4.564, y = 4.087, z = 149.465 } },
{ config_id = 1012, shape = RegionShape.SPHERE, radius = 5, pos = { x = 56.956, y = 25.611, z = 76.274 } },
{ config_id = 1013, shape = RegionShape.SPHERE, radius = 5, pos = { x = 4.564, y = 4.087, z = 149.465 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "TIMER_EVENT_1002", event = EventType.EVENT_TIMER_EVENT, source = "timer2", condition = "", action = "action_EVENT_TIMER_EVENT_1002", trigger_count = 0 },
{ config_id = 1001003, name = "PLATFORM_REACH_POINT_1003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_1003", action = "action_EVENT_PLATFORM_REACH_POINT_1003", trigger_count = 0 },
{ config_id = 1001004, name = "PLATFORM_REACH_POINT_1004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_1004", action = "action_EVENT_PLATFORM_REACH_POINT_1004", trigger_count = 0 },
{ config_id = 1001005, name = "GADGET_STATE_CHANGE_1005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1005", action = "action_EVENT_GADGET_STATE_CHANGE_1005", trigger_count = 0 },
{ config_id = 1001007, name = "ENTER_REGION_1007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1007", action = "action_EVENT_ENTER_REGION_1007" },
{ config_id = 1001008, name = "SELECT_OPTION_1008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1008", action = "action_EVENT_SELECT_OPTION_1008" },
{ config_id = 1001010, name = "ENTER_REGION_1010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1010", action = "action_EVENT_ENTER_REGION_1010" },
{ config_id = 1001012, name = "ENTER_REGION_1012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1012", action = "action_EVENT_ENTER_REGION_1012" },
{ config_id = 1001013, name = "ENTER_REGION_1013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1013", action = "action_EVENT_ENTER_REGION_1013" }
}
-- 变量
variables = {
{ config_id = 1, name = "point", value = 0, no_refresh = false },
{ config_id = 2, name = "point3", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1011 },
gadgets = { 1001, 1006, 1009 },
regions = { 1007, 1010, 1012, 1013 },
triggers = { "TIMER_EVENT_1002", "PLATFORM_REACH_POINT_1003", "PLATFORM_REACH_POINT_1004", "GADGET_STATE_CHANGE_1005", "ENTER_REGION_1007", "SELECT_OPTION_1008", "ENTER_REGION_1010", "ENTER_REGION_1012", "ENTER_REGION_1013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_1002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1001, 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_1003(context, evt)
-- 判断是gadgetid 为 1001的移动平台,是否到达了8 的路线中的 1 点
if 1001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_1003(context, evt)
-- 延迟2秒后,向groupId为:220111001的对象,请求一次调用,并将string参数:"timer2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220111001, "timer2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_1004(context, evt)
-- 判断是gadgetid 为 1001的移动平台,是否到达了10 的路线中的 1 点
if 1001 ~= evt.param1 then
return false
end
if 10 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_1004(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1001, 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 改变指定group组220111001中, configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111001, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1005(context, evt)
-- 检测config_id为1001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 1001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1005(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1007(context, evt)
if evt.param1 ~= 1007 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_1007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111001, 1009, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1008(context, evt)
-- 判断是gadgetid 1009 option_id 73
if 1009 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1008(context, evt)
-- 改变指定group组220111001中, configid为1006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111001, 1006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220111001 ;指定config1009;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111001, 1009, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite13的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 13)
-- 将本组内变量名为 "point3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 针对当前group内变量名为 "collect" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "collect", 1, 220111013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1010(context, evt)
if evt.param1 ~= 1010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"point"为1
if ScriptLib.GetGroupVariableValue(context, "point") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1010(context, evt)
-- 删除suite12的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 12)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1012(context, evt)
if evt.param1 ~= 1012 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_1012(context, evt)
-- 将本组内变量名为 "point" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1013(context, evt)
if evt.param1 ~= 1013 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"point"为1
if ScriptLib.GetGroupVariableValue(context, "point") ~= 1 then
return false
end
-- 判断变量"point3"为0
if ScriptLib.GetGroupVariableValue(context, "point3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1013(context, evt)
-- 添加suite13的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 13)
return 0
end
@@ -0,0 +1,185 @@
-- 基础信息
local base_info = {
group_id = 220111002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 25050301, pos = { x = 69.964, y = 0.280, z = 91.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 2002, monster_id = 25050301, pos = { x = 66.128, y = 0.280, z = 92.038 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2005, gadget_id = 70900393, pos = { x = 73.029, y = 0.200, z = 117.010 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2006, gadget_id = 70900393, pos = { x = 73.029, y = 0.200, z = 111.074 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2007, gadget_id = 70900393, pos = { x = 24.360, y = 1.119, z = 80.617 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2008, gadget_id = 70900393, pos = { x = 13.403, y = 1.119, z = 80.617 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2009, gadget_id = 70900393, pos = { x = 23.036, y = 1.797, z = 75.624 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2010, gadget_id = 70900393, pos = { x = 15.363, y = 1.775, z = 75.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2011, gadget_id = 70900393, pos = { x = 4.658, y = 12.507, z = 72.890 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2012, gadget_id = 70900393, pos = { x = 0.734, y = 12.551, z = 117.288 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2013, gadget_id = 70900393, pos = { x = 7.254, y = 12.551, z = 117.600 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2014, gadget_id = 70900393, pos = { x = 4.846, y = 1.857, z = 61.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2015, gadget_id = 70900393, pos = { x = 53.025, y = 25.549, z = 97.213 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2016, gadget_id = 70900393, pos = { x = 41.696, y = 25.552, z = 91.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2017, gadget_id = 70900393, pos = { x = 41.693, y = 25.563, z = 96.339 }, rot = { x = 0.000, y = 80.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2018, gadget_id = 70900393, pos = { x = 26.514, y = 27.807, z = 81.221 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2019, gadget_id = 70900393, pos = { x = 21.665, y = 27.807, z = 81.221 }, rot = { x = 0.000, y = 170.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2020, gadget_id = 70900393, pos = { x = 7.980, y = 25.928, z = 91.264 }, rot = { x = 0.000, y = 20.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2021, gadget_id = 70900393, pos = { x = 7.980, y = 25.928, z = 97.028 }, rot = { x = 0.000, y = 350.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2022, gadget_id = 70900393, pos = { x = 2.115, y = 0.900, z = 143.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2023, gadget_id = 70900393, pos = { x = 6.395, y = 0.900, z = 143.766 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2024, gadget_id = 70900393, pos = { x = 27.060, y = -7.496, z = 133.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2025, gadget_id = 70900393, pos = { x = 27.060, y = -7.496, z = 141.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 2003, shape = RegionShape.CUBIC, size = { x = 7.000, y = 10.000, z = 10.000 }, pos = { x = 38.345, y = 5.869, z = 83.892 } },
{ config_id = 2004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 68.073, y = 2.143, z = 113.252 } },
{ config_id = 2026, shape = RegionShape.SPHERE, radius = 5, pos = { x = 53.792, y = 18.606, z = 139.357 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "ENTER_REGION_2003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2003", action = "action_EVENT_ENTER_REGION_2003" },
{ config_id = 1002004, name = "ENTER_REGION_2004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2004", action = "action_EVENT_ENTER_REGION_2004" },
{ config_id = 1002026, name = "ENTER_REGION_2026", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2026", action = "action_EVENT_ENTER_REGION_2026" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002 },
gadgets = { 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2022, 2023, 2024, 2025 },
regions = { 2003, 2004, 2026 },
triggers = { "ENTER_REGION_2003", "ENTER_REGION_2004", "ENTER_REGION_2026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2015, 2016, 2017, 2018, 2019, 2020, 2021 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2003(context, evt)
if evt.param1 ~= 2003 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_2003(context, evt)
-- 触发镜头注目,注目位置为坐标(32.6,6.2,126.6),持续时间为4秒,并且为强制注目形式,不广播其他玩家
local pos = {x=32.6, y=6.2, z=126.6}
local pos_follow = {x=0, y=0.5, z=-0.5}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 4, 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
-- 调用提示id为 201110101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2004(context, evt)
if evt.param1 ~= 2004 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_2004(context, evt)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 1)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2026(context, evt)
if evt.param1 ~= 2026 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_2026(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111002, 2)
return 0
end
@@ -0,0 +1,387 @@
-- 基础信息
local base_info = {
group_id = 220111003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3002, monster_id = 25080401, pos = { x = 20.979, y = 1.940, z = 46.734 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 },
{ config_id = 3009, monster_id = 25050301, pos = { x = 28.016, y = 1.869, z = 47.833 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, monster_id = 25050301, pos = { x = 9.347, y = 1.869, z = 59.268 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3011, monster_id = 25050301, pos = { x = 14.133, y = 1.877, z = 47.473 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, monster_id = 25050301, pos = { x = 33.025, y = 1.868, z = 59.142 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3006, gadget_id = 70290137, pos = { x = 19.236, y = 2.117, z = 74.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3007, gadget_id = 70290137, pos = { x = 6.401, y = 2.117, z = 59.323 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70360291, pos = { x = 5.532, y = 3.401, z = 59.209 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70360291, pos = { x = -2.099, y = 3.401, z = 59.209 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70360282, pos = { x = 2.707, y = 2.577, z = 68.696 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7, start_route = false, persistent = true },
{ config_id = 3022, gadget_id = 70360280, pos = { x = 35.478, y = 3.401, z = 59.209 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 16.628, y = 4.151, z = 80.576 } },
{ config_id = 3003, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 10.000 }, pos = { x = 31.624, y = 5.654, z = 84.064 } },
{ config_id = 3004, shape = RegionShape.SPHERE, radius = 7, pos = { x = -0.546, y = 2.658, z = 59.964 } },
{ config_id = 3014, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 4.000 }, pos = { x = 18.042, y = 4.697, z = 71.307 } },
{ config_id = 3023, shape = RegionShape.CUBIC, size = { x = 30.000, y = 4.000, z = 5.500 }, pos = { x = 21.464, y = 3.708, z = 59.256 } }
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "ENTER_REGION_3001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3001", action = "action_EVENT_ENTER_REGION_3001" },
{ config_id = 1003003, name = "ENTER_REGION_3003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3003", action = "action_EVENT_ENTER_REGION_3003", trigger_count = 0 },
{ config_id = 1003004, name = "ENTER_REGION_3004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3004", action = "action_EVENT_ENTER_REGION_3004" },
{ 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 = 1003014, name = "ENTER_REGION_3014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3014", action = "action_EVENT_ENTER_REGION_3014", trigger_count = 0 },
{ config_id = 1003018, name = "GADGET_STATE_CHANGE_3018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3018", action = "action_EVENT_GADGET_STATE_CHANGE_3018", trigger_count = 0 },
{ config_id = 1003019, name = "PLATFORM_REACH_POINT_3019", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_3019", action = "action_EVENT_PLATFORM_REACH_POINT_3019", trigger_count = 0 },
{ config_id = 1003020, name = "TIMER_EVENT_3020", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_3020", trigger_count = 0 },
{ config_id = 1003021, name = "PLATFORM_REACH_POINT_3021", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_3021", action = "action_EVENT_PLATFORM_REACH_POINT_3021", trigger_count = 0 },
{ config_id = 1003023, name = "ENTER_REGION_3023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3023", action = "action_EVENT_ENTER_REGION_3023", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "alive1", value = 0, no_refresh = false },
{ config_id = 2, name = "battle1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3006, 3007, 3008, 3017, 3022 },
regions = { 3001, 3003, 3004, 3014, 3023 },
triggers = { "ENTER_REGION_3001", "ENTER_REGION_3003", "ENTER_REGION_3004", "ENTER_REGION_3014", "GADGET_STATE_CHANGE_3018", "PLATFORM_REACH_POINT_3019", "TIMER_EVENT_3020", "PLATFORM_REACH_POINT_3021", "ENTER_REGION_3023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3002, 3009, 3010, 3011, 3012 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3001(context, evt)
if evt.param1 ~= 3001 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_3001(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111003, 2)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3003(context, evt)
if evt.param1 ~= 3003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive1"为1
if ScriptLib.GetGroupVariableValue(context, "alive1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3003(context, evt)
-- 改变指定group组220111003中, configid为3006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111003, 3006, 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_3004(context, evt)
if evt.param1 ~= 3004 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_3004(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220111003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 改变指定group组220111003中, configid为3007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111003, 3007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220111003, EntityType.GADGET, 3008 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "battle1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "battle1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3014(context, evt)
if evt.param1 ~= 3014 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_3014(context, evt)
-- 改变指定group组220111003中, configid为3006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111003, 3006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "alive1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "alive1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3018(context, evt)
-- 检测config_id为3017的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 3017 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3018(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_3019(context, evt)
-- 判断是gadgetid 为 3017的移动平台,是否到达了9 的路线中的 1 点
if 3017 ~= evt.param1 then
return false
end
if 9 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_3019(context, evt)
-- 改变指定group组220111003中, configid为3017的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111003, 3017, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 3017, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3020(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 3017, 9) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 3017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_3021(context, evt)
-- 判断是gadgetid 为 3017的移动平台,是否到达了7 的路线中的 1 点
if 3017 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_3021(context, evt)
-- 延迟2秒后,向groupId为:220111003的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220111003, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3023(context, evt)
if evt.param1 ~= 3023 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"battle1"为0
if ScriptLib.GetGroupVariableValue(context, "battle1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3023(context, evt)
-- 改变指定group组220111003中, configid为3022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111003, 3022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,501 @@
-- 基础信息
local base_info = {
group_id = 220111004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4002, monster_id = 25050401, pos = { x = 3.388, y = 12.590, z = 100.474 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4023, monster_id = 25050301, pos = { x = 13.337, y = 15.660, z = 126.611 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4024, monster_id = 25050301, pos = { x = 17.805, y = 15.660, z = 128.698 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70211011, pos = { x = 5.944, y = 16.540, z = 136.165 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true },
{ config_id = 4003, gadget_id = 70220071, pos = { x = 2.088, y = 12.590, z = 111.206 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70220070, pos = { x = 4.186, y = 12.590, z = 111.988 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70220071, pos = { x = 2.791, y = 12.590, z = 97.817 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 4007, gadget_id = 70220070, pos = { x = 4.752, y = 12.590, z = 96.736 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 4009, gadget_id = 70290136, pos = { x = 22.910, y = 16.081, z = 128.699 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4011, gadget_id = 70350293, pos = { x = 3.449, y = 15.694, z = 124.050 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 4013, gadget_id = 70360280, pos = { x = 8.013, y = 14.015, z = 94.836 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70360280, pos = { x = 8.016, y = 14.015, z = 105.971 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4015, gadget_id = 70360291, pos = { x = -1.795, y = 14.015, z = 94.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70360291, pos = { x = -1.597, y = 14.015, z = 105.971 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4019, gadget_id = 70360283, pos = { x = 4.349, y = 21.439, z = 101.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4020, gadget_id = 70360283, pos = { x = 4.349, y = 21.394, z = 110.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4027, gadget_id = 70360001, pos = { x = 22.581, y = 17.463, z = 128.746 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4005, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 5.000 }, pos = { x = 4.153, y = 16.604, z = 89.513 } },
{ config_id = 4008, shape = RegionShape.SPHERE, radius = 4, pos = { x = 5.791, y = 17.572, z = 128.369 } },
{ config_id = 4010, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 5.000 }, pos = { x = 4.153, y = 16.604, z = 116.406 } },
{ config_id = 4016, shape = RegionShape.CUBIC, size = { x = 10.000, y = 4.000, z = 5.500 }, pos = { x = 3.886, y = 13.985, z = 94.830 } },
{ config_id = 4017, shape = RegionShape.CUBIC, size = { x = 10.000, y = 4.000, z = 5.500 }, pos = { x = 3.886, y = 13.998, z = 105.961 } },
{ config_id = 4021, shape = RegionShape.CUBIC, size = { x = 5.500, y = 10.000, z = 5.500 }, pos = { x = 4.303, y = 16.523, z = 101.362 } },
{ config_id = 4022, shape = RegionShape.CUBIC, size = { x = 5.500, y = 10.000, z = 5.500 }, pos = { x = 4.303, y = 17.142, z = 109.853 } },
{ config_id = 4028, shape = RegionShape.SPHERE, radius = 5, pos = { x = 31.223, y = 18.841, z = 138.743 } }
}
-- 触发器
triggers = {
{ config_id = 1004005, name = "ENTER_REGION_4005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4005", action = "action_EVENT_ENTER_REGION_4005" },
{ config_id = 1004008, name = "ENTER_REGION_4008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4008", action = "action_EVENT_ENTER_REGION_4008" },
{ config_id = 1004010, name = "ENTER_REGION_4010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4010", action = "action_EVENT_ENTER_REGION_4010" },
{ config_id = 1004012, name = "GADGET_STATE_CHANGE_4012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4012", action = "action_EVENT_GADGET_STATE_CHANGE_4012", trigger_count = 0 },
{ config_id = 1004016, name = "ENTER_REGION_4016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4016", action = "action_EVENT_ENTER_REGION_4016", trigger_count = 0, forbid_guest = false },
{ config_id = 1004017, name = "ENTER_REGION_4017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4017", action = "action_EVENT_ENTER_REGION_4017", trigger_count = 0, forbid_guest = false },
{ config_id = 1004021, name = "ENTER_REGION_4021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4021", action = "action_EVENT_ENTER_REGION_4021", forbid_guest = false },
{ config_id = 1004022, name = "ENTER_REGION_4022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4022", action = "action_EVENT_ENTER_REGION_4022", forbid_guest = false },
{ config_id = 1004025, name = "GADGET_STATE_CHANGE_4025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4025", action = "action_EVENT_GADGET_STATE_CHANGE_4025", trigger_count = 0 },
{ config_id = 1004026, name = "SELECT_OPTION_4026", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4026", action = "action_EVENT_SELECT_OPTION_4026" },
{ config_id = 1004028, name = "ENTER_REGION_4028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4028", action = "action_EVENT_ENTER_REGION_4028" },
{ config_id = 1004029, name = "SELECT_OPTION_4029", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4029", action = "action_EVENT_SELECT_OPTION_4029" },
{ config_id = 1004030, name = "SELECT_OPTION_4030", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4030", action = "action_EVENT_SELECT_OPTION_4030" }
}
-- 变量
variables = {
{ config_id = 1, name = "wall5", value = 0, no_refresh = false },
{ config_id = 2, name = "point", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4002, 4023, 4024 },
gadgets = { 4001, 4003, 4004, 4006, 4007, 4009, 4011, 4013, 4014, 4015, 4018, 4019, 4020, 4027 },
regions = { 4005, 4008, 4010, 4016, 4017, 4021, 4022, 4028 },
triggers = { "ENTER_REGION_4005", "ENTER_REGION_4008", "ENTER_REGION_4010", "GADGET_STATE_CHANGE_4012", "ENTER_REGION_4016", "ENTER_REGION_4017", "ENTER_REGION_4021", "ENTER_REGION_4022", "GADGET_STATE_CHANGE_4025", "SELECT_OPTION_4026", "ENTER_REGION_4028", "SELECT_OPTION_4029", "SELECT_OPTION_4030" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4005(context, evt)
if evt.param1 ~= 4005 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_4005(context, evt)
-- 改变指定group组220111004中, configid为4009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111004, 4027, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4008(context, evt)
if evt.param1 ~= 4008 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_4008(context, evt)
-- 调用提示id为 201110301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4010(context, evt)
if evt.param1 ~= 4010 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_4010(context, evt)
-- 触发镜头注目,注目位置为坐标(4.7,18.15,125.5),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=4.7, y=18.15, z=125.5}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, 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
-- 调用提示id为 201110201 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 5)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4012(context, evt)
-- 检测config_id为4011的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 4011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall5"为0
if ScriptLib.GetGroupVariableValue(context, "wall5") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4012(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 4011, 2, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 5)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 6)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4016(context, evt)
if evt.param1 ~= 4016 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_4016(context, evt)
-- 改变指定group组220111004中, configid为4013的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4013, 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_4017(context, evt)
if evt.param1 ~= 4017 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_4017(context, evt)
-- 改变指定group组220111004中, configid为4014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4014, 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_4021(context, evt)
if evt.param1 ~= 4021 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_4021(context, evt)
-- 改变指定group组220111004中, configid为4019的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4019, 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_4022(context, evt)
if evt.param1 ~= 4022 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_4022(context, evt)
-- 改变指定group组220111004中, configid为4020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4025(context, evt)
-- 检测config_id为4011的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 4011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall5"为1
if ScriptLib.GetGroupVariableValue(context, "wall5") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4025(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 4011, 2, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4026(context, evt)
-- 判断是gadgetid 4027 option_id 72
if 4027 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4026(context, evt)
-- 改变指定group组220111004中, configid为4009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220111004 ;指定config4027;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111004, 4027, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4028(context, evt)
if evt.param1 ~= 4028 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"point"为0
if ScriptLib.GetGroupVariableValue(context, "point") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4028(context, evt)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 6)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 8)
-- 将本组内变量名为 "point" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4029(context, evt)
-- 判断是gadgetid 4027 option_id 72
if 4027 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
-- 判断变量"point"为0
if ScriptLib.GetGroupVariableValue(context, "point") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4029(context, evt)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 6)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 8)
-- 将本组内变量名为 "point" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4030(context, evt)
-- 判断是gadgetid 4027 option_id 72
if 4027 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
-- 判断变量"point"为1
if ScriptLib.GetGroupVariableValue(context, "point") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4030(context, evt)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 6)
return 0
end
@@ -0,0 +1,216 @@
-- 基础信息
local base_info = {
group_id = 220111005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5003, monster_id = 25080401, pos = { x = 43.130, y = 16.763, z = 146.578 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 },
{ config_id = 5004, monster_id = 25080401, pos = { x = 42.999, y = 16.763, z = 132.169 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 },
{ config_id = 5005, monster_id = 25050301, pos = { x = 47.445, y = 16.763, z = 145.362 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5006, monster_id = 25050401, pos = { x = 48.115, y = 16.760, z = 139.160 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5007, monster_id = 25050301, pos = { x = 47.538, y = 16.763, z = 132.880 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290137, pos = { x = 25.645, y = 17.612, z = 139.353 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5002, gadget_id = 70290137, pos = { x = 53.507, y = 17.575, z = 139.326 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5011, gadget_id = 70211012, pos = { x = 39.456, y = 16.814, z = 138.964 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 5008, shape = RegionShape.CUBIC, size = { x = 4.000, y = 10.000, z = 12.000 }, pos = { x = 29.138, y = 22.366, z = 139.184 } },
{ config_id = 5010, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 19.362, y = 20.082, z = 128.378 } },
{ config_id = 5012, shape = RegionShape.CUBIC, size = { x = 4.000, y = 10.000, z = 12.000 }, pos = { x = 29.138, y = 22.366, z = 139.184 } }
}
-- 触发器
triggers = {
{ config_id = 1005008, name = "ENTER_REGION_5008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5008", action = "action_EVENT_ENTER_REGION_5008" },
{ config_id = 1005009, name = "ANY_MONSTER_DIE_5009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5009", action = "action_EVENT_ANY_MONSTER_DIE_5009" },
{ config_id = 1005010, name = "ENTER_REGION_5010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5010", action = "action_EVENT_ENTER_REGION_5010", trigger_count = 0 },
{ config_id = 1005012, name = "ENTER_REGION_5012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5012", action = "action_EVENT_ENTER_REGION_5012" }
}
-- 变量
variables = {
{ config_id = 1, name = "alive", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5003, 5004, 5005, 5006, 5007 },
gadgets = { 5001, 5002, 5011 },
regions = { 5008, 5010, 5012 },
triggers = { "ENTER_REGION_5008", "ANY_MONSTER_DIE_5009", "ENTER_REGION_5010", "ENTER_REGION_5012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5008(context, evt)
if evt.param1 ~= 5008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为0
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5008(context, evt)
-- 改变指定group组220111005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "alive" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "alive", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5009(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220111005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5009(context, evt)
-- 改变指定group组220111005中, configid为5002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111005中, configid为5011的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "alive" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "alive", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5010(context, evt)
if evt.param1 ~= 5010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为1
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5010(context, evt)
-- 改变指定group组220111005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5001, 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_5012(context, evt)
if evt.param1 ~= 5012 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为1
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5012(context, evt)
-- 改变指定group组220111005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111005, 5001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,537 @@
-- 基础信息
local base_info = {
group_id = 220111006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6003, monster_id = 25080401, pos = { x = 34.350, y = 26.367, z = 88.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 },
{ config_id = 6004, monster_id = 25080401, pos = { x = 18.590, y = 26.336, z = 97.910 }, rot = { x = 0.000, y = 110.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1 },
{ config_id = 6006, monster_id = 25050301, pos = { x = 21.462, y = 26.420, z = 91.901 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 6007, monster_id = 25050301, pos = { x = 29.204, y = 26.420, z = 90.106 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70290138, pos = { x = 39.197, y = 26.432, z = 94.160 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6002, gadget_id = 70290138, pos = { x = 10.004, y = 26.394, z = 94.162 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70220070, pos = { x = 29.471, y = 26.450, z = 87.741 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1 },
{ config_id = 6012, gadget_id = 70290136, pos = { x = 24.124, y = 28.134, z = 79.411 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6013, gadget_id = 70220070, pos = { x = 21.191, y = 26.420, z = 89.521 }, rot = { x = 0.000, y = 320.000, z = 0.000 }, level = 1 },
{ config_id = 6014, gadget_id = 70220070, pos = { x = 28.347, y = 26.420, z = 98.583 }, rot = { x = 0.000, y = 280.000, z = 0.000 }, level = 1 },
{ config_id = 6015, gadget_id = 70220070, pos = { x = 35.770, y = 26.417, z = 90.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6016, gadget_id = 70220071, pos = { x = 27.893, y = 26.447, z = 96.385 }, rot = { x = 0.000, y = 280.000, z = 0.000 }, level = 1 },
{ config_id = 6018, gadget_id = 70220071, pos = { x = 33.510, y = 26.355, z = 90.256 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6019, gadget_id = 70220071, pos = { x = 19.531, y = 26.420, z = 88.027 }, rot = { x = 0.000, y = 320.000, z = 0.000 }, level = 1 },
{ config_id = 6020, gadget_id = 70220071, pos = { x = 27.693, y = 26.435, z = 89.181 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1 },
{ config_id = 6021, gadget_id = 70211001, pos = { x = -3.681, y = 24.661, z = 86.064 }, rot = { x = 0.000, y = 25.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 6022, gadget_id = 70220070, pos = { x = 27.465, y = 26.420, z = 94.180 }, rot = { x = 0.000, y = 280.000, z = 0.000 }, level = 1 },
{ config_id = 6023, gadget_id = 70290141, pos = { x = 24.231, y = 27.148, z = 103.807 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6027, gadget_id = 70360001, pos = { x = 24.103, y = 29.442, z = 79.606 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6028, gadget_id = 70360001, pos = { x = 24.233, y = 28.047, z = 103.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6005, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 5.000 }, pos = { x = 56.091, y = 25.624, z = 76.035 } },
{ config_id = 6008, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = 35.630, y = 31.340, z = 94.825 } },
{ config_id = 6010, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = 43.795, y = 30.506, z = 94.825 } },
{ config_id = 6017, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 10.000 }, pos = { x = 56.091, y = 25.624, z = 81.589 } },
{ config_id = 6024, shape = RegionShape.SPHERE, radius = 5, pos = { x = 46.856, y = 27.524, z = 94.499 } },
{ config_id = 6029, shape = RegionShape.SPHERE, radius = 5, pos = { x = 5.098, y = 25.983, z = 95.484 } },
{ config_id = 6030, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 5.000 }, pos = { x = 56.091, y = 25.624, z = 76.035 } },
{ config_id = 6031, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = 35.630, y = 31.340, z = 94.825 } },
{ config_id = 6034, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 5.000 }, pos = { x = 56.091, y = 25.624, z = 76.035 } }
}
-- 触发器
triggers = {
{ config_id = 1006005, name = "ENTER_REGION_6005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6005", action = "action_EVENT_ENTER_REGION_6005" },
{ config_id = 1006008, name = "ENTER_REGION_6008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6008", action = "action_EVENT_ENTER_REGION_6008", trigger_count = 0 },
{ config_id = 1006009, name = "ANY_MONSTER_DIE_6009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6009", action = "action_EVENT_ANY_MONSTER_DIE_6009" },
{ config_id = 1006010, name = "ENTER_REGION_6010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6010", action = "action_EVENT_ENTER_REGION_6010", trigger_count = 0 },
{ config_id = 1006017, name = "ENTER_REGION_6017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6017", action = "action_EVENT_ENTER_REGION_6017" },
{ config_id = 1006024, name = "ENTER_REGION_6024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6024", action = "action_EVENT_ENTER_REGION_6024" },
{ config_id = 1006025, name = "SELECT_OPTION_6025", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6025", action = "action_EVENT_SELECT_OPTION_6025" },
{ config_id = 1006026, name = "SELECT_OPTION_6026", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6026", action = "action_EVENT_SELECT_OPTION_6026" },
{ config_id = 1006029, name = "ENTER_REGION_6029", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6029", action = "action_EVENT_ENTER_REGION_6029" },
{ config_id = 1006030, name = "ENTER_REGION_6030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6030", action = "action_EVENT_ENTER_REGION_6030" },
{ config_id = 1006031, name = "ENTER_REGION_6031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6031", action = "action_EVENT_ENTER_REGION_6031", trigger_count = 0 },
{ config_id = 1006032, name = "SELECT_OPTION_6032", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6032", action = "action_EVENT_SELECT_OPTION_6032" },
{ config_id = 1006033, name = "SELECT_OPTION_6033", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6033", action = "action_EVENT_SELECT_OPTION_6033" },
{ config_id = 1006034, name = "ENTER_REGION_6034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6034", action = "action_EVENT_ENTER_REGION_6034", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "alive", value = 0, no_refresh = false },
{ config_id = 2, name = "point", value = 0, no_refresh = false },
{ config_id = 3, name = "point1", value = 0, no_refresh = false },
{ config_id = 4, name = "point2", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6011, 6012, 6013, 6014, 6015, 6016, 6018, 6019, 6020, 6021, 6022, 6023, 6027, 6028 },
regions = { 6005, 6008, 6010, 6017, 6024, 6030, 6031, 6034 },
triggers = { "ENTER_REGION_6005", "ENTER_REGION_6008", "ENTER_REGION_6010", "ENTER_REGION_6017", "ENTER_REGION_6024", "SELECT_OPTION_6025", "SELECT_OPTION_6026", "ENTER_REGION_6030", "ENTER_REGION_6031", "SELECT_OPTION_6032", "SELECT_OPTION_6033", "ENTER_REGION_6034" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6003, 6004, 6006, 6007 },
gadgets = { },
regions = { 6029 },
triggers = { "ANY_MONSTER_DIE_6009", "ENTER_REGION_6029" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6005(context, evt)
if evt.param1 ~= 6005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"point"为1
if ScriptLib.GetGroupVariableValue(context, "point") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6005(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 11)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6008(context, evt)
if evt.param1 ~= 6008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为0
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6008(context, evt)
-- 改变指定group组220111006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "alive" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "alive", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6009(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220111006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6009(context, evt)
-- 改变指定group组220111006中, configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "alive" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "alive", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6010(context, evt)
if evt.param1 ~= 6010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为1
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6010(context, evt)
-- 改变指定group组220111006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6001, 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_6017(context, evt)
if evt.param1 ~= 6017 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_6017(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111006, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6024(context, evt)
if evt.param1 ~= 6024 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_6024(context, evt)
-- 改变指定group组220111006中, configid为6012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111006, 6027, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111006, 6028, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6025(context, evt)
-- 判断是gadgetid 6027 option_id 72
if 6027 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6025(context, evt)
-- 改变指定group组220111006中, configid为6012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220111006 ;指定config6027;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111006, 6027, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6026(context, evt)
-- 判断是gadgetid 6028 option_id 73
if 6028 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6026(context, evt)
-- 改变指定group组220111006中, configid为6023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220111006 ;指定config6028;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111006, 6028, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 针对当前group内变量名为 "collect" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "collect", 1, 220111013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 将本组内变量名为 "point1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "point1", 1, 220111006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6029(context, evt)
if evt.param1 ~= 6029 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_6029(context, evt)
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 7)
-- 添加suite12的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 12)
-- 将本组内变量名为 "point2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6030(context, evt)
if evt.param1 ~= 6030 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"point1"为0
if ScriptLib.GetGroupVariableValue(context, "point1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6030(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 11)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6031(context, evt)
if evt.param1 ~= 6031 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"alive"为1
if ScriptLib.GetGroupVariableValue(context, "alive") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6031(context, evt)
-- 改变指定group组220111006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6032(context, evt)
-- 判断是gadgetid 6028 option_id 73
if 6028 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6032(context, evt)
-- 删除suite11的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 11)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6033(context, evt)
-- 判断是gadgetid 6028 option_id 73
if 6028 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
-- 判断变量"point2"为0
if ScriptLib.GetGroupVariableValue(context, "point2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6033(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 7)
-- 将本组内变量名为 "point2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6034(context, evt)
if evt.param1 ~= 6034 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_6034(context, evt)
-- 删除suite10的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 10)
return 0
end
@@ -0,0 +1,202 @@
-- 基础信息
local base_info = {
group_id = 220111007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7002, gadget_id = 70211021, pos = { x = 32.519, y = 2.881, z = 116.819 }, rot = { x = 0.000, y = 2.200, z = 0.000 }, level = 1, drop_tag = "战斗高级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 7003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 30.362, y = 2.341, z = 150.378 } },
-- 暴力销毁
{ config_id = 7004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 30.486, y = -7.447, z = 140.149 } }
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "QUEST_FINISH_7001", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_7001", action = "action_EVENT_QUEST_FINISH_7001" },
{ config_id = 1007003, name = "ENTER_REGION_7003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7003", action = "action_EVENT_ENTER_REGION_7003" },
-- 暴力销毁
{ config_id = 1007004, name = "ENTER_REGION_7004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7004", action = "action_EVENT_ENTER_REGION_7004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 7003, 7004 },
triggers = { "QUEST_FINISH_7001", "ENTER_REGION_7003", "ENTER_REGION_7004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_7001(context, evt)
--检查ID为200705的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 200705 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7001(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7003(context, evt)
if evt.param1 ~= 7003 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_7003(context, evt)
-- 删除suite16的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 16)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111012, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7004(context, evt)
if evt.param1 ~= 7004 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_7004(context, evt)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 4)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 5)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 6)
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 7)
-- 删除suite8的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 8)
-- 删除suite9的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 9)
-- 删除suite10的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 10)
-- 删除suite11的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 11)
-- 删除suite12的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 12)
-- 删除suite13的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 13)
-- 删除suite14的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 14)
-- 删除suite15的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 15)
-- 删除suite16的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 16)
return 0
end
@@ -0,0 +1,521 @@
-- 基础信息
local base_info = {
group_id = 220111008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70211001, pos = { x = 40.296, y = 3.320, z = 134.070 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 8003, gadget_id = 70350293, pos = { x = 32.402, y = 3.336, z = 137.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 8004, gadget_id = 70350293, pos = { x = 42.426, y = 3.336, z = 137.429 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 8005, gadget_id = 70350293, pos = { x = 27.280, y = 3.333, z = 132.346 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 8006, gadget_id = 70350293, pos = { x = 38.207, y = 3.333, z = 142.583 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 8022, gadget_id = 70220025, pos = { x = 20.018, y = 3.389, z = 139.549 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8023, gadget_id = 70220025, pos = { x = 40.451, y = 3.373, z = 154.853 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8026, gadget_id = 70211011, pos = { x = 20.770, y = 3.320, z = 130.921 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
-- 延迟卡人保险1
{ config_id = 8013, shape = RegionShape.CUBIC, size = { x = 8.000, y = 5.000, z = 8.000 }, pos = { x = 42.607, y = 6.591, z = 132.382 } }
}
-- 触发器
triggers = {
-- 提示
{ config_id = 1008002, name = "GADGET_STATE_CHANGE_8002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8002", action = "action_EVENT_GADGET_STATE_CHANGE_8002", trigger_count = 0 },
-- 提示
{ config_id = 1008007, name = "GADGET_STATE_CHANGE_8007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8007", action = "action_EVENT_GADGET_STATE_CHANGE_8007", trigger_count = 0 },
{ config_id = 1008008, name = "GADGET_STATE_CHANGE_8008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8008", action = "action_EVENT_GADGET_STATE_CHANGE_8008", trigger_count = 0 },
{ config_id = 1008009, name = "GADGET_STATE_CHANGE_8009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8009", action = "action_EVENT_GADGET_STATE_CHANGE_8009", trigger_count = 0 },
{ config_id = 1008010, name = "GADGET_STATE_CHANGE_8010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8010", action = "action_EVENT_GADGET_STATE_CHANGE_8010", trigger_count = 0 },
{ config_id = 1008011, name = "GADGET_STATE_CHANGE_8011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8011", action = "action_EVENT_GADGET_STATE_CHANGE_8011", trigger_count = 0 },
{ config_id = 1008012, name = "GADGET_STATE_CHANGE_8012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8012", action = "action_EVENT_GADGET_STATE_CHANGE_8012", trigger_count = 0 },
-- 延迟卡人保险1
{ config_id = 1008013, name = "ENTER_REGION_8013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8013", action = "action_EVENT_ENTER_REGION_8013", trigger_count = 0 },
{ config_id = 1008014, name = "GADGET_STATE_CHANGE_8014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8014", action = "action_EVENT_GADGET_STATE_CHANGE_8014", trigger_count = 0 },
{ config_id = 1008015, name = "GADGET_STATE_CHANGE_8015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8015", action = "action_EVENT_GADGET_STATE_CHANGE_8015" },
{ config_id = 1008018, name = "GADGET_STATE_CHANGE_8018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8018", action = "action_EVENT_GADGET_STATE_CHANGE_8018", trigger_count = 0 },
{ config_id = 1008019, name = "GADGET_STATE_CHANGE_8019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8019", action = "action_EVENT_GADGET_STATE_CHANGE_8019", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "wall1", value = 0, no_refresh = false },
{ config_id = 2, name = "wall2", value = 0, no_refresh = false },
{ config_id = 3, name = "wall3", value = 0, no_refresh = false },
{ config_id = 4, name = "wall4", value = 0, no_refresh = false },
{ config_id = 5, name = "door1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8003, 8004, 8005, 8006, 8022, 8023, 8026 },
regions = { 8013 },
triggers = { "GADGET_STATE_CHANGE_8002", "GADGET_STATE_CHANGE_8007", "GADGET_STATE_CHANGE_8008", "GADGET_STATE_CHANGE_8009", "GADGET_STATE_CHANGE_8010", "GADGET_STATE_CHANGE_8011", "GADGET_STATE_CHANGE_8012", "ENTER_REGION_8013", "GADGET_STATE_CHANGE_8014", "GADGET_STATE_CHANGE_8015", "GADGET_STATE_CHANGE_8018", "GADGET_STATE_CHANGE_8019" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8002(context, evt)
-- 判断变量"wall1"为1
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 1 then
return false
end
-- 判断变量"wall2"为1
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 1 then
return false
end
-- 检测config_id为8003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8002(context, evt)
-- 调用提示id为 201110501 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110501) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8007(context, evt)
-- 判断变量"wall1"为0
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 0 then
return false
end
-- 判断变量"wall2"为0
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 0 then
return false
end
-- 检测config_id为8004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8007(context, evt)
-- 调用提示id为 201110501 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110501) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8008(context, evt)
-- 检测config_id为8003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall1"为0
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8008(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8003, 1, {5}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8009(context, evt)
-- 判断变量"wall1"为1
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 1 then
return false
end
-- 判断变量"wall2"为0
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 0 then
return false
end
-- 检测config_id为8003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8009(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8003, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8010(context, evt)
-- 检测config_id为8004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall2"为1
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8010(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8004, 1, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8011(context, evt)
-- 检测config_id为8004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall2"为0
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 0 then
return false
end
-- 判断变量"wall1"为1
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8011(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8004, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8012(context, evt)
-- 检测config_id为8005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall3"为0
if ScriptLib.GetGroupVariableValue(context, "wall3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8012(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8005, 1, {6}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8013(context, evt)
if evt.param1 ~= 8013 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"wall1"为0
if ScriptLib.GetGroupVariableValue(context, "wall1") ~= 0 then
return false
end
-- 判断变量"wall2"为0
if ScriptLib.GetGroupVariableValue(context, "wall2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8013(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8003, 1, {5}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8014(context, evt)
-- 检测config_id为8006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall4"为0
if ScriptLib.GetGroupVariableValue(context, "wall4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8014(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8006, 1, {7}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8015(context, evt)
-- 检测config_id为8006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall4"为1
if ScriptLib.GetGroupVariableValue(context, "wall4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8015(context, evt)
-- 删除suite15的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 15)
-- 添加suite16的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 16)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8018(context, evt)
-- 检测config_id为8005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall3"为1
if ScriptLib.GetGroupVariableValue(context, "wall3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8018(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8005, 1, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8019(context, evt)
-- 检测config_id为8006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"wall4"为1
if ScriptLib.GetGroupVariableValue(context, "wall4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8019(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8006, 1, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "wall4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wall4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,243 @@
-- 基础信息
local base_info = {
group_id = 220111009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70211001, pos = { x = 62.368, y = 26.222, z = 122.977 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 9004, gadget_id = 70290141, pos = { x = 60.785, y = 15.557, z = 111.225 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1 },
{ config_id = 9006, gadget_id = 70360001, pos = { x = 60.733, y = 16.569, z = 111.597 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9002, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 15.000 }, pos = { x = 58.715, y = 19.900, z = 138.520 } },
{ config_id = 9003, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 20.000 }, pos = { x = 58.323, y = 19.851, z = 114.070 } }
}
-- 触发器
triggers = {
{ config_id = 1009002, name = "ENTER_REGION_9002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9002", action = "action_EVENT_ENTER_REGION_9002" },
{ 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 = 1009005, name = "SELECT_OPTION_9005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9005", action = "action_EVENT_SELECT_OPTION_9005" },
{ config_id = 1009007, name = "SELECT_OPTION_9007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9007", action = "action_EVENT_SELECT_OPTION_9007" },
{ config_id = 1009008, name = "SELECT_OPTION_9008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9008", action = "action_EVENT_SELECT_OPTION_9008" }
}
-- 变量
variables = {
{ config_id = 1, name = "point1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9004, 9006 },
regions = { 9002, 9003 },
triggers = { "ENTER_REGION_9002", "ENTER_REGION_9003", "SELECT_OPTION_9005", "SELECT_OPTION_9007", "SELECT_OPTION_9008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9002(context, evt)
if evt.param1 ~= 9002 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_9002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111009, 9006, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 9)
-- 删除suite8的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 8)
return 0
end
-- 触发条件
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)
-- 调用提示id为 201110401 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201110401) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9005(context, evt)
-- 判断是gadgetid 9006 option_id 73
if 9006 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9005(context, evt)
-- 改变指定group组220111009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111009, 9004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220111009 ;指定config9006;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111009, 9006, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 针对当前group内变量名为 "collect" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "collect", 1, 220111013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 将本组内变量名为 "point" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "point", 1, 220111006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9007(context, evt)
-- 判断是gadgetid 9006 option_id 73
if 9006 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
-- 判断变量"point1"为0
if ScriptLib.GetGroupVariableValue(context, "point1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9007(context, evt)
-- 删除suite9的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 9)
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 10)
-- 将本组内变量名为 "point1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "point1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9008(context, evt)
-- 判断是gadgetid 9006 option_id 73
if 9006 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
-- 判断变量"point1"为1
if ScriptLib.GetGroupVariableValue(context, "point1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9008(context, evt)
-- 删除suite9的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 9)
return 0
end
@@ -0,0 +1,222 @@
-- 基础信息
local base_info = {
group_id = 220111010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70900201, pos = { x = 68.484, y = 1.367, z = 113.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70900201, pos = { x = 18.738, y = 2.259, z = 82.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10003, gadget_id = 70900201, pos = { x = 2.494, y = 5.293, z = 59.369 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10004, gadget_id = 70900201, pos = { x = 4.534, y = 13.602, z = 115.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10005, gadget_id = 70900201, pos = { x = 3.787, y = 17.600, z = 124.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10006, gadget_id = 70900201, pos = { x = 23.049, y = 18.867, z = 128.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10007, gadget_id = 70900201, pos = { x = 4.626, y = 27.073, z = 94.968 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10008, gadget_id = 70900201, pos = { x = 59.232, y = 16.607, z = 139.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10009, gadget_id = 70900201, pos = { x = 60.870, y = 17.640, z = 111.282 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10010, gadget_id = 70900201, pos = { x = 57.031, y = 26.646, z = 76.945 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10011, gadget_id = 70900201, pos = { x = 24.248, y = 29.324, z = 103.856 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10012, gadget_id = 70900201, pos = { x = 4.309, y = 1.860, z = 150.591 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10013, gadget_id = 70900201, pos = { x = 4.411, y = 2.234, z = 105.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10014, gadget_id = 70900201, pos = { x = 32.577, y = 5.865, z = 127.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10015, gadget_id = 70900201, pos = { x = 38.111, y = 4.674, z = 150.508 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10016, gadget_id = 70900201, pos = { x = 20.009, y = -1.233, z = 150.710 }, 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 = { 10001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 10003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 10004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 10005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 10006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 10007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 10008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 10009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 10010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 10011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { 10012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 13,
-- description = ,
monsters = { },
gadgets = { 10013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 14,
-- description = ,
monsters = { },
gadgets = { 10014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 15,
-- description = ,
monsters = { },
gadgets = { 10015 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 16,
-- description = ,
monsters = { },
gadgets = { 10016 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,106 @@
-- 基础信息
local base_info = {
group_id = 220111011
}
-- DEFS_MISCS
local EnterConfigID = 11007
local thunderFloorTimer = {7}
local floorList = {11001,11002,11003,11004,11005,11006,11008,11009}
local randomNumMin = 3
local randomNumMax = 6
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70360285, pos = { x = 55.773, y = 15.533, z = 103.275 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11002, gadget_id = 70360285, pos = { x = 58.359, y = 15.553, z = 103.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11003, gadget_id = 70360285, pos = { x = 57.054, y = 15.550, z = 99.360 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70360285, pos = { x = 55.773, y = 15.533, z = 93.892 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70360285, pos = { x = 58.359, y = 15.553, z = 93.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70360285, pos = { x = 57.054, y = 15.550, z = 89.976 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11008, gadget_id = 70360285, pos = { x = 57.054, y = 15.550, z = 85.829 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11009, gadget_id = 70360285, pos = { x = 57.054, y = 15.550, z = 83.191 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11007, shape = RegionShape.CUBIC, size = { x = 10.000, y = 15.000, z = 10.000 }, pos = { x = 59.185, y = 22.973, z = 111.410 } }
}
-- 触发器
triggers = {
{ config_id = 1011007, name = "ENTER_REGION_11007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11007", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006, 11008, 11009 },
regions = { 11007 },
triggers = { "ENTER_REGION_11007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11007(context, evt)
if evt.param1 ~= 11007 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
require "V2_0/ThunderFloor"
@@ -0,0 +1,264 @@
-- 基础信息
local base_info = {
group_id = 220111012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12013, monster_id = 25050301, pos = { x = 29.504, y = 2.881, z = 120.135 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 12014, monster_id = 25050301, pos = { x = 35.908, y = 2.881, z = 120.983 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70290140, pos = { x = 32.484, y = 2.940, z = 127.395 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12002, gadget_id = 70290145, pos = { x = 32.508, y = 9.076, z = 126.592 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12003, gadget_id = 70290142, pos = { x = 32.501, y = 4.935, z = 126.973 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12004, gadget_id = 70290144, pos = { x = 33.061, y = 4.487, z = 126.932 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12005, gadget_id = 70290144, pos = { x = 32.493, y = 5.668, z = 126.942 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12006, gadget_id = 70290143, pos = { x = 31.967, y = 4.466, z = 126.944 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12008, gadget_id = 70360001, pos = { x = 32.520, y = 3.887, z = 127.187 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 12015, shape = RegionShape.SPHERE, radius = 5, pos = { x = 88.097, y = -4.150, z = 114.010 } }
}
-- 触发器
triggers = {
{ config_id = 1012007, name = "TIMER_EVENT_12007", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_12007" },
{ config_id = 1012009, name = "GADGET_STATE_CHANGE_12009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12009", action = "action_EVENT_GADGET_STATE_CHANGE_12009" },
{ config_id = 1012010, name = "GADGET_STATE_CHANGE_12010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12010", action = "action_EVENT_GADGET_STATE_CHANGE_12010" },
{ config_id = 1012011, name = "GADGET_STATE_CHANGE_12011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12011", action = "action_EVENT_GADGET_STATE_CHANGE_12011" },
{ config_id = 1012012, name = "SELECT_OPTION_12012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12012", action = "action_EVENT_SELECT_OPTION_12012" },
{ config_id = 1012015, name = "ENTER_REGION_12015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12015", action = "action_EVENT_ENTER_REGION_12015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12003, 12004, 12005, 12006, 12008 },
regions = { 12015 },
triggers = { "TIMER_EVENT_12007", "GADGET_STATE_CHANGE_12009", "GADGET_STATE_CHANGE_12010", "GADGET_STATE_CHANGE_12011", "SELECT_OPTION_12012", "ENTER_REGION_12015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 12013 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_12007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220111012, 12008, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220111012中, configid为12003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12009(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 12001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12009(context, evt)
-- 改变指定group组220111012中, configid为12004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12004, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12010(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.GearStart变为GadgetState.GearStop
if 12001 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12010(context, evt)
-- 改变指定group组220111012中, configid为12005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12005, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12011(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.GearStop变为GadgetState.GearAction1
if 12001 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 or GadgetState.GearStop ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12011(context, evt)
-- 改变指定group组220111012中, configid为12006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12006, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟1.5秒后,向groupId为:220111012的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220111012, "time3", 1.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_12012(context, evt)
-- 判断是gadgetid 12008 option_id 1
if 12008 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_12012(context, evt)
-- 改变指定group组220111012中, configid为12001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111012中, configid为12003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12003, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111012中, configid为12006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12006, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite14的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220111010, 14)
-- 添加suite15的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 15)
-- 删除指定group 220111012 ;指定config12008;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220111012, 12008, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组220111012中, configid为12004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12004, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220111012中, configid为12005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111012, 12005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12015(context, evt)
if evt.param1 ~= 12015 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_12015(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220111012, 2)
return 0
end
@@ -0,0 +1,99 @@
-- 基础信息
local base_info = {
group_id = 220111013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013001, name = "VARIABLE_CHANGE_13001", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_13001", action = "action_EVENT_VARIABLE_CHANGE_13001" }
}
-- 变量
variables = {
{ config_id = 1, name = "collect", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "VARIABLE_CHANGE_13001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13001(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"collect"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "collect", 220111013) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13001(context, evt)
-- 添加suite14的新内容
ScriptLib.AddExtraGroupSuite(context, 220111010, 14)
-- 改变指定group组220111004中, configid为4009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220111004, 4009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,363 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 34.87875,
"y": -7.427349,
"z": 97.09598
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 21.0,
"useHeight": true,
"width": 60.0
},
"stringParam": "",
"tranPos": {
"x": 30.88095,
"y": 2.003562,
"z": 96.75654
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 53.87733,
"y": -14.32843,
"z": 117.8743
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 21.0,
"useHeight": true,
"width": 22.0
},
"stringParam": "",
"tranPos": {
"x": 66.87317,
"y": -14.32843,
"z": 119.274284
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 16.99239,
"y": -7.563457,
"z": 112.2601
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 21.0,
"useHeight": true,
"width": 10.0
},
"stringParam": "",
"tranPos": {
"x": 19.330225,
"y": 1.73059332,
"z": 115.605972
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 32.22268,
"y": 2.89234,
"z": 112.8265
},
"rot": {
"x": 0.0,
"y": 1.18,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 69.99181,
"y": 0.3651356,
"z": 105.4963
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 10.0,
"z": 20.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"6": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 16.63702,
"y": 15.70725,
"z": 129.3429
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"7": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 57.43596,
"y": 28.43192,
"z": 75.94616
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 8.0,
"y": 6.0,
"z": 6.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"8": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 31.98542,
"y": 2.886341,
"z": 120.8002
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 20.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,219 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 32.40199,
"y": 3.336446,
"z": 137.4855
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 42.4264336,
"y": 3.336446,
"z": 137.4294
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 27.2796,
"y": 3.332927,
"z": 132.3464
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 38.20658,
"y": 3.332927,
"z": 142.5825
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 22.0157738,
"y": 3.336446,
"z": 137.4855
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 6,
"position": {
"x": 27.2796,
"y": 3.332927,
"z": 142.45462
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 7,
"position": {
"x": 38.20658,
"y": 3.332927,
"z": 152.77562
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 3.44916725,
"y": 15.6941,
"z": 124.0497
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -4.754423,
"y": 15.6941,
"z": 124.0497
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]