添加配置表

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,2 @@
-- 所有的区块
blocks = { 100101 }
@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 301001002, refresh_id = 1002, pos = { x = 53.598, y = 262.798, z = 173.077 }, dynamic_load = true },
{ id = 301001003, refresh_id = 1002, pos = { x = -70.339, y = 268.258, z = 89.960 }, dynamic_load = true },
{ id = 301001004, refresh_id = 99999, pos = { x = -209.907, y = 420.738, z = 511.653 }, dynamic_load = true },
{ id = 301001005, refresh_id = 99999, pos = { x = -641.911, y = 223.764, z = 680.338 }, dynamic_load = true },
{ id = 301001006, refresh_id = 1001, pos = { x = -836.240, y = 250.229, z = 390.381 }, dynamic_load = true },
{ id = 301001007, pos = { x = -526.528, y = 210.022, z = 320.757 }, dynamic_load = true },
{ id = 301001008, refresh_id = 99999, pos = { x = -210.678, y = 420.707, z = 511.014 }, dynamic_load = true },
{ id = 301001009, refresh_id = 1, pos = { x = -490.205, y = 200.000, z = 280.899 }, dynamic_load = true }
}
@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 301001002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21020301, pos = { x = 58.400, y = 262.375, z = 169.703 }, rot = { x = 0.000, y = 98.170, z = 0.000 }, level = 30, drop_id = 1000100, disableWander = true, area_id = 7 },
{ config_id = 2002, monster_id = 21011001, pos = { x = 50.285, y = 262.914, z = 172.384 }, rot = { x = 0.000, y = 98.304, z = 0.000 }, level = 30, drop_id = 1000100, pose_id = 32, area_id = 7 },
{ config_id = 2003, monster_id = 21011001, pos = { x = 49.274, y = 263.193, z = 166.541 }, rot = { x = 0.000, y = 98.304, z = 0.000 }, level = 30, drop_id = 1000100, pose_id = 32, area_id = 7 },
{ config_id = 2004, monster_id = 21011201, pos = { x = 55.739, y = 262.553, z = 171.514 }, rot = { x = 0.000, y = 136.079, z = 0.000 }, level = 30, drop_id = 1000100, pose_id = 9003, area_id = 7 },
{ config_id = 2006, monster_id = 21011201, pos = { x = 57.709, y = 263.211, z = 165.948 }, rot = { x = 0.000, y = 68.800, z = 0.000 }, level = 1, area_id = 7 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2007, gadget_id = 70300083, pos = { x = 53.324, y = 263.119, z = 167.748 }, rot = { x = 0.000, y = 267.860, z = 349.330 }, level = 1, area_id = 7 },
{ config_id = 2008, gadget_id = 70300083, pos = { x = 53.853, y = 262.850, z = 175.166 }, rot = { x = 0.000, y = 278.570, z = 6.110 }, level = 1, area_id = 7 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002005, name = "ANY_MONSTER_DIE_2005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2005", action = "action_EVENT_ANY_MONSTER_DIE_2005", trigger_count = 0 },
{ config_id = 1002009, name = "ANY_GADGET_DIE_2009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_2009", action = "action_EVENT_ANY_GADGET_DIE_2009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002, 2003, 2004, 2006 },
gadgets = { 2007, 2008 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2005", "ANY_GADGET_DIE_2009" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "3010010021") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_2009(context, evt)
-- 判断指定group组剩余gadget数量是否是0
if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 301001002}) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_2009(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "3010010022") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 301001003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 24010201, pos = { x = -69.127, y = 268.314, z = 89.773 }, rot = { x = 0.000, y = 67.268, z = 0.000 }, level = 16, drop_id = 30002010, disableWander = true, isElite = true, pose_id = 100, area_id = 7 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "ANY_MONSTER_DIE_3005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3005", action = "action_EVENT_ANY_MONSTER_DIE_3005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3005" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "301001003") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,92 @@
-- 基础信息
local base_info = {
group_id = 301001004
}
-- Trigger变量
local defs = {
group_id = 301001004,
gadget_target_1S = 4002,
gadget_target_1E = 4005,
gadget_target_2S = 4003,
gadget_target_2E = 4006,
gadget_target_3S = 4004,
gadget_target_3E = 4007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 301001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 25020201, pos = { x = -645.536, y = 221.364, z = 667.695 }, rot = { x = 0.000, y = 356.430, z = 0.000 }, level = 20, drop_id = 1000100, disableWander = true, area_id = 7 },
{ config_id = 5002, monster_id = 25020201, pos = { x = -648.455, y = 221.752, z = 676.442 }, rot = { x = 0.000, y = 40.400, z = 0.000 }, level = 20, drop_id = 1000100, disableWander = true, area_id = 7 },
{ config_id = 5003, monster_id = 25010201, pos = { x = -646.894, y = 221.347, z = 675.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, drop_id = 1000100, area_id = 7 },
{ config_id = 5004, monster_id = 25010201, pos = { x = -641.988, y = 221.265, z = 674.914 }, rot = { x = 0.000, y = 301.058, z = 0.000 }, level = 20, drop_id = 1000100, area_id = 7 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005005, name = "ANY_MONSTER_DIE_5005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5005", action = "action_EVENT_ANY_MONSTER_DIE_5005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5001, 5002, 5003, 5004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5005" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "301001005") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 301001006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 25010102, pos = { x = -808.630, y = 242.713, z = 381.312 }, rot = { x = 0.000, y = 350.400, z = 0.000 }, level = 20, drop_id = 1000100, disableWander = true, isElite = true, area_id = 7 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006002, name = "ANY_MONSTER_DIE_6002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6002", action = "action_EVENT_ANY_MONSTER_DIE_6002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6002" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "301001006") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 301001007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 7001, npc_id = 2093, pos = { x = -484.402, y = 210.022, z = 364.453 }, rot = { x = 0.000, y = 125.240, z = 0.000 }, area_id = 7 },
{ config_id = 7002, npc_id = 2004, pos = { x = -494.517, y = 210.022, z = 341.678 }, rot = { x = 0.000, y = 314.370, z = 0.000 }, area_id = 7 },
{ config_id = 7003, npc_id = 10215, pos = { x = -495.580, y = 211.212, z = 340.644 }, rot = { x = 0.000, y = 312.660, z = 0.000 }, area_id = 7 },
{ config_id = 7004, npc_id = 2029, pos = { x = -505.666, y = 209.775, z = 329.795 }, rot = { x = 0.000, y = 314.610, z = 0.000 }, area_id = 7 },
{ config_id = 7005, npc_id = 2056, pos = { x = -572.464, y = 227.915, z = 358.178 }, rot = { x = 0.000, y = 83.230, z = 0.000 }, area_id = 7 },
{ config_id = 7006, npc_id = 2026, pos = { x = -538.843, y = 201.642, z = 290.293 }, rot = { x = 0.000, y = 94.950, z = 0.000 }, area_id = 7 }
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
npcs = { 7001, 7002, 7003, 7004, 7005, 7006 },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,311 @@
-- 基础信息
local base_info = {
group_id = 301001008
}
-- Trigger变量
local defs = {
group_id = 301001008,
gadget_target_1S = 8002,
gadget_target_1E = 8005,
gadget_target_2S = 8003,
gadget_target_2E = 8006,
gadget_target_3S = 8004,
gadget_target_3E = 8007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70360008, pos = { x = -210.769, y = 414.700, z = 510.721 }, rot = { x = 0.000, y = 268.800, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 8002, gadget_id = 70360011, pos = { x = -214.944, y = 419.467, z = 518.745 }, rot = { x = 0.000, y = 302.600, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 8003, gadget_id = 70360012, pos = { x = -204.125, y = 418.544, z = 515.894 }, rot = { x = 0.000, y = 240.700, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 8004, gadget_id = 70360013, pos = { x = -202.318, y = 418.937, z = 512.745 }, rot = { x = 0.000, y = 136.900, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 8005, gadget_id = 70360014, pos = { x = -214.802, y = 419.866, z = 519.331 }, rot = { x = 0.000, y = 187.800, z = 0.000 }, level = 1, route_id = 310600016, area_id = 7 },
{ config_id = 8006, gadget_id = 70360014, pos = { x = -204.125, y = 418.544, z = 515.994 }, rot = { x = 0.000, y = 287.700, z = 0.000 }, level = 1, route_id = 310600017, area_id = 7 },
{ config_id = 8007, gadget_id = 70360014, pos = { x = -202.318, y = 418.937, z = 512.745 }, rot = { x = 0.000, y = 299.100, z = 0.000 }, level = 1, route_id = 310600018, area_id = 7 },
{ config_id = 8008, gadget_id = 70211111, pos = { x = -208.750, y = 414.963, z = 511.020 }, rot = { x = 358.142, y = 236.289, z = 9.634 }, level = 16, chest_drop_id = 30002000, drop_count = 1, showcutscene = true, isOneoff = true, persistent = true, area_id = 7 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008009, name = "GADGET_STATE_CHANGE_8009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", 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" },
{ config_id = 1008011, name = "VARIABLE_CHANGE_8011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8011", action = "action_EVENT_VARIABLE_CHANGE_8011" },
{ 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 },
{ config_id = 1008013, name = "GADGET_CREATE_8013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8013", action = "action_EVENT_GADGET_CREATE_8013", trigger_count = 0 },
{ config_id = 1008014, name = "SELECT_OPTION_8014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8014", action = "action_EVENT_SELECT_OPTION_8014", trigger_count = 0 },
{ config_id = 1008015, name = "GROUP_REFRESH_8015", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_8015" },
{ config_id = 1008016, name = "ANY_GADGET_DIE_8016", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_8016", trigger_count = 0 },
{ config_id = 1008017, name = "GADGET_CREATE_8017", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8017", action = "action_EVENT_GADGET_CREATE_8017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_8009", "GADGET_STATE_CHANGE_8010", "VARIABLE_CHANGE_8011", "GADGET_STATE_CHANGE_8012", "GADGET_CREATE_8013", "SELECT_OPTION_8014", "GROUP_REFRESH_8015", "ANY_GADGET_DIE_8016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 8001, 8008 },
regions = { },
triggers = { "GADGET_CREATE_8017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8009(context, evt)
if evt.param1 == GadgetState.GearStart and evt.param3 == GadgetState.Default then
if evt.param2 == defs.gadget_target_1S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_1E })
elseif evt.param2 == defs.gadget_target_2S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_2E })
elseif evt.param2 == defs.gadget_target_3S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_3E })
end
return 0
else return -1
end
return false
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8010(context, evt)
if 8001 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_1S) then
return true
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_2S) then
return true
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_3S) then
return true
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 301001008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8011(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 301001008, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "301001008") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8012(context, evt)
if 8001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8012(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除指定group 301001008 ;指定config8001;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 301001008, 8001, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8013(context, evt)
if 8001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 301001008, 8001, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8014(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8014(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_8015(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 301001008, 8001, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8016(context, evt)
if evt.param1 == defs.gadget_target_1E or evt.param1 == defs.gadget_target_2E or evt.param1 == defs.gadget_target_3E then
ScriptLib.ChangeGroupVariableValue(context, "count", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8017(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8017(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,219 @@
-- 基础信息
local base_info = {
group_id = 301001009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70800018, pos = { x = -492.420, y = 203.780, z = 285.700 }, rot = { x = 0.000, y = 314.200, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 9002, gadget_id = 70800019, pos = { x = -492.420, y = 203.780, z = 285.700 }, rot = { x = 0.000, y = 314.200, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 9003, gadget_id = 70800020, pos = { x = -492.420, y = 203.780, z = 285.700 }, rot = { x = 0.000, y = 314.200, z = 0.000 }, level = 1, area_id = 7 },
{ config_id = 9009, gadget_id = 70800026, pos = { x = -492.420, y = 203.780, z = 285.700 }, rot = { x = 0.000, y = 134.200, z = 0.000 }, level = 1, area_id = 7 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009004, name = "QUEST_FINISH_9004", event = EventType.EVENT_QUEST_FINISH, source = "4000108", condition = "", action = "action_EVENT_QUEST_FINISH_9004" },
{ config_id = 1009005, name = "QUEST_FINISH_9005", event = EventType.EVENT_QUEST_FINISH, source = "4000506", condition = "", action = "action_EVENT_QUEST_FINISH_9005" },
{ config_id = 1009006, name = "QUEST_FINISH_9006", event = EventType.EVENT_QUEST_FINISH, source = "4000108", condition = "", action = "action_EVENT_QUEST_FINISH_9006" },
{ config_id = 1009007, name = "SEALAMP_PHASE_CHANGE_9007", event = EventType.EVENT_SEALAMP_PHASE_CHANGE, source = "", condition = "condition_EVENT_SEALAMP_PHASE_CHANGE_9007", action = "action_EVENT_SEALAMP_PHASE_CHANGE_9007" },
{ config_id = 1009011, name = "GROUP_LOAD_9011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_9011", action = "", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Quest 1 State", value = 0, no_refresh = true },
{ config_id = 2, name = "Quest 2 State", value = 0, no_refresh = true },
{ config_id = 3, name = "Lamp State", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { },
triggers = { "QUEST_FINISH_9004", "QUEST_FINISH_9005", "QUEST_FINISH_9006", "SEALAMP_PHASE_CHANGE_9007", "GROUP_LOAD_9011" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { },
triggers = { "QUEST_FINISH_9004", "QUEST_FINISH_9005", "SEALAMP_PHASE_CHANGE_9007", "GROUP_LOAD_9011" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9003 },
regions = { },
triggers = { "QUEST_FINISH_9004", "QUEST_FINISH_9005", "SEALAMP_PHASE_CHANGE_9007", "GROUP_LOAD_9011" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 9009 },
regions = { },
triggers = { "QUEST_FINISH_9004", "QUEST_FINISH_9005", "SEALAMP_PHASE_CHANGE_9007", "GROUP_LOAD_9011" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_9004(context, evt)
-- 将本组内变量名为 "Quest 1 State" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Quest 1 State", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_9005(context, evt)
-- 将本组内变量名为 "Quest 2 State" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Quest 2 State", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 301001009, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_9006(context, evt)
if ScriptLib.GetGroupVariableValueByGroup(context, "Lamp State", 301001009) == 2 then
ScriptLib.RefreshGroup(context, { group_id = 301001009, suite = 2 })
end
if ScriptLib.GetGroupVariableValueByGroup(context, "Lamp State", 301001009) == 3 then
ScriptLib.RefreshGroup(context, { group_id = 301001009, suite = 3 })
end
return 0
end
-- 触发条件
function condition_EVENT_SEALAMP_PHASE_CHANGE_9007(context, evt)
-- 大鹿灯的状态为4时,视为他的状态为3
if evt.param2 == 4 then
evt.param2 = 3
end
-- 海灯节阶段变化
if 2 ~= evt.param2 and 3 ~= evt.param2 then
return false
else
ScriptLib.SetGroupVariableValueByGroup(context, "Lamp State", evt.param2 , 301001009)
end
-- 判断变量"Quest 1 State"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "Quest 1 State", 301001009) ~= 1 then
return false
end
-- 判断变量"Quest 2 State"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "Quest 2 State", 301001009) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SEALAMP_PHASE_CHANGE_9007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 301001009, suite = evt.param2 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_9011(context, evt)
local phase = ScriptLib.GetSeaLampActivityPhase(context)
-- 大鹿灯的状态为4时,视为他的状态为3
if phase == 4 then
phase = 3
end
if phase ~= 2 and phase ~= 3 then
return false
else
ScriptLib.SetGroupVariableValueByGroup(context, "Lamp State", phase , 301001009)
if ScriptLib.GetGroupVariableValueByGroup(context, "Quest 1 State", 301001009) ~= 1 then
return false
end
if ScriptLib.GetGroupVariableValueByGroup(context, "Quest 2 State", 301001009) ~= 0 then
return false
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 301001009, suite = phase }) then
return false
end
end
return true
end