Files
hk4e-go/gdconf/game_data_config/lua/scene/3/scene3_group133104126.lua
T
2022-11-30 00:00:20 +08:00

105 lines
2.8 KiB
Go

-- 基础信息
local base_info = {
group_id = 133104126
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 333, monster_id = 20010801, pos = { x = 582.742, y = 198.900, z = 293.879 }, rot = { x = 0.000, y = 14.657, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 9 },
{ config_id = 334, monster_id = 20010801, pos = { x = 577.854, y = 198.900, z = 292.046 }, rot = { x = 0.000, y = 14.657, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 9 },
{ config_id = 126001, monster_id = 20010901, pos = { x = 581.278, y = 198.900, z = 290.915 }, rot = { x = 0.000, y = 51.747, z = 0.000 }, level = 19, drop_tag = "大史莱姆", area_id = 9 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 340, shape = RegionShape.SPHERE, radius = 5, pos = { x = 582.483, y = 198.670, z = 292.743 }, area_id = 9 }
}
-- 触发器
triggers = {
{ config_id = 1000340, name = "ENTER_REGION_340", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_340" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 340 },
triggers = { "ENTER_REGION_340" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_340(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 126001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 333, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 334, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 335, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end