添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -2190.2, z = -1337.5 },
size = { x = 3591.4, z = 3925.9 },
born_pos = { x = 27.839, y = 146.601, z = 94.981 },
born_rot = { x = 0.000, y = 236.964, z = 0.000 },
die_y = -965.6153,
city_id = 2,
vision_anchor = { x = -2190.2, z = -1337.5 }
}
-- 所有的区块
blocks = { 1059 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2190.2, z = -1337.5 }, max = { x = 1401.3, z = 2588.5 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,62 @@
{
"sceneId": 1059,
"routes": [
{
"localId": 2,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -250.9408,
"y": 126.4045,
"z": 24.39151
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": -250.9408,
"y": 153.267532,
"z": 24.39151
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
}
]
},
{
"localId": 3,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -249.362549,
"y": 119.9061,
"z": 89.72461
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": -249.362549,
"y": 146.7691,
"z": 89.72461
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
}
]
}

View File

@@ -0,0 +1,14 @@
-- 所有的group
groups = {
{ id = 201059001, refresh_id = 1001, pos = { x = 0.000, y = 0.000, z = 0.000 } },
{ id = 201059002, refresh_id = 1002, pos = { x = 0.000, y = 0.000, z = 0.000 } },
{ id = 201059003, refresh_id = 1002, pos = { x = -92.729, y = 153.909, z = 2.633 } },
{ id = 201059004, refresh_id = 1, pos = { x = -157.951, y = 147.309, z = 20.146 } },
{ id = 201059005, refresh_id = 1, pos = { x = -157.097, y = 16.385, z = 211.782 } },
{ id = 201059006, refresh_id = 1, pos = { x = -245.326, y = 37.934, z = 320.761 } },
{ id = 201059008, refresh_id = 1, pos = { x = -185.710, y = 105.040, z = 36.504 } },
{ id = 201059009, refresh_id = 1, pos = { x = -255.716, y = 118.651, z = 24.987 } },
{ id = 201059010, refresh_id = 1, pos = { x = -203.540, y = 127.151, z = 92.667 } },
{ id = 201059011, refresh_id = 1, pos = { x = -201.063, y = 143.971, z = 21.155 } },
{ id = 201059012, pos = { x = -197.536, y = 154.259, z = 92.653 } }
}

View File

@@ -0,0 +1,44 @@
dummy_points = {
["Q11113_Dungeon_Congzi_Young_Pos"] = { pos = { x = -254.700, y = 38.432, z = 306.294 }, rot = { x = 0.000, y = 210.844, z = 0.000 } },
["Q11113_Dungeon_Effect01"] = { pos = { x = -38.237, y = 151.905, z = 80.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Effect02"] = { pos = { x = -27.802, y = 169.134, z = -9.513 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Hutao_Jump"] = { pos = { x = -163.864, y = 132.590, z = 120.726 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Hutao1_Pos"] = { pos = { x = -242.135, y = 38.041, z = 308.512 }, rot = { x = 0.000, y = 259.859, z = 0.000 } },
["Q11113_Dungeon_Hutao2_Pos"] = { pos = { x = -253.771, y = 38.381, z = 313.564 }, rot = { x = 0.000, y = 49.287, z = 0.000 } },
["Q11113_Dungeon_Jump"] = { pos = { x = -164.028, y = 132.713, z = 122.732 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Langge_Young_Pos"] = { pos = { x = -255.730, y = 38.409, z = 304.738 }, rot = { x = 0.000, y = 67.382, z = 0.000 } },
["Q11113_Dungeon_Langge1_Pos"] = { pos = { x = -243.317, y = 38.121, z = 308.018 }, rot = { x = 0.000, y = 269.833, z = 0.000 } },
["Q11113_Dungeon_Langge2_Pos"] = { pos = { x = -245.208, y = 37.966, z = 320.076 }, rot = { x = 0.000, y = 29.636, z = 0.000 } },
["Q11113_Dungeon_Lanxie_Pos"] = { pos = { x = -181.374, y = 26.555, z = 298.869 }, rot = { x = 0.000, y = 161.249, z = 0.000 } },
["Q11113_Dungeon_Laomeng_Young_Pos"] = { pos = { x = -255.720, y = 38.425, z = 306.045 }, rot = { x = 0.000, y = 120.908, z = 0.000 } },
["Q11113_Dungeon_Laomeng1_Pos"] = { pos = { x = -243.314, y = 38.119, z = 306.663 }, rot = { x = 0.000, y = 265.817, z = 0.000 } },
["Q11113_Dungeon_Laomeng2_Pos"] = { pos = { x = -245.919, y = 37.913, z = 320.539 }, rot = { x = 0.000, y = 40.300, z = 0.000 } },
["Q11113_Dungeon_Laomo_Pos"] = { pos = { x = -212.707, y = 31.924, z = 299.947 }, rot = { x = 0.000, y = 265.899, z = 0.000 } },
["Q11113_Dungeon_Mumu_Young_Pos"] = { pos = { x = -254.047, y = 38.433, z = 305.303 }, rot = { x = 0.000, y = 269.838, z = 0.000 } },
["Q11113_Dungeon_Paimon_Jump"] = { pos = { x = -165.899, y = 132.599, z = 120.048 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Paimon1_Pos"] = { pos = { x = -242.108, y = 38.041, z = 306.289 }, rot = { x = 0.000, y = 281.640, z = 0.000 } },
["Q11113_Dungeon_Paimon2_Pos"] = { pos = { x = -254.748, y = 38.407, z = 313.180 }, rot = { x = 0.000, y = 62.572, z = 0.000 } },
["Q11113_Dungeon_Player_Jump"] = { pos = { x = -164.814, y = 132.603, z = 118.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Player1_Pos"] = { pos = { x = -241.694, y = 38.013, z = 307.352 }, rot = { x = 0.000, y = 267.969, z = 0.000 } },
["Q11113_Dungeon_Player2_Pos"] = { pos = { x = -254.332, y = 38.433, z = 312.587 }, rot = { x = 0.000, y = 23.728, z = 0.000 } },
["Q11113_Dungeon_puzzle1"] = { pos = { x = -35.012, y = 148.490, z = 76.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_puzzle2"] = { pos = { x = -25.074, y = 163.780, z = -5.879 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Suyang_Pos"] = { pos = { x = -214.396, y = 31.902, z = 299.873 }, rot = { x = 0.000, y = 93.625, z = 0.000 } },
["Q11113_Dungeon_T1"] = { pos = { x = -33.243, y = 149.878, z = 71.869 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_T2"] = { pos = { x = -39.901, y = 157.442, z = 77.582 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_T3"] = { pos = { x = -45.510, y = 154.166, z = 80.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_T4"] = { pos = { x = -23.612, y = 173.127, z = -14.127 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_T5"] = { pos = { x = -20.216, y = 175.008, z = 0.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_T6"] = { pos = { x = -28.159, y = 168.353, z = -1.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Trigger_Pos"] = { pos = { x = -243.856, y = 38.152, z = 307.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_VP101"] = { pos = { x = -36.165, y = 148.490, z = 82.789 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_VP1camera"] = { pos = { x = -35.319, y = 148.606, z = 86.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_VP201"] = { pos = { x = -33.027, y = 166.011, z = -10.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_VP2camera"] = { pos = { x = -38.053, y = 166.875, z = -12.612 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11113_Dungeon_Xiaowu_Young_Pos"] = { pos = { x = -254.754, y = 38.423, z = 304.354 }, rot = { x = 0.000, y = 329.877, z = 0.000 } },
["Q11113_Dungeon_Zhuming_Pos"] = { pos = { x = -199.806, y = 28.775, z = 308.248 }, rot = { x = 0.000, y = 114.633, z = 0.000 } },
["Q11113VisualPuzzle01"] = { pos = { x = -39.000, y = 153.420, z = 77.870 }, rot = { x = 7.687, y = 15.599, z = 349.812 } },
["Q11113VisualPuzzle02"] = { pos = { x = -40.590, y = 157.560, z = 73.370 }, rot = { x = 10.229, y = 54.276, z = 1.071 } },
["Q11113VisualPuzzle03"] = { pos = { x = -25.710, y = 169.530, z = -8.840 }, rot = { x = 354.053, y = 258.811, z = 332.076 } },
["Q11113VisualPuzzle04"] = { pos = { x = -13.570, y = 174.630, z = -4.870 }, rot = { x = 315.300, y = 246.652, z = 335.028 } }
}

View File

@@ -0,0 +1,372 @@
-- 基础信息
local base_info = {
group_id = 201059001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1002, monster_id = 20010801, pos = { x = -17.938, y = 148.490, z = 42.635 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, monster_id = 20010801, pos = { x = -34.777, y = 148.490, z = 53.170 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, monster_id = 20010901, pos = { x = -24.211, y = 148.516, z = 54.732 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, monster_id = 20010801, pos = { x = -30.884, y = 148.516, z = 42.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, monster_id = 20010901, pos = { x = -15.990, y = 148.492, z = 49.101 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, monster_id = 20010801, pos = { x = -37.669, y = 148.492, z = 48.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1010, monster_id = 20010801, pos = { x = -18.946, y = 148.491, z = 52.638 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1026, monster_id = 20010801, pos = { x = -24.882, y = 148.492, z = 42.165 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 视觉解谜1 代替
{ config_id = 1001, gadget_id = 70350146, pos = { x = -32.966, y = 151.448, z = 67.291 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 区域2大门
{ config_id = 1006, gadget_id = 70350005, pos = { x = -24.597, y = 148.229, z = 35.637 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70900201, pos = { x = -15.248, y = 148.586, z = 82.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70900201, pos = { x = -23.947, y = 156.334, z = 16.107 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70230031, pos = { x = -39.000, y = 153.420, z = 77.870 }, rot = { x = 7.687, y = 15.599, z = 349.812 }, level = 1 },
{ config_id = 1021, gadget_id = 70230032, pos = { x = -40.590, y = 157.560, z = 73.370 }, rot = { x = 10.229, y = 54.276, z = 1.071 }, level = 1 },
{ config_id = 1022, gadget_id = 70220003, pos = { x = -10.331, y = 147.729, z = 77.476 }, rot = { x = 0.000, y = 57.520, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70220003, pos = { x = -10.938, y = 147.745, z = 82.057 }, rot = { x = 0.000, y = 93.948, z = 0.000 }, level = 1 },
{ config_id = 1024, gadget_id = 70220003, pos = { x = -9.482, y = 147.734, z = 86.620 }, rot = { x = 0.000, y = 103.162, z = 0.000 }, level = 1 },
-- 降魔印提示点
{ config_id = 1025, gadget_id = 70710058, pos = { x = -36.106, y = 148.490, z = 82.852 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1012, shape = RegionShape.SPHERE, radius = 5, pos = { x = -28.824, y = 148.339, z = 51.379 } },
{ config_id = 1014, shape = RegionShape.SPHERE, radius = 10, pos = { x = 17.406, y = 147.290, z = 87.190 } },
{ config_id = 1016, shape = RegionShape.CUBIC, size = { x = 2.000, y = 10.000, z = 25.000 }, pos = { x = -9.889, y = 152.261, z = 82.297 } },
{ config_id = 1017, shape = RegionShape.SPHERE, radius = 3, pos = { x = -34.633, y = 148.491, z = 83.978 } },
{ config_id = 1027, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 5.000 }, pos = { x = -31.897, y = 148.339, z = 70.835 } },
{ config_id = 1028, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 5.000 }, pos = { x = -32.249, y = 148.339, z = 61.929 } }
}
-- 触发器
triggers = {
{ config_id = 1001005, name = "QUEST_FINISH_1005", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_1005", action = "action_EVENT_QUEST_FINISH_1005" },
{ 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 = "ANY_MONSTER_DIE_1013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1013", action = "action_EVENT_ANY_MONSTER_DIE_1013" },
{ config_id = 1001014, name = "ENTER_REGION_1014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1014", action = "action_EVENT_ENTER_REGION_1014" },
{ config_id = 1001015, name = "TIMER_EVENT_1015", event = EventType.EVENT_TIMER_EVENT, source = "OpenDoor", condition = "", action = "action_EVENT_TIMER_EVENT_1015" },
{ config_id = 1001016, name = "ENTER_REGION_1016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1016", action = "action_EVENT_ENTER_REGION_1016" },
{ config_id = 1001017, name = "ENTER_REGION_1017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1017", action = "action_EVENT_ENTER_REGION_1017" },
{ config_id = 1001027, name = "ENTER_REGION_1027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1027", action = "action_EVENT_ENTER_REGION_1027" },
{ config_id = 1001028, name = "ENTER_REGION_1028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1028", action = "action_EVENT_ENTER_REGION_1028" }
}
-- 变量
variables = {
{ config_id = 1, name = "quest", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 视觉解谜替代,
monsters = { },
gadgets = { 1001, 1006, 1011, 1022, 1023, 1024, 1025 },
regions = { 1012, 1014, 1016, 1017, 1027, 1028 },
triggers = { "QUEST_FINISH_1005", "ENTER_REGION_1012", "ENTER_REGION_1014", "TIMER_EVENT_1015", "ENTER_REGION_1016", "ENTER_REGION_1017", "ENTER_REGION_1027", "ENTER_REGION_1028" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 怪物第一波,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1019, 1021 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_1005(context, evt)
--检查ID为1111306的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1111306 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_1005(context, evt)
-- 延迟1秒后,向groupId为201059001的对象,请求一次调用,并将string参数"OpenDoor" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201059001, "OpenDoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(-3115367持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-31, y=153, z=67}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, 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
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201059001, EntityType.GADGET, 1025 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 将本组内变量名为 "quest" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "quest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
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)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059001, 2)
-- 创建编号为1该怪物潮的识别id)的怪物潮创建怪物总数为8场上怪物最少5只最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 201059001, {1002,1007,1008,1009,1010,1003,1004,1026}, 8, 5, 5) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1013(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201059001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1013(context, evt)
-- 将configid为 1006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为1018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 调用提示id为 10590107 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10590107) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1014(context, evt)
if evt.param1 ~= 1014 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_1014(context, evt)
-- 调用提示id为 10590101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10590101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1015(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1016(context, evt)
if evt.param1 ~= 1016 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_1016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1017(context, evt)
if evt.param1 ~= 1017 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_1017(context, evt)
-- 调用提示id为 10590104 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10590104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1027(context, evt)
if evt.param1 ~= 1027 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"quest"为1
if ScriptLib.GetGroupVariableValue(context, "quest") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1027(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1028(context, evt)
if evt.param1 ~= 1028 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"quest"为1
if ScriptLib.GetGroupVariableValue(context, "quest") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1028(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,587 @@
-- 基础信息
local base_info = {
group_id = 201059002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2004, monster_id = 21010301, pos = { x = -30.415, y = 153.894, z = 4.380 }, rot = { x = 0.000, y = 161.795, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 2005, monster_id = 21010301, pos = { x = -32.575, y = 153.940, z = -0.612 }, rot = { x = 359.325, y = 81.210, z = 5.891 }, level = 1, pose_id = 9012 },
{ config_id = 2006, monster_id = 22010201, pos = { x = -24.475, y = 153.970, z = 1.118 }, rot = { x = 0.000, y = 282.719, z = 0.000 }, level = 1 },
{ config_id = 2007, monster_id = 21010201, pos = { x = -30.116, y = 153.940, z = -2.697 }, rot = { x = 0.000, y = 43.594, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 2010, monster_id = 21010201, pos = { x = -32.709, y = 153.940, z = 2.435 }, rot = { x = 0.000, y = 122.956, z = 0.000 }, level = 1, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 区域2大门
{ config_id = 2001, gadget_id = 70350005, pos = { x = -24.253, y = 153.670, z = 15.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 区域2大门
{ config_id = 2003, gadget_id = 70350146, pos = { x = -8.203, y = 156.841, z = 8.722 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70900007, pos = { x = -30.945, y = 153.890, z = -13.807 }, rot = { x = 0.000, y = 13.843, z = 0.000 }, level = 1, state = GadgetState.GearStop },
-- 区域2大门
{ config_id = 2009, gadget_id = 70350005, pos = { x = -44.547, y = 153.622, z = 1.030 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70900201, pos = { x = -43.409, y = 156.200, z = 1.128 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70690008, pos = { x = -40.942, y = 144.924, z = -20.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70900202, pos = { x = -41.358, y = 155.992, z = -5.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70900201, pos = { x = -78.228, y = 156.254, z = 0.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70330044, pos = { x = -1.068, y = 154.893, z = 9.034 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70330044, pos = { x = -27.494, y = 167.694, z = -15.436 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70330043, pos = { x = -41.208, y = 153.891, z = -5.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70330043, pos = { x = -41.207, y = 153.905, z = 7.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2029, gadget_id = 70300099, pos = { x = -29.478, y = 153.940, z = 0.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2030, gadget_id = 70211011, pos = { x = 3.781, y = 153.890, z = 9.187 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 11, drop_tag = "战斗中级璃月", isOneoff = true, persistent = true },
-- 降魔印提示点
{ config_id = 2032, gadget_id = 70710058, pos = { x = -32.983, y = 166.011, z = -10.691 }, rot = { x = 0.000, y = 80.266, z = 0.000 }, level = 1 },
{ config_id = 2037, gadget_id = 70220026, pos = { x = -19.048, y = 153.890, z = 1.155 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2038, gadget_id = 70220026, pos = { x = -18.524, y = 153.890, z = 2.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2039, gadget_id = 70220014, pos = { x = -17.792, y = 153.890, z = 1.122 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2041, gadget_id = 70220025, pos = { x = -16.991, y = 153.954, z = 1.728 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2042, gadget_id = 70220013, pos = { x = -16.363, y = 153.891, z = 2.804 }, rot = { x = 0.000, y = 328.588, z = 0.000 }, level = 1 },
{ config_id = 2043, gadget_id = 70220003, pos = { x = -28.291, y = 166.015, z = -12.280 }, rot = { x = 0.000, y = 351.875, z = 0.000 }, level = 1 },
{ config_id = 2044, gadget_id = 70220003, pos = { x = -31.302, y = 165.964, z = -14.893 }, rot = { x = 0.000, y = 289.661, z = 0.000 }, level = 1 },
{ config_id = 2045, gadget_id = 70220003, pos = { x = -31.563, y = 165.978, z = -19.245 }, rot = { x = 0.000, y = 265.224, z = 0.000 }, level = 1 },
{ config_id = 2047, gadget_id = 70900201, pos = { x = -30.965, y = 155.700, z = -13.791 }, rot = { x = 0.000, y = 13.843, z = 0.000 }, level = 1 },
{ config_id = 2048, gadget_id = 70900201, pos = { x = -27.421, y = 166.154, z = -15.431 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2049, gadget_id = 70900201, pos = { x = -26.205, y = 166.515, z = -8.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2051, gadget_id = 70900202, pos = { x = -41.202, y = 156.017, z = 7.113 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2052, gadget_id = 70230033, pos = { x = -25.710, y = 169.450, z = -8.995 }, rot = { x = 354.053, y = 258.811, z = 332.076 }, level = 1 },
{ config_id = 2053, gadget_id = 70230034, pos = { x = -13.570, y = 174.630, z = -4.870 }, rot = { x = 315.300, y = 246.652, z = 335.028 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2002, shape = RegionShape.CUBIC, size = { x = 15.000, y = 5.000, z = 5.000 }, pos = { x = -27.955, y = 150.085, z = 24.493 } },
{ config_id = 2019, shape = RegionShape.CUBIC, size = { x = 1.000, y = 15.000, z = 20.000 }, pos = { x = -34.038, y = 173.397, z = -16.786 } },
{ config_id = 2035, shape = RegionShape.CUBIC, size = { x = 15.000, y = 5.000, z = 5.000 }, pos = { x = -25.262, y = 150.085, z = 24.493 } }
}
-- 触发器
triggers = {
{ config_id = 1002002, name = "ENTER_REGION_2002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2002", action = "action_EVENT_ENTER_REGION_2002", trigger_count = 0 },
{ config_id = 1002013, name = "ANY_MONSTER_DIE_2013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2013", action = "action_EVENT_ANY_MONSTER_DIE_2013" },
{ config_id = 1002014, name = "GADGET_STATE_CHANGE_2014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2014", action = "action_EVENT_GADGET_STATE_CHANGE_2014" },
{ config_id = 1002015, name = "QUEST_FINISH_2015", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_2015", action = "action_EVENT_QUEST_FINISH_2015" },
{ config_id = 1002019, name = "ENTER_REGION_2019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2019", action = "action_EVENT_ENTER_REGION_2019" },
{ config_id = 1002024, name = "GADGET_STATE_CHANGE_2024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2024", action = "action_EVENT_GADGET_STATE_CHANGE_2024" },
{ config_id = 1002025, name = "GADGET_STATE_CHANGE_2025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2025", action = "action_EVENT_GADGET_STATE_CHANGE_2025" },
{ config_id = 1002026, name = "VARIABLE_CHANGE_2026", event = EventType.EVENT_VARIABLE_CHANGE, source = "guihuo_1", condition = "condition_EVENT_VARIABLE_CHANGE_2026", action = "action_EVENT_VARIABLE_CHANGE_2026" },
{ config_id = 1002027, name = "GADGET_CREATE_2027", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2027", action = "action_EVENT_GADGET_CREATE_2027" },
{ config_id = 1002028, name = "GADGET_CREATE_2028", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2028", action = "action_EVENT_GADGET_CREATE_2028" },
{ config_id = 1002033, name = "TIMER_EVENT_2033", event = EventType.EVENT_TIMER_EVENT, source = "OpenDoor", condition = "", action = "action_EVENT_TIMER_EVENT_2033" },
{ config_id = 1002034, name = "GADGET_STATE_CHANGE_2034", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2034", action = "action_EVENT_GADGET_STATE_CHANGE_2034" },
{ config_id = 1002035, name = "ENTER_REGION_2035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2035", action = "action_EVENT_ENTER_REGION_2035" },
{ config_id = 1002046, name = "GADGET_STATE_CHANGE_2046", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2046", action = "action_EVENT_GADGET_STATE_CHANGE_2046" },
{ config_id = 1002050, name = "GADGET_STATE_CHANGE_2050", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2050", action = "action_EVENT_GADGET_STATE_CHANGE_2050" }
}
-- 变量
variables = {
{ config_id = 1, name = "guihuo_1", value = 0, no_refresh = false },
{ config_id = 2, name = "Refresh1", value = 0, no_refresh = false },
{ config_id = 3, name = "Refresh2", value = 0, no_refresh = false },
{ config_id = 4, name = "Dead", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1002016, name = "GADGET_CREATE_2016", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2016", action = "action_EVENT_GADGET_CREATE_2016" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2004, 2005, 2006, 2007, 2010 },
gadgets = { 2001, 2003, 2008, 2009, 2020, 2021, 2022, 2023, 2029, 2030, 2032, 2037, 2038, 2039, 2041, 2042, 2043, 2044, 2045 },
regions = { 2002, 2019, 2035 },
triggers = { "ENTER_REGION_2002", "ANY_MONSTER_DIE_2013", "GADGET_STATE_CHANGE_2014", "QUEST_FINISH_2015", "ENTER_REGION_2019", "GADGET_STATE_CHANGE_2024", "GADGET_STATE_CHANGE_2025", "VARIABLE_CHANGE_2026", "GADGET_CREATE_2027", "GADGET_CREATE_2028", "TIMER_EVENT_2033", "GADGET_STATE_CHANGE_2034", "ENTER_REGION_2035", "GADGET_STATE_CHANGE_2046", "GADGET_STATE_CHANGE_2050" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 风场,
monsters = { },
gadgets = { 2012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2052, 2053 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2002(context, evt)
if evt.param1 ~= 2002 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_2002(context, evt)
-- 改变指定group组201059002中 configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201059002, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2013(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201059002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2013(context, evt)
-- 将configid为 2008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2014(context, evt)
if 2008 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059002, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2047 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为2048的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2048 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_2015(context, evt)
--检查ID为1111308的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1111308 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2015(context, evt)
-- 延迟2秒后,向groupId为201059002的对象,请求一次调用,并将string参数"OpenDoor" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201059002, "OpenDoor", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 通知场景上的所有玩家播放名字为111001 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 111001, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : play_cutscene")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201059002, EntityType.GADGET, 2032 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2019(context, evt)
if evt.param1 ~= 2019 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_2019(context, evt)
-- 触发镜头注目,注目位置为坐标(-27168-15持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-27, y=168, z=-15}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, 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为 10590110 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10590110) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建id为2017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2051的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2051 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2024(context, evt)
if 2022 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2024(context, evt)
-- 针对当前group内变量名为 "guihuo_1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "guihuo_1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 将本组内变量名为 "Refresh1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Refresh1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2025(context, evt)
if 2023 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2025(context, evt)
-- 针对当前group内变量名为 "guihuo_1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "guihuo_1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 将本组内变量名为 "Refresh1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Refresh1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2051 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2026(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"guihuo_1"为2
if ScriptLib.GetGroupVariableValue(context, "guihuo_1") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2026(context, evt)
-- 将configid为 2009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为2018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2027(context, evt)
if 2022 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2027(context, evt)
-- 将configid为 2022 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2022, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2028(context, evt)
if 2023 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2028(context, evt)
-- 将configid为 2023 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2023, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2033(context, evt)
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2034(context, evt)
if 2021 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2034(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2048 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为2011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 针对当前group内变量名为 "Refresh1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Refresh1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2035(context, evt)
if evt.param1 ~= 2035 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_2035(context, evt)
-- 改变指定group组201059002中 configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201059002, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创建id为2047的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2047 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201059001, EntityType.GADGET, 1018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2046(context, evt)
if 2008 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2046(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059002, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2047 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为2048的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2048 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2050(context, evt)
if 2020 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2050(context, evt)
-- 针对当前group内变量名为 "Refresh2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Refresh2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,282 @@
-- 基础信息
local base_info = {
group_id = 201059003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3004, monster_id = 21020101, pos = { x = -104.066, y = 154.039, z = -5.507 }, rot = { x = 0.000, y = 58.210, z = 0.000 }, level = 1 },
{ config_id = 3005, monster_id = 21020101, pos = { x = -104.093, y = 154.042, z = 5.553 }, rot = { x = 0.000, y = 99.867, z = 0.000 }, level = 1 },
{ config_id = 3007, monster_id = 21030201, pos = { x = -104.357, y = 154.042, z = 0.954 }, rot = { x = 0.000, y = 99.867, z = 0.000 }, level = 1 },
{ config_id = 3008, monster_id = 21010401, pos = { x = -108.395, y = 153.891, z = -2.859 }, rot = { x = 0.000, y = 61.162, z = 0.000 }, level = 1 },
{ config_id = 3009, monster_id = 21010401, pos = { x = -108.302, y = 153.891, z = 2.534 }, rot = { x = 0.000, y = 104.133, z = 0.000 }, level = 1 },
{ config_id = 3014, monster_id = 21010301, pos = { x = -100.263, y = 153.891, z = 4.316 }, rot = { x = 0.000, y = 113.828, z = 0.000 }, level = 1 },
{ config_id = 3015, monster_id = 21010301, pos = { x = -100.027, y = 153.897, z = -6.701 }, rot = { x = 0.000, y = 55.852, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360002, pos = { x = -97.715, y = 153.932, z = 0.538 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 区域2大门
{ config_id = 3003, gadget_id = 70350005, pos = { x = -115.094, y = 153.771, z = 0.308 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 区域2大门
{ config_id = 3011, gadget_id = 70350005, pos = { x = -79.400, y = 153.759, z = -0.231 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70211001, pos = { x = -103.511, y = 153.894, z = 13.853 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 11, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true },
{ config_id = 3017, gadget_id = 70220013, pos = { x = -101.082, y = 153.902, z = 14.514 }, rot = { x = 0.000, y = 34.547, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70220014, pos = { x = -99.931, y = 153.890, z = 16.039 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70900201, pos = { x = -97.755, y = 155.262, z = 0.534 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3020, gadget_id = 70900201, pos = { x = -158.243, y = 146.664, z = 27.189 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70220014, pos = { x = -102.025, y = 153.904, z = 11.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3022, gadget_id = 70220026, pos = { x = -101.258, y = 153.890, z = 12.505 }, rot = { x = 0.000, y = 349.596, z = 0.000 }, level = 1 },
{ config_id = 3023, gadget_id = 70220015, pos = { x = -107.600, y = 153.908, z = -12.233 }, rot = { x = 270.020, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70220015, pos = { x = -108.057, y = 154.723, z = -12.135 }, rot = { x = 270.020, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70220013, pos = { x = -108.768, y = 153.890, z = -10.061 }, rot = { x = 0.000, y = 34.547, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70220014, pos = { x = -110.944, y = 153.890, z = -10.512 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3002, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 15.000 }, pos = { x = -65.975, y = 153.911, z = -0.027 } },
{ config_id = 3010, shape = RegionShape.SPHERE, radius = 3, pos = { x = -97.714, y = 153.932, z = 0.515 } }
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "ENTER_REGION_3002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3002", action = "action_EVENT_ENTER_REGION_3002" },
{ config_id = 1003006, name = "ANY_MONSTER_DIE_3006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3006", action = "action_EVENT_ANY_MONSTER_DIE_3006" },
{ config_id = 1003010, name = "ENTER_REGION_3010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3010", action = "action_EVENT_ENTER_REGION_3010" },
{ config_id = 1003012, name = "SELECT_OPTION_3012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3012", action = "action_EVENT_SELECT_OPTION_3012" },
{ config_id = 1003016, name = "ANY_MONSTER_DIE_3016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3016", action = "action_EVENT_ANY_MONSTER_DIE_3016" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3003, 3011, 3013, 3017, 3018, 3021, 3022, 3023, 3024, 3025, 3026 },
regions = { 3002, 3010 },
triggers = { "ENTER_REGION_3002", "ANY_MONSTER_DIE_3006", "ENTER_REGION_3010", "SELECT_OPTION_3012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3007, 3008, 3009, 3014, 3015 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3004, 3005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3016" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3002(context, evt)
if evt.param1 ~= 3002 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_3002(context, evt)
-- 改变指定group组201059003中 configid为3011的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201059003, 3011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201059002, EntityType.GADGET, 2018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为3019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201059003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3006(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201059003, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3010(context, evt)
if evt.param1 ~= 3010 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_3010(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3011 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059003, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3012(context, evt)
-- 判断是gadgetid 3001 option_id 1
if 3001 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
-- 删除指定group 201059003 指定config3001物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201059003, 3001, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为3020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3016(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201059003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3016(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201059003, 3001, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 201059005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5003, gadget_id = 70211121, pos = { x = -253.956, y = 38.436, z = 307.654 }, rot = { x = 0.000, y = 270.089, z = 0.000 }, level = 11, drop_tag = "解谜高级璃月", isOneoff = true, persistent = true },
{ config_id = 5005, gadget_id = 70900201, pos = { x = -176.622, y = 26.498, z = 234.643 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70211011, pos = { x = -157.008, y = 16.541, z = 218.448 }, rot = { x = 0.000, y = 268.216, z = 0.000 }, level = 11, drop_tag = "战斗中级璃月", isOneoff = true, persistent = true },
{ config_id = 5009, gadget_id = 70211001, pos = { x = -164.740, y = 26.524, z = 301.682 }, rot = { x = 0.000, y = 200.301, z = 0.000 }, level = 11, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 5001, shape = RegionShape.CUBIC, size = { x = 15.000, y = 5.000, z = 5.000 }, pos = { x = -177.445, y = 28.458, z = 237.150 } },
{ config_id = 5004, shape = RegionShape.CUBIC, size = { x = 80.000, y = 1.000, z = 80.000 }, pos = { x = -165.984, y = 31.203, z = 133.946 } },
{ config_id = 5007, shape = RegionShape.CUBIC, size = { x = 5.000, y = 20.000, z = 15.000 }, pos = { x = -172.016, y = 18.863, z = 219.429 } },
{ config_id = 5008, shape = RegionShape.CUBIC, size = { x = 20.000, y = 20.000, z = 5.000 }, pos = { x = -159.211, y = 18.679, z = 200.194 } }
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "ENTER_REGION_5001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5001", action = "action_EVENT_ENTER_REGION_5001" },
{ config_id = 1005002, name = "DUNGEON_SETTLE_5002", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_5002", action = "action_EVENT_DUNGEON_SETTLE_5002" },
{ config_id = 1005004, name = "ENTER_REGION_5004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5004", action = "action_EVENT_ENTER_REGION_5004" },
{ config_id = 1005007, name = "ENTER_REGION_5007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5007", action = "action_EVENT_ENTER_REGION_5007", trigger_count = 0 },
{ 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", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Weather", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5006, 5009 },
regions = { 5001, 5004, 5007, 5008 },
triggers = { "ENTER_REGION_5001", "DUNGEON_SETTLE_5002", "ENTER_REGION_5004", "ENTER_REGION_5007", "ENTER_REGION_5008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5001(context, evt)
if evt.param1 ~= 5001 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_5001(context, evt)
-- 调用提示id为 10590127 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10590127) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "10595001") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_5002(context, evt)
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_5002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059005, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5004(context, evt)
if evt.param1 ~= 5004 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_5004(context, evt)
-- 创建id为5005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "Enterloop" 的变量设置为 100
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "Enterloop", 100, 201059004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5007(context, evt)
if evt.param1 ~= 5007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"Weather"为0
if ScriptLib.GetGroupVariableValue(context, "Weather") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5007(context, evt)
-- 将本组内变量名为 "Weather" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Weather", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
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
-- 判断变量"Weather"为1
if ScriptLib.GetGroupVariableValue(context, "Weather") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5008(context, evt)
--修改天气为地城前半段效果
ScriptLib.SetWeatherAreaState(context, 10003 ,1)
-- 将本组内变量名为 "Weather" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Weather", 0) then
return -1
end
return 0
end

View File

@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 201059006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6002, gadget_id = 70710290, pos = { x = -244.765, y = 39.928, z = 321.534 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 201059008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70330044, pos = { x = -163.300, y = 133.992, z = 91.930 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70220065, pos = { x = -171.443, y = 143.208, z = 44.941 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8003, gadget_id = 70220067, pos = { x = -169.408, y = 143.226, z = 46.253 }, rot = { x = 0.000, y = 41.970, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8004, gadget_id = 70220066, pos = { x = -169.843, y = 143.207, z = 44.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8005, gadget_id = 70220066, pos = { x = -169.190, y = 143.207, z = 29.675 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8006, gadget_id = 70220067, pos = { x = -168.191, y = 143.209, z = 30.392 }, rot = { x = 0.000, y = 315.921, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8007, gadget_id = 70220025, pos = { x = -170.743, y = 143.282, z = 43.711 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8008, gadget_id = 70220065, pos = { x = -151.092, y = 132.530, z = 103.334 }, rot = { x = 0.000, y = 341.628, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8009, gadget_id = 70220036, pos = { x = -183.015, y = 136.005, z = 92.552 }, rot = { x = 8.853, y = 90.000, z = 7.250 }, level = 1 },
{ config_id = 8010, gadget_id = 70220065, pos = { x = -170.441, y = 132.541, z = 83.017 }, rot = { x = 0.000, y = 341.628, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8011, gadget_id = 70220065, pos = { x = -149.076, y = 132.530, z = 102.531 }, rot = { x = 0.000, y = 47.552, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8012, gadget_id = 70220067, pos = { x = -166.575, y = 132.531, z = 82.346 }, rot = { x = 0.000, y = 47.552, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8013, gadget_id = 70220066, pos = { x = -167.139, y = 132.529, z = 83.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8014, gadget_id = 70220015, pos = { x = -168.250, y = 133.332, z = 82.400 }, rot = { x = 90.000, y = 269.440, z = 0.000 }, level = 1 },
{ config_id = 8015, gadget_id = 70220063, pos = { x = -169.218, y = 132.551, z = 83.270 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8020, gadget_id = 70220064, pos = { x = -152.470, y = 143.215, z = 45.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8022, gadget_id = 70220062, pos = { x = -167.299, y = 143.233, z = 46.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8023, gadget_id = 70220063, pos = { x = -152.353, y = 143.216, z = 44.646 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8024, gadget_id = 70220064, pos = { x = -172.084, y = 143.210, z = 43.344 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 8025, gadget_id = 70220015, pos = { x = -151.686, y = 144.095, z = 43.780 }, rot = { x = 90.000, y = 343.398, z = 0.000 }, level = 1 },
{ config_id = 8027, gadget_id = 70220066, pos = { x = -166.820, y = 143.207, z = 30.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008017, name = "GADGET_STATE_CHANGE_8017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8017", action = "action_EVENT_GADGET_STATE_CHANGE_8017", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8005, 8006, 8007, 8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015, 8020, 8022, 8023, 8024, 8025, 8027 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_8017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8017(context, evt)
-- 检测config_id为8001的gadget是否从GadgetState.Default变为GadgetState.GearAction2
if 8001 ~= evt.param2 or GadgetState.GearAction2 ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8017(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059004, 2)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 201059004, EntityType.GADGET, 4018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,175 @@
-- 基础信息
local base_info = {
group_id = 201059009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70350152, pos = { x = -250.941, y = 126.405, z = 24.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2, start_route = false },
{ config_id = 9002, gadget_id = 70350153, pos = { x = -249.363, y = 119.906, z = 89.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 3, start_route = false },
-- 下面补位
{ config_id = 9003, gadget_id = 70350152, pos = { x = -250.941, y = 126.405, z = 24.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
-- 上面补位
{ config_id = 9004, gadget_id = 70350152, pos = { x = -250.941, y = 153.268, z = 24.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 9008, gadget_id = 70350153, pos = { x = -249.363, y = 119.906, z = 89.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 9009, gadget_id = 70350153, pos = { x = -249.363, y = 146.769, z = 89.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009005, name = "VARIABLE_CHANGE_9005", event = EventType.EVENT_VARIABLE_CHANGE, source = "start", condition = "condition_EVENT_VARIABLE_CHANGE_9005", action = "action_EVENT_VARIABLE_CHANGE_9005" },
{ config_id = 1009006, name = "PLATFORM_REACH_POINT_9006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_9006", action = "action_EVENT_PLATFORM_REACH_POINT_9006", trigger_count = 0 },
{ config_id = 1009007, name = "GADGET_CREATE_9007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9007", action = "action_EVENT_GADGET_CREATE_9007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002 },
regions = { },
triggers = { "VARIABLE_CHANGE_9005", "PLATFORM_REACH_POINT_9006", "GADGET_CREATE_9007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9003, 9008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9004, 9009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9005(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 9001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 9002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_9006(context, evt)
-- 判断是gadgetid 为 9001的移动平台是否到达了2 的路线中的 1 点
if 9001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_9006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201059009, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9007(context, evt)
if 9001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201059009, 3)
return 0
end

View File

@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 201059010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70310001, pos = { x = -234.308, y = 145.480, z = 25.391 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70310001, pos = { x = -234.308, y = 145.455, z = 16.769 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10003, gadget_id = 70310001, pos = { x = -212.362, y = 143.968, z = 25.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10004, gadget_id = 70310001, pos = { x = -212.429, y = 143.967, z = 17.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10007, gadget_id = 70310001, pos = { x = -199.695, y = 143.989, z = 17.569 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10008, gadget_id = 70310001, pos = { x = -199.660, y = 143.970, z = 26.054 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10009, gadget_id = 70310001, pos = { x = -202.184, y = 127.148, z = 87.481 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10010, gadget_id = 70310001, pos = { x = -201.965, y = 127.149, z = 96.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10014, gadget_id = 70310001, pos = { x = -217.552, y = 127.141, z = 88.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10015, gadget_id = 70310001, pos = { x = -217.694, y = 127.138, z = 96.230 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10005, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 15.000 }, pos = { x = -249.977, y = 145.478, z = 20.615 } },
{ config_id = 10006, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 15.000 }, pos = { x = -234.134, y = 145.481, z = 20.693 } },
{ config_id = 10011, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 15.000 }, pos = { x = -212.224, y = 143.984, z = 22.377 } },
{ config_id = 10012, shape = RegionShape.CUBIC, size = { x = 2.000, y = 5.000, z = 20.000 }, pos = { x = -182.070, y = 132.635, z = 93.606 } },
{ config_id = 10013, shape = RegionShape.CUBIC, size = { x = 2.000, y = 15.000, z = 20.000 }, pos = { x = -202.234, y = 131.279, z = 91.401 } }
}
-- 触发器
triggers = {
{ config_id = 1010005, name = "ENTER_REGION_10005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10005", action = "action_EVENT_ENTER_REGION_10005" },
{ config_id = 1010006, name = "ENTER_REGION_10006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10006", action = "action_EVENT_ENTER_REGION_10006" },
{ config_id = 1010011, name = "ENTER_REGION_10011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10011", action = "action_EVENT_ENTER_REGION_10011" },
{ config_id = 1010012, name = "ENTER_REGION_10012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10012", action = "action_EVENT_ENTER_REGION_10012" },
{ config_id = 1010013, name = "ENTER_REGION_10013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10013", action = "action_EVENT_ENTER_REGION_10013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002, 10003, 10004, 10007, 10008, 10009, 10010, 10014, 10015 },
regions = { 10005, 10006, 10011, 10012, 10013 },
triggers = { "ENTER_REGION_10005", "ENTER_REGION_10006", "ENTER_REGION_10011", "ENTER_REGION_10012", "ENTER_REGION_10013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10005(context, evt)
if evt.param1 ~= 10005 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_10005(context, evt)
-- 将configid为 10001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10006(context, evt)
if evt.param1 ~= 10006 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_10006(context, evt)
-- 将configid为 10003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10011(context, evt)
if evt.param1 ~= 10011 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_10011(context, evt)
-- 将configid为 10007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10012(context, evt)
if evt.param1 ~= 10012 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_10012(context, evt)
-- 将configid为 10009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10013(context, evt)
if evt.param1 ~= 10013 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_10013(context, evt)
-- 将configid为 10014 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 201059011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70220065, pos = { x = -196.130, y = 143.981, z = 25.251 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 11002, gadget_id = 70220067, pos = { x = -196.442, y = 143.981, z = 23.581 }, rot = { x = 0.000, y = 41.970, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 11003, gadget_id = 70220063, pos = { x = -197.273, y = 143.974, z = 24.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 11004, gadget_id = 70220064, pos = { x = -196.200, y = 143.971, z = 22.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 11005, gadget_id = 70220066, pos = { x = -195.395, y = 144.118, z = 22.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 11006, gadget_id = 70220003, pos = { x = -255.417, y = 145.570, z = 31.474 }, rot = { x = 354.167, y = 358.603, z = 0.142 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,254 @@
-- 基础信息
local base_info = {
group_id = 201059012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 12005, shape = RegionShape.CUBIC, size = { x = 2.000, y = 10.000, z = 15.000 }, pos = { x = -234.007, y = 130.286, z = 92.450 } },
{ config_id = 12006, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 2.000 }, pos = { x = -255.481, y = 145.749, z = 24.793 } }
}
-- 触发器
triggers = {
{ config_id = 1012001, name = "QUEST_START_12001", event = EventType.EVENT_QUEST_START, source = "1111303", condition = "condition_EVENT_QUEST_START_12001", action = "action_EVENT_QUEST_START_12001", trigger_count = 0 },
{ config_id = 1012002, name = "QUEST_START_12002", event = EventType.EVENT_QUEST_START, source = "1111303", condition = "condition_EVENT_QUEST_START_12002", action = "action_EVENT_QUEST_START_12002", trigger_count = 0 },
{ config_id = 1012003, name = "QUEST_START_12003", event = EventType.EVENT_QUEST_START, source = "1111303", condition = "condition_EVENT_QUEST_START_12003", action = "action_EVENT_QUEST_START_12003", trigger_count = 0 },
{ config_id = 1012004, name = "QUEST_START_12004", event = EventType.EVENT_QUEST_START, source = "1111303", condition = "condition_EVENT_QUEST_START_12004", action = "action_EVENT_QUEST_START_12004", trigger_count = 0 },
{ config_id = 1012005, name = "ENTER_REGION_12005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12005", action = "action_EVENT_ENTER_REGION_12005", trigger_count = 0 },
{ config_id = 1012006, name = "ENTER_REGION_12006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12006", action = "action_EVENT_ENTER_REGION_12006", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "loss", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 12005, 12006 },
triggers = { "QUEST_START_12001", "QUEST_START_12002", "QUEST_START_12003", "QUEST_START_12004", "ENTER_REGION_12005", "ENTER_REGION_12006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_12001(context, evt)
-- 判断变量"loop0"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "loop0", 201059004) ~= 3 then
return false
end
-- 判断变量"loss"为1
if ScriptLib.GetGroupVariableValue(context, "loss") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_12001(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201059009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 针对当前group内变量名为 "loop0" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "loop0", -1, 201059004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_12002(context, evt)
-- 判断变量"loop1"为5
if ScriptLib.GetGroupVariableValueByGroup(context, "loop1", 201059004) ~= 5 then
return false
end
-- 判断变量"loss"为1
if ScriptLib.GetGroupVariableValue(context, "loss") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_12002(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201059009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 针对当前group内变量名为 "loop1" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "loop1", -1, 201059004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_12003(context, evt)
-- 判断变量"loop2"为5
if ScriptLib.GetGroupVariableValueByGroup(context, "loop2", 201059004) ~= 5 then
return false
end
-- 判断变量"loss"为1
if ScriptLib.GetGroupVariableValue(context, "loss") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_12003(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201059009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 针对当前group内变量名为 "loop2" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "loop2", -1, 201059004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_12004(context, evt)
-- 判断变量"loop3"为5
if ScriptLib.GetGroupVariableValueByGroup(context, "loop3", 201059004) ~= 5 then
return false
end
-- 判断变量"loss"为1
if ScriptLib.GetGroupVariableValue(context, "loss") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_12004(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201059009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 针对当前group内变量名为 "loop3" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "loop3", -1, 201059004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12005(context, evt)
if evt.param1 ~= 12005 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_12005(context, evt)
-- 将本组内变量名为 "loss" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "loss", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12006(context, evt)
if evt.param1 ~= 12006 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_12006(context, evt)
-- 将本组内变量名为 "loss" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "loss", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,100 @@
[
{
"area_id": 10003,
"points": [
{
"x": 25.61808,
"y": 203.429367
},
{
"x": 85.60338,
"y": 113.727905
},
{
"x": 82.0568161,
"y": 29.5975227
},
{
"x": 22.8078384,
"y": -28.3612041
},
{
"x": -155.135757,
"y": -124.934677
},
{
"x": -373.451141,
"y": -118.316277
},
{
"x": -369.667938,
"y": -2.10403252
},
{
"x": -362.081421,
"y": 70.3535843
},
{
"x": -308.288452,
"y": 125.338776
},
{
"x": -212.90065,
"y": 207.556244
},
{
"x": -161.8399,
"y": 210.638153
},
{
"x": -160.972931,
"y": 222.022385
},
{
"x": -59.7945175,
"y": 222.863785
}
]
},
{
"area_id": 10004,
"points": [
{
"x": -328.1112,
"y": 462.975464
},
{
"x": -108.374786,
"y": 469.718964
},
{
"x": -33.5100441,
"y": 277.3288
},
{
"x": -162.761551,
"y": 226.885849
},
{
"x": -161.127777,
"y": 214.211426
},
{
"x": -318.670319,
"y": 218.74501
},
{
"x": -406.916382,
"y": 200.775
},
{
"x": -457.20694,
"y": 277.0029
},
{
"x": -442.005646,
"y": 346.3439
}
]
}
]