mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-08-03 10:20:12 +03:00
melon
This commit is contained in:
22
soggy_resources/lua/Scene/50003/scene50003.lua
Normal file
22
soggy_resources/lua/Scene/50003/scene50003.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = 968.0, z = -2132.4 },
|
||||
size = { x = 1097.9, z = 1254.6 },
|
||||
born_pos = { x = 1984.0, y = 197.0, z = -1303.0 },
|
||||
born_rot = { x = 0.0, y = 161.4, z = 0.0 },
|
||||
die_y = -500
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 50003 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = 968.0, z = -2132.4 }, max = { x = 2065.8, z = -877.8 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
@@ -0,0 +1,6 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 250003001, refresh_time = 0, pos = { x = 1979.3, y = 196.5, z = -1303.7 } },
|
||||
{ id = 250003002, refresh_time = 0, pos = { x = 1962.2, y = 197.0, z = -1310.1 } },
|
||||
{ id = 250003003, refresh_time = 0, pos = { x = 1961.5, y = 196.2, z = -1293.0 } }
|
||||
}
|
592
soggy_resources/lua/Scene/50003/scene50003_group250003001.lua
Normal file
592
soggy_resources/lua/Scene/50003/scene50003_group250003001.lua
Normal file
@@ -0,0 +1,592 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1, gadget_id = 70360002, pos = { x = 1975.4, y = 196.4, z = -1306.2 }, rot = { x = 0.0, y = 91.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 2, gadget_id = 70360002, pos = { x = 1976.0, y = 196.6, z = -1303.5 }, rot = { x = 0.0, y = 103.2, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1972.0, y = 196.6, z = -1304.1 } },
|
||||
{ config_id = 2, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1968.4, y = 196.9, z = -1307.2 } },
|
||||
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1968.7, y = 197.0, z = -1311.6 } },
|
||||
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1969.5, y = 197.0, z = -1311.0 } },
|
||||
{ config_id = 5, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1968.2, y = 196.9, z = -1308.3 } },
|
||||
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1966.6, y = 196.9, z = -1307.0 } },
|
||||
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1968.0, y = 196.9, z = -1309.2 } },
|
||||
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1962.6, y = 196.0, z = -1290.1 } },
|
||||
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1971.1, y = 196.4, z = -1301.5 } },
|
||||
{ config_id = 10, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1972.2, y = 196.0, z = -1296.9 } },
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1971.1, y = 196.1, z = -1298.5 } },
|
||||
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1973.5, y = 195.9, z = -1297.1 } },
|
||||
{ config_id = 13, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1974.3, y = 196.1, z = -1299.7 } },
|
||||
{ config_id = 14, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1971.2, y = 196.5, z = -1302.4 } },
|
||||
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1971.4, y = 196.7, z = -1305.4 } },
|
||||
{ config_id = 16, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1971.4, y = 196.8, z = -1307.1 } },
|
||||
{ config_id = 17, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1970.1, y = 196.1, z = -1297.9 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
|
||||
{ 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 },
|
||||
{ name = "SELECT_OPTION_3", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3", action = "action_EVENT_SELECT_OPTION_3", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_5", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5", action = "action_EVENT_SELECT_OPTION_5", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_6", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6", action = "action_EVENT_SELECT_OPTION_6", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_7", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7", action = "action_EVENT_SELECT_OPTION_7", trigger_count = 0 },
|
||||
{ name = "GADGET_CREATE_8", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8", action = "action_EVENT_GADGET_CREATE_8", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_9", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9", action = "action_EVENT_SELECT_OPTION_9", trigger_count = 0 },
|
||||
{ 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 },
|
||||
{ name = "SELECT_OPTION_11", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11", action = "action_EVENT_SELECT_OPTION_11", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_12", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12", action = "action_EVENT_SELECT_OPTION_12", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_13", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_13", action = "action_EVENT_SELECT_OPTION_13", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_14", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14", action = "action_EVENT_SELECT_OPTION_14", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_15", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_15", action = "action_EVENT_SELECT_OPTION_15", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_16", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_16", action = "action_EVENT_SELECT_OPTION_16", trigger_count = 0 },
|
||||
{ name = "SELECT_OPTION_17", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17", action = "action_EVENT_SELECT_OPTION_17", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1, 2 },
|
||||
regions = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 },
|
||||
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_2", "SELECT_OPTION_3", "SELECT_OPTION_4", "SELECT_OPTION_5", "SELECT_OPTION_6", "SELECT_OPTION_7", "GADGET_CREATE_8", "SELECT_OPTION_9", "SELECT_OPTION_10", "SELECT_OPTION_11", "SELECT_OPTION_12", "SELECT_OPTION_13", "SELECT_OPTION_14", "SELECT_OPTION_15", "SELECT_OPTION_16", "SELECT_OPTION_17" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_1(context, evt)
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_1(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250003001, 1, {131,132,133,134,148,150}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_2(context, evt)
|
||||
-- 判断是gadgetid 1
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_2(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 131 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 6 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_3(context, evt)
|
||||
-- 判断是gadgetid 1
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_3(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 132 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 5 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_4(context, evt)
|
||||
-- 判断是gadgetid 1 option_id 133
|
||||
if 1 ~= evt.param1 then
|
||||
if 133 == evt.param2 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_4(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 133 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_5(context, evt)
|
||||
-- 判断是gadgetid 1
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_5(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 134 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 3 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_6(context, evt)
|
||||
-- 判断是gadgetid 1
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_6(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 148 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 7 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_7(context, evt)
|
||||
-- 判断是gadgetid 1
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_7(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 150 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003002, suite = 4 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_8(context, evt)
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_8(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {120,121,135,136,137,141,142,143,144}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_9(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_9(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 120 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_10(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_10(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 121 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 3 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_11(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_11(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 135 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 4 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_12(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_12(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 136 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 5 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_13(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_13(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 137 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 6 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_14(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_14(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 141 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 7 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_15(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_15(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 142 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 8 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_16(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_16(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 143 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 9 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_17(context, evt)
|
||||
-- 判断是gadgetid 2
|
||||
if 2 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_17(context, evt)
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 144 == evt.param2 then
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250003003, suite = 10 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
144
soggy_resources/lua/Scene/50003/scene50003_group250003002.lua
Normal file
144
soggy_resources/lua/Scene/50003/scene50003_group250003002.lua
Normal file
@@ -0,0 +1,144 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 20010302, pos = { x = 1963.2, y = 197.0, z = -1307.5 }, rot = { x = 0.0, y = 78.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 2, monster_id = 20010302, pos = { x = 1961.7, y = 196.8, z = -1306.0 }, rot = { x = 0.0, y = 66.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 3, monster_id = 20010302, pos = { x = 1962.9, y = 196.8, z = -1304.9 }, rot = { x = 0.0, y = 77.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 4, monster_id = 20010401, pos = { x = 1963.7, y = 196.9, z = -1306.0 }, rot = { x = 0.0, y = 72.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 5, monster_id = 20010701, pos = { x = 1964.1, y = 196.6, z = -1302.1 }, rot = { x = 0.0, y = 88.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 6, monster_id = 20010701, pos = { x = 1962.4, y = 196.4, z = -1299.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 7, monster_id = 20010701, pos = { x = 1964.3, y = 196.4, z = -1298.2 }, rot = { x = 0.0, y = 120.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 8, monster_id = 20010601, pos = { x = 1964.1, y = 196.5, z = -1300.3 }, rot = { x = 0.0, y = 91.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 9, monster_id = 20010801, pos = { x = 1963.2, y = 197.0, z = -1309.2 }, rot = { x = 0.0, y = 81.8, z = 0.0 }, level = 0 },
|
||||
{ config_id = 10, monster_id = 20010801, pos = { x = 1964.5, y = 197.1, z = -1310.8 }, rot = { x = 0.0, y = 65.9, z = 0.0 }, level = 0 },
|
||||
{ config_id = 11, monster_id = 20010801, pos = { x = 1965.1, y = 197.0, z = -1308.9 }, rot = { x = 0.0, y = 70.9, z = 0.0 }, level = 0 },
|
||||
{ config_id = 12, monster_id = 20010901, pos = { x = 1966.2, y = 197.0, z = -1310.4 }, rot = { x = 0.0, y = 61.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 13, monster_id = 20011001, pos = { x = 1964.9, y = 196.9, z = -1305.3 }, rot = { x = 0.0, y = 101.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 14, monster_id = 20011001, pos = { x = 1965.1, y = 196.8, z = -1304.1 }, rot = { x = 0.0, y = 104.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 15, monster_id = 20011001, pos = { x = 1965.7, y = 196.7, z = -1303.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 16, monster_id = 20011101, pos = { x = 1965.9, y = 196.8, z = -1305.1 }, rot = { x = 0.0, y = 81.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 17, monster_id = 20011202, pos = { x = 1967.3, y = 196.7, z = -1303.3 }, rot = { x = 0.0, y = 95.8, z = 0.0 }, level = 0 },
|
||||
{ config_id = 18, monster_id = 20011202, pos = { x = 1968.1, y = 196.7, z = -1302.3 }, rot = { x = 0.0, y = 80.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 19, monster_id = 20011202, pos = { x = 1967.8, y = 196.8, z = -1304.2 }, rot = { x = 0.0, y = 97.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 20, monster_id = 20011301, pos = { x = 1966.9, y = 196.6, z = -1301.5 }, rot = { x = 0.0, y = 79.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 21, monster_id = 20011401, pos = { x = 1967.5, y = 196.4, z = -1300.0 }, rot = { x = 0.0, y = 104.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 22, monster_id = 20011401, pos = { x = 1966.7, y = 196.3, z = -1299.0 }, rot = { x = 0.0, y = 106.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 23, monster_id = 20011401, pos = { x = 1967.9, y = 196.2, z = -1298.3 }, rot = { x = 0.0, y = 109.4, z = 0.0 }, level = 0 },
|
||||
{ config_id = 24, monster_id = 20011501, pos = { x = 1968.1, y = 196.5, z = -1300.6 }, rot = { x = 0.0, y = 106.8, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 1, 2, 3, 4 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = suite_3,
|
||||
monsters = { 5, 6, 7, 8 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = suite_4,
|
||||
monsters = { 9, 10, 11, 12 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = suite_5,
|
||||
monsters = { 13, 14, 15, 16 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 5,
|
||||
-- description = suite_6,
|
||||
monsters = { 17, 18, 19, 20 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 6,
|
||||
-- description = suite_7,
|
||||
monsters = { 21, 22, 23, 24 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
174
soggy_resources/lua/Scene/50003/scene50003_group250003003.lua
Normal file
174
soggy_resources/lua/Scene/50003/scene50003_group250003003.lua
Normal file
@@ -0,0 +1,174 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 25, monster_id = 21020101, pos = { x = 1953.4, y = 196.3, z = -1303.4 }, rot = { x = 0.0, y = 97.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 26, monster_id = 21030101, pos = { x = 1948.2, y = 196.1, z = -1307.2 }, rot = { x = 0.0, y = 46.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 27, monster_id = 21020201, pos = { x = 1956.5, y = 196.3, z = -1301.9 }, rot = { x = 0.0, y = 83.1, z = 0.0 }, level = 0 },
|
||||
{ config_id = 28, monster_id = 21010701, pos = { x = 1958.5, y = 196.3, z = -1298.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 29, monster_id = 21010201, pos = { x = 1960.1, y = 196.5, z = -1302.7 }, rot = { x = 0.0, y = 65.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 30, monster_id = 21030301, pos = { x = 1958.8, y = 196.3, z = -1291.2 }, rot = { x = 0.0, y = 116.8, z = 0.0 }, level = 0 },
|
||||
{ config_id = 31, monster_id = 21010701, pos = { x = 1961.7, y = 196.1, z = -1289.6 }, rot = { x = 0.0, y = 97.4, z = 0.0 }, level = 0 },
|
||||
{ config_id = 32, monster_id = 21010701, pos = { x = 1961.2, y = 196.2, z = -1292.4 }, rot = { x = 0.0, y = 97.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 33, monster_id = 21030201, pos = { x = 1959.0, y = 196.8, z = -1310.3 }, rot = { x = 0.0, y = 78.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 34, monster_id = 21010701, pos = { x = 1963.1, y = 197.2, z = -1312.9 }, rot = { x = 0.0, y = 62.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 35, monster_id = 21010701, pos = { x = 1960.8, y = 196.9, z = -1309.0 }, rot = { x = 0.0, y = 61.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 36, monster_id = 21030101, pos = { x = 1959.4, y = 196.4, z = -1296.3 }, rot = { x = 0.0, y = 102.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 37, monster_id = 21010301, pos = { x = 1962.5, y = 196.2, z = -1294.3 }, rot = { x = 0.0, y = 64.7, z = 0.0 }, level = 0 },
|
||||
{ config_id = 38, monster_id = 21010301, pos = { x = 1962.8, y = 196.3, z = -1295.9 }, rot = { x = 0.0, y = 102.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 39, monster_id = 21010301, pos = { x = 1961.9, y = 196.4, z = -1298.2 }, rot = { x = 0.0, y = 129.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 40, monster_id = 20020101, pos = { x = 1944.0, y = 199.7, z = -1302.1 }, rot = { x = 0.0, y = 294.1, z = 0.0 }, level = 0 },
|
||||
{ config_id = 41, monster_id = 22010201, pos = { x = 1952.3, y = 196.6, z = -1294.0 }, rot = { x = 0.0, y = 124.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 42, monster_id = 20011001, pos = { x = 1955.4, y = 196.5, z = -1291.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 43, monster_id = 20011001, pos = { x = 1955.3, y = 196.5, z = -1293.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 44, monster_id = 20011001, pos = { x = 1954.1, y = 196.4, z = -1296.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 45, monster_id = 22010301, pos = { x = 1959.1, y = 196.6, z = -1305.3 }, rot = { x = 0.0, y = 94.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 46, monster_id = 20010801, pos = { x = 1960.5, y = 196.8, z = -1307.2 }, rot = { x = 0.0, y = 63.3, z = 0.0 }, level = 0 },
|
||||
{ config_id = 47, monster_id = 20010801, pos = { x = 1959.8, y = 196.5, z = -1303.7 }, rot = { x = 0.0, y = 82.1, z = 0.0 }, level = 0 },
|
||||
{ config_id = 48, monster_id = 20010801, pos = { x = 1960.3, y = 196.6, z = -1305.0 }, rot = { x = 0.0, y = 75.1, z = 0.0 }, level = 0 },
|
||||
{ config_id = 49, monster_id = 22010101, pos = { x = 1960.1, y = 196.4, z = -1300.8 }, rot = { x = 0.0, y = 112.1, z = 0.0 }, level = 0 },
|
||||
{ config_id = 50, monster_id = 20011202, pos = { x = 1961.2, y = 196.5, z = -1302.6 }, rot = { x = 0.0, y = 104.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 51, monster_id = 20011202, pos = { x = 1962.5, y = 196.5, z = -1301.2 }, rot = { x = 0.0, y = 98.5, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 25, 26 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = suite_3,
|
||||
monsters = { 27, 28, 29 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = suite_4,
|
||||
monsters = { 30, 31, 32 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = suite_5,
|
||||
monsters = { 33, 34, 35 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 5,
|
||||
-- description = suite_6,
|
||||
monsters = { 36, 37, 38, 39 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 6,
|
||||
-- description = suite_7,
|
||||
monsters = { 40 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 7,
|
||||
-- description = suite_8,
|
||||
monsters = { 41, 42, 43, 44 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 8,
|
||||
-- description = suite_9,
|
||||
monsters = { 45, 46, 47, 48 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 9,
|
||||
-- description = suite_10,
|
||||
monsters = { 49, 50, 51 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
33
soggy_resources/lua/Scene/50003/scene50003_point.json
Normal file
33
soggy_resources/lua/Scene/50003/scene50003_point.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"radius": 100.0,
|
||||
"points": {
|
||||
"1": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonQuitPoint",
|
||||
"gadgetId": 70120004,
|
||||
"pos": {
|
||||
"x": 1957.1626,
|
||||
"y": 195.645569,
|
||||
"z": -1265.58057
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 5.0,
|
||||
"y": 5.0,
|
||||
"z": 5.0
|
||||
},
|
||||
"titleTextID": ""
|
||||
}
|
||||
},
|
||||
"areas": {},
|
||||
"forces": {},
|
||||
"entities": {},
|
||||
"doors": {}
|
||||
}
|
Reference in New Issue
Block a user