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/20019/scene20019.lua
Normal file
22
soggy_resources/lua/Scene/20019/scene20019.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -3141.5, z = -3294.5 },
|
||||
size = { x = 6874.2, z = 6909.4 },
|
||||
born_pos = { x = -7.2, y = 39.0, z = -79.5 },
|
||||
born_rot = { x = 0.0, y = 0.4, z = 0.0 },
|
||||
die_y = -100
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 20019 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -3141.5, z = -3294.5 }, max = { x = 3732.7, z = 3614.9 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"sceneId": 20019,
|
||||
"routes": []
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 220019001, refresh_time = 0, pos = { x = 3.9, y = 42.0, z = 99.1 } },
|
||||
{ id = 220019002, refresh_time = 0, pos = { x = -3.8, y = 33.7, z = -28.9 } },
|
||||
{ id = 220019003, refresh_time = 0, pos = { x = -4.5, y = 41.0, z = 35.5 } }
|
||||
}
|
170
soggy_resources/lua/Scene/20019/scene20019_group220019001.lua
Normal file
170
soggy_resources/lua/Scene/20019/scene20019_group220019001.lua
Normal file
@@ -0,0 +1,170 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 20011501, pos = { x = 10.7, y = 42.0, z = 123.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 2, monster_id = 20011401, pos = { x = 10.0, y = 42.0, z = 121.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 5, monster_id = 20010601, pos = { x = 20.5, y = 42.0, z = 107.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 6, monster_id = 20010701, pos = { x = 20.7, y = 42.0, z = 103.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 7, monster_id = 22010301, pos = { x = 0.4, y = 42.0, z = 106.3 }, rot = { x = 0.0, y = 188.0, z = 0.0 }, level = 0, disableWander = true, affix = { 1001, 1002, 1003 } }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1, gadget_id = 70350006, pos = { x = 3.3, y = 42.1, z = 118.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 3, gadget_id = 70900010, pos = { x = -2.0, y = 41.5, z = 100.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 12, gadget_id = 70350006, pos = { x = 15.8, y = 42.4, z = 106.2 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 13, gadget_id = 70350002, pos = { x = -1.9, y = 42.0, z = 78.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 14, gadget_id = 70360002, pos = { x = 1.1, y = 42.1, z = 75.7 }, rot = { x = 0.0, y = 95.4, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 7, shape = RegionShape.CUBIC, size = { x = 40.0, y = 10.0, z = 40.0 }, pos = { x = -1.7, y = 42.0, z = 106.7 } },
|
||||
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 0.4, y = 41.9, z = 72.9 } },
|
||||
{ config_id = 10, shape = RegionShape.SPHERE, radius = 5, pos = { x = -4.2, y = 41.9, z = 71.7 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_7", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7", action = "action_EVENT_ENTER_REGION_7" },
|
||||
{ name = "GADGET_CREATE_9", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9", action = "action_EVENT_GADGET_CREATE_9" },
|
||||
{ name = "SELECT_OPTION_10", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10", action = "action_EVENT_SELECT_OPTION_10" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 1, 2, 5, 6, 7 },
|
||||
gadgets = { 1, 12, 13, 14 },
|
||||
regions = { 7, 9, 10 },
|
||||
triggers = { "ENTER_REGION_7", "GADGET_CREATE_9", "SELECT_OPTION_10" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_7(context, evt)
|
||||
if evt.param1 ~= 7 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_7(context, evt)
|
||||
-- 将configid为 12 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220019001中,configid为:5的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 5, 220019001) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220019001中,configid为:6的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 6, 220019001) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 1 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220019001中,configid为:1的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 1, 220019001) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220019001中,configid为:2的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 2, 220019001) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_9(context, evt)
|
||||
if 14 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_9(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_10(context, evt)
|
||||
-- 判断是gadgetid 14 option_id 1
|
||||
if 14 ~= evt.param1 then
|
||||
if 1 == evt.param2 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_10(context, evt)
|
||||
-- 将configid为 13 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
150
soggy_resources/lua/Scene/20019/scene20019_group220019002.lua
Normal file
150
soggy_resources/lua/Scene/20019/scene20019_group220019002.lua
Normal file
@@ -0,0 +1,150 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 8, monster_id = 21010301, pos = { x = -4.3, y = 33.7, z = -29.7 }, rot = { x = 0.0, y = 172.0, z = 0.0 }, level = 0, disableWander = true, pose_id = 9003 },
|
||||
{ config_id = 9, monster_id = 21010301, pos = { x = 3.4, y = 33.7, z = -29.9 }, rot = { x = 0.0, y = 202.2, z = 0.0 }, level = 0, disableWander = true, pose_id = 9003 },
|
||||
{ config_id = 10, monster_id = 20010501, pos = { x = 7.8, y = 33.7, z = -19.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 11, monster_id = 20010501, pos = { x = 10.5, y = 33.7, z = -20.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 12, monster_id = 20010501, pos = { x = 6.4, y = 33.7, z = -21.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 13, monster_id = 20011401, pos = { x = -12.2, y = 33.7, z = -19.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 14, monster_id = 20011401, pos = { x = -5.1, y = 33.7, z = -21.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 15, monster_id = 20011401, pos = { x = -9.5, y = 33.7, z = -20.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 7, gadget_id = 70690007, pos = { x = 0.0, y = 34.0, z = -21.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 15, gadget_id = 70350006, pos = { x = 7.8, y = 33.8, z = -24.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 16, gadget_id = 70350006, pos = { x = -8.2, y = 33.8, z = -24.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = -2.1, y = 33.7, z = -34.5 } },
|
||||
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2.6, y = 33.7, z = -37.6 } },
|
||||
{ config_id = 13, shape = RegionShape.SPHERE, radius = 5, pos = { x = 0.6, y = 33.7, z = -39.5 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "MONSTER_BATTLE_11", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_11", action = "action_EVENT_MONSTER_BATTLE_11" },
|
||||
{ name = "MONSTER_BATTLE_12", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_12", action = "action_EVENT_MONSTER_BATTLE_12" },
|
||||
{ name = "ANY_MONSTER_DIE_13", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13", action = "action_EVENT_ANY_MONSTER_DIE_13" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
gadgets = { 7, 15, 16 },
|
||||
regions = { 11, 12, 13 },
|
||||
triggers = { "MONSTER_BATTLE_11", "MONSTER_BATTLE_12", "ANY_MONSTER_DIE_13" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_MONSTER_BATTLE_11(context, evt)
|
||||
if 9 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_MONSTER_BATTLE_11(context, evt)
|
||||
-- 将configid为 15 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_MONSTER_BATTLE_12(context, evt)
|
||||
if 8 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_MONSTER_BATTLE_12(context, evt)
|
||||
-- 将configid为 16 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 16, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_13(context, evt)
|
||||
-- 判断指定group组剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220019002) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_13(context, evt)
|
||||
-- 将configid为 7 的物件更改为状态 GadgetState.GearAction1
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7, GadgetState.GearAction1) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
@@ -0,0 +1,68 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 17, gadget_id = 70900011, pos = { x = -3.8, y = 40.3, z = 26.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, arguments = { 5, 5 } },
|
||||
{ config_id = 18, gadget_id = 70900012, pos = { x = -3.7, y = 41.0, z = 25.7 }, rot = { x = 0.0, y = 89.6, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 17 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
58
soggy_resources/lua/Scene/20019/scene20019_point.json
Normal file
58
soggy_resources/lua/Scene/20019/scene20019_point.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"radius": 100.0,
|
||||
"points": {
|
||||
"1": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 10.0477285,
|
||||
"y": 41.93705,
|
||||
"z": -0.7043392
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 339.999969,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 10.0,
|
||||
"y": 10.0,
|
||||
"z": 10.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
},
|
||||
"2": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonQuitPoint",
|
||||
"gadgetId": 70120004,
|
||||
"pos": {
|
||||
"x": -3.460935,
|
||||
"y": 42.0162468,
|
||||
"z": 110.4505
|
||||
},
|
||||
"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