GSServer-CBT/soggy_resources/lua/Scene/20006/scene20006_group220006001.lua

312 lines
10 KiB
Lua
Raw Normal View History

2022-11-21 11:30:31 +03:00
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2, monster_id = 20011201, pos = { x = -1.6, y = 47.0, z = 61.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 3, monster_id = 20011201, pos = { x = 6.5, y = 47.0, z = 64.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 150, gadget_id = 70220003, pos = { x = -8.3, y = 47.0, z = 71.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 151, gadget_id = 70220003, pos = { x = -3.3, y = 47.0, z = 71.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13, shape = RegionShape.SPHERE, radius = 22.65, pos = { x = 0.7, y = 52.0, z = -5.1 } },
{ config_id = 14, shape = RegionShape.SPHERE, radius = 7.48, pos = { x = 12.4, y = 51.0, z = 34.0 } },
{ config_id = 15, shape = RegionShape.SPHERE, radius = 8.52, pos = { x = 46.0, y = 42.0, z = 121.1 } },
{ config_id = 16, shape = RegionShape.SPHERE, radius = 26.06, pos = { x = 214.3, y = 46.1, z = 178.8 } },
{ config_id = 17, shape = RegionShape.CUBIC, size = { x = 37.2, y = 53.1, z = 12.4 }, pos = { x = 237.6, y = 65.4, z = 235.8 } },
{ config_id = 18, shape = RegionShape.CUBIC, size = { x = 50.2, y = 57.2, z = 1.0 }, pos = { x = 190.3, y = 76.0, z = 296.9 } },
{ config_id = 19, shape = RegionShape.CUBIC, size = { x = 17.9, y = 21.4, z = 1.0 }, pos = { x = 189.7, y = 62.3, z = 317.8 } },
{ config_id = 20, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.4, y = 58.5, z = 353.4 } },
{ config_id = 21, shape = RegionShape.SPHERE, radius = 5, pos = { x = 190.4, y = 42.0, z = 144.5 } },
{ config_id = 50, shape = RegionShape.SPHERE, radius = 9.25, pos = { x = 32.9, y = 50.8, z = 41.0 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_13", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13", action = "action_EVENT_ENTER_REGION_13" },
{ name = "ENTER_REGION_14", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14", action = "action_EVENT_ENTER_REGION_14" },
{ name = "ENTER_REGION_15", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15", action = "action_EVENT_ENTER_REGION_15" },
{ name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16", action = "action_EVENT_ENTER_REGION_16" },
{ name = "ENTER_REGION_17", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17", action = "action_EVENT_ENTER_REGION_17" },
{ name = "ENTER_REGION_18", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18", action = "action_EVENT_ENTER_REGION_18" },
{ name = "ENTER_REGION_19", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19", action = "action_EVENT_ENTER_REGION_19" },
{ name = "ENTER_REGION_20", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20", action = "action_EVENT_ENTER_REGION_20" },
{ name = "ENTER_REGION_21", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21", action = "action_EVENT_ENTER_REGION_21" },
{ name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "action_EVENT_ENTER_REGION_50" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 2, 3 },
gadgets = { 150, 151 },
regions = { 13, 14, 15, 16, 17, 18, 19, 20, 21, 50 },
triggers = { "ENTER_REGION_13", "ENTER_REGION_14", "ENTER_REGION_15", "ENTER_REGION_16", "ENTER_REGION_17", "ENTER_REGION_18", "ENTER_REGION_19", "ENTER_REGION_20", "ENTER_REGION_21", "ENTER_REGION_50" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13(context, evt)
if evt.param1 ~= 13 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_13(context, evt)
-- 调用提示id为 1021001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1021001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14(context, evt)
if evt.param1 ~= 14 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_14(context, evt)
-- 调用提示id为 1022001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1022001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15(context, evt)
if evt.param1 ~= 15 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_15(context, evt)
-- 调用提示id为 1023001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1023001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16(context, evt)
if evt.param1 ~= 16 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_16(context, evt)
-- 调用提示id为 1024001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1024001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17(context, evt)
if evt.param1 ~= 17 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_17(context, evt)
-- 调用提示id为 1025001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1025001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_18(context, evt)
if evt.param1 ~= 18 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_18(context, evt)
-- 调用提示id为 1026001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1026001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19(context, evt)
if evt.param1 ~= 19 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_19(context, evt)
-- 调用提示id为 1027001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1027001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_20(context, evt)
if evt.param1 ~= 20 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_20(context, evt)
-- 调用提示id为 1028001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1028001) then
return -1
end
return 0
end
-- 触发条件
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为 1029001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1029001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if evt.param1 ~= 50 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_50(context, evt)
-- 触发镜头注目注目位置为坐标19073311持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=190, y=73, z=311}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end