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

118 lines
3.3 KiB
Go

-- 基础信息
local base_info = {
group_id = 133104129
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 336, monster_id = 20011201, pos = { x = 100.219, y = 256.599, z = 185.593 }, rot = { x = 0.000, y = 62.459, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 7 },
{ config_id = 337, monster_id = 20011201, pos = { x = 100.361, y = 256.618, z = 182.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 7 },
{ config_id = 338, monster_id = 20011201, pos = { x = 104.397, y = 256.242, z = 185.102 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 7 },
{ config_id = 339, monster_id = 20011201, pos = { x = 103.041, y = 256.599, z = 181.027 }, rot = { x = 0.000, y = 79.668, z = 0.000 }, level = 19, drop_tag = "史莱姆", area_id = 7 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 214, shape = RegionShape.SPHERE, radius = 10, pos = { x = 102.646, y = 256.464, z = 184.181 }, area_id = 7 }
}
-- 触发器
triggers = {
{ config_id = 1000214, name = "ENTER_REGION_214", event = EventType.EVENT_ENTER_REGION, source = "1", condition = "condition_EVENT_ENTER_REGION_214", action = "action_EVENT_ENTER_REGION_214" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 214 },
triggers = { "ENTER_REGION_214" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_214(context, evt)
if evt.param1 ~= 214 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_214(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 336, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 337, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 338, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 339, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end