101 lines
2.5 KiB
Go
101 lines
2.5 KiB
Go
-- 基础信息
|
|
local base_info = {
|
|
group_id = 166001390
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
{ config_id = 390002, monster_id = 28050301, pos = { x = 919.745, y = 710.364, z = 244.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 36, drop_tag = "采集动物", area_id = 300 },
|
|
{ config_id = 390003, monster_id = 28050301, pos = { x = 918.757, y = 710.278, z = 244.128 }, rot = { x = 0.000, y = 259.589, z = 0.000 }, level = 36, drop_tag = "采集动物", area_id = 300 }
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 390001, gadget_id = 70220048, pos = { x = 919.550, y = 710.320, z = 244.541 }, rot = { x = 0.000, y = 324.832, z = 0.000 }, level = 36, area_id = 300 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1390004, name = "ANY_GADGET_DIE_390004", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_390004", action = "action_EVENT_ANY_GADGET_DIE_390004" }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 390001 },
|
|
regions = { },
|
|
triggers = { "ANY_GADGET_DIE_390004" },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_ANY_GADGET_DIE_390004(context, evt)
|
|
if 390001 ~= evt.param1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_ANY_GADGET_DIE_390004(context, evt)
|
|
-- 延迟0秒刷怪
|
|
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 390002, delay_time = 0 }) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
|
|
return -1
|
|
end
|
|
|
|
-- 延迟0秒刷怪
|
|
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 390003, delay_time = 0 }) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |