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/20016/scene20016.lua
Normal file
22
soggy_resources/lua/Scene/20016/scene20016.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -2465.2, z = -2016.5 },
|
||||
size = { x = 5969.6, z = 5002.1 },
|
||||
born_pos = { x = 338.3, y = -33.2, z = 527.4 },
|
||||
born_rot = { x = 0.0, y = 205.4, z = 0.0 },
|
||||
die_y = -100
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 20016 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -2465.2, z = -2016.5 }, max = { x = 3504.4, z = 2985.6 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
30
soggy_resources/lua/Scene/20016/scene20016_20016_routes.json
Normal file
30
soggy_resources/lua/Scene/20016/scene20016_20016_routes.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"sceneId": 20016,
|
||||
"routes": [
|
||||
{
|
||||
"localId": 20016001,
|
||||
"name": "Route_20016001",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 336.756073,
|
||||
"y": -19.2766552,
|
||||
"z": 332.188965
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 350.562836,
|
||||
"y": -19.2765217,
|
||||
"z": 332.071045
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
11
soggy_resources/lua/Scene/20016/scene20016_block20016.lua
Normal file
11
soggy_resources/lua/Scene/20016/scene20016_block20016.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 220016001, refresh_time = 0, pos = { x = 337.7, y = -27.9, z = 493.1 } },
|
||||
{ id = 220016002, refresh_time = 0, pos = { x = 344.0, y = -28.9, z = 430.7 }, refresh_with_block = false },
|
||||
{ id = 220016003, refresh_time = 0, pos = { x = 344.3, y = -19.3, z = 342.7 } },
|
||||
{ id = 220016005, refresh_time = 0, pos = { x = 343.2, y = -28.0, z = 408.8 } },
|
||||
{ id = 220016006, refresh_time = 0, pos = { x = 343.5, y = -18.4, z = 328.4 } },
|
||||
{ id = 220016007, refresh_time = 0, pos = { x = 339.9, y = -29.0, z = 426.1 } },
|
||||
{ id = 220016008, refresh_time = 0, pos = { x = 338.6, y = -19.3, z = 333.6 } },
|
||||
{ id = 220016901, refresh_time = 0, pos = { x = 359.3, y = -16.9, z = 343.2 } }
|
||||
}
|
19
soggy_resources/lua/Scene/20016/scene20016_dummy_points.lua
Normal file
19
soggy_resources/lua/Scene/20016/scene20016_dummy_points.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
dummy_points = {
|
||||
["Q463Player"] = { pos = { x = 341.7, y = -19.2, z = 338.3 }, rot = { x = 0.0, y = 15.6, z = 0.0 } },
|
||||
["Q463NPC"] = { pos = { x = 345.2, y = -19.2, z = 339.9 }, rot = { x = 0.0, y = 254.9, z = 0.0 } },
|
||||
["Q463Soldier"] = { pos = { x = 344.3, y = -19.3, z = 345.0 }, rot = { x = 0.0, y = 180.2, z = 0.0 } },
|
||||
["Q463Born"] = { pos = { x = 338.9, y = -19.0, z = 352.8 }, rot = { x = 0.0, y = 182.4, z = 0.0 } },
|
||||
["Q463Kaeya"] = { pos = { x = 343.2, y = -19.3, z = 342.5 }, rot = { x = 0.0, y = 182.1, z = 0.0 } },
|
||||
["Q463Paimon"] = { pos = { x = 340.6, y = -19.3, z = 340.1 }, rot = { x = 0.0, y = 26.0, z = 0.0 } },
|
||||
["Q403Door"] = { pos = { x = 337.7, y = -32.9, z = 526.8 }, rot = { x = 0.0, y = 220.0, z = 0.0 } },
|
||||
["Q463Trap"] = { pos = { x = 343.1, y = -18.4, z = 324.8 }, rot = { x = 0.0, y = 168.3, z = 0.0 } },
|
||||
["Q463Soldier2"] = { pos = { x = 343.0, y = -19.3, z = 344.8 }, rot = { x = 0.0, y = 184.6, z = 0.0 } },
|
||||
["Q463Dummy"] = { pos = { x = 346.0, y = -19.2, z = 348.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 } },
|
||||
["Q463Soldier3"] = { pos = { x = 345.8, y = -19.3, z = 341.0 }, rot = { x = 0.0, y = 213.1, z = 0.0 } },
|
||||
["Q463Soldier4"] = { pos = { x = 344.5, y = -19.3, z = 338.8 }, rot = { x = 0.0, y = 37.2, z = 0.0 } },
|
||||
["Q463NPCBorn"] = { pos = { x = 349.1, y = -19.3, z = 349.9 }, rot = { x = 0.0, y = 207.6, z = 0.0 } },
|
||||
["Q463KaeyaBorn"] = { pos = { x = 343.3, y = -19.3, z = 356.6 }, rot = { x = 0.0, y = 180.5, z = 0.0 } },
|
||||
["Q463SoldierBorn"] = { pos = { x = 344.5, y = -18.9, z = 360.5 }, rot = { x = 0.0, y = 185.3, z = 0.0 } },
|
||||
["Q463SoldierBorn2"] = { pos = { x = 342.1, y = -19.0, z = 360.6 }, rot = { x = 0.0, y = 180.5, z = 0.0 } },
|
||||
["Q46303NpcLaste"] = { pos = { x = 331.2, y = -18.3, z = 325.1 }, rot = { x = 0.0, y = 296.6, z = 0.0 } }
|
||||
}
|
146
soggy_resources/lua/Scene/20016/scene20016_group220016001.lua
Normal file
146
soggy_resources/lua/Scene/20016/scene20016_group220016001.lua
Normal file
@@ -0,0 +1,146 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 21010701, pos = { x = 349.4, y = -32.9, z = 503.8 }, rot = { x = 0.0, y = 319.8, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 2, monster_id = 21010501, pos = { x = 337.7, y = -27.8, z = 493.3 }, rot = { x = 0.0, y = 35.0, z = 0.0 }, level = 0, disableWander = true, pose_id = 0 },
|
||||
{ config_id = 3, monster_id = 20011201, pos = { x = 348.2, y = -27.9, z = 473.5 }, rot = { x = 0.0, y = 329.4, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 4, monster_id = 20011201, pos = { x = 337.6, y = -27.8, z = 473.9 }, rot = { x = 0.0, y = 29.9, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 5, monster_id = 20011201, pos = { x = 336.8, y = -27.8, z = 475.3 }, rot = { x = 0.0, y = 32.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 10, monster_id = 20011201, pos = { x = 349.4, y = -28.0, z = 475.2 }, rot = { x = 0.0, y = 325.8, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 13, gadget_id = 70900010, pos = { x = 343.2, y = -28.3, z = 474.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 14, gadget_id = 70900013, pos = { x = 343.1, y = -27.9, z = 474.0 }, rot = { x = 0.0, y = 34.0, z = 0.0 }, level = 1, arguments = { 1, 2, 3 } },
|
||||
{ config_id = 15, gadget_id = 70320001, pos = { x = 343.0, y = -27.9, z = 473.8 }, rot = { x = 0.0, y = 240.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 23, gadget_id = 70220002, pos = { x = 349.4, y = -32.9, z = 503.6 }, rot = { x = 0.0, y = 54.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 24, gadget_id = 70220002, pos = { x = 350.7, y = -32.9, z = 503.9 }, rot = { x = 0.0, y = 3.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 25, gadget_id = 70220002, pos = { x = 350.2, y = -32.9, z = 502.7 }, rot = { x = 0.0, y = 86.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 41, gadget_id = 70220015, pos = { x = 351.4, y = -32.1, z = 504.9 }, rot = { x = 85.2, y = 315.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 42, gadget_id = 70220016, pos = { x = 350.9, y = -32.2, z = 503.8 }, rot = { x = 0.0, y = 127.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 5, shape = RegionShape.CUBIC, size = { x = 18.0, y = 5.0, z = 18.0 }, pos = { x = 343.3, y = -27.9, z = 473.3 } },
|
||||
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = 340.9, y = -27.9, z = 473.3 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_5", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5", action = "action_EVENT_ENTER_REGION_5" },
|
||||
{ name = "ANY_MONSTER_DIE_6", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6", action = "action_EVENT_ANY_MONSTER_DIE_6" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 1, 2 },
|
||||
gadgets = { 15, 23, 24, 25, 41 },
|
||||
regions = { 5, 6 },
|
||||
triggers = { "ENTER_REGION_5", "ANY_MONSTER_DIE_6" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_5(context, evt)
|
||||
if evt.param1 ~= 5 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_5(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 10, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 15 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_6(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_6(context, evt)
|
||||
-- 改变指定group组220016002中, configid为5的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220016002, 5, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
240
soggy_resources/lua/Scene/20016/scene20016_group220016002.lua
Normal file
240
soggy_resources/lua/Scene/20016/scene20016_group220016002.lua
Normal file
@@ -0,0 +1,240 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 5, gadget_id = 70900008, pos = { x = 343.3, y = -29.0, z = 430.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 6, gadget_id = 70350003, pos = { x = 343.1, y = -28.0, z = 404.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 7, gadget_id = 70350003, pos = { x = 333.2, y = -27.9, z = 404.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 8, gadget_id = 70350003, pos = { x = 353.2, y = -28.0, z = 404.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 20, gadget_id = 70320002, pos = { x = 338.3, y = -29.1, z = 435.6 }, rot = { x = 0.0, y = 174.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 21, gadget_id = 70320002, pos = { x = 348.5, y = -29.0, z = 425.4 }, rot = { x = 0.0, y = 358.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 43, gadget_id = 70800001, pos = { x = 343.2, y = -29.0, z = 430.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 13, shape = RegionShape.SPHERE, radius = 5, pos = { x = 344.3, y = -28.9, z = 430.5 } },
|
||||
{ config_id = 14, shape = RegionShape.SPHERE, radius = 5, pos = { x = 339.9, y = -29.0, z = 430.7 } },
|
||||
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = 343.0, y = -29.0, z = 433.4 } },
|
||||
{ config_id = 16, shape = RegionShape.SPHERE, radius = 5, pos = { x = 339.8, y = -29.0, z = 432.1 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "GADGET_STATE_CHANGE_13", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13", action = "action_EVENT_GADGET_STATE_CHANGE_13", trigger_count = 0 },
|
||||
{ name = "GADGET_CREATE_14", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_14", action = "action_EVENT_GADGET_CREATE_14" },
|
||||
{ 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 = "SEAL_BATTLE_END_16", event = EventType.EVENT_SEAL_BATTLE_END, source = "", condition = "condition_EVENT_SEAL_BATTLE_END_16", action = "action_EVENT_SEAL_BATTLE_END_16", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ name = "SEAL_RESULT", value = 0, persistent = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 6, 7, 8, 20, 21, 43 },
|
||||
regions = { 13, 14, 15, 16 },
|
||||
triggers = { "GADGET_STATE_CHANGE_13", "GADGET_CREATE_14", "SELECT_OPTION_15", "SEAL_BATTLE_END_16" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_13(context, evt)
|
||||
if 5 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_13(context, evt)
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220016007, suite = 1 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_14(context, evt)
|
||||
if 43 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_14(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_15(context, evt)
|
||||
-- 判断是gadgetid 43 option_id 24
|
||||
if 43 ~= evt.param1 then
|
||||
if 24 == evt.param2 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_15(context, evt)
|
||||
-- 当option_id为24时,开启类型为""限时杀怪""的封印战斗,战斗区域半径为15,限定时长为60秒,220016007 group内每有1个怪物死亡,获得1点进度,进度达到6时判定为战斗成功。
|
||||
if 24 == evt.param2 then
|
||||
local ret = ScriptLib.StartSealBattle(context, {radius = 15, kill_time = 60, monster_group_id = 220016007, max_progress = 6, battle_type = SealBattleType.KILL_MONSTER})
|
||||
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
|
||||
end
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220016007, suite = 1 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 删除指定group: 220016002 ;指定config:43;物件身上指定option:24;
|
||||
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220016002, 43, 24) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 43 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 20 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 20, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 21 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SEAL_BATTLE_END_16(context, evt)
|
||||
--获取战斗结果
|
||||
local result = evt.param2
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "SEAL_RESULT", result) then
|
||||
|
||||
return false
|
||||
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SEAL_BATTLE_END_16(context, evt)
|
||||
--失败时重置30秒标记,重置suite_3标记,清理战场,重新添加操作台选项
|
||||
if 0 == ScriptLib.GetGroupVariableValue(context, "SEAL_RESULT") then
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 20, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220016007, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220016002, 43, {24}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--成功时标记封印完成,清理战场
|
||||
if 1 == ScriptLib.GetGroupVariableValue(context, "SEAL_RESULT") then
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 20, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 3022 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
end
|
166
soggy_resources/lua/Scene/20016/scene20016_group220016003.lua
Normal file
166
soggy_resources/lua/Scene/20016/scene20016_group220016003.lua
Normal file
@@ -0,0 +1,166 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 10, gadget_id = 70350003, pos = { x = 353.2, y = -18.4, z = 322.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 11, gadget_id = 70350003, pos = { x = 333.3, y = -18.3, z = 322.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 12, gadget_id = 70350003, pos = { x = 343.3, y = -18.4, z = 322.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 26, gadget_id = 70350003, pos = { x = 343.3, y = -11.4, z = 291.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 27, gadget_id = 70350003, pos = { x = 353.3, y = -19.0, z = 368.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 28, gadget_id = 70350003, pos = { x = 333.2, y = -19.0, z = 368.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 29, gadget_id = 70350003, pos = { x = 343.4, y = -19.0, z = 368.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 38, gadget_id = 70350003, pos = { x = 333.3, y = -11.4, z = 291.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 39, gadget_id = 70350003, pos = { x = 353.2, y = -11.4, z = 291.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 40, gadget_id = 70210051, pos = { x = 342.6, y = -19.3, z = 335.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 403244, type = GadgetType.GADGET_DUNGEON_PASS_CHEST }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 343.6, y = -19.3, z = 340.3 } },
|
||||
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 342.5, y = -19.3, z = 330.7 } },
|
||||
{ config_id = 10, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 342.8, y = -23.7, z = 384.2 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "QUEST_FINISH_8", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_8", action = "action_EVENT_QUEST_FINISH_8", trigger_count = 0 },
|
||||
{ name = "TIMER_EVENT_9", event = EventType.EVENT_TIMER_EVENT, source = "", condition = "condition_EVENT_TIMER_EVENT_9", action = "action_EVENT_TIMER_EVENT_9" },
|
||||
{ name = "ENTER_REGION_10", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10", action = "action_EVENT_ENTER_REGION_10" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 10, 11, 12, 26, 27, 28, 29, 38, 39 },
|
||||
regions = { 8, 9, 10 },
|
||||
triggers = { "QUEST_FINISH_8", "TIMER_EVENT_9", "ENTER_REGION_10" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_QUEST_FINISH_8(context, evt)
|
||||
--检查ID为46306的任务的完成状态是否为1(1=完成,0=失败)
|
||||
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
|
||||
|
||||
--检查任务ID
|
||||
if 46306 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
--检查任务成功状态
|
||||
if 1 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog("quest 46306 finish")
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_FINISH_8(context, evt)
|
||||
-- 将configid为 12 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
-- 延迟3秒后,向groupId为:220016003的对象,请求一次调用,并将string参数:"Power" 传递过去
|
||||
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220016003, "Power", 0) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 调用提示id为 0 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
|
||||
if 0 ~= ScriptLib.ShowReminder(context, 1001001) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_TIMER_EVENT_9(context, evt)
|
||||
if "Power" ~= evt.source_name then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_TIMER_EVENT_9(context, evt)
|
||||
-- 通知groupid为220016008中,configid为:9的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 9, 220016008) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 29 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_10(context, evt)
|
||||
if evt.param1 ~= 10 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_10(context, evt)
|
||||
-- 将configid为 29 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
@@ -0,0 +1,71 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 32, gadget_id = 70220013, pos = { x = 341.2, y = -23.7, z = 385.4 }, rot = { x = 0.0, y = 197.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 34, gadget_id = 70220014, pos = { x = 343.1, y = -23.8, z = 386.3 }, rot = { x = 0.0, y = 334.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 35, gadget_id = 70220014, pos = { x = 342.2, y = -23.8, z = 386.6 }, rot = { x = 0.0, y = 336.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 36, gadget_id = 70220014, pos = { x = 341.1, y = -23.8, z = 387.0 }, rot = { x = 0.0, y = 181.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 37, gadget_id = 70220014, pos = { x = 343.0, y = -23.8, z = 384.4 }, rot = { x = 0.0, y = 121.2, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 32, 34, 35, 36, 37 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
@@ -0,0 +1,79 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 18, monster_id = 21010701, pos = { x = 333.6, y = -18.4, z = 320.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 19, monster_id = 21010201, pos = { x = 332.2, y = -18.4, z = 320.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 20, monster_id = 21010201, pos = { x = 352.6, y = -18.4, z = 320.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 21, monster_id = 21010701, pos = { x = 354.3, y = -18.4, z = 320.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 2,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 18, 19, 20, 21 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
177
soggy_resources/lua/Scene/20016/scene20016_group220016007.lua
Normal file
177
soggy_resources/lua/Scene/20016/scene20016_group220016007.lua
Normal file
@@ -0,0 +1,177 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 6, monster_id = 20011301, pos = { x = 342.6, y = -28.9, z = 424.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, affix = { 1002, 1003, 1004 }, isElite = true },
|
||||
{ config_id = 7, monster_id = 20011201, pos = { x = 348.3, y = -29.1, z = 428.5 }, rot = { x = 0.0, y = 341.9, z = 0.0 }, level = 0 },
|
||||
{ config_id = 8, monster_id = 20011201, pos = { x = 338.2, y = -29.0, z = 427.8 }, rot = { x = 0.0, y = 24.6, z = 0.0 }, level = 0 },
|
||||
{ config_id = 11, monster_id = 20011201, pos = { x = 344.9, y = -29.0, z = 426.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, affix = { 1001 } },
|
||||
{ config_id = 12, monster_id = 20011201, pos = { x = 342.8, y = -29.0, z = 426.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, affix = { 1001 } },
|
||||
{ config_id = 13, monster_id = 20011201, pos = { x = 336.4, y = -29.0, z = 427.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, affix = { 1001 } }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 342.0, y = -28.9, z = 429.6 } },
|
||||
{ config_id = 2, shape = RegionShape.SPHERE, radius = 5, pos = { x = 338.0, y = -28.9, z = 427.9 } },
|
||||
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 346.3, y = -29.0, z = 429.3 } },
|
||||
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 342.7, y = -29.0, z = 423.8 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ANY_MONSTER_LIVE_1", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_1", action = "action_EVENT_ANY_MONSTER_LIVE_1" },
|
||||
{ name = "CHALLENGE_SUCCESS_2", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2" },
|
||||
{ name = "CHALLENGE_FAIL_3", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_3" },
|
||||
{ name = "SPECIFIC_MONSTER_HP_CHANGE_7", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "6", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_7", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_7" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 2,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 6, 7, 8 },
|
||||
gadgets = { },
|
||||
regions = { 2, 3, 7 },
|
||||
triggers = { "CHALLENGE_SUCCESS_2", "CHALLENGE_FAIL_3", "SPECIFIC_MONSTER_HP_CHANGE_7" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_LIVE_1(context, evt)
|
||||
if 6 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_LIVE_1(context, evt)
|
||||
ScriptLib.PrintLog("tiaozhankaishilalalal")
|
||||
|
||||
|
||||
-- 创建编号为1(该挑战的识别id),挑战内容为133的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 133, 90, 220016007, 6, 0) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_2(context, evt)
|
||||
-- 改变指定group组220016002中, configid为6的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220016002, 6, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(343,-25,404),持续时间为2秒,并且为强制注目形式,不广播其他玩家
|
||||
local pos = {x=343, y=-25, z=404}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_3(context, evt)
|
||||
-- 改变指定group组220016002中, configid为5的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220016002, 5, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220016007, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_7(context, evt)
|
||||
--[[判断指定configid的怪物的血量小于%50时触发指定后续操作]]--
|
||||
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 50 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_7(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 11, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 12, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 13, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
158
soggy_resources/lua/Scene/20016/scene20016_group220016008.lua
Normal file
158
soggy_resources/lua/Scene/20016/scene20016_group220016008.lua
Normal file
@@ -0,0 +1,158 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 9, monster_id = 23040101, pos = { x = 343.3, y = -18.4, z = 317.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true, pose_id = 101 },
|
||||
{ config_id = 22, monster_id = 23040101, pos = { x = 342.6, y = -19.3, z = 330.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, affix = { 1001 }, isElite = true, pose_id = 100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 342.7, y = -19.3, z = 340.6 } },
|
||||
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 336.7, y = -19.3, z = 335.1 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "SPECIFIC_MONSTER_HP_CHANGE_11", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "22", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_11", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_11" },
|
||||
{ name = "ANY_MONSTER_DIE_12", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12", action = "action_EVENT_ANY_MONSTER_DIE_12" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 9 },
|
||||
gadgets = { },
|
||||
regions = { 11, 12 },
|
||||
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_11", "ANY_MONSTER_DIE_12" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 22 },
|
||||
gadgets = { },
|
||||
regions = { 11, 12 },
|
||||
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_11", "ANY_MONSTER_DIE_12" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_11(context, evt)
|
||||
--[[判断指定configid的怪物的血量小于%75时触发指定后续操作]]--
|
||||
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 75 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_11(context, evt)
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220016006, suite = 1 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 改变指定group组220016003中, configid为10的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220016003, 10, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 改变指定group组220016003中, configid为11的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220016003, 11, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220016006中,configid为:18的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 18, 220016006) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220016006中,configid为:19的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 19, 220016006) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220016006中,configid为:20的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 20, 220016006) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知groupid为220016006中,configid为:21的怪物入战或者脱战,set为1是入战,为0是脱战
|
||||
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 21, 220016006) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_12(context, evt)
|
||||
--判断死亡怪物的configid是否为 22
|
||||
if evt.param1 ~= 22 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_12(context, evt)
|
||||
-- 杀死Group内所有monster
|
||||
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220016006, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 创生gadget 40
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 40 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
@@ -0,0 +1,79 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
{ config_id = 1, npc_id = 1234, pos = { x = 358.9, y = -16.9, z = 340.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 } }
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 4, shape = RegionShape.SPHERE, radius = 7.9, pos = { x = 343.5, y = -19.3, z = 345.2 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_4", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4", action = "", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { 1 }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 4 },
|
||||
triggers = { "ENTER_REGION_4" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_4(context, evt)
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 46302) == QuestState.UNFINISHED and evt.param1 == 4 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
-- 触发操作
|
83
soggy_resources/lua/Scene/20016/scene20016_point.json
Normal file
83
soggy_resources/lua/Scene/20016/scene20016_point.json
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"radius": 100.0,
|
||||
"points": {
|
||||
"1": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 330.57486,
|
||||
"y": -28.98354,
|
||||
"z": 440.013519
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 90.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 40.0,
|
||||
"y": 10.0,
|
||||
"z": 20.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
},
|
||||
"2": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonQuitPoint",
|
||||
"gadgetId": 70120004,
|
||||
"pos": {
|
||||
"x": 342.6368,
|
||||
"y": -19.2767544,
|
||||
"z": 331.258759
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 4.0,
|
||||
"y": 4.0,
|
||||
"z": 4.0
|
||||
},
|
||||
"titleTextID": "UI_DUNGEON_EXIT"
|
||||
},
|
||||
"3": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 354.291748,
|
||||
"y": -18.85338,
|
||||
"z": 364.0289
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 270.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 20.0,
|
||||
"y": 10.0,
|
||||
"z": 40.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
}
|
||||
},
|
||||
"areas": {},
|
||||
"forces": {},
|
||||
"entities": {},
|
||||
"doors": {}
|
||||
}
|
178
soggy_resources/lua/Scene/20016/scene20016_triggers.json
Normal file
178
soggy_resources/lua/Scene/20016/scene20016_triggers.json
Normal file
@@ -0,0 +1,178 @@
|
||||
[
|
||||
{
|
||||
"groupId": 220016007,
|
||||
"configID": 1,
|
||||
"position": {
|
||||
"x": 341.9718,
|
||||
"y": -28.8909988,
|
||||
"z": 429.560455
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016007,
|
||||
"configID": 2,
|
||||
"position": {
|
||||
"x": 337.9981,
|
||||
"y": -28.8946877,
|
||||
"z": 427.94635
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016007,
|
||||
"configID": 3,
|
||||
"position": {
|
||||
"x": 346.298584,
|
||||
"y": -28.9646034,
|
||||
"z": 429.286926
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016901,
|
||||
"configID": 4,
|
||||
"position": {
|
||||
"x": 343.5481,
|
||||
"y": -19.27664,
|
||||
"z": 345.1552
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016001,
|
||||
"configID": 5,
|
||||
"position": {
|
||||
"x": 343.255585,
|
||||
"y": -27.8504772,
|
||||
"z": 473.3164
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016001,
|
||||
"configID": 6,
|
||||
"position": {
|
||||
"x": 340.873047,
|
||||
"y": -27.8504772,
|
||||
"z": 473.3043
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016007,
|
||||
"configID": 7,
|
||||
"position": {
|
||||
"x": 342.702881,
|
||||
"y": -28.98332,
|
||||
"z": 423.7589
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016003,
|
||||
"configID": 8,
|
||||
"position": {
|
||||
"x": 343.6241,
|
||||
"y": -19.27664,
|
||||
"z": 340.29837
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016003,
|
||||
"configID": 9,
|
||||
"position": {
|
||||
"x": 342.4502,
|
||||
"y": -19.2767334,
|
||||
"z": 330.71
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016003,
|
||||
"configID": 10,
|
||||
"position": {
|
||||
"x": 342.833038,
|
||||
"y": -23.6877079,
|
||||
"z": 384.1902
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016008,
|
||||
"configID": 11,
|
||||
"position": {
|
||||
"x": 342.708,
|
||||
"y": -19.27664,
|
||||
"z": 340.561249
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016008,
|
||||
"configID": 12,
|
||||
"position": {
|
||||
"x": 336.6567,
|
||||
"y": -19.2766438,
|
||||
"z": 335.0977
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016002,
|
||||
"configID": 13,
|
||||
"position": {
|
||||
"x": 344.2529,
|
||||
"y": -28.8909988,
|
||||
"z": 430.476959
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016002,
|
||||
"configID": 14,
|
||||
"position": {
|
||||
"x": 339.88974,
|
||||
"y": -28.9644451,
|
||||
"z": 430.7324
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016002,
|
||||
"configID": 15,
|
||||
"position": {
|
||||
"x": 343.0083,
|
||||
"y": -28.9647961,
|
||||
"z": 433.441925
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"groupId": 220016002,
|
||||
"configID": 16,
|
||||
"position": {
|
||||
"x": 339.829834,
|
||||
"y": -28.96444,
|
||||
"z": 432.11618
|
||||
},
|
||||
"tlog_tag": "",
|
||||
"comment": "battleend"
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user