添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -3394.5, z = -2943.1 },
size = { x = 8012.0, z = 7176.4 },
born_pos = { x = 629.420, y = -58.834, z = 206.559 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -100,
city_id = 1,
vision_anchor = { x = -3394.5, z = -2943.1 }
}
-- 所有的区块
blocks = { 20008 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3394.5, z = -2943.1 }, max = { x = 4617.5, z = 4233.3 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,164 @@
{
"sceneId": 20008,
"routes": [
{
"localId": 1,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 548.25885,
"y": -68.11,
"z": 203.238434
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 547.7614,
"y": -68.48373,
"z": 209.927216
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 455.969116,
"y": -28.48371,
"z": 260.876831
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 455.8068,
"y": -28.48371,
"z": 270.174225
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 464.570068,
"y": -28.4834538,
"z": 259.620667
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 464.370972,
"y": -28.5430164,
"z": 272.033234
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 9,
"name": "Platform_009",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 438.444672,
"y": -26.4169064,
"z": 224.213959
},
"waitTime": 2.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 438.472473,
"y": -26.366806,
"z": 232.531219
},
"waitTime": 2.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 10,
"name": "Platform_010",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 443.226959,
"y": -26.33683,
"z": 211.4373
},
"waitTime": 3.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 433.0956,
"y": -26.33683,
"z": 211.4373
},
"waitTime": 3.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20008011,
"name": "Route_20008011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 438.4835,
"y": -26.3987522,
"z": 224.231964
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
}
]
}

View File

@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 220008001, refresh_id = 1001, pos = { x = 557.808, y = -67.790, z = 206.355 } },
{ id = 220008002, refresh_id = 1001, pos = { x = 517.584, y = -65.920, z = 237.522 } },
{ id = 220008003, refresh_id = 1001, pos = { x = 469.379, y = -28.410, z = 266.587 } },
{ id = 220008004, refresh_id = 1, pos = { x = 437.762, y = -21.422, z = 173.674 } },
{ id = 220008006, refresh_id = 1, pos = { x = 614.632, y = -57.500, z = 206.798 } },
{ id = 220008007, refresh_id = 1, pos = { x = 612.128, y = -57.500, z = 206.726 } },
{ id = 220008012, refresh_id = 1001, pos = { x = 454.843, y = -28.360, z = 265.959 } },
{ id = 220008901, pos = { x = 628.624, y = -58.834, z = 205.802 } }
}

View File

@@ -0,0 +1,9 @@
dummy_points = {
["Q30712Player"] = { pos = { x = 603.489, y = -57.500, z = 206.436 }, rot = { x = 0.000, y = 270.882, z = 0.000 } },
["Q307Gaia"] = { pos = { x = 391.685, y = -21.404, z = 174.040 }, rot = { x = 0.000, y = 105.765, z = 0.000 } },
["Q307GaiaDungeon"] = { pos = { x = 601.334, y = -57.500, z = 206.582 }, rot = { x = 0.000, y = 89.760, z = 0.000 } },
["Q307GaiaWay"] = { pos = { x = 601.334, y = -57.500, z = 206.582 }, rot = { x = 0.000, y = 264.800, z = 0.000 } },
["Q307Paimon"] = { pos = { x = 394.375, y = -21.450, z = 172.618 }, rot = { x = 0.000, y = 298.622, z = 0.000 } },
["Q307Player"] = { pos = { x = 394.734, y = -21.450, z = 173.813 }, rot = { x = 0.000, y = 274.580, z = 0.000 } },
["Q307SavePointIntro"] = { pos = { x = 513.864, y = -67.984, z = 213.356 }, rot = { x = 0.000, y = 130.900, z = 0.000 } }
}

View File

@@ -0,0 +1,470 @@
-- 基础信息
local base_info = {
group_id = 220008001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39, monster_id = 21010201, pos = { x = 547.612, y = -68.483, z = 202.914 }, rot = { x = 0.000, y = 357.802, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 43, monster_id = 21010201, pos = { x = 543.223, y = -68.404, z = 208.892 }, rot = { x = 0.000, y = 90.270, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 44, monster_id = 21010201, pos = { x = 543.264, y = -68.404, z = 203.683 }, rot = { x = 0.000, y = 78.700, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 180, gadget_id = 70350003, pos = { x = 538.393, y = -68.045, z = 206.569 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 187, gadget_id = 70211101, pos = { x = 576.714, y = -68.447, z = 189.314 }, rot = { x = 0.000, y = 359.946, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 367, gadget_id = 70900202, pos = { x = 390.015, y = -19.073, z = 173.541 }, rot = { x = 0.000, y = 83.628, z = 0.000 }, level = 1 },
{ config_id = 368, gadget_id = 70900201, pos = { x = 517.293, y = -65.009, z = 219.024 }, rot = { x = 0.000, y = 180.406, z = 0.000 }, level = 1 },
{ config_id = 370, gadget_id = 70900202, pos = { x = 488.785, y = -27.033, z = 269.645 }, rot = { x = 0.000, y = 118.147, z = 0.000 }, level = 1 },
{ config_id = 374, gadget_id = 70900201, pos = { x = 537.528, y = -66.271, z = 206.626 }, rot = { x = 0.000, y = 292.645, z = 0.000 }, level = 1 },
{ config_id = 375, gadget_id = 70220013, pos = { x = 571.459, y = -68.585, z = 199.498 }, rot = { x = 0.000, y = 42.799, z = 0.000 }, level = 1 },
{ config_id = 376, gadget_id = 70220013, pos = { x = 572.863, y = -68.512, z = 200.835 }, rot = { x = 0.000, y = 61.247, z = 0.000 }, level = 1 },
{ config_id = 377, gadget_id = 70220013, pos = { x = 568.689, y = -68.474, z = 187.230 }, rot = { x = 357.805, y = 61.247, z = 5.036 }, level = 1 },
{ config_id = 378, gadget_id = 70220013, pos = { x = 580.630, y = -58.782, z = 200.220 }, rot = { x = 358.807, y = 50.270, z = 5.362 }, level = 1 },
{ config_id = 379, gadget_id = 70220014, pos = { x = 582.312, y = -58.739, z = 200.097 }, rot = { x = 0.000, y = 347.237, z = 0.000 }, level = 1 },
{ config_id = 380, gadget_id = 70220014, pos = { x = 569.533, y = -68.483, z = 228.157 }, rot = { x = 0.000, y = 347.237, z = 0.000 }, level = 1 },
{ config_id = 381, gadget_id = 70220014, pos = { x = 568.353, y = -68.483, z = 228.284 }, rot = { x = 0.000, y = 102.227, z = 0.000 }, level = 1 },
{ config_id = 383, gadget_id = 70900201, pos = { x = 517.472, y = -63.158, z = 249.971 }, rot = { x = 0.000, y = 292.645, z = 0.000 }, level = 1 },
{ config_id = 384, gadget_id = 70900201, pos = { x = 500.284, y = -26.896, z = 266.196 }, rot = { x = 0.000, y = 292.645, z = 0.000 }, level = 1 },
{ config_id = 385, gadget_id = 70900201, pos = { x = 440.278, y = -23.496, z = 246.387 }, rot = { x = 0.000, y = 1.673, z = 0.000 }, level = 1 },
{ config_id = 387, gadget_id = 70900201, pos = { x = 440.437, y = -23.717, z = 198.742 }, rot = { x = 0.000, y = 1.673, z = 0.000 }, level = 1 },
{ config_id = 388, gadget_id = 70900201, pos = { x = 419.648, y = -19.533, z = 173.522 }, rot = { x = 0.000, y = 89.241, z = 0.000 }, level = 1 },
{ config_id = 400, gadget_id = 70900201, pos = { x = 422.615, y = -10.155, z = 173.732 }, rot = { x = 0.000, y = 83.628, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 26, shape = RegionShape.SPHERE, radius = 5, pos = { x = 583.122, y = -58.738, z = 207.036 } },
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = 532.808, y = -67.848, z = 206.054 } },
{ config_id = 49, shape = RegionShape.SPHERE, radius = 5, pos = { x = 517.489, y = -66.393, z = 222.918 } },
{ config_id = 50, shape = RegionShape.SPHERE, radius = 5, pos = { x = 517.124, y = -65.920, z = 252.976 } },
{ config_id = 51, shape = RegionShape.SPHERE, radius = 6.3, pos = { x = 501.371, y = -25.943, z = 266.823 } },
{ config_id = 52, shape = RegionShape.SPHERE, radius = 5, pos = { x = 478.639, y = -28.637, z = 265.797 } },
{ config_id = 53, shape = RegionShape.SPHERE, radius = 5, pos = { x = 440.497, y = -25.464, z = 240.413 } },
{ config_id = 55, shape = RegionShape.SPHERE, radius = 5, pos = { x = 440.277, y = -24.404, z = 220.377 } },
{ config_id = 56, shape = RegionShape.SPHERE, radius = 5, pos = { x = 413.944, y = -21.450, z = 174.554 } },
{ config_id = 58, shape = RegionShape.SPHERE, radius = 19, pos = { x = 555.134, y = -67.817, z = 204.583 } },
{ config_id = 66, shape = RegionShape.CUBIC, size = { x = 10.850, y = 7.530, z = 3.820 }, pos = { x = 440.449, y = -25.500, z = 233.640 } }
}
-- 触发器
triggers = {
{ config_id = 1000018, name = "ANY_MONSTER_DIE_18", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_18", action = "action_EVENT_ANY_MONSTER_DIE_18" },
{ config_id = 1000026, name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26", forbid_guest = false },
{ config_id = 1000048, name = "ENTER_REGION_48", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_48", action = "action_EVENT_ENTER_REGION_48", forbid_guest = false },
{ config_id = 1000049, name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "action_EVENT_ENTER_REGION_49", forbid_guest = false },
{ config_id = 1000050, name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "action_EVENT_ENTER_REGION_50", forbid_guest = false },
{ config_id = 1000051, name = "ENTER_REGION_51", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_51", action = "action_EVENT_ENTER_REGION_51", forbid_guest = false },
{ config_id = 1000052, name = "ENTER_REGION_52", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_52", action = "action_EVENT_ENTER_REGION_52", forbid_guest = false },
{ config_id = 1000053, name = "ENTER_REGION_53", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_53", action = "action_EVENT_ENTER_REGION_53", forbid_guest = false },
{ config_id = 1000055, name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "action_EVENT_ENTER_REGION_55", forbid_guest = false },
{ config_id = 1000056, name = "ENTER_REGION_56", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_56", action = "action_EVENT_ENTER_REGION_56", forbid_guest = false },
{ config_id = 1000058, name = "ENTER_REGION_58", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_58", action = "action_EVENT_ENTER_REGION_58", forbid_guest = false },
{ config_id = 1000066, name = "ENTER_REGION_66", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_66", action = "action_EVENT_ENTER_REGION_66", forbid_guest = false }
}
-- 变量
variables = {
{ config_id = 1, name = "MonsterDie43", value = 0, no_refresh = false },
{ config_id = 2, name = "MonsterDie44", value = 0, no_refresh = false },
{ config_id = 3, name = "MonsterDie55", value = 0, no_refresh = false },
{ config_id = 4, name = "MonsterDie56", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 39, 43, 44 },
gadgets = { 180, 187, 375, 376, 377, 378, 379, 380, 381 },
regions = { 26, 48, 49, 50, 51, 52, 53, 55, 56, 58, 66 },
triggers = { "ANY_MONSTER_DIE_18", "ENTER_REGION_26", "ENTER_REGION_48", "ENTER_REGION_49", "ENTER_REGION_50", "ENTER_REGION_51", "ENTER_REGION_52", "ENTER_REGION_53", "ENTER_REGION_55", "ENTER_REGION_56", "ENTER_REGION_58", "ENTER_REGION_66" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_18(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_18(context, evt)
-- 将configid为 180 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 180, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1010004 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1010004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_26(context, evt)
if evt.param1 ~= 26 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_26(context, evt)
-- 创生gadget 400
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 400 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 触发镜头注目注目位置为坐标461-11174持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=461, y=-11, z=174}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 调用提示id为 1039005 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1039005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_48(context, evt)
if evt.param1 ~= 48 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_48(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {374} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 368
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 368 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if evt.param1 ~= 49 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_49(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {368} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 383
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 383 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if evt.param1 ~= 50 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_50(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {383} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 384
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 384 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_51(context, evt)
if evt.param1 ~= 51 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_51(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {384} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 370
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 370 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_52(context, evt)
if evt.param1 ~= 52 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_52(context, evt)
-- 创生gadget 385
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 385 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_53(context, evt)
if evt.param1 ~= 53 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_53(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {385} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 387
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 387 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_55(context, evt)
if evt.param1 ~= 55 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_55(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {387} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 388
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 388 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 调用提示id为 1010007 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1010007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_56(context, evt)
if evt.param1 ~= 56 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_56(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {388} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 367
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 367 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_58(context, evt)
if evt.param1 ~= 58 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_58(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {400} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 374
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 374 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_66(context, evt)
if evt.param1 ~= 66 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_66(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220008001") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 220008002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 61, monster_id = 20011001, pos = { x = 515.668, y = -65.920, z = 235.193 }, rot = { x = 0.000, y = 175.399, z = 0.000 }, level = 1 },
{ config_id = 63, monster_id = 20011001, pos = { x = 519.493, y = -65.920, z = 235.164 }, rot = { x = 0.000, y = 199.505, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 182, gadget_id = 70320002, pos = { x = 520.868, y = -65.983, z = 246.135 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 243, gadget_id = 70211001, pos = { x = 517.561, y = -65.917, z = 235.623 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 430, gadget_id = 70320002, pos = { x = 513.973, y = -65.983, z = 224.447 }, rot = { x = 0.000, y = 90.138, z = 0.000 }, level = 4, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 29, shape = RegionShape.SPHERE, radius = 7.9, pos = { x = 517.839, y = -67.984, z = 261.210 } }
}
-- 触发器
triggers = {
{ config_id = 1000029, name = "ENTER_REGION_29", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29", action = "action_EVENT_ENTER_REGION_29", forbid_guest = false },
{ config_id = 1000046, name = "GADGET_STATE_CHANGE_46", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_46", action = "action_EVENT_GADGET_STATE_CHANGE_46" },
{ config_id = 1000047, name = "GADGET_STATE_CHANGE_47", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_47", action = "action_EVENT_GADGET_STATE_CHANGE_47" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 182, 243, 430 },
regions = { 29 },
triggers = { "ENTER_REGION_29", "GADGET_STATE_CHANGE_46", "GADGET_STATE_CHANGE_47" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_29(context, evt)
if evt.param1 ~= 29 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_29(context, evt)
-- 调用提示id为 1009001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1009001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 触发镜头注目注目位置为坐标500-62266持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=500, y=-62, z=266}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 展示名称为"GuideAvatarFlyInWind"的引导,见GuideData表参数类型为string
if 0 ~= ScriptLib.ShowClientGuide(context, "GuideAvatarFlyInWind") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : show_client_guide")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_46(context, evt)
if 181 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_46(context, evt)
-- 解锁目标243
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 243, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if 243 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_47(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 61, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 63, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end

View File

@@ -0,0 +1,401 @@
-- 基础信息
local base_info = {
group_id = 220008003
}
-- Trigger变量
local defs = {
gadget_id_1 = 193,
gadget_id_2 = 1
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 50, monster_id = 20011301, pos = { x = 455.642, y = -28.484, z = 260.679 }, rot = { x = 0.000, y = 22.659, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 193, gadget_id = 70350003, pos = { x = 485.934, y = -28.585, z = 266.299 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 194, gadget_id = 70350003, pos = { x = 440.258, y = -25.618, z = 246.296 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 195, gadget_id = 70360002, pos = { x = 488.781, y = -28.514, z = 269.575 }, rot = { x = 0.000, y = 135.152, z = 0.000 }, level = 1 },
{ config_id = 197, gadget_id = 70220002, pos = { x = 470.541, y = -28.410, z = 267.466 }, rot = { x = 0.000, y = 339.627, z = 0.000 }, level = 1 },
{ config_id = 247, gadget_id = 70220010, pos = { x = 447.865, y = -28.327, z = 266.131 }, rot = { x = 0.000, y = 91.123, z = 0.000 }, level = 1 },
{ config_id = 248, gadget_id = 70220023, pos = { x = 458.129, y = -28.433, z = 265.689 }, rot = { x = 0.000, y = 52.075, z = 0.000 }, level = 1 },
{ config_id = 365, gadget_id = 70380001, pos = { x = 433.284, y = -26.337, z = 222.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 366, gadget_id = 70380001, pos = { x = 443.286, y = -26.337, z = 222.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 389, gadget_id = 70211022, pos = { x = 440.503, y = -28.503, z = 266.212 }, rot = { x = 0.000, y = 88.017, z = 0.000 }, level = 1, chest_drop_id = 11010100, drop_count = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 390, gadget_id = 70220013, pos = { x = 444.555, y = -28.284, z = 248.684 }, rot = { x = 349.243, y = 186.270, z = 355.368 }, level = 1 },
{ config_id = 391, gadget_id = 70220013, pos = { x = 466.116, y = -28.426, z = 283.259 }, rot = { x = 0.000, y = 0.203, z = 0.000 }, level = 1 },
{ config_id = 392, gadget_id = 70220014, pos = { x = 464.676, y = -28.637, z = 283.869 }, rot = { x = 0.000, y = 216.038, z = 0.000 }, level = 1 },
{ config_id = 393, gadget_id = 70220014, pos = { x = 443.926, y = -28.611, z = 284.117 }, rot = { x = 0.000, y = 302.000, z = 0.000 }, level = 1 },
{ config_id = 394, gadget_id = 70220014, pos = { x = 438.315, y = -28.489, z = 278.548 }, rot = { x = 0.000, y = 229.730, z = 0.000 }, level = 1 },
{ config_id = 395, gadget_id = 70220014, pos = { x = 445.859, y = -28.627, z = 284.420 }, rot = { x = 0.000, y = 54.228, z = 0.000 }, level = 1 },
{ config_id = 398, gadget_id = 70220014, pos = { x = 464.315, y = -28.570, z = 248.638 }, rot = { x = 0.000, y = 175.453, z = 0.000 }, level = 1 },
{ config_id = 401, gadget_id = 70220023, pos = { x = 450.418, y = -28.484, z = 260.969 }, rot = { x = 0.000, y = 281.483, z = 0.000 }, level = 1 },
{ config_id = 402, gadget_id = 70220023, pos = { x = 452.718, y = -28.433, z = 265.714 }, rot = { x = 0.000, y = 317.004, z = 0.000 }, level = 1 },
{ config_id = 403, gadget_id = 70220023, pos = { x = 449.683, y = -28.483, z = 271.023 }, rot = { x = 0.000, y = 148.263, z = 0.000 }, level = 1 },
{ config_id = 404, gadget_id = 70220023, pos = { x = 454.572, y = -28.433, z = 270.638 }, rot = { x = 0.000, y = 133.318, z = 0.000 }, level = 1 },
{ config_id = 405, gadget_id = 70220023, pos = { x = 455.569, y = -28.434, z = 261.477 }, rot = { x = 0.000, y = 310.354, z = 0.000 }, level = 1 },
{ config_id = 417, gadget_id = 70211111, pos = { x = 431.462, y = -25.418, z = 222.165 }, rot = { x = 0.000, y = 90.044, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true },
{ config_id = 418, gadget_id = 70380001, pos = { x = 433.105, y = -26.319, z = 211.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 10, persistent = true },
{ config_id = 419, gadget_id = 70380001, pos = { x = 438.281, y = -26.337, z = 222.071 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 420, gadget_id = 70900023, pos = { x = 438.064, y = -27.521, z = 226.302 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 421, gadget_id = 70900023, pos = { x = 442.638, y = -27.521, z = 226.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 422, gadget_id = 70900023, pos = { x = 442.890, y = -27.521, z = 217.180 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 423, gadget_id = 70900023, pos = { x = 438.119, y = -27.521, z = 217.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 424, gadget_id = 70900023, pos = { x = 433.328, y = -27.521, z = 217.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 425, gadget_id = 70900023, pos = { x = 442.754, y = -27.521, z = 212.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 426, gadget_id = 70900023, pos = { x = 438.072, y = -27.521, z = 212.324 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 427, gadget_id = 70900023, pos = { x = 433.260, y = -27.521, z = 212.048 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 428, gadget_id = 70900023, pos = { x = 442.755, y = -27.521, z = 231.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 429, gadget_id = 70900023, pos = { x = 438.111, y = -27.521, z = 231.071 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 21, shape = RegionShape.SPHERE, radius = 5, pos = { x = 475.990, y = -28.483, z = 266.281 } },
{ config_id = 59, shape = RegionShape.SPHERE, radius = 5, pos = { x = 471.335, y = -28.503, z = 266.185 } }
}
-- 触发器
triggers = {
{ config_id = 1000020, name = "ANY_MONSTER_DIE_20", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20", action = "action_EVENT_ANY_MONSTER_DIE_20" },
{ config_id = 1000021, name = "ENTER_REGION_21", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21", action = "action_EVENT_ENTER_REGION_21", trigger_count = 0, forbid_guest = false },
{ config_id = 1000023, name = "GADGET_CREATE_23", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_23", action = "action_EVENT_GADGET_CREATE_23" },
{ config_id = 1000024, name = "SELECT_OPTION_24", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_24", action = "action_EVENT_SELECT_OPTION_24", trigger_count = 0, forbid_guest = false },
{ config_id = 1000025, name = "SELECT_OPTION_25", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_25", action = "action_EVENT_SELECT_OPTION_25", trigger_count = 0, forbid_guest = false },
{ config_id = 1000033, name = "DUNGEON_SETTLE_33", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_33", action = "action_EVENT_DUNGEON_SETTLE_33" },
{ config_id = 1000036, name = "SPECIFIC_MONSTER_HP_CHANGE_36", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "50", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_36", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_36" },
{ config_id = 1000038, name = "ANY_GADGET_DIE_38", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_38", action = "action_EVENT_ANY_GADGET_DIE_38", trigger_count = 0 },
{ config_id = 1000057, name = "ANY_MONSTER_DIE_57", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_57", action = "action_EVENT_ANY_MONSTER_DIE_57" },
{ config_id = 1000059, name = "ENTER_REGION_59", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_59", action = "action_EVENT_ENTER_REGION_59", forbid_guest = false },
{ config_id = 1000060, name = "TIMER_EVENT_60", event = EventType.EVENT_TIMER_EVENT, source = "creatself", condition = "", action = "action_EVENT_TIMER_EVENT_60", trigger_count = 0 },
{ config_id = 1000065, name = "ANY_GADGET_DIE_65", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_65", action = "action_EVENT_ANY_GADGET_DIE_65" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 50 },
gadgets = { 193, 194, 195, 197, 247, 248, 365, 366, 389, 390, 391, 392, 393, 394, 395, 398, 401, 402, 403, 404, 405, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429 },
regions = { 21, 59 },
triggers = { "ANY_MONSTER_DIE_20", "ENTER_REGION_21", "GADGET_CREATE_23", "SELECT_OPTION_24", "SELECT_OPTION_25", "DUNGEON_SETTLE_33", "SPECIFIC_MONSTER_HP_CHANGE_36", "ANY_GADGET_DIE_38", "ANY_MONSTER_DIE_57", "ENTER_REGION_59", "TIMER_EVENT_60", "ANY_GADGET_DIE_65" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 将configid为 194 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 194, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 解锁目标389
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 389, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
if evt.param1 ~= 21 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_21(context, evt)
-- 将configid为 195 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 195, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_23(context, evt)
if 195 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_23(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_24(context, evt)
-- 判断是gadgetid 195
if 195 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_24(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_2 == evt.param2 then
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {370} }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.GearStart) then
return -1
end
-- 删除指定group 220008003 指定config195物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220008003, 195, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_25(context, evt)
-- 判断是gadgetid 195
if 195 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_25(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 195, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_option")
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_33(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_33(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220008001, monsters = {}, gadgets = {367} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_36(context, evt)
--[[判断指定configid的怪物的血量小于%80时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 80 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_36(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220008012, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_38(context, evt)
if 247 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_38(context, evt)
-- 延迟24秒后,向groupId为220008003的对象,请求一次调用,并将string参数"creatself" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220008003, "creatself", 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_57(context, evt)
if 50 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_57(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220008012, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 创生gadget 365
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 365 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_59(context, evt)
if evt.param1 ~= 59 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_59(context, evt)
-- 触发镜头注目注目位置为坐标447-28266持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=447, y=-28, z=266}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_60(context, evt)
-- 创生gadget 247
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 247 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_65(context, evt)
if 247 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_65(context, evt)
-- 调用提示id为 1010001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1010001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,157 @@
-- 基础信息
local base_info = {
group_id = 220008004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 240, gadget_id = 70350002, pos = { x = 364.612, y = -20.168, z = 173.424 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 241, gadget_id = 70300015, pos = { x = 389.779, y = -21.422, z = 173.377 }, rot = { x = 0.000, y = 93.970, z = 0.000 }, level = 1 },
{ config_id = 242, gadget_id = 70211001, pos = { x = 379.440, y = -21.500, z = 173.610 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 362, gadget_id = 70350003, pos = { x = 419.822, y = -21.507, z = 173.527 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 31, shape = RegionShape.SPHERE, radius = 9.13, pos = { x = 410.762, y = -21.500, z = 174.791 } },
{ config_id = 40, shape = RegionShape.CUBIC, size = { x = 48.750, y = 18.040, z = 7.100 }, pos = { x = 440.663, y = -21.500, z = 173.857 } }
}
-- 触发器
triggers = {
{ config_id = 1000022, name = "DUNGEON_SETTLE_22", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_22", action = "action_EVENT_DUNGEON_SETTLE_22" },
{ config_id = 1000031, name = "ENTER_REGION_31", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31", action = "action_EVENT_ENTER_REGION_31", forbid_guest = false },
{ config_id = 1000040, name = "ENTER_REGION_40", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_40", action = "action_EVENT_ENTER_REGION_40", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 240, 241, 362 },
regions = { 31, 40 },
triggers = { "ENTER_REGION_31", "ENTER_REGION_40" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_22(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_22(context, evt)
-- 创生gadget 242
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 242 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31(context, evt)
if evt.param1 ~= 31 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_31(context, evt)
-- 调用提示id为 1036001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1036001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 触发镜头注目注目位置为坐标389-21173持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=389, y=-21, z=173}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_40(context, evt)
if evt.param1 ~= 40 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_40(context, evt)
-- 将configid为 362 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 362, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 220008006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 329, gadget_id = 70310002, pos = { x = 584.269, y = -54.521, z = 202.940 }, rot = { x = 0.000, y = 93.280, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 330, gadget_id = 70310002, pos = { x = 584.282, y = -54.521, z = 210.064 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 331, gadget_id = 70310001, pos = { x = 579.427, y = -60.050, z = 216.252 }, rot = { x = 0.000, y = 277.404, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 332, gadget_id = 70310001, pos = { x = 576.585, y = -60.060, z = 216.397 }, rot = { x = 0.000, y = 318.820, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 333, gadget_id = 70310001, pos = { x = 552.457, y = -68.529, z = 223.139 }, rot = { x = 0.000, y = 2.189, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 334, gadget_id = 70310001, pos = { x = 546.430, y = -68.510, z = 215.024 }, rot = { x = 0.000, y = 300.700, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 339, gadget_id = 70310001, pos = { x = 542.182, y = -63.061, z = 197.078 }, rot = { x = 0.000, y = 16.613, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 340, gadget_id = 70310001, pos = { x = 541.208, y = -59.691, z = 192.701 }, rot = { x = 0.000, y = 260.941, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 341, gadget_id = 70310002, pos = { x = 524.322, y = -62.558, z = 212.939 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 342, gadget_id = 70310002, pos = { x = 523.417, y = -62.750, z = 213.993 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 343, gadget_id = 70310002, pos = { x = 524.375, y = -62.760, z = 200.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 344, gadget_id = 70310002, pos = { x = 509.964, y = -64.867, z = 199.587 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 345, gadget_id = 70310002, pos = { x = 510.021, y = -62.789, z = 213.866 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 350, gadget_id = 70310001, pos = { x = 440.495, y = -28.483, z = 275.985 }, rot = { x = 0.000, y = 183.126, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 351, gadget_id = 70310001, pos = { x = 446.195, y = -28.498, z = 280.489 }, rot = { x = 0.000, y = 23.281, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 352, gadget_id = 70310001, pos = { x = 467.329, y = -28.517, z = 256.328 }, rot = { x = 0.000, y = 45.362, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 356, gadget_id = 70310002, pos = { x = 414.436, y = -19.195, z = 169.230 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 357, gadget_id = 70310002, pos = { x = 414.348, y = -19.175, z = 177.845 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 358, gadget_id = 70310002, pos = { x = 402.172, y = -16.516, z = 159.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 359, gadget_id = 70310002, pos = { x = 373.360, y = -16.290, z = 159.376 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 360, gadget_id = 70310002, pos = { x = 373.319, y = -15.920, z = 187.212 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 361, gadget_id = 70310002, pos = { x = 402.076, y = -16.158, z = 187.198 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 409, gadget_id = 70310002, pos = { x = 489.902, y = -51.346, z = 261.373 }, rot = { x = 0.000, y = 3.092, z = 0.000 }, level = 1 },
{ config_id = 410, gadget_id = 70310002, pos = { x = 484.190, y = -51.346, z = 261.368 }, rot = { x = 0.000, y = 3.092, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 412, gadget_id = 70310002, pos = { x = 489.902, y = -51.346, z = 271.406 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 413, gadget_id = 70310002, pos = { x = 484.190, y = -51.346, z = 271.515 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 414, gadget_id = 70211111, pos = { x = 479.092, y = -54.748, z = 266.278 }, rot = { x = 0.000, y = 89.194, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true },
{ config_id = 415, gadget_id = 70310001, pos = { x = 479.359, y = -54.734, z = 264.118 }, rot = { x = 0.000, y = 260.941, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 416, gadget_id = 70310001, pos = { x = 479.437, y = -54.734, z = 268.424 }, rot = { x = 0.000, y = 260.941, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 329, 330, 331, 332, 333, 334, 339, 340, 341, 342, 343, 344, 345, 350, 351, 352, 356, 357, 358, 359, 360, 361, 409, 410, 412, 413, 414, 415, 416 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220008007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 363, gadget_id = 70220013, pos = { x = 539.509, y = -63.142, z = 195.681 }, rot = { x = 0.000, y = 275.794, z = 0.000 }, level = 1 },
{ config_id = 364, gadget_id = 70220013, pos = { x = 539.018, y = -59.832, z = 186.448 }, rot = { x = 0.000, y = 8.749, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 363, 364 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220008012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 20011201, pos = { x = 453.173, y = -28.484, z = 262.842 }, rot = { x = 0.000, y = 29.768, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 12002, monster_id = 20011201, pos = { x = 457.965, y = -28.484, z = 262.499 }, rot = { x = 0.000, y = 310.652, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 12003, monster_id = 20011201, pos = { x = 457.931, y = -28.433, z = 268.973 }, rot = { x = 0.000, y = 240.051, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 12004, monster_id = 20011201, pos = { x = 453.003, y = -28.433, z = 269.417 }, rot = { x = 0.000, y = 139.972, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 12001, 12002, 12003, 12004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 220008901
}
-- Trigger变量
local defs = {
gadget_id_1 = 41,
gadget_id_2 = 42,
gadget_id_3 = 43
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 41, shape = RegionShape.CUBIC, size = { x = 18.160, y = 3.000, z = 47.080 }, pos = { x = 565.430, y = -62.666, z = 206.703 } },
{ config_id = 42, shape = RegionShape.SPHERE, radius = 5, pos = { x = 517.301, y = -65.573, z = 221.517 } },
{ config_id = 43, shape = RegionShape.CUBIC, size = { x = 3.880, y = 3.410, z = 50.310 }, pos = { x = 471.269, y = -28.506, z = 266.122 } }
}
-- 触发器
triggers = {
{ config_id = 1000041, name = "ENTER_REGION_41", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_41", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000042, name = "ENTER_REGION_42", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_42", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000043, name = "ENTER_REGION_43", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43", action = "", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 41, 42, 43 },
triggers = { "ENTER_REGION_41", "ENTER_REGION_42", "ENTER_REGION_43" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_41(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30707) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_42(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30708) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_43(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30709) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
return true
end
return false
end

File diff suppressed because it is too large Load Diff