添加配置表

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,145 @@
-- 基础信息
local base_info = {
group_id = 139999001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 21010201, pos = { x = -1.527, y = -0.097, z = -1.865 }, rot = { x = 0.000, y = 34.368, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 2, monster_id = 21010101, pos = { x = -1.952, y = 0.075, z = 1.059 }, rot = { x = 0.000, y = 111.684, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 3, monster_id = 21010101, pos = { x = 1.672, y = -0.034, z = -1.211 }, rot = { x = 0.000, y = 311.395, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 9, monster_id = 21010201, pos = { x = -1.861, y = 0.070, z = 1.009 }, rot = { x = 0.000, y = 120.967, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 10, monster_id = 21010201, pos = { x = -1.264, y = -0.124, z = -2.080 }, rot = { x = 0.000, y = 25.634, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 11, monster_id = 21010201, pos = { x = 1.701, y = -0.078, z = -1.134 }, rot = { x = 0.000, y = 309.409, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 12, monster_id = 20011201, pos = { x = -0.114, y = -0.194, z = -2.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", disableWander = true, pose_id = 901, area_id = 1 },
{ config_id = 13, monster_id = 20011201, pos = { x = -2.480, y = -0.011, z = -0.529 }, rot = { x = 0.000, y = 70.561, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 14, monster_id = 20011201, pos = { x = 0.411, y = 0.152, z = 1.990 }, rot = { x = 0.000, y = 70.561, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 15, monster_id = 20011201, pos = { x = 2.453, y = 0.086, z = 0.155 }, rot = { x = 0.000, y = 219.426, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 21, shape = RegionShape.SPHERE, radius = 30, pos = { x = -0.042, y = -0.001, z = 0.000 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000021, name = "ENTER_REGION_21", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21", action = "action_EVENT_ENTER_REGION_21", forbid_guest = false },
{ config_id = 1001003, name = "ANY_MONSTER_DIE_1003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1003", action = "action_EVENT_ANY_MONSTER_DIE_1003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1, 2, 3 },
gadgets = { },
regions = { 21 },
triggers = { "ENTER_REGION_21", "ANY_MONSTER_DIE_1003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 9, 10, 11 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1003" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 12, 13, 14, 15 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
if evt.param1 ~= 21 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_21(context, evt)
-- 调用提示id为 1110005 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1003(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 1, true)
return 0
end
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 139999010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 21011201, pos = { x = 1.713, y = 0.199, z = 0.094 }, rot = { x = 0.000, y = 10.589, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 10002, monster_id = 21011201, pos = { x = 2.725, y = 0.474, z = 1.446 }, rot = { x = 0.000, y = 214.664, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 10003, monster_id = 21011201, pos = { x = -0.520, y = 0.212, z = 1.317 }, rot = { x = 0.000, y = 47.096, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 10004, monster_id = 21030401, pos = { x = 1.106, y = 0.467, z = 2.560 }, rot = { x = 0.112, y = 210.190, z = 0.109 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 10005, monster_id = 21020301, pos = { x = 0.263, y = 0.525, z = 3.625 }, rot = { x = 0.000, y = 170.966, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 },
{ config_id = 10006, monster_id = 21020301, pos = { x = 1.832, y = 0.710, z = 3.719 }, rot = { x = 0.000, y = 217.247, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 10009, shape = RegionShape.SPHERE, radius = 50, pos = { x = 0.057, y = 0.017, z = 0.089 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1010009, name = "ENTER_REGION_10009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10009", action = "action_EVENT_ENTER_REGION_10009", forbid_guest = false },
{ config_id = 1010010, name = "ANY_MONSTER_DIE_10010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10010", action = "action_EVENT_ANY_MONSTER_DIE_10010" }
}
-- 变量
variables = {
{ config_id = 1, name = "is_7", value = 0, no_refresh = false },
{ config_id = 2, name = "is_8", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 10001, 10002, 10003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_10010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 10001, 10003, 10004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_10010" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 10001, 10003, 10005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_10010" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 10001, 10003, 10006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_10010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10009(context, evt)
if evt.param1 ~= 10009 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_10009(context, evt)
-- 调用提示id为 1110019 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 10, true)
return 0
end
@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 139999011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 25010201, pos = { x = 1.111, y = 0.010, z = -1.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "盗宝团", area_id = 1 },
{ config_id = 11002, monster_id = 25010201, pos = { x = -0.869, y = 0.108, z = 1.669 }, rot = { x = 0.000, y = 79.461, z = 0.000 }, level = 1, drop_tag = "盗宝团", area_id = 1 },
{ config_id = 11003, monster_id = 25010201, pos = { x = 1.873, y = 0.231, z = 1.301 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "盗宝团", area_id = 1 },
{ config_id = 11004, monster_id = 25020201, pos = { x = -0.926, y = 0.011, z = -0.948 }, rot = { x = 0.000, y = 41.172, z = 0.000 }, level = 1, drop_tag = "盗宝团", area_id = 1 },
{ config_id = 11005, monster_id = 25020201, pos = { x = 0.415, y = 0.242, z = 2.291 }, rot = { x = 0.000, y = 181.017, z = 0.000 }, level = 1, drop_tag = "盗宝团", area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 11024, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.001, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1011023, name = "ANY_MONSTER_DIE_11023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11023", action = "action_EVENT_ANY_MONSTER_DIE_11023" },
{ config_id = 1011024, name = "ENTER_REGION_11024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11024", action = "action_EVENT_ENTER_REGION_11024", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 11001, 11002, 11003, 11004, 11005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11023" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11023(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11023(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 11, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11024(context, evt)
if evt.param1 ~= 11024 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11024(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 139999012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 26060101, pos = { x = 1.111, y = -0.155, z = -1.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12002, monster_id = 26060101, pos = { x = -0.869, y = 0.076, z = 1.669 }, rot = { x = 0.000, y = 79.461, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12003, monster_id = 26060101, pos = { x = 2.471, y = 0.407, z = 1.808 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12004, monster_id = 26060101, pos = { x = -0.926, y = -0.235, z = -0.948 }, rot = { x = 0.000, y = 41.172, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12005, monster_id = 26060101, pos = { x = 0.415, y = 0.246, z = 2.291 }, rot = { x = 0.000, y = 181.017, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12008, monster_id = 26060201, pos = { x = 2.566, y = 0.129, z = -0.506 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12009, monster_id = 26060201, pos = { x = 1.941, y = 0.400, z = 2.353 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12010, monster_id = 26060201, pos = { x = -0.208, y = 0.112, z = 1.256 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 },
{ config_id = 12011, monster_id = 26060201, pos = { x = -0.197, y = -0.328, z = -1.688 }, rot = { x = 0.000, y = 191.203, z = 0.000 }, level = 1, drop_tag = "雷萤", disableWander = true, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 12007, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.007, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1012006, name = "ANY_MONSTER_DIE_12006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12006", action = "action_EVENT_ANY_MONSTER_DIE_12006" },
{ config_id = 1012007, name = "ENTER_REGION_12007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12007", action = "action_EVENT_ENTER_REGION_12007", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 12001, 12002, 12003, 12004, 12005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_3,
monsters = { 12008, 12009, 12010, 12011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 12, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12007(context, evt)
if evt.param1 ~= 12007 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_12007(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 139999013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 13001, monster_id = 23030101, pos = { x = 1.111, y = -0.173, z = -1.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "召唤师", disableWander = true, affix = { 9002 }, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 13011, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.002, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1013010, name = "ANY_MONSTER_DIE_13010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13010", action = "action_EVENT_ANY_MONSTER_DIE_13010" },
{ config_id = 1013011, name = "ENTER_REGION_13011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13011", action = "action_EVENT_ENTER_REGION_13011", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 13001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_13010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_13010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_13010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 13, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13011(context, evt)
if evt.param1 ~= 13011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13011(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 139999014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 23020101, pos = { x = 1.111, y = -0.158, z = -1.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "债务处理人", disableWander = true, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 14004, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.004, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1014003, name = "ANY_MONSTER_DIE_14003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14003", action = "action_EVENT_ANY_MONSTER_DIE_14003" },
{ config_id = 1014004, name = "ENTER_REGION_14004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14004", action = "action_EVENT_ENTER_REGION_14004", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 14001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_14003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14003(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 14, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14004(context, evt)
if evt.param1 ~= 14004 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_14004(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,247 @@
-- 基础信息
local base_info = {
group_id = 139999015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 21010101, pos = { x = 1.660, y = -0.002, z = -0.511 }, rot = { x = 0.000, y = 301.274, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 15002, monster_id = 21010101, pos = { x = -2.211, y = -0.032, z = 1.774 }, rot = { x = 0.000, y = 154.352, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 15003, monster_id = 21010101, pos = { x = 2.145, y = 0.354, z = 2.864 }, rot = { x = 0.000, y = 222.763, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 15004, monster_id = 21010701, pos = { x = -1.515, y = 0.096, z = -3.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", area_id = 3 },
{ config_id = 15005, monster_id = 21020201, pos = { x = -4.372, y = 0.176, z = -3.420 }, rot = { x = 0.000, y = 36.797, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", pose_id = 401, area_id = 3 },
{ config_id = 15006, monster_id = 21020101, pos = { x = -0.075, y = 0.031, z = -2.890 }, rot = { x = 0.000, y = 4.667, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, affix = { 1007 }, pose_id = 401, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15007, gadget_id = 70300083, pos = { x = -1.301, y = -0.301, z = 0.113 }, rot = { x = 0.000, y = 325.457, z = 0.000 }, level = 1, area_id = 3 },
{ config_id = 15011, gadget_id = 70300118, pos = { x = -1.301, y = 0.624, z = 0.113 }, rot = { x = 0.000, y = 325.457, z = 0.000 }, level = 1, area_id = 3 }
}
-- 区域
regions = {
{ config_id = 15010, shape = RegionShape.SPHERE, radius = 50, pos = { x = -1.437, y = 2.304, z = -1.291 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1015008, name = "ANY_GADGET_DIE_15008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_15008", action = "action_EVENT_ANY_GADGET_DIE_15008" },
{ config_id = 1015009, name = "ANY_MONSTER_DIE_15009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15009", action = "action_EVENT_ANY_MONSTER_DIE_15009" },
{ config_id = 1015010, name = "ENTER_REGION_15010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15010", action = "action_EVENT_ENTER_REGION_15010", forbid_guest = false },
{ config_id = 1015012, name = "VARIABLE_CHANGE_15012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_15012", action = "action_EVENT_VARIABLE_CHANGE_15012", trigger_count = 0 },
{ config_id = 1015013, name = "VARIABLE_CHANGE_15013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_15013", action = "action_EVENT_VARIABLE_CHANGE_15013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "monsterdone", value = 0, no_refresh = false },
{ config_id = 2, name = "gadgetdone", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 15001, 15002, 15003, 15004 },
gadgets = { 15007 },
regions = { },
triggers = { "ANY_GADGET_DIE_15008", "ANY_MONSTER_DIE_15009", "VARIABLE_CHANGE_15012", "VARIABLE_CHANGE_15013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 15001, 15002, 15003, 15005 },
gadgets = { 15007 },
regions = { },
triggers = { "ANY_GADGET_DIE_15008", "ANY_MONSTER_DIE_15009", "VARIABLE_CHANGE_15012", "VARIABLE_CHANGE_15013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 15001, 15002, 15003, 15006 },
gadgets = { 15007 },
regions = { },
triggers = { "ANY_GADGET_DIE_15008", "ANY_MONSTER_DIE_15009", "VARIABLE_CHANGE_15012", "VARIABLE_CHANGE_15013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_15008(context, evt)
if 15007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_15008(context, evt)
-- 将本组内变量名为 "monsterdone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gadgetdone", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "monsterdone") + ScriptLib.GetGroupVariableValue(context, "gadgetdone") == 2 then
-- 设置随机任务选项
ScriptLib.FinishRandTask(context, 15, true)
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15009(context, evt)
-- 将本组内变量名为 "monsterdone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "monsterdone", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "monsterdone") + ScriptLib.GetGroupVariableValue(context, "gadgetdone") == 2 then
-- 设置随机任务选项
ScriptLib.FinishRandTask(context, 15, true)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15010(context, evt)
if evt.param1 ~= 15010 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_15010(context, evt)
-- 调用提示id为 1110016 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_15012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"monsterdone"为1
if ScriptLib.GetGroupVariableValue(context, "monsterdone") ~= 1 then
return false
end
-- 判断变量"gadgetdone"为0
if ScriptLib.GetGroupVariableValue(context, "gadgetdone") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_15012(context, evt)
-- 创建id为15011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 15011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_15013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"gadgetdone"为1
if ScriptLib.GetGroupVariableValue(context, "gadgetdone") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_15013(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 139999016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16001, monster_id = 21010501, pos = { x = 1.111, y = 0.010, z = -1.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", area_id = 1 },
{ config_id = 16002, monster_id = 21010501, pos = { x = -0.869, y = 0.108, z = 1.669 }, rot = { x = 0.000, y = 79.461, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", area_id = 1 },
{ config_id = 16003, monster_id = 21011201, pos = { x = -2.009, y = -0.050, z = 0.370 }, rot = { x = 0.000, y = 38.683, z = 0.000 }, level = 1, drop_tag = "丘丘人", area_id = 1 },
{ config_id = 16004, monster_id = 21010501, pos = { x = -0.926, y = 0.011, z = -0.948 }, rot = { x = 0.000, y = 41.172, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", area_id = 1 },
{ config_id = 16005, monster_id = 21010501, pos = { x = 0.415, y = 0.242, z = 2.291 }, rot = { x = 0.000, y = 181.017, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", area_id = 1 },
{ config_id = 16008, monster_id = 21011201, pos = { x = 1.266, y = 0.171, z = 0.623 }, rot = { x = 0.000, y = 72.859, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 16009, monster_id = 21030401, pos = { x = 2.267, y = 0.220, z = 0.069 }, rot = { x = 0.000, y = 274.026, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 16007, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.001, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1016006, name = "ANY_MONSTER_DIE_16006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16006", action = "action_EVENT_ANY_MONSTER_DIE_16006" },
{ config_id = 1016007, name = "ENTER_REGION_16007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16007", action = "action_EVENT_ENTER_REGION_16007", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 16001, 16002, 16004, 16005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_16006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_3,
monsters = { 16001, 16003, 16005, 16008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_16006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_4,
monsters = { 16001, 16002, 16004, 16005, 16009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_16006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 16, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16007(context, evt)
if evt.param1 ~= 16007 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_16007(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,171 @@
-- 基础信息
local base_info = {
group_id = 139999017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17001, monster_id = 21010601, pos = { x = -1.282, y = -0.817, z = -0.828 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 1 },
{ config_id = 17002, monster_id = 21010101, pos = { x = 0.209, y = -0.748, z = 1.187 }, rot = { x = 0.000, y = 262.433, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 1 },
{ config_id = 17003, monster_id = 21020301, pos = { x = 2.671, y = -0.830, z = 1.141 }, rot = { x = 0.000, y = 261.612, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 },
{ config_id = 17004, monster_id = 21030101, pos = { x = 0.657, y = -0.908, z = 2.604 }, rot = { x = 0.000, y = 222.947, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 17005, monster_id = 21010901, pos = { x = 0.403, y = -0.743, z = 0.597 }, rot = { x = 0.000, y = 281.747, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 17006, monster_id = 21010901, pos = { x = -0.093, y = -0.971, z = 2.720 }, rot = { x = 0.000, y = 222.070, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", area_id = 1 },
{ config_id = 17011, monster_id = 20011201, pos = { x = -1.355, y = -0.373, z = 0.909 }, rot = { x = 0.000, y = 262.433, z = 0.000 }, level = 1, drop_tag = "史莱姆", disableWander = true, pose_id = 901, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17007, gadget_id = 70220005, pos = { x = -2.707, y = -0.756, z = 0.574 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 },
{ config_id = 17008, gadget_id = 70220005, pos = { x = -2.384, y = -0.851, z = -0.192 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 },
{ config_id = 17009, gadget_id = 70300102, pos = { x = -1.153, y = -1.211, z = 0.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 },
{ config_id = 17010, gadget_id = 70300087, pos = { x = -1.376, y = -0.823, z = 0.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 17013, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.749, y = -1.087, z = -0.363 }, area_id = 1 },
{ config_id = 17014, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.425, y = -0.449, z = -0.243 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1017012, name = "ANY_MONSTER_DIE_17012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_17012", action = "action_EVENT_ANY_MONSTER_DIE_17012" },
{ config_id = 1017013, name = "ENTER_REGION_17013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17013", action = "action_EVENT_ENTER_REGION_17013", forbid_guest = false },
{ config_id = 1017014, name = "ENTER_REGION_17014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17014", action = "action_EVENT_ENTER_REGION_17014", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 17001, 17002, 17003, 17011 },
gadgets = { 17009, 17010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_17012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 17001, 17003, 17004, 17011 },
gadgets = { 17009, 17010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_17012" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 17001, 17003, 17005, 17006, 17011 },
gadgets = { 17007, 17008, 17009, 17010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_17012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_17012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17012(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 17, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17013(context, evt)
if evt.param1 ~= 17013 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_17013(context, evt)
-- 调用提示id为 1110007 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17014(context, evt)
if evt.param1 ~= 17014 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_17014(context, evt)
-- 调用提示id为 1110027 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110027) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,148 @@
-- 基础信息
local base_info = {
group_id = 139999018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 18001, monster_id = 28020408, pos = { x = 1.594, y = -0.009, z = -2.513 }, rot = { x = 0.000, y = 328.309, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 2, area_id = 1 },
{ config_id = 18004, monster_id = 28020407, pos = { x = 1.594, y = -0.009, z = -2.513 }, rot = { x = 0.000, y = 328.309, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 2, area_id = 1 },
{ config_id = 18005, monster_id = 28020409, pos = { x = 1.594, y = -0.009, z = -2.513 }, rot = { x = 0.000, y = 328.309, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 2, area_id = 1 },
{ config_id = 18006, monster_id = 28020410, pos = { x = 1.594, y = -0.009, z = -2.513 }, rot = { x = 0.000, y = 328.309, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 2, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18002, gadget_id = 70710111, pos = { x = 0.001, y = 0.000, z = -0.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, interact_id = 12, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 18007, shape = RegionShape.SPHERE, radius = 10, pos = { x = -1.304, y = -0.167, z = 0.774 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1018003, name = "GADGET_STATE_CHANGE_18003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18003", action = "action_EVENT_GADGET_STATE_CHANGE_18003" },
{ config_id = 1018007, name = "ENTER_REGION_18007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18007", action = "action_EVENT_ENTER_REGION_18007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 18001 },
gadgets = { 18002 },
regions = { 18007 },
triggers = { "GADGET_STATE_CHANGE_18003", "ENTER_REGION_18007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 18004 },
gadgets = { 18002 },
regions = { 18007 },
triggers = { "GADGET_STATE_CHANGE_18003", "ENTER_REGION_18007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 18005 },
gadgets = { 18002 },
regions = { 18007 },
triggers = { "GADGET_STATE_CHANGE_18003", "ENTER_REGION_18007" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 18006 },
gadgets = { 18002 },
regions = { 18007 },
triggers = { "GADGET_STATE_CHANGE_18003", "ENTER_REGION_18007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_18003(context, evt)
if 18002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18003(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 18, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_18007(context, evt)
if evt.param1 ~= 18007 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_18007(context, evt)
-- 调用提示id为 1110337 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110337) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,125 @@
-- 基础信息
local base_info = {
group_id = 139999019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 19001, monster_id = 25080101, pos = { x = 3.454, y = -0.076, z = -2.287 }, rot = { x = 0.000, y = 297.513, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1, area_id = 3 },
{ config_id = 19006, monster_id = 25080201, pos = { x = -2.317, y = 0.418, z = -1.190 }, rot = { x = 0.000, y = 10.950, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1, area_id = 3 },
{ config_id = 19007, monster_id = 21010201, pos = { x = 3.454, y = -0.076, z = -2.287 }, rot = { x = 0.000, y = 297.513, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 19008, monster_id = 21010201, pos = { x = 2.131, y = -0.466, z = 1.628 }, rot = { x = 328.488, y = 267.575, z = 1.268 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 19009, monster_id = 21010101, pos = { x = -2.317, y = 0.418, z = -1.190 }, rot = { x = 0.000, y = 10.950, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1019010, name = "ANY_MONSTER_DIE_19010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19010", action = "action_EVENT_ANY_MONSTER_DIE_19010", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 19011, shape = RegionShape.SPHERE, radius = 30, pos = { x = 1.299, y = 0.133, z = -2.417 }, area_id = 3 }
},
triggers = {
{ config_id = 1019011, name = "ENTER_REGION_19011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19011", action = "action_EVENT_ENTER_REGION_19011" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 19001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_19010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 19006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_19010" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 19007, 19008, 19009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_19010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 19, true)
return 0
end
@@ -0,0 +1,188 @@
-- 基础信息
local base_info = {
group_id = 139999002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4, monster_id = 21010101, pos = { x = -0.083, y = -0.045, z = -1.436 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9016, area_id = 1 },
{ config_id = 16, monster_id = 21010101, pos = { x = -2.301, y = 0.243, z = 1.640 }, rot = { x = 0.000, y = 125.068, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9016, area_id = 1 },
{ config_id = 17, monster_id = 21010701, pos = { x = 0.377, y = 0.354, z = 2.816 }, rot = { x = 0.000, y = 125.068, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, area_id = 1 },
{ config_id = 18, monster_id = 21010701, pos = { x = 1.605, y = 0.021, z = -0.085 }, rot = { x = 0.000, y = 91.015, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, area_id = 1 },
{ config_id = 19, monster_id = 21010701, pos = { x = -1.835, y = -0.032, z = -0.091 }, rot = { x = 0.000, y = 286.001, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, area_id = 1 },
{ config_id = 2001, monster_id = 21010601, pos = { x = -0.241, y = -0.041, z = -1.165 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9016, area_id = 1 },
{ config_id = 2002, monster_id = 21020101, pos = { x = -2.318, y = -0.033, z = -1.629 }, rot = { x = 0.000, y = 49.348, z = 0.000 }, level = 2, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 },
{ config_id = 2003, monster_id = 21030101, pos = { x = -3.463, y = 0.085, z = 1.111 }, rot = { x = 0.000, y = 105.093, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3, gadget_id = 70220013, pos = { x = -1.153, y = -0.133, z = 0.253 }, rot = { x = 0.000, y = 312.186, z = 0.000 }, level = 1, area_id = 1 },
{ config_id = 2004, gadget_id = 70220014, pos = { x = 0.166, y = -0.082, z = -0.063 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 22, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.749, y = 1.484, z = -0.363 }, area_id = 1 },
{ config_id = 31, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.416, y = 0.985, z = -0.245 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000006, name = "ANY_MONSTER_DIE_6", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6", action = "action_EVENT_ANY_MONSTER_DIE_6" },
{ config_id = 1000022, name = "ENTER_REGION_22", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22", action = "action_EVENT_ENTER_REGION_22", forbid_guest = false },
{ config_id = 1000031, name = "ENTER_REGION_31", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31", action = "action_EVENT_ENTER_REGION_31", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4, 16, 17 },
gadgets = { 3, 2004 },
regions = { 22, 31 },
triggers = { "ANY_MONSTER_DIE_6", "ENTER_REGION_22", "ENTER_REGION_31" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 4, 18, 19 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 2001, 2002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 2001, 2002, 2003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { 4, 18, 19, 2003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 2, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_22(context, evt)
if evt.param1 ~= 22 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_22(context, evt)
-- 调用提示id为 1110007 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31(context, evt)
if evt.param1 ~= 31 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_31(context, evt)
-- 调用提示id为 1110027 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110027) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,206 @@
-- 基础信息
local base_info = {
group_id = 139999020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 20001, monster_id = 25010201, pos = { x = 0.063, y = -0.066, z = -2.153 }, rot = { x = 0.000, y = 340.573, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20002, monster_id = 25010201, pos = { x = 2.517, y = 0.287, z = 0.178 }, rot = { x = 0.000, y = 262.749, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20003, monster_id = 25010201, pos = { x = 0.102, y = 0.326, z = 2.457 }, rot = { x = 0.000, y = 181.132, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20004, monster_id = 25030301, pos = { x = 0.063, y = -0.066, z = -2.153 }, rot = { x = 0.000, y = 340.573, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20005, monster_id = 25010701, pos = { x = 0.063, y = -0.066, z = -2.153 }, rot = { x = 0.000, y = 340.573, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20006, monster_id = 25030301, pos = { x = 2.517, y = 0.287, z = 0.178 }, rot = { x = 0.000, y = 262.749, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20007, monster_id = 25010501, pos = { x = -3.105, y = -0.069, z = -0.015 }, rot = { x = 0.000, y = 87.997, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9002, area_id = 1 },
{ config_id = 20008, monster_id = 25030301, pos = { x = 0.102, y = 0.326, z = 2.457 }, rot = { x = 0.000, y = 181.132, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20009, monster_id = 25010701, pos = { x = 2.517, y = 0.287, z = 0.178 }, rot = { x = 0.000, y = 262.749, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20010, monster_id = 25010701, pos = { x = 0.102, y = 0.326, z = 2.457 }, rot = { x = 0.000, y = 181.132, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 20013, monster_id = 25030201, pos = { x = 9.330, y = 1.721, z = 9.613 }, rot = { x = 0.000, y = 204.780, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, area_id = 1 },
{ config_id = 20014, monster_id = 25030201, pos = { x = 6.094, y = 2.364, z = 10.320 }, rot = { x = 0.000, y = 218.853, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, area_id = 1 },
{ config_id = 20015, monster_id = 25010501, pos = { x = 6.288, y = 1.795, z = 8.037 }, rot = { x = 0.000, y = 221.953, z = 0.000 }, level = 1, drop_tag = "盗宝团", disableWander = true, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20012, gadget_id = 70210101, pos = { x = 0.115, y = 0.549, z = 0.244 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜武器蒙德", isOneoff = true, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 20017, shape = RegionShape.SPHERE, radius = 30, pos = { x = -3.584, y = 0.215, z = 4.606 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1020011, name = "ANY_MONSTER_DIE_20011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20011", action = "action_EVENT_ANY_MONSTER_DIE_20011" },
{ config_id = 1020016, name = "ANY_MONSTER_DIE_20016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20016", action = "action_EVENT_ANY_MONSTER_DIE_20016" },
{ config_id = 1020017, name = "ENTER_REGION_20017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20017", action = "action_EVENT_ENTER_REGION_20017" }
}
-- 变量
variables = {
{ config_id = 1, name = "killmonster", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 20001, 20002, 20003, 20007 },
gadgets = { 20012 },
regions = { 20017 },
triggers = { "ANY_MONSTER_DIE_20011", "ANY_MONSTER_DIE_20016", "ENTER_REGION_20017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 20004, 20006, 20007, 20008 },
gadgets = { 20012 },
regions = { 20017 },
triggers = { "ANY_MONSTER_DIE_20011", "ANY_MONSTER_DIE_20016", "ENTER_REGION_20017" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 20005, 20007, 20009, 20010 },
gadgets = { 20012 },
regions = { 20017 },
triggers = { "ANY_MONSTER_DIE_20011", "ANY_MONSTER_DIE_20016", "ENTER_REGION_20017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"killmonster"为1
if ScriptLib.GetGroupVariableValue(context, "killmonster") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20011(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 20, true)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20016(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"killmonster"为0
if ScriptLib.GetGroupVariableValue(context, "killmonster") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20016(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 20013, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 20014, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 20015, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 调用提示id为 400004 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "killmonster" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "killmonster", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_20017(context, evt)
if evt.param1 ~= 20017 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_20017(context, evt)
-- 调用提示id为 1110339 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110339) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,221 @@
-- 基础信息
local base_info = {
group_id = 139999021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21001, monster_id = 28030307, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21002, monster_id = 28030307, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21003, monster_id = 28030307, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21004, monster_id = 28030307, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21005, monster_id = 28030307, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21006, monster_id = 28030309, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21007, monster_id = 28030309, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21008, monster_id = 28030309, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21009, monster_id = 28030309, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21011, monster_id = 28030309, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21012, monster_id = 28030310, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21013, monster_id = 28030310, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21014, monster_id = 28030310, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21015, monster_id = 28030310, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21016, monster_id = 28030310, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21019, monster_id = 28030308, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21020, monster_id = 28030308, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21021, monster_id = 28030308, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21022, monster_id = 28030308, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21023, monster_id = 28030308, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21024, monster_id = 28030311, pos = { x = -0.840, y = 0.073, z = 0.437 }, rot = { x = 0.000, y = 338.134, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21025, monster_id = 28030311, pos = { x = 0.566, y = -0.035, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21027, monster_id = 28030311, pos = { x = -0.998, y = 0.065, z = -0.835 }, rot = { x = 0.000, y = 293.203, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21028, monster_id = 28030311, pos = { x = 0.077, y = 0.034, z = -1.355 }, rot = { x = 0.000, y = 332.447, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21029, monster_id = 28030311, pos = { x = 1.314, y = -0.074, z = -0.877 }, rot = { x = 0.000, y = 308.035, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 21017, shape = RegionShape.SPHERE, radius = 15, pos = { x = -2.955, y = 0.397, z = 0.059 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1021010, name = "ANY_MONSTER_DIE_21010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21010", action = "action_EVENT_ANY_MONSTER_DIE_21010" },
{ config_id = 1021017, name = "ENTER_REGION_21017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21017", action = "action_EVENT_ENTER_REGION_21017" },
{ config_id = 1021018, name = "ANY_MONSTER_DIE_21018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21018", action = "action_EVENT_ANY_MONSTER_DIE_21018" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 21026, monster_id = 28030305, pos = { x = -0.966, y = 0.098, z = -1.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 },
{ config_id = 21030, monster_id = 28030305, pos = { x = -0.966, y = 0.098, z = -1.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", pose_id = 2, area_id = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 21001, 21002, 21003, 21004, 21005 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 21006, 21007, 21008, 21009, 21011 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 21012, 21013, 21014, 21015, 21016 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 21019, 21020, 21021, 21022, 21023 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 21024, 21025, 21027, 21028, 21029 },
gadgets = { },
regions = { 21017 },
triggers = { "ANY_MONSTER_DIE_21010", "ENTER_REGION_21017", "ANY_MONSTER_DIE_21018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21010(context, evt)
--判断死亡怪物的死亡类型是否为0,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 21, true)
-- 调用提示id为 1110345 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110345) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21017(context, evt)
if evt.param1 ~= 21017 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_21017(context, evt)
-- 调用提示id为 1110342 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110342) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21018(context, evt)
--判断死亡怪物的死亡类型是否为2,0为普通死亡(比如被击杀),1为普通地被killself杀死,2为消失(比如小动物逃跑消失,北风狼脱战消失)
if evt.param2 ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21018(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 21, true)
-- 调用提示id为 1110344 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110344) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,265 @@
-- 基础信息
local base_info = {
group_id = 139999022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 22001, monster_id = 20010101, pos = { x = -0.714, y = 0.011, z = 2.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 201, area_id = 3 },
{ config_id = 22002, monster_id = 20010101, pos = { x = 0.015, y = 0.027, z = 0.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 201, area_id = 3 },
{ config_id = 22003, monster_id = 20010101, pos = { x = -1.701, y = -0.206, z = -0.290 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 201, area_id = 3 },
{ config_id = 22004, monster_id = 20010201, pos = { x = -0.794, y = -0.034, z = 1.164 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆", pose_id = 201, area_id = 3 },
{ config_id = 22005, monster_id = 20011301, pos = { x = -1.786, y = -0.001, z = 0.853 }, rot = { x = 0.000, y = 89.847, z = 0.000 }, level = 1, drop_tag = "大史莱姆", affix = { 1007 }, area_id = 3 },
{ config_id = 22006, monster_id = 20011201, pos = { x = -0.945, y = 0.005, z = -1.136 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 3 },
{ config_id = 22007, monster_id = 20011201, pos = { x = 0.228, y = -0.033, z = 2.563 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 3 },
{ config_id = 22008, monster_id = 20011201, pos = { x = 0.969, y = 0.014, z = 0.782 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 3 },
{ config_id = 22012, monster_id = 20010601, pos = { x = -1.806, y = -0.021, z = 2.187 }, rot = { x = 0.000, y = 124.773, z = 0.000 }, level = 1, drop_tag = "大史莱姆", area_id = 3 },
{ config_id = 22013, monster_id = 20010501, pos = { x = -1.324, y = 0.017, z = -1.366 }, rot = { x = 0.000, y = 57.932, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 3 },
{ config_id = 22014, monster_id = 20010501, pos = { x = 0.012, y = -0.016, z = -0.775 }, rot = { x = 0.000, y = 321.679, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 3 },
{ config_id = 22021, monster_id = 20010501, pos = { x = 0.105, y = -0.031, z = 1.824 }, rot = { x = 0.000, y = 57.932, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22015, gadget_id = 70210112, pos = { x = -0.078, y = 1.218, z = -0.139 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 3 }
}
-- 区域
regions = {
{ config_id = 22018, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.396, y = -0.013, z = 0.281 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1022016, name = "ANY_GADGET_DIE_22016", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_22016", action = "action_EVENT_ANY_GADGET_DIE_22016" },
{ config_id = 1022017, name = "ANY_MONSTER_DIE_22017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22017", action = "action_EVENT_ANY_MONSTER_DIE_22017" },
{ config_id = 1022018, name = "ENTER_REGION_22018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22018", action = "action_EVENT_ENTER_REGION_22018", forbid_guest = false },
{ config_id = 1022019, name = "ANY_GADGET_DIE_22019", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_22019", action = "action_EVENT_ANY_GADGET_DIE_22019" },
{ config_id = 1022020, name = "ANY_GADGET_DIE_22020", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_22020", action = "action_EVENT_ANY_GADGET_DIE_22020" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 22015 },
regions = { 22018 },
triggers = { "ANY_GADGET_DIE_22016", "ANY_MONSTER_DIE_22017", "ENTER_REGION_22018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 22015 },
regions = { 22018 },
triggers = { "ANY_MONSTER_DIE_22017", "ENTER_REGION_22018", "ANY_GADGET_DIE_22019" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 22015 },
regions = { 22018 },
triggers = { "ANY_MONSTER_DIE_22017", "ENTER_REGION_22018", "ANY_GADGET_DIE_22020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_22016(context, evt)
if 22015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_22016(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22012, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22013, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22014, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22021, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22017(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22017(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 22, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_22018(context, evt)
if evt.param1 ~= 22018 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_22018(context, evt)
-- 调用提示id为 1110025 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110025) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_22019(context, evt)
if 22015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_22019(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_22020(context, evt)
if 22015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_22020(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 139999023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23001, monster_id = 21010201, pos = { x = -1.931, y = 0.008, z = -0.267 }, rot = { x = 0.000, y = 71.258, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23002, monster_id = 21010201, pos = { x = 2.379, y = -0.063, z = -0.095 }, rot = { x = 0.000, y = 241.458, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23003, monster_id = 21010201, pos = { x = -0.138, y = -0.152, z = -1.989 }, rot = { x = 0.000, y = 4.210, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23005, monster_id = 21010101, pos = { x = -1.931, y = 0.008, z = -0.267 }, rot = { x = 0.000, y = 71.258, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23008, monster_id = 21010101, pos = { x = 2.379, y = -0.063, z = -0.095 }, rot = { x = 0.000, y = 241.458, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23009, monster_id = 21010101, pos = { x = -0.138, y = -0.152, z = -1.989 }, rot = { x = 0.000, y = 4.210, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23010, monster_id = 21010301, pos = { x = -1.931, y = 0.008, z = -0.267 }, rot = { x = 0.000, y = 71.258, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23011, monster_id = 21010301, pos = { x = 2.379, y = -0.063, z = -0.095 }, rot = { x = 0.000, y = 241.458, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 },
{ config_id = 23012, monster_id = 21010301, pos = { x = -0.138, y = -0.152, z = -1.989 }, rot = { x = 0.000, y = 4.210, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9010, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1023006, name = "ANY_MONSTER_DIE_23006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23006", action = "action_EVENT_ANY_MONSTER_DIE_23006" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 23007, shape = RegionShape.SPHERE, radius = 50, pos = { x = 0.939, y = -0.085, z = -0.503 }, area_id = 3 }
},
triggers = {
{ config_id = 1023007, name = "ENTER_REGION_23007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23007", action = "action_EVENT_ENTER_REGION_23007", forbid_guest = false }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 23001, 23002, 23003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 23005, 23008, 23009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 23010, 23011, 23012 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 23, true)
return 0
end
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 139999024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 24001, monster_id = 28060103, pos = { x = -2.162, y = 0.927, z = -2.530 }, rot = { x = 0.000, y = 37.345, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1, area_id = 3 },
{ config_id = 24002, monster_id = 28060103, pos = { x = 2.340, y = 0.927, z = 2.782 }, rot = { x = 0.000, y = 223.510, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 24003, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1024003, name = "ENTER_REGION_24003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_24003" },
{ config_id = 1024004, name = "ANY_MONSTER_DIE_24004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_24004", action = "action_EVENT_ANY_MONSTER_DIE_24004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 24001, 24002 },
gadgets = { },
regions = { 24003 },
triggers = { "ENTER_REGION_24003", "ANY_MONSTER_DIE_24004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_24003(context, evt)
-- 调用提示id为 400308 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400308) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_24004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_24004(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 24, true)
return 0
end
@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 139999025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 25001, monster_id = 28060614, pos = { x = -0.908, y = 0.069, z = -0.098 }, rot = { x = 0.000, y = 49.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 2, area_id = 3 },
{ config_id = 25002, monster_id = 21020101, pos = { x = -0.742, y = 0.197, z = 3.989 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 401, area_id = 3 },
{ config_id = 25003, monster_id = 28060613, pos = { x = 3.858, y = 0.178, z = 4.475 }, rot = { x = 0.000, y = 284.900, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 3, area_id = 3 },
{ config_id = 25004, monster_id = 21010201, pos = { x = 4.485, y = -0.310, z = -2.009 }, rot = { x = 0.000, y = 308.580, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 },
{ config_id = 25005, monster_id = 21010201, pos = { x = 2.306, y = -0.259, z = -2.651 }, rot = { x = 0.000, y = 23.900, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 25006, gadget_id = 70310009, pos = { x = 3.131, y = -0.252, z = -0.525 }, rot = { x = 0.000, y = 350.790, z = 0.000 }, level = 1, area_id = 3 }
}
-- 区域
regions = {
{ config_id = 25007, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1025007, name = "ENTER_REGION_25007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_25007" },
{ config_id = 1025008, name = "ANY_MONSTER_DIE_25008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_25008", action = "action_EVENT_ANY_MONSTER_DIE_25008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 25001, 25002, 25003, 25004, 25005 },
gadgets = { },
regions = { 25007 },
triggers = { "ENTER_REGION_25007", "ANY_MONSTER_DIE_25008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_25007(context, evt)
-- 调用提示id为 400301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_25008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_25008(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 25, true)
return 0
end
@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 139999026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 26001, monster_id = 28060611, pos = { x = 0.386, y = -0.012, z = -1.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 2, area_id = 3 },
{ config_id = 26002, monster_id = 25010401, pos = { x = 2.492, y = 0.034, z = 4.539 }, rot = { x = 0.000, y = 28.640, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 },
{ config_id = 26003, monster_id = 25010301, pos = { x = -2.334, y = 0.040, z = 3.429 }, rot = { x = 0.000, y = 333.100, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 },
{ config_id = 26004, monster_id = 25010701, pos = { x = -0.845, y = 0.179, z = 6.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 26005, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1026005, name = "ENTER_REGION_26005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_26005" },
{ config_id = 1026006, name = "ANY_MONSTER_DIE_26006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_26006", action = "action_EVENT_ANY_MONSTER_DIE_26006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 26001, 26002, 26003, 26004 },
gadgets = { },
regions = { 26005 },
triggers = { "ENTER_REGION_26005", "ANY_MONSTER_DIE_26006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_26005(context, evt)
-- 调用提示id为 400304 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400304) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_26006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_26006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 26, true)
return 0
end
@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 139999027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 27002, monster_id = 23010501, pos = { x = 3.610, y = 0.034, z = 7.007 }, rot = { x = 0.000, y = 28.640, z = 0.000 }, level = 1, drop_tag = "先遣队", pose_id = 9001, area_id = 3 },
{ config_id = 27003, monster_id = 23010601, pos = { x = -3.077, y = 0.040, z = 4.055 }, rot = { x = 0.000, y = 333.100, z = 0.000 }, level = 1, drop_tag = "先遣队", pose_id = 9002, area_id = 3 },
{ config_id = 27004, monster_id = 23010601, pos = { x = -0.568, y = 0.045, z = 3.963 }, rot = { x = 0.000, y = 18.320, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9011, area_id = 3 },
{ config_id = 27005, monster_id = 28060610, pos = { x = -0.350, y = 0.032, z = -2.736 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 2, area_id = 3 },
{ config_id = 27006, monster_id = 23010501, pos = { x = -2.779, y = 0.040, z = 2.413 }, rot = { x = 0.000, y = 16.160, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9001, area_id = 3 },
{ config_id = 27007, monster_id = 25210401, pos = { x = 2.245, y = 0.050, z = 7.027 }, rot = { x = 0.000, y = 219.160, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9001, area_id = 3 },
{ config_id = 27008, monster_id = 25210201, pos = { x = -0.621, y = 0.642, z = 8.648 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 3 },
{ config_id = 27009, monster_id = 25210501, pos = { x = -0.061, y = 0.712, z = 6.522 }, rot = { x = 0.000, y = 189.900, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9002, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 27001, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1027001, name = "ENTER_REGION_27001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_27001" },
{ config_id = 1027010, name = "ANY_MONSTER_DIE_27010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_27010", action = "action_EVENT_ANY_MONSTER_DIE_27010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 27004, 27005, 27006, 27007, 27008, 27009 },
gadgets = { },
regions = { 27001 },
triggers = { "ENTER_REGION_27001", "ANY_MONSTER_DIE_27010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_27001(context, evt)
-- 调用提示id为 400306 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400306) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_27010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_27010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 27, true)
return 0
end
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 139999028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 28001, monster_id = 26090101, pos = { x = 4.222, y = 0.540, z = 3.644 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28002, monster_id = 26090201, pos = { x = 2.045, y = 0.316, z = 1.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28003, monster_id = 26090501, pos = { x = 1.212, y = 0.556, z = 4.251 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28004, monster_id = 26090701, pos = { x = -0.298, y = -0.042, z = 2.445 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28005, monster_id = 26090901, pos = { x = 0.390, y = 0.161, z = 3.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28006, monster_id = 26090801, pos = { x = 3.288, y = 0.538, z = 4.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28007, monster_id = 26090401, pos = { x = 2.894, y = 0.435, z = 1.575 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28008, monster_id = 26090801, pos = { x = 3.288, y = 0.538, z = 4.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 },
{ config_id = 28009, monster_id = 26090201, pos = { x = 2.045, y = 0.316, z = 1.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "蕈兽", pose_id = 101, area_id = 2 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1028010, name = "ANY_MONSTER_DIE_28010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_28010", action = "action_EVENT_ANY_MONSTER_DIE_28010" },
{ config_id = 1028011, name = "ANY_MONSTER_DIE_28011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_28011", action = "action_EVENT_ANY_MONSTER_DIE_28011" },
{ config_id = 1028012, name = "ANY_MONSTER_DIE_28012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_28012", action = "action_EVENT_ANY_MONSTER_DIE_28012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 28001, 28002, 28003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_28010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 28005, 28006, 28007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_28011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 28004, 28008, 28009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_28012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_28010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_28010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 32, true)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_28011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_28011(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 32, true)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_28012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_28012(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 32, true)
return 0
end
@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 139999029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 29001, monster_id = 26090201, pos = { x = -0.034, y = 0.025, z = -2.658 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29002, monster_id = 26090701, pos = { x = -1.492, y = 0.007, z = 2.278 }, rot = { x = 0.000, y = 142.900, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29003, monster_id = 26090201, pos = { x = 2.546, y = 0.058, z = 1.694 }, rot = { x = 0.000, y = 150.336, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 101, area_id = 3 },
{ config_id = 29004, monster_id = 26090901, pos = { x = -2.057, y = -0.007, z = -1.484 }, rot = { x = 0.000, y = 323.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29005, monster_id = 26090901, pos = { x = 2.547, y = 0.234, z = -1.589 }, rot = { x = 0.000, y = 229.359, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29006, monster_id = 26090901, pos = { x = -0.012, y = -0.014, z = 2.729 }, rot = { x = 0.000, y = 100.885, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29007, monster_id = 26090701, pos = { x = 3.350, y = 0.130, z = -0.149 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29008, monster_id = 26090701, pos = { x = -1.279, y = -0.015, z = -2.201 }, rot = { x = 0.000, y = 291.531, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 },
{ config_id = 29009, monster_id = 26090401, pos = { x = -1.464, y = -0.002, z = 3.091 }, rot = { x = 0.000, y = 65.997, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 103, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1029010, name = "ANY_MONSTER_DIE_29010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_29010", action = "action_EVENT_ANY_MONSTER_DIE_29010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 29001, 29002, 29003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_29010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 29004, 29005, 29006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_29010" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 29007, 29008, 29009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_29010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_29010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_29010(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 29, true)
return 0
end
@@ -0,0 +1,162 @@
-- 基础信息
local base_info = {
group_id = 139999003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6, monster_id = 21010201, pos = { x = 1.579, y = 0.126, z = 1.096 }, rot = { x = 0.000, y = 233.587, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 7, monster_id = 21010201, pos = { x = -1.684, y = 0.090, z = -1.630 }, rot = { x = 0.000, y = 30.270, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 8, monster_id = 21010201, pos = { x = 1.180, y = 0.248, z = -1.897 }, rot = { x = 0.000, y = 323.307, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 20, monster_id = 21030101, pos = { x = -1.242, y = 0.019, z = 1.322 }, rot = { x = 0.000, y = 146.101, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 21, monster_id = 21030201, pos = { x = -0.887, y = 0.011, z = 1.011 }, rot = { x = 0.000, y = 146.101, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 22, monster_id = 21010601, pos = { x = 1.023, y = 0.098, z = -1.814 }, rot = { x = 0.000, y = 323.307, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 3001, monster_id = 22010201, pos = { x = -1.246, y = 0.015, z = 1.233 }, rot = { x = 350.011, y = 140.993, z = 0.000 }, level = 1, drop_tag = "深渊法师", disableWander = true, affix = { 1007 }, pose_id = 9013, area_id = 1 },
{ config_id = 3002, monster_id = 22010101, pos = { x = -1.856, y = 0.029, z = 1.692 }, rot = { x = 0.000, y = 137.364, z = 0.000 }, level = 1, drop_tag = "深渊法师", disableWander = true, affix = { 1007 }, pose_id = 9013, area_id = 1 },
{ config_id = 3003, monster_id = 22010301, pos = { x = -1.074, y = -0.010, z = 0.818 }, rot = { x = 0.000, y = 135.706, z = 0.000 }, level = 1, drop_tag = "深渊法师", disableWander = true, pose_id = 9013, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 23, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.037, y = -0.003, z = 0.022 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000004, name = "ANY_MONSTER_DIE_4", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4", action = "action_EVENT_ANY_MONSTER_DIE_4" },
{ config_id = 1000023, name = "ENTER_REGION_23", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23", action = "action_EVENT_ENTER_REGION_23", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6, 7, 8, 20 },
gadgets = { },
regions = { 23 },
triggers = { "ANY_MONSTER_DIE_4", "ENTER_REGION_23" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 6, 7, 21, 22 },
gadgets = { },
regions = { 23 },
triggers = { "ANY_MONSTER_DIE_4", "ENTER_REGION_23" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 6, 7, 22, 3001 },
gadgets = { },
regions = { 23 },
triggers = { "ANY_MONSTER_DIE_4", "ENTER_REGION_23" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 6, 7, 22, 3002 },
gadgets = { },
regions = { 23 },
triggers = { "ANY_MONSTER_DIE_4", "ENTER_REGION_23" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { 6, 7, 22, 3003 },
gadgets = { },
regions = { 23 },
triggers = { "ANY_MONSTER_DIE_4", "ENTER_REGION_23" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 3, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_23(context, evt)
if evt.param1 ~= 23 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_23(context, evt)
-- 调用提示id为 1110010 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 139999030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 30002, monster_id = 21010201, pos = { x = 8.991, y = 0.919, z = 3.795 }, rot = { x = 0.000, y = 231.080, z = 0.000 }, level = 1, drop_id = 1000100, area_id = 3 },
{ config_id = 30003, monster_id = 21010201, pos = { x = 3.177, y = 0.919, z = 2.221 }, rot = { x = 0.000, y = 113.100, z = 0.000 }, level = 1, drop_id = 1000100, area_id = 3 },
{ config_id = 30004, monster_id = 21010201, pos = { x = 7.522, y = 0.919, z = -2.684 }, rot = { x = 0.000, y = 287.500, z = 0.000 }, level = 1, drop_id = 1000100, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 30001, gadget_id = 70380004, pos = { x = 5.257, y = 0.419, z = -0.679 }, rot = { x = 0.000, y = 332.900, z = 0.000 }, level = 1, area_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1030005, name = "SPECIFIC_GADGET_HP_CHANGE_30005", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "30001", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_30005", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_30005" },
{ config_id = 1030006, name = "GADGET_CREATE_30006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_30006", action = "action_EVENT_GADGET_CREATE_30006", trigger_count = 0 },
{ config_id = 1030007, name = "ANY_MONSTER_DIE_30007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_30007", action = "action_EVENT_ANY_MONSTER_DIE_30007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 30002, 30003, 30004 },
gadgets = { 30001 },
regions = { },
triggers = { "SPECIFIC_GADGET_HP_CHANGE_30005", "GADGET_CREATE_30006", "ANY_MONSTER_DIE_30007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_30005(context, evt)
--[[判断指定configid的gadget的血量小于%20时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 20 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_30005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "30033_fail") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_30006(context, evt)
if 30001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_30006(context, evt)
-- 将group 139999030 中config id为 30001 的物件血量设为 50 %(血量百分比不能填0,如果掉血,则走通用的掉血流程,如果加血,直接设置新的血量)。
if 0 ~= ScriptLib.SetGadgetHp(context, 0, 30001, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_hp_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_30007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_30007(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 30, true)
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 139999031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 31001, monster_id = 26090201, pos = { x = -0.034, y = 0.612, z = -2.658 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31002, monster_id = 26090701, pos = { x = -1.492, y = 0.595, z = 2.278 }, rot = { x = 0.000, y = 142.900, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31003, monster_id = 26090201, pos = { x = 2.546, y = 0.645, z = 1.694 }, rot = { x = 0.000, y = 150.336, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31004, monster_id = 26090901, pos = { x = -2.057, y = 0.581, z = -1.484 }, rot = { x = 0.000, y = 323.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31005, monster_id = 26090901, pos = { x = 2.547, y = 0.822, z = -1.589 }, rot = { x = 0.000, y = 229.359, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31006, monster_id = 26090901, pos = { x = -0.012, y = 0.573, z = 2.729 }, rot = { x = 0.000, y = 100.885, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31007, monster_id = 26090701, pos = { x = 3.350, y = 0.717, z = -0.149 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31008, monster_id = 26090701, pos = { x = -1.280, y = 0.573, z = -2.201 }, rot = { x = 0.000, y = 291.531, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 },
{ config_id = 31009, monster_id = 26090401, pos = { x = -1.464, y = 0.585, z = 3.091 }, rot = { x = 0.000, y = 65.997, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 102, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 31001, 31002, 31003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 31004, 31005, 31006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 31007, 31008, 31009 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,112 @@
-- 基础信息
local base_info = {
group_id = 139999032
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32001, monster_id = 23010101, pos = { x = -2.823, y = 2.724, z = -0.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, area_id = 2 },
{ config_id = 32002, monster_id = 23010301, pos = { x = -0.818, y = 2.724, z = -1.281 }, rot = { x = 0.000, y = 348.074, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9014, area_id = 2 },
{ config_id = 32003, monster_id = 23010301, pos = { x = -5.076, y = 2.724, z = -1.646 }, rot = { x = 0.000, y = 16.613, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9001, area_id = 2 },
{ config_id = 32004, monster_id = 25210101, pos = { x = -5.270, y = 2.724, z = 4.590 }, rot = { x = 0.000, y = 182.360, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9003, area_id = 2 },
{ config_id = 32005, monster_id = 25210201, pos = { x = 0.146, y = 2.724, z = 3.768 }, rot = { x = 0.000, y = 180.246, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9001, area_id = 2 },
{ config_id = 32006, monster_id = 25210301, pos = { x = -2.789, y = 2.724, z = 2.633 }, rot = { x = 0.000, y = 184.222, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9005, area_id = 2 },
{ config_id = 32008, monster_id = 28060511, pos = { x = -2.353, y = 2.724, z = 6.156 }, rot = { x = 0.000, y = 188.287, z = 0.000 }, level = 1, drop_tag = "走兽", affix = { 5175 }, pose_id = 2, area_id = 2 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 32009, shape = RegionShape.SPHERE, radius = 20, pos = { x = -3.342, y = 0.000, z = 1.550 }, area_id = 2 }
}
-- 触发器
triggers = {
{ config_id = 1032007, name = "ANY_MONSTER_DIE_32007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32007", action = "action_EVENT_ANY_MONSTER_DIE_32007" },
{ config_id = 1032009, name = "ENTER_REGION_32009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_32009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 32001, 32002, 32003, 32004, 32005, 32006, 32008 },
gadgets = { },
regions = { 32009 },
triggers = { "ANY_MONSTER_DIE_32007", "ENTER_REGION_32009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32007(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 32, true)
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_32009(context, evt)
-- 调用提示id为 400306 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400306) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 139999033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 33001, monster_id = 21010401, pos = { x = 9.504, y = 2.863, z = -0.616 }, rot = { x = 0.000, y = 265.706, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 2 },
{ config_id = 33002, monster_id = 28060512, pos = { x = 7.266, y = 2.863, z = 2.383 }, rot = { x = 0.000, y = 243.284, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 5175 }, pose_id = 2, area_id = 2 },
{ config_id = 33003, monster_id = 21010201, pos = { x = 5.707, y = 2.863, z = 4.196 }, rot = { x = 0.000, y = 245.382, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9002, area_id = 2 },
{ config_id = 33004, monster_id = 21010401, pos = { x = 7.595, y = 2.863, z = 5.648 }, rot = { x = 0.000, y = 249.334, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9003, area_id = 2 },
{ config_id = 33005, monster_id = 21020201, pos = { x = 4.968, y = 2.863, z = -0.479 }, rot = { x = 0.000, y = 245.032, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 401, area_id = 2 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 33007, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 2 }
}
-- 触发器
triggers = {
{ config_id = 1033006, name = "ANY_MONSTER_DIE_33006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33006", action = "action_EVENT_ANY_MONSTER_DIE_33006" },
{ config_id = 1033007, name = "ENTER_REGION_33007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_33007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 33001, 33002, 33003, 33004, 33005 },
gadgets = { },
regions = { 33007 },
triggers = { "ANY_MONSTER_DIE_33006", "ENTER_REGION_33007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 33, true)
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_33007(context, evt)
-- 调用提示id为 400301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 139999034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 34001, monster_id = 25010301, pos = { x = -3.052, y = 3.054, z = 1.308 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9003, area_id = 2 },
{ config_id = 34002, monster_id = 25010401, pos = { x = 0.499, y = 3.054, z = 0.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9003, area_id = 2 },
{ config_id = 34003, monster_id = 28060511, pos = { x = -1.472, y = 3.054, z = -2.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽", affix = { 5175 }, pose_id = 2, area_id = 2 },
{ config_id = 34004, monster_id = 25020201, pos = { x = 1.639, y = 3.054, z = -5.587 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9003, area_id = 2 },
{ config_id = 34005, monster_id = 25020201, pos = { x = -4.973, y = 3.054, z = -4.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9003, area_id = 2 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 34007, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.000, y = 0.000, z = 0.000 }, area_id = 2 }
}
-- 触发器
triggers = {
{ config_id = 1034006, name = "ANY_MONSTER_DIE_34006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_34006", action = "action_EVENT_ANY_MONSTER_DIE_34006" },
{ config_id = 1034007, name = "ENTER_REGION_34007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_34007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 34001, 34002, 34003, 34004, 34005 },
gadgets = { },
regions = { 34007 },
triggers = { "ANY_MONSTER_DIE_34006", "ENTER_REGION_34007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_34006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_34006(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 34, true)
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_34007(context, evt)
-- 调用提示id为 400304 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400304) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 139999004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23, monster_id = 20011301, pos = { x = -0.094, y = 0.004, z = -0.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆", area_id = 1 },
{ config_id = 25, monster_id = 20011201, pos = { x = 0.833, y = 0.215, z = -1.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 26, monster_id = 20011201, pos = { x = 1.905, y = 0.057, z = -0.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 27, monster_id = 20011201, pos = { x = -0.315, y = -0.045, z = 1.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4001, monster_id = 20010901, pos = { x = -0.220, y = -0.045, z = 0.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, affix = { 1007 }, area_id = 1 },
{ config_id = 4002, monster_id = 20010801, pos = { x = -0.978, y = -0.080, z = 1.249 }, rot = { x = 0.000, y = 116.752, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4003, monster_id = 20010801, pos = { x = 1.038, y = -0.039, z = 0.554 }, rot = { x = 0.000, y = 225.243, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4004, monster_id = 20010801, pos = { x = 0.112, y = 0.214, z = -1.716 }, rot = { x = 3.871, y = 7.274, z = 3.913 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4005, monster_id = 20010801, pos = { x = 1.252, y = 0.108, z = -0.766 }, rot = { x = 3.871, y = 327.562, z = 3.913 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4006, monster_id = 20010601, pos = { x = 0.205, y = 0.040, z = -0.341 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, affix = { 1007 }, area_id = 1 },
{ config_id = 4007, monster_id = 20010701, pos = { x = 0.272, y = -0.038, z = 1.564 }, rot = { x = 0.000, y = 240.916, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, affix = { 1007 }, area_id = 1 },
{ config_id = 4008, monster_id = 20010501, pos = { x = -1.782, y = -0.082, z = 0.354 }, rot = { x = 7.277, y = 64.546, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4009, monster_id = 20010501, pos = { x = 0.583, y = -0.073, z = 0.925 }, rot = { x = 7.277, y = 64.546, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4010, monster_id = 20010501, pos = { x = -0.593, y = 0.115, z = -1.140 }, rot = { x = 7.277, y = 64.546, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4011, monster_id = 20010501, pos = { x = 1.705, y = 0.174, z = -1.425 }, rot = { x = 7.277, y = 64.546, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4012, monster_id = 20011101, pos = { x = 0.211, y = -0.019, z = 0.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, affix = { 1007 }, area_id = 1 },
{ config_id = 4013, monster_id = 20011001, pos = { x = 1.461, y = 0.073, z = -0.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4014, monster_id = 20011001, pos = { x = -0.056, y = -0.067, z = 1.170 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4015, monster_id = 20011001, pos = { x = -1.235, y = -0.039, z = 0.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4016, monster_id = 20011001, pos = { x = 0.346, y = 0.132, z = -1.161 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4017, monster_id = 20011001, pos = { x = 1.142, y = -0.043, z = 1.375 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 4018, monster_id = 20011201, pos = { x = -1.250, y = 0.043, z = -0.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 24, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.126, y = -0.005, z = 0.026 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000009, name = "ANY_MONSTER_DIE_9", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9", action = "action_EVENT_ANY_MONSTER_DIE_9" },
{ config_id = 1000024, name = "ENTER_REGION_24", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_24", action = "action_EVENT_ENTER_REGION_24", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 23, 25, 26, 27, 4018 },
gadgets = { },
regions = { 24 },
triggers = { "ANY_MONSTER_DIE_9", "ENTER_REGION_24" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 4001, 4002, 4003, 4004, 4005 },
gadgets = { },
regions = { 24 },
triggers = { "ANY_MONSTER_DIE_9", "ENTER_REGION_24" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 4006, 4007, 4008, 4009, 4010, 4011 },
gadgets = { },
regions = { 24 },
triggers = { "ANY_MONSTER_DIE_9", "ENTER_REGION_24" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 4012, 4013, 4014, 4015, 4016, 4017 },
gadgets = { },
regions = { 24 },
triggers = { "ANY_MONSTER_DIE_9", "ENTER_REGION_24" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 4, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_24(context, evt)
if evt.param1 ~= 24 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_24(context, evt)
-- 调用提示id为 1110013 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,247 @@
-- 基础信息
local base_info = {
group_id = 139999005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 28, monster_id = 21010101, pos = { x = 1.973, y = 0.041, z = -1.128 }, rot = { x = 0.000, y = 301.274, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 29, monster_id = 21010101, pos = { x = -1.728, y = 0.083, z = 1.769 }, rot = { x = 0.000, y = 154.352, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 30, monster_id = 21010101, pos = { x = 1.685, y = 0.014, z = 1.983 }, rot = { x = 0.000, y = 214.134, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 3 },
{ config_id = 31, monster_id = 21010701, pos = { x = -2.613, y = 0.253, z = -2.554 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", area_id = 3 },
{ config_id = 32, monster_id = 21020201, pos = { x = -2.984, y = 0.338, z = -2.721 }, rot = { x = 0.000, y = 36.797, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", pose_id = 401, area_id = 3 },
{ config_id = 5001, monster_id = 21020101, pos = { x = -0.674, y = 0.368, z = -3.397 }, rot = { x = 0.000, y = 4.667, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, affix = { 1007 }, pose_id = 401, area_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6, gadget_id = 70300101, pos = { x = -1.717, y = -0.851, z = 0.034 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 3 },
{ config_id = 5002, gadget_id = 70300118, pos = { x = -1.717, y = 0.299, z = 0.034 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 3 }
}
-- 区域
regions = {
{ config_id = 25, shape = RegionShape.SPHERE, radius = 50, pos = { x = -1.438, y = 1.497, z = -1.291 }, area_id = 3 }
}
-- 触发器
triggers = {
{ config_id = 1000010, name = "ANY_GADGET_DIE_10", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_10", action = "action_EVENT_ANY_GADGET_DIE_10" },
{ config_id = 1000011, name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11" },
{ config_id = 1000025, name = "ENTER_REGION_25", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_25", action = "action_EVENT_ENTER_REGION_25", forbid_guest = false },
{ config_id = 1005003, name = "VARIABLE_CHANGE_5003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5003", action = "action_EVENT_VARIABLE_CHANGE_5003", trigger_count = 0 },
{ config_id = 1005004, name = "VARIABLE_CHANGE_5004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5004", action = "action_EVENT_VARIABLE_CHANGE_5004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "monsterdone", value = 0, no_refresh = false },
{ config_id = 2, name = "gadgetdone", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 28, 29, 30, 31 },
gadgets = { 6 },
regions = { 25 },
triggers = { "ANY_GADGET_DIE_10", "ANY_MONSTER_DIE_11", "ENTER_REGION_25", "VARIABLE_CHANGE_5003", "VARIABLE_CHANGE_5004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 28, 29, 30, 32 },
gadgets = { 6 },
regions = { 25 },
triggers = { "ANY_GADGET_DIE_10", "ANY_MONSTER_DIE_11", "ENTER_REGION_25", "VARIABLE_CHANGE_5003", "VARIABLE_CHANGE_5004" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 28, 29, 30, 5001 },
gadgets = { 6 },
regions = { 25 },
triggers = { "ANY_GADGET_DIE_10", "ANY_MONSTER_DIE_11", "ENTER_REGION_25", "VARIABLE_CHANGE_5003", "VARIABLE_CHANGE_5004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_10(context, evt)
if 6 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_10(context, evt)
-- 将本组内变量名为 "monsterdone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gadgetdone", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "monsterdone") + ScriptLib.GetGroupVariableValue(context, "gadgetdone") == 2 then
-- 设置随机任务选项
ScriptLib.FinishRandTask(context, 5, true)
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 将本组内变量名为 "monsterdone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "monsterdone", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "monsterdone") + ScriptLib.GetGroupVariableValue(context, "gadgetdone") == 2 then
-- 设置随机任务选项
ScriptLib.FinishRandTask(context, 5, true)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_25(context, evt)
if evt.param1 ~= 25 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_25(context, evt)
-- 调用提示id为 1110016 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"monsterdone"为1
if ScriptLib.GetGroupVariableValue(context, "monsterdone") ~= 1 then
return false
end
-- 判断变量"gadgetdone"为0
if ScriptLib.GetGroupVariableValue(context, "gadgetdone") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5003(context, evt)
-- 创建id为5002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"gadgetdone"为1
if ScriptLib.GetGroupVariableValue(context, "gadgetdone") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5004(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,197 @@
-- 基础信息
local base_info = {
group_id = 139999006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 33, monster_id = 21010201, pos = { x = 1.714, y = 0.072, z = 0.095 }, rot = { x = 0.000, y = 214.664, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 34, monster_id = 21010201, pos = { x = 2.726, y = 0.139, z = 1.447 }, rot = { x = 0.000, y = 214.664, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9003, area_id = 1 },
{ config_id = 35, monster_id = 21010201, pos = { x = 0.014, y = 0.019, z = 1.591 }, rot = { x = 0.000, y = 214.664, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 6001, monster_id = 21030201, pos = { x = 1.106, y = 0.061, z = 2.560 }, rot = { x = 0.112, y = 210.190, z = 0.109 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, pose_id = 9012, area_id = 1 },
{ config_id = 6002, monster_id = 21020201, pos = { x = 0.263, y = 0.109, z = 3.626 }, rot = { x = 0.000, y = 170.966, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 },
{ config_id = 6003, monster_id = 21020101, pos = { x = 1.833, y = 0.057, z = 3.719 }, rot = { x = 0.000, y = 217.247, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7, gadget_id = 70300089, pos = { x = 0.660, y = -0.139, z = -1.270 }, rot = { x = 0.000, y = 305.453, z = 0.000 }, level = 1, area_id = 1 },
{ config_id = 8, gadget_id = 70300089, pos = { x = -1.089, y = -0.074, z = 0.187 }, rot = { x = 0.000, y = 305.453, z = 0.000 }, level = 1, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 26, shape = RegionShape.SPHERE, radius = 50, pos = { x = 0.057, y = 0.003, z = 0.090 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000026, name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26", forbid_guest = false },
{ config_id = 1000032, name = "ANY_GADGET_DIE_32", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_32", action = "action_EVENT_ANY_GADGET_DIE_32" },
{ config_id = 1006033, name = "ANY_GADGET_DIE_6033", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6033", action = "action_EVENT_ANY_GADGET_DIE_6033" }
}
-- 变量
variables = {
{ config_id = 1, name = "is_7", value = 0, no_refresh = false },
{ config_id = 2, name = "is_8", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 33, 34, 35 },
gadgets = { 7, 8 },
regions = { 26 },
triggers = { "ENTER_REGION_26", "ANY_GADGET_DIE_32", "ANY_GADGET_DIE_6033" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 33, 35, 6001 },
gadgets = { 7, 8 },
regions = { 26 },
triggers = { "ENTER_REGION_26", "ANY_GADGET_DIE_32", "ANY_GADGET_DIE_6033" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 33, 35, 6002 },
gadgets = { 7, 8 },
regions = { 26 },
triggers = { "ENTER_REGION_26", "ANY_GADGET_DIE_32", "ANY_GADGET_DIE_6033" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 33, 35, 6003 },
gadgets = { 7, 8 },
regions = { 26 },
triggers = { "ENTER_REGION_26", "ANY_GADGET_DIE_32", "ANY_GADGET_DIE_6033" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_26(context, evt)
if evt.param1 ~= 26 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_26(context, evt)
-- 调用提示id为 1110019 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_32(context, evt)
if 7 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_32(context, evt)
-- 将本组内变量名为 "is_7" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "is_7", 1) then
return -1
end
-- 获取本组内变量名? "is_7" 的变量值
if ScriptLib.GetGroupVariableValue(context, "is_7") + ScriptLib.GetGroupVariableValue(context, "is_8") == 2 then
ScriptLib.FinishRandTask(context, 6, true)
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6033(context, evt)
if 8 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6033(context, evt)
-- 将本组内变量名为 "is_7" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "is_8", 1) then
return -1
end
-- 获取本组内变量名? "is_7" 的变量值
if ScriptLib.GetGroupVariableValue(context, "is_7") + ScriptLib.GetGroupVariableValue(context, "is_8") == 2 then
ScriptLib.FinishRandTask(context, 6, true)
end
return 0
end
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 139999007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 36, monster_id = 28020301, pos = { x = 0.099, y = 0.008, z = 0.317 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, area_id = 1 },
{ config_id = 37, monster_id = 21010101, pos = { x = -1.193, y = 0.291, z = 2.013 }, rot = { x = 0.000, y = 133.321, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 38, monster_id = 21010101, pos = { x = 2.192, y = 0.006, z = -0.065 }, rot = { x = 0.000, y = 288.861, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 7001, monster_id = 21010201, pos = { x = 0.467, y = 0.197, z = 2.552 }, rot = { x = 0.000, y = 190.619, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 7002, monster_id = 21010201, pos = { x = 2.060, y = 0.008, z = 0.996 }, rot = { x = 0.000, y = 261.397, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, area_id = 1 },
{ config_id = 7003, monster_id = 21010201, pos = { x = -1.601, y = 0.168, z = 0.930 }, rot = { x = 0.000, y = 119.228, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, area_id = 1 },
{ config_id = 7004, monster_id = 21010201, pos = { x = -0.012, y = 0.014, z = -1.571 }, rot = { x = 0.000, y = 1.248, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 27, shape = RegionShape.SPHERE, radius = 50, pos = { x = 0.480, y = 0.005, z = 0.384 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000020, name = "ANY_MONSTER_DIE_20", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20", action = "action_EVENT_ANY_MONSTER_DIE_20" },
{ config_id = 1000027, name = "ENTER_REGION_27", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_27", action = "action_EVENT_ENTER_REGION_27", forbid_guest = false }
}
-- 变量
variables = {
{ config_id = 1, name = "iskill37", value = 0, no_refresh = false },
{ config_id = 2, name = "iskill38", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 36, 37, 38 },
gadgets = { },
regions = { 27 },
triggers = { "ANY_MONSTER_DIE_20", "ENTER_REGION_27" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 36, 7001, 7002, 7003, 7004 },
gadgets = { },
regions = { 27 },
triggers = { "ANY_MONSTER_DIE_20", "ENTER_REGION_27" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 7, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_27(context, evt)
if evt.param1 ~= 27 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_27(context, evt)
-- 调用提示id为 1110022 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110022) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,279 @@
-- 基础信息
local base_info = {
group_id = 139999008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39, monster_id = 20010901, pos = { x = 2.854, y = 0.073, z = 0.055 }, rot = { x = 0.000, y = 269.141, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, area_id = 1 },
{ config_id = 40, monster_id = 20010801, pos = { x = 0.754, y = -0.003, z = 2.002 }, rot = { x = 0.000, y = 198.999, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 41, monster_id = 20010801, pos = { x = -0.964, y = -0.029, z = 1.892 }, rot = { x = 0.000, y = 155.669, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 8001, monster_id = 20010801, pos = { x = -1.452, y = 0.019, z = -0.694 }, rot = { x = 0.000, y = 73.839, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 8003, monster_id = 20011301, pos = { x = -1.786, y = 0.000, z = 0.853 }, rot = { x = 0.000, y = 89.847, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, affix = { 1007 }, area_id = 1 },
{ config_id = 8004, monster_id = 20011201, pos = { x = -0.945, y = 0.006, z = -1.136 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 8005, monster_id = 20011201, pos = { x = 0.228, y = -0.033, z = 2.563 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 8006, monster_id = 20011201, pos = { x = 0.969, y = 0.014, z = 0.782 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 8007, monster_id = 20011201, pos = { x = -2.074, y = 0.029, z = -0.744 }, rot = { x = 0.000, y = 21.133, z = 0.000 }, level = 1, drop_tag = "史莱姆", pose_id = 901, area_id = 1 },
{ config_id = 8009, monster_id = 20011501, pos = { x = -1.806, y = -0.021, z = 2.187 }, rot = { x = 0.000, y = 124.773, z = 0.000 }, level = 1, drop_tag = "大史莱姆", disableWander = true, area_id = 1 },
{ config_id = 8010, monster_id = 20011401, pos = { x = -2.421, y = 0.023, z = 0.186 }, rot = { x = 0.000, y = 57.932, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 8011, monster_id = 20011401, pos = { x = -1.324, y = 0.017, z = -1.366 }, rot = { x = 0.000, y = 57.932, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 8012, monster_id = 20011401, pos = { x = 0.012, y = -0.016, z = -0.775 }, rot = { x = 0.000, y = 321.679, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 },
{ config_id = 8013, monster_id = 20011401, pos = { x = 0.105, y = -0.031, z = 1.824 }, rot = { x = 0.000, y = 57.932, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9, gadget_id = 70210112, pos = { x = -0.078, y = 1.218, z = -0.139 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 28, shape = RegionShape.SPHERE, radius = 50, pos = { x = -0.396, y = -0.013, z = 0.281 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000014, name = "ANY_GADGET_DIE_14", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_14", action = "action_EVENT_ANY_GADGET_DIE_14" },
{ config_id = 1000015, name = "ANY_MONSTER_DIE_15", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15", action = "action_EVENT_ANY_MONSTER_DIE_15" },
{ config_id = 1000028, name = "ENTER_REGION_28", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_28", action = "action_EVENT_ENTER_REGION_28", forbid_guest = false },
{ config_id = 1008002, name = "ANY_GADGET_DIE_8002", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8002", action = "action_EVENT_ANY_GADGET_DIE_8002" },
{ config_id = 1008008, name = "ANY_GADGET_DIE_8008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8008", action = "action_EVENT_ANY_GADGET_DIE_8008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9 },
regions = { 28 },
triggers = { "ANY_GADGET_DIE_14", "ANY_MONSTER_DIE_15", "ENTER_REGION_28" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 9 },
regions = { 28 },
triggers = { "ANY_MONSTER_DIE_15", "ENTER_REGION_28", "ANY_GADGET_DIE_8002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 9 },
regions = { 28 },
triggers = { "ANY_MONSTER_DIE_15", "ENTER_REGION_28", "ANY_GADGET_DIE_8008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_14(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_14(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 40, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 41, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 39, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 8, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_28(context, evt)
if evt.param1 ~= 28 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_28(context, evt)
-- 调用提示id为 1110025 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110025) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8002(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8002(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8008(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8008(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8009, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8010, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8011, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8012, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8013, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 139999009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 42, monster_id = 21010201, pos = { x = -1.931, y = -0.011, z = -0.267 }, rot = { x = 0.000, y = 71.258, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 43, monster_id = 21010201, pos = { x = 2.196, y = 0.113, z = -0.133 }, rot = { x = 0.000, y = 258.020, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9010, area_id = 1 },
{ config_id = 44, monster_id = 21010201, pos = { x = 0.483, y = 0.303, z = 1.407 }, rot = { x = 0.000, y = 181.254, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true, pose_id = 9011, area_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10, gadget_id = 70300092, pos = { x = -0.057, y = -0.119, z = -0.016 }, rot = { x = 0.000, y = 35.923, z = 0.000 }, level = 1, area_id = 1 }
}
-- 区域
regions = {
{ config_id = 29, shape = RegionShape.SPHERE, radius = 50, pos = { x = 0.939, y = 1.405, z = -0.503 }, area_id = 1 }
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "ANY_GADGET_DIE_16", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_16", action = "action_EVENT_ANY_GADGET_DIE_16" },
{ config_id = 1000017, name = "ANY_MONSTER_DIE_17", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_17", action = "action_EVENT_ANY_MONSTER_DIE_17" },
{ config_id = 1000029, name = "ENTER_REGION_29", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29", action = "action_EVENT_ENTER_REGION_29", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 42, 43, 44 },
gadgets = { 10 },
regions = { 29 },
triggers = { "ANY_MONSTER_DIE_17", "ENTER_REGION_29" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_16(context, evt)
if 10 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_16(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 9, false)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_17(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17(context, evt)
-- 设置操作台选项
ScriptLib.FinishRandTask(context, 9, true)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_29(context, evt)
if evt.param1 ~= 29 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_29(context, evt)
-- 调用提示id为 1110030 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110030) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end