添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -816.0, z = -920.2 },
size = { x = 3016.2, z = 2181.2 },
born_pos = { x = -138.617, y = -10.940, z = -207.347 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -42.76276,
city_id = 1,
vision_anchor = { x = -816.0, z = -920.2 }
}
-- 所有的区块
blocks = { 50007 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -816.0, z = -920.2 }, max = { x = 2200.2, z = 1261.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 250007001, refresh_id = 1, pos = { x = -217.443, y = -11.000, z = 15.917 } },
{ id = 250007002, refresh_id = 1, pos = { x = -217.057, y = -11.753, z = 30.478 } },
{ id = 250007003, refresh_id = 1002, pos = { x = -219.889, y = -11.000, z = 29.673 } },
{ id = 250007004, refresh_id = 1001, pos = { x = -50.381, y = -11.000, z = -130.284 } },
{ id = 250007005, refresh_id = 1001, pos = { x = -53.651, y = -10.626, z = -214.671 } },
{ id = 250007006, refresh_id = 1, pos = { x = -213.948, y = -11.000, z = -292.086 } },
{ id = 250007007, refresh_id = 1, pos = { x = -293.107, y = -11.000, z = -292.804 } },
{ id = 250007008, refresh_id = 1, pos = { x = -125.686, y = -10.681, z = -293.732 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 250007001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70350003, pos = { x = -222.543, y = -11.000, z = 23.712 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2, gadget_id = 70350002, pos = { x = -219.683, y = -11.000, z = 14.153 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1, 2 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 250007002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3, gadget_id = 70360002, pos = { x = -217.575, y = -11.030, z = 30.509 }, rot = { x = 0.000, y = 89.744, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
{ config_id = 1000002, name = "SELECT_OPTION_2", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2", action = "action_EVENT_SELECT_OPTION_2", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3 },
regions = { },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 3 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {105}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2(context, evt)
if 3 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2(context, evt)
-- 将configid为 3 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250007003, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 删除指定group 250007002 ;指定config3;物件身上指定option105
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250007002, 3, 105) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 250007003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010201, pos = { x = -222.790, y = -11.000, z = 21.676 }, rot = { x = 0.000, y = 38.720, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3002, monster_id = 21010201, pos = { x = -227.083, y = -11.000, z = 29.810 }, rot = { x = 0.000, y = 89.832, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3003, monster_id = 21010201, pos = { x = -223.244, y = -11.000, z = 37.098 }, rot = { x = 0.000, y = 135.419, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3004, monster_id = 21020101, pos = { x = -228.655, y = -11.000, z = 29.821 }, rot = { x = 0.000, y = 92.136, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3005, monster_id = 21010301, pos = { x = -224.563, y = -11.000, z = 21.678 }, rot = { x = 0.000, y = 36.945, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3006, monster_id = 21010301, pos = { x = -224.749, y = -11.000, z = 36.529 }, rot = { x = 0.000, y = 120.635, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3007, monster_id = 21030101, pos = { x = -229.222, y = -11.000, z = 21.518 }, rot = { x = 0.000, y = 52.547, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3008, monster_id = 21030101, pos = { x = -229.207, y = -11.000, z = 37.077 }, rot = { x = 0.000, y = 118.704, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3009, gadget_id = 70211001, pos = { x = -240.320, y = -11.000, z = 22.666 }, rot = { x = 0.000, y = 89.840, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 3010, gadget_id = 70220010, pos = { x = -224.205, y = -11.000, z = 28.844 }, rot = { x = 0.000, y = 96.048, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000003, name = "ANY_MONSTER_DIE_3", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3", action = "action_EVENT_ANY_MONSTER_DIE_3" },
{ config_id = 1000004, name = "ANY_MONSTER_LIVE_4", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4", action = "action_EVENT_ANY_MONSTER_LIVE_4", trigger_count = 0 },
{ config_id = 1000005, name = "CHALLENGE_FAIL_5", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5" },
{ config_id = 1000006, name = "DUNGEON_SETTLE_6", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_6", action = "action_EVENT_DUNGEON_SETTLE_6" },
{ config_id = 1000007, name = "ANY_GADGET_DIE_7", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7", action = "action_EVENT_ANY_GADGET_DIE_7", trigger_count = 0 },
{ config_id = 1000008, name = "TIMER_EVENT_8", event = EventType.EVENT_TIMER_EVENT, source = "createitself", condition = "", action = "action_EVENT_TIMER_EVENT_8", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 3001, 3002, 3003 },
gadgets = { 3010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3", "ANY_MONSTER_LIVE_4", "CHALLENGE_FAIL_5", "ANY_GADGET_DIE_7", "TIMER_EVENT_8" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 判断剩余怪物数量是否是1
if ScriptLib.GetGroupMonsterCount(context) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4(context, evt)
-- 创建编号为1003(该挑战的识别id),挑战内容为159的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1003, 159, 60, 250007003, 8, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5(context, evt)
-- 改变指定group组250007002中, configid为3的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250007002, 3, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250007002, 3, {105}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250007003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_6(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_6(context, evt)
-- 创生gadget 3009
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7(context, evt)
if 3010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7(context, evt)
-- 延迟20秒后,向groupId为:250007003的对象,请求一次调用,并将string参数:"createitself" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250007003, "createitself", 20) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8(context, evt)
-- 创生gadget 3010
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,493 @@
-- 基础信息
local base_info = {
group_id = 250007004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21010101, pos = { x = -46.738, y = -11.000, z = -125.346 }, rot = { x = 0.000, y = 223.679, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 4002, monster_id = 21010101, pos = { x = -54.903, y = -11.000, z = -130.114 }, rot = { x = 0.000, y = 98.766, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 4003, monster_id = 21010601, pos = { x = -53.956, y = -3.999, z = -121.329 }, rot = { x = 0.000, y = 132.263, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 4004, monster_id = 21010601, pos = { x = -55.275, y = -3.999, z = -137.608 }, rot = { x = 0.000, y = 29.746, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 4005, monster_id = 21010601, pos = { x = -42.350, y = -3.999, z = -131.140 }, rot = { x = 0.000, y = 274.443, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 4006, monster_id = 21030201, pos = { x = -55.516, y = -11.000, z = -130.809 }, rot = { x = 0.000, y = 76.414, z = 0.000 }, level = 10 },
{ config_id = 4007, monster_id = 21030201, pos = { x = -46.435, y = -11.000, z = -130.028 }, rot = { x = 0.000, y = 257.968, z = 0.000 }, level = 10 },
{ config_id = 4008, monster_id = 21010101, pos = { x = -47.538, y = -11.000, z = -136.907 }, rot = { x = 0.000, y = 322.397, z = 0.000 }, level = 10, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4009, gadget_id = 70360002, pos = { x = -50.296, y = -11.000, z = -130.292 }, rot = { x = 0.000, y = 270.052, z = 0.000 }, level = 1 },
{ config_id = 4010, gadget_id = 70211001, pos = { x = -44.356, y = -11.000, z = -130.336 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 4011, gadget_id = 70900299, pos = { x = -50.726, y = -10.668, z = -130.452 }, rot = { x = 0.000, y = 274.660, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000009, name = "GADGET_CREATE_9", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9", action = "action_EVENT_GADGET_CREATE_9", trigger_count = 0 },
{ config_id = 1000010, name = "SELECT_OPTION_10", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10", action = "action_EVENT_SELECT_OPTION_10", trigger_count = 0, forbid_guest = false },
{ config_id = 1000011, name = "ANY_MONSTER_LIVE_11", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_11", action = "action_EVENT_ANY_MONSTER_LIVE_11", trigger_count = 0 },
{ config_id = 1000012, name = "CHALLENGE_FAIL_12", event = EventType.EVENT_CHALLENGE_FAIL, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_FAIL_12", trigger_count = 0 },
{ config_id = 1000013, name = "CHALLENGE_SUCCESS_13", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_13" },
{ config_id = 1000014, name = "VARIABLE_CHANGE_14", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_14", action = "action_EVENT_VARIABLE_CHANGE_14", trigger_count = 0 },
{ config_id = 1000015, name = "VARIABLE_CHANGE_15", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_15", action = "action_EVENT_VARIABLE_CHANGE_15", trigger_count = 0 },
{ config_id = 1000016, name = "ANY_MONSTER_DIE_16", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16", action = "action_EVENT_ANY_MONSTER_DIE_16", trigger_count = 0 },
{ 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", trigger_count = 0 },
{ config_id = 1000018, name = "ANY_MONSTER_DIE_18", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_18", action = "action_EVENT_ANY_MONSTER_DIE_18", trigger_count = 0 },
{ config_id = 1000019, name = "ANY_MONSTER_DIE_19", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19", action = "action_EVENT_ANY_MONSTER_DIE_19", trigger_count = 0 },
{ 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", trigger_count = 0 },
{ config_id = 1000021, name = "ANY_MONSTER_DIE_21", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21", action = "action_EVENT_ANY_MONSTER_DIE_21", trigger_count = 0 },
{ config_id = 1000022, name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22", trigger_count = 0 },
{ config_id = 1000023, name = "VARIABLE_CHANGE_23", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_23", action = "action_EVENT_VARIABLE_CHANGE_23", trigger_count = 0 },
{ config_id = 1000024, name = "VARIABLE_CHANGE_24", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_24", action = "action_EVENT_VARIABLE_CHANGE_24", trigger_count = 0 },
{ config_id = 1000025, name = "VARIABLE_CHANGE_25", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_25", action = "action_EVENT_VARIABLE_CHANGE_25", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "deadmonstercount", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4009 },
regions = { },
triggers = { "GADGET_CREATE_9", "SELECT_OPTION_10", "ANY_MONSTER_LIVE_11", "CHALLENGE_FAIL_12", "CHALLENGE_SUCCESS_13", "VARIABLE_CHANGE_14", "VARIABLE_CHANGE_15", "ANY_MONSTER_DIE_16", "ANY_MONSTER_DIE_17", "ANY_MONSTER_DIE_18", "ANY_MONSTER_DIE_19", "ANY_MONSTER_DIE_20", "ANY_MONSTER_DIE_21", "ANY_MONSTER_DIE_22", "VARIABLE_CHANGE_23", "VARIABLE_CHANGE_24", "VARIABLE_CHANGE_25" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_9(context, evt)
if 4009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {105}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_10(context, evt)
if 4009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10(context, evt)
-- 将configid为 4009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 创建id为4011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_11(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_11(context, evt)
-- 创建编号为1003(该挑战的识别id),挑战内容为159的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1003, 159, 60, 250007004, 8, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_12(context, evt)
-- 创建id为4009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250007004, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_13(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为4010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为2
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_15(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为3
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_15(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16(context, evt)
if 4002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_17(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_18(context, evt)
if 4003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_18(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
if 4005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21(context, evt)
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22(context, evt)
if 4007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_23(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为2
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_23(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_24(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为4
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_24(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_25(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为5
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_25(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,494 @@
-- 基础信息
local base_info = {
group_id = 250007005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17, monster_id = 21010101, pos = { x = -65.030, y = -10.477, z = -218.940 }, rot = { x = 0.000, y = 322.177, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 18, monster_id = 21010101, pos = { x = -56.979, y = -7.159, z = -227.229 }, rot = { x = 0.000, y = 317.532, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 19, monster_id = 21010601, pos = { x = -48.640, y = -6.835, z = -218.522 }, rot = { x = 0.000, y = 263.773, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 20, monster_id = 21010601, pos = { x = -38.027, y = -6.645, z = -227.533 }, rot = { x = 0.000, y = 282.215, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 21, monster_id = 21010601, pos = { x = -49.474, y = -10.396, z = -208.829 }, rot = { x = 0.000, y = 249.078, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 22, monster_id = 21010601, pos = { x = -65.571, y = -10.396, z = -199.045 }, rot = { x = 0.000, y = 138.542, z = 0.000 }, level = 10 },
{ config_id = 23, monster_id = 21010601, pos = { x = -38.766, y = -8.436, z = -208.837 }, rot = { x = 0.000, y = 257.968, z = 0.000 }, level = 10 },
{ config_id = 24, monster_id = 21010101, pos = { x = -57.658, y = -8.436, z = -208.523 }, rot = { x = 0.000, y = 239.244, z = 0.000 }, level = 10, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13, gadget_id = 70360002, pos = { x = -78.504, y = -11.000, z = -213.546 }, rot = { x = 0.000, y = 270.052, z = 0.000 }, level = 1 },
{ config_id = 14, gadget_id = 70211001, pos = { x = -75.881, y = -11.000, z = -213.479 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 15, gadget_id = 70900299, pos = { x = -53.997, y = 1.588, z = -214.839 }, rot = { x = 0.000, y = 274.660, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000026, name = "GADGET_CREATE_26", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_26", action = "action_EVENT_GADGET_CREATE_26", trigger_count = 0 },
{ config_id = 1000027, name = "SELECT_OPTION_27", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_27", action = "action_EVENT_SELECT_OPTION_27", trigger_count = 0, forbid_guest = false },
{ config_id = 1000028, name = "ANY_MONSTER_LIVE_28", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_28", action = "action_EVENT_ANY_MONSTER_LIVE_28" },
{ config_id = 1000029, name = "CHALLENGE_FAIL_29", event = EventType.EVENT_CHALLENGE_FAIL, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_FAIL_29", trigger_count = 0 },
{ config_id = 1000030, name = "CHALLENGE_SUCCESS_30", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_30", trigger_count = 0 },
{ config_id = 1000031, name = "VARIABLE_CHANGE_31", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_31", action = "action_EVENT_VARIABLE_CHANGE_31", trigger_count = 0 },
{ config_id = 1000032, name = "VARIABLE_CHANGE_32", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_32", action = "action_EVENT_VARIABLE_CHANGE_32", trigger_count = 0 },
{ config_id = 1000033, name = "ANY_MONSTER_DIE_33", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33", action = "action_EVENT_ANY_MONSTER_DIE_33" },
{ config_id = 1000034, name = "ANY_MONSTER_DIE_34", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_34", action = "action_EVENT_ANY_MONSTER_DIE_34", trigger_count = 0 },
{ config_id = 1000035, name = "ANY_MONSTER_DIE_35", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_35", action = "action_EVENT_ANY_MONSTER_DIE_35", trigger_count = 0 },
{ config_id = 1000036, name = "ANY_MONSTER_DIE_36", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_36", action = "action_EVENT_ANY_MONSTER_DIE_36", trigger_count = 0 },
{ config_id = 1000037, name = "ANY_MONSTER_DIE_37", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_37", action = "action_EVENT_ANY_MONSTER_DIE_37", trigger_count = 0 },
{ config_id = 1000038, name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38", trigger_count = 0 },
{ config_id = 1000039, name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39", trigger_count = 0 },
{ config_id = 1000040, name = "VARIABLE_CHANGE_40", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_40", action = "action_EVENT_VARIABLE_CHANGE_40", trigger_count = 0 },
{ config_id = 1000041, name = "VARIABLE_CHANGE_41", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_41", action = "action_EVENT_VARIABLE_CHANGE_41", trigger_count = 0 },
{ config_id = 1000042, name = "VARIABLE_CHANGE_42", event = EventType.EVENT_VARIABLE_CHANGE, source = "deadmonstercount", condition = "condition_EVENT_VARIABLE_CHANGE_42", action = "action_EVENT_VARIABLE_CHANGE_42", trigger_count = 0 },
{ config_id = 1000043, name = "ANY_MONSTER_DIE_43", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43", action = "action_EVENT_ANY_MONSTER_DIE_43" }
}
-- 变量
variables = {
{ config_id = 1, name = "deadmonstercount", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13 },
regions = { },
triggers = { "GADGET_CREATE_26", "SELECT_OPTION_27", "ANY_MONSTER_LIVE_28", "CHALLENGE_FAIL_29", "CHALLENGE_SUCCESS_30", "VARIABLE_CHANGE_31", "VARIABLE_CHANGE_32", "ANY_MONSTER_DIE_33", "ANY_MONSTER_DIE_34", "ANY_MONSTER_DIE_35", "ANY_MONSTER_DIE_36", "ANY_MONSTER_DIE_37", "ANY_MONSTER_DIE_38", "ANY_MONSTER_DIE_39", "VARIABLE_CHANGE_40", "VARIABLE_CHANGE_41", "VARIABLE_CHANGE_42" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_26(context, evt)
if 13 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_26(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {105}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_27(context, evt)
if 13 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_27(context, evt)
-- 将configid为 13 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 17, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 18, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 24, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 创建id为15的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 15 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_28(context, evt)
if 17 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_28(context, evt)
-- 创建编号为1003(该挑战的识别id),挑战内容为159的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1003, 159, 60, 250007005, 8, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_29(context, evt)
-- 创建id为13的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250007005, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_30(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为14的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_31(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为1
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_31(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 19, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_32(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为2
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_32(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33(context, evt)
if 17 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_34(context, evt)
if 18 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_34(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_35(context, evt)
if 24 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_35(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_36(context, evt)
if 19 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_36(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_37(context, evt)
if 20 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_37(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_38(context, evt)
if 21 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_39(context, evt)
if 22 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_39(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_40(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为3
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_40(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 21, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_41(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为4
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_41(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 23, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_42(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadmonstercount"为5
if ScriptLib.GetGroupVariableValue(context, "deadmonstercount") ~= 5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_42(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 20, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43(context, evt)
if 23 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43(context, evt)
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadmonstercount", 1) then
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 250007006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16, gadget_id = 70900281, pos = { x = -226.679, y = -11.000, z = -289.361 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 17, gadget_id = 70900281, pos = { x = -227.269, y = -11.000, z = -295.770 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 18, gadget_id = 70900281, pos = { x = -227.263, y = -9.998, z = -295.756 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 19, gadget_id = 70900281, pos = { x = -227.388, y = -11.080, z = -302.796 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 20, gadget_id = 70900281, pos = { x = -227.383, y = -10.078, z = -302.791 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 21, gadget_id = 70900281, pos = { x = -227.376, y = -9.079, z = -302.789 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 22, gadget_id = 70900281, pos = { x = -226.370, y = -11.023, z = -309.508 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 23, gadget_id = 70900281, pos = { x = -226.364, y = -10.022, z = -309.502 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 24, gadget_id = 70900281, pos = { x = -226.358, y = -9.022, z = -309.500 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 25, gadget_id = 70900281, pos = { x = -226.494, y = -7.762, z = -309.521 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 250007007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 26, gadget_id = 70900244, pos = { x = -292.543, y = -11.000, z = -304.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27, gadget_id = 70900244, pos = { x = -304.699, y = -11.000, z = -292.864 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 28, gadget_id = 70900244, pos = { x = -280.275, y = -11.000, z = -292.922 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 29, gadget_id = 70360002, pos = { x = -292.999, y = -11.000, z = -292.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000044, name = "GADGET_CREATE_44", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_44", action = "action_EVENT_GADGET_CREATE_44", trigger_count = 0 },
{ config_id = 1000045, name = "SELECT_OPTION_45", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_45", action = "action_EVENT_SELECT_OPTION_45", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 26, 27, 28, 29 },
regions = { },
triggers = { "GADGET_CREATE_44", "SELECT_OPTION_45" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_44(context, evt)
if 29 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_44(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_45(context, evt)
if 29 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_45(context, evt)
-- 将configid为 29 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 26 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 26, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 27 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 28 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 28, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 29 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,216 @@
-- 基础信息
local base_info = {
group_id = 250007008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 30, gadget_id = 70900244, pos = { x = -127.089, y = -10.884, z = -314.633 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 31, gadget_id = 70900244, pos = { x = -132.322, y = -10.884, z = -314.422 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32, gadget_id = 70900244, pos = { x = -121.943, y = -10.884, z = -314.666 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33, gadget_id = 70360002, pos = { x = -126.758, y = -10.845, z = -307.882 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34, gadget_id = 70900246, pos = { x = -121.914, y = -11.000, z = -304.592 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35, gadget_id = 70900246, pos = { x = -126.837, y = -11.000, z = -304.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 36, gadget_id = 70900246, pos = { x = -132.188, y = -10.900, z = -304.383 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000046, name = "GADGET_CREATE_46", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_46", action = "action_EVENT_GADGET_CREATE_46", trigger_count = 0 },
{ config_id = 1000047, name = "SELECT_OPTION_47", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47", action = "action_EVENT_SELECT_OPTION_47", trigger_count = 0, forbid_guest = false },
{ config_id = 1000048, name = "TIMER_EVENT_48", event = EventType.EVENT_TIMER_EVENT, source = "WaitFor2", condition = "", action = "action_EVENT_TIMER_EVENT_48", trigger_count = 0 },
{ config_id = 1000049, name = "TIMER_EVENT_49", event = EventType.EVENT_TIMER_EVENT, source = "WaitFor3", condition = "", action = "action_EVENT_TIMER_EVENT_49", trigger_count = 0 },
{ config_id = 1000050, name = "CLIENT_EXECUTE_50", event = EventType.EVENT_CLIENT_EXECUTE, source = "Badminton_Rule", condition = "", action = "action_EVENT_CLIENT_EXECUTE_50", trigger_count = 0 },
{ config_id = 1000051, name = "VARIABLE_CHANGE_51", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_51", action = "action_EVENT_VARIABLE_CHANGE_51", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "FailTimes", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 30, 31, 32, 33, 34, 35, 36 },
regions = { },
triggers = { "GADGET_CREATE_46", "SELECT_OPTION_47", "TIMER_EVENT_48", "TIMER_EVENT_49", "CLIENT_EXECUTE_50", "VARIABLE_CHANGE_51" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_46(context, evt)
if 33 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_46(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47(context, evt)
if 33 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47(context, evt)
-- 将configid为 33 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 33, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 30 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 30, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟4秒后,向groupId为:250007008的对象,请求一次调用,并将string参数:"WaitFor2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250007008, "WaitFor2", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 延迟8秒后,向groupId为:250007008的对象,请求一次调用,并将string参数:"WaitFor3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250007008, "WaitFor3", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 33 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_48(context, evt)
-- 将configid为 31 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_49(context, evt)
-- 将configid为 32 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 32, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_50(context, evt)
--羽球落地或出界后把羽毛球发射器设为Default
if evt.param1 == defs.gadget_id_3 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.Default) then
return -1
end
end
-- 针对当前group内变量名为 "FailTimes" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "FailTimes", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_51(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"FailTimes"为3
if ScriptLib.GetGroupVariableValue(context, "FailTimes") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_51(context, evt)
-- 创建id为33的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 33 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 367.1353,
"y": -20.16953,
"z": 173.6499
},
"rot": {
"x": 0.0,
"y": 89.6421,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}