添加配置表

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
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -1000.0, z = -1000.0 },
size = { x = 2000.0, z = 2000.0 },
born_pos = { x = 248.000, y = 101.000, z = 173.000 },
born_rot = { x = 0.000, y = 327.399, z = 0.000 },
die_y = 80,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 47103 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1000.0, z = -1000.0 }, max = { x = 1000.0, z = 1000.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,5 @@
-- 所有的group
groups = {
{ id = 247103001, refresh_id = 1001, pos = { x = 217.333, y = 89.529, z = 213.059 } },
{ id = 247103002, refresh_id = 1, pos = { x = 217.317, y = 89.446, z = 788.271 } }
}
@@ -0,0 +1,55 @@
dummy_points = {
["N10000005_T4008203"] = { pos = { x = 223.404, y = 90.184, z = 206.443 }, rot = { x = 0.000, y = 328.496, z = 0.000 } },
["N10000005_T4008510"] = { pos = { x = 717.708, y = 90.200, z = 779.282 }, rot = { x = 0.000, y = 59.207, z = 0.000 } },
["N1005_T4008203"] = { pos = { x = 224.883, y = 90.184, z = 207.342 }, rot = { x = 0.000, y = 324.924, z = 0.000 } },
["N1005_T4008508"] = { pos = { x = 722.542, y = 90.184, z = 774.328 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["N1005_T4008510"] = { pos = { x = 717.283, y = 90.197, z = 780.842 }, rot = { x = 0.000, y = 59.207, z = 0.000 } },
["N1034_T4008509"] = { pos = { x = 732.703, y = 90.179, z = 767.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["N1034_T4008510"] = { pos = { x = 718.743, y = 90.184, z = 778.207 }, rot = { x = 0.000, y = 59.207, z = 0.000 } },
["N1063_T4008509"] = { pos = { x = 730.758, y = 90.175, z = 764.799 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["N1063_T4008510"] = { pos = { x = 715.988, y = 90.187, z = 779.698 }, rot = { x = 0.000, y = 53.603, z = 0.000 } },
["N12855_T4008509"] = { pos = { x = 735.676, y = 90.016, z = 768.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["N12855_T4008510"] = { pos = { x = 717.149, y = 90.184, z = 777.754 }, rot = { x = 0.000, y = 53.603, z = 0.000 } },
["N12856_T4008505"] = { pos = { x = 224.807, y = 90.184, z = 217.061 }, rot = { x = 0.000, y = 234.120, z = 0.000 } },
["N12856_T4008510"] = { pos = { x = 724.936, y = 90.183, z = 782.992 }, rot = { x = 0.000, y = 147.820, z = 0.000 } },
["N12858_T4008203"] = { pos = { x = 214.904, y = 90.184, z = 220.961 }, rot = { x = 0.000, y = 148.978, z = 0.000 } },
["N12926_T4008508"] = { pos = { x = 712.423, y = 90.181, z = 785.592 }, rot = { x = 0.000, y = 150.572, z = 0.000 } },
["N12926_T4008509"] = { pos = { x = 713.440, y = 90.182, z = 782.209 }, rot = { x = 0.000, y = 145.098, z = 0.000 } },
["N12927_T4008508"] = { pos = { x = 713.433, y = 90.184, z = 788.262 }, rot = { x = 0.000, y = 150.572, z = 0.000 } },
["N12927_T4008509"] = { pos = { x = 714.265, y = 90.184, z = 785.517 }, rot = { x = 0.000, y = 145.098, z = 0.000 } },
["N12927_T4008510"] = { pos = { x = 722.122, y = 90.181, z = 781.589 }, rot = { x = 0.000, y = 261.748, z = 0.000 } },
["N12928_T4008508"] = { pos = { x = 716.264, y = 90.185, z = 790.712 }, rot = { x = 0.000, y = 150.572, z = 0.000 } },
["N12928_T4008509"] = { pos = { x = 718.838, y = 90.184, z = 787.913 }, rot = { x = 0.000, y = 145.098, z = 0.000 } },
["N12929_T4008508"] = { pos = { x = 720.009, y = 90.183, z = 790.271 }, rot = { x = 0.000, y = 150.572, z = 0.000 } },
["N12929_T4008509"] = { pos = { x = 722.232, y = 90.184, z = 787.973 }, rot = { x = 0.000, y = 145.098, z = 0.000 } },
["N12981_T4008203"] = { pos = { x = 221.128, y = 90.184, z = 207.242 }, rot = { x = 0.000, y = 323.321, z = 0.000 } },
["N12981_T4008508"] = { pos = { x = 723.861, y = 90.184, z = 776.293 }, rot = { x = 0.000, y = 323.860, z = 0.000 } },
["N12981_T4008509"] = { pos = { x = 724.005, y = 90.184, z = 781.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["N12981_T4008510"] = { pos = { x = 720.085, y = 90.179, z = 781.344 }, rot = { x = 0.000, y = 75.629, z = 0.000 } },
["N12982_T4008408"] = { pos = { x = 214.871, y = 90.184, z = 218.265 }, rot = { x = 0.000, y = 149.607, z = 0.000 } },
["N12982_T4008508"] = { pos = { x = 721.003, y = 90.184, z = 775.884 }, rot = { x = 0.000, y = 332.317, z = 0.000 } },
["N12982_T4008509"] = { pos = { x = 725.311, y = 90.184, z = 780.078 }, rot = { x = 0.000, y = 324.094, z = 0.000 } },
["N12983_T4008508"] = { pos = { x = 725.217, y = 90.184, z = 778.818 }, rot = { x = 0.000, y = 323.988, z = 0.000 } },
["N12983_T4008509"] = { pos = { x = 724.877, y = 90.184, z = 783.594 }, rot = { x = 0.000, y = 210.662, z = 0.000 } },
["N12984_T4008508"] = { pos = { x = 722.047, y = 90.183, z = 778.865 }, rot = { x = 0.000, y = 329.788, z = 0.000 } },
["N12984_T4008509"] = { pos = { x = 721.497, y = 90.184, z = 782.146 }, rot = { x = 0.000, y = 106.404, z = 0.000 } },
["N12984_T4008515"] = { pos = { x = 217.291, y = 90.184, z = 219.909 }, rot = { x = 0.000, y = 148.424, z = 0.000 } },
["Q4008203_guide"] = { pos = { x = 219.613, y = 90.183, z = 213.113 }, rot = { x = 0.081, y = 0.000, z = 0.129 } },
["Q4008203_N12858"] = { pos = { x = 214.903, y = 90.183, z = 220.990 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008206"] = { pos = { x = 248.000, y = 101.000, z = 173.000 }, rot = { x = 0.000, y = 327.400, z = 0.000 } },
["Q4008206_N12858"] = { pos = { x = 209.393, y = 90.187, z = 227.492 }, rot = { x = 0.000, y = 145.000, z = 0.000 } },
["Q4008207_N1005"] = { pos = { x = 223.400, y = 90.181, z = 206.522 }, rot = { x = 0.167, y = 327.000, z = 359.968 } },
["Q4008302_N12859"] = { pos = { x = 214.881, y = 90.183, z = 220.975 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008310_N12860"] = { pos = { x = 214.911, y = 90.183, z = 220.954 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008404_N12861"] = { pos = { x = 214.917, y = 90.184, z = 220.983 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008405_guide"] = { pos = { x = 208.371, y = 91.660, z = 227.215 }, rot = { x = 0.000, y = 142.199, z = 0.000 } },
["Q4008408_N1063"] = { pos = { x = 214.923, y = 90.183, z = 220.963 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008502_N12855"] = { pos = { x = 214.901, y = 90.184, z = 220.976 }, rot = { x = 0.000, y = 147.000, z = 0.000 } },
["Q4008505"] = { pos = { x = 725.244, y = 90.184, z = 774.330 }, rot = { x = 0.291, y = 325.000, z = 0.044 } },
["Q4008508_N12856"] = { pos = { x = 715.749, y = 90.184, z = 788.321 }, rot = { x = 0.000, y = 145.000, z = 0.000 } },
["Q4008514_guide"] = { pos = { x = 710.694, y = 91.751, z = 793.629 }, rot = { x = 0.000, y = 151.171, z = 0.000 } },
["Q4008514_N12856"] = { pos = { x = 711.713, y = 90.187, z = 793.500 }, rot = { x = 0.000, y = 138.847, z = 0.000 } },
["Q4008514_N12928"] = { pos = { x = 712.588, y = 90.178, z = 795.463 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["Q4008514_N12929"] = { pos = { x = 709.238, y = 90.174, z = 793.580 }, rot = { x = 0.000, y = 135.000, z = 0.000 } },
["Q4008516"] = { pos = { x = 222.745, y = 90.187, z = 205.054 }, rot = { x = 0.000, y = 320.000, z = 0.000 } }
}
@@ -0,0 +1,256 @@
-- 基础信息
local base_info = {
group_id = 247103001
}
-- Trigger变量
local defs = {
monster_tide = {1009,1011,1012,1013},
total_count = 8,
max_count = 4,
min_count = 1,
isFungusQuestGroup = 1,
camGadget = {1022,1024},
awardball_configid = 1033
}
-- DEFS_MISCS
local enemy_fungus_born_points=
{
[1]=1005,
[2]=1006,
[3]=1007,
[4]=1008
}
local partner_fungus_born_points=
{
[1]=1001,
[2]=1002,
[3]=1003,
[4]=1004
}
local enemy_fungus_born_points_two=
{
[1]=1014,
[2]=1015,
[3]=1016,
[4]=1017
}
local partner_fungus_born_points_two=
{
[1]=1018,
[2]=1019,
[3]=1020,
[4]=1021
}
local awardball_room_one=
{
[1]=1025,
[2]=1026,
[3]=1027,
[4]=1028
}
local awardball_room_two=
{
[1]=1029,
[2]=1030,
[3]=1031,
[4]=1032
}
local create_partner_fungus=
{
[4008206]={},
[4008304]={},
[4008312]={},
[4008405]={},
[4008409]={},
[4008515]={},
[4008516]={},
[4008514]={[1]={config_id=1023,affix={5254}}},
[4008511]={
[1]={config_id=1023},
[2]={config_id=1028},
[3]={config_id=1025},
[4]={config_id=1026}
}
}
local create_enemy_fungus=
{
[4008206]=
{
[1]={config_id=1039,affix={5247}},
[2]={config_id=1037,affix={5247}},
[3]={config_id=1035,affix={5247}},
[4]={config_id=1034,affix={5223,5247}}
},
[4008304]=
{
[1]={config_id=1042,affix={5248}},
[2]={config_id=1039,affix={5248}},
[3]={config_id=1034,affix={5248}},
[4]={config_id=1040,affix={5223,5248}}
},
[4008312]=
{
[1]={config_id=1033,affix={5249}},
[2]={config_id=1040,affix={5249}},
[3]={config_id=1042,affix={5249}},
[4]={config_id=1037,affix={5223,5249}}
},
[4008405]=
{
[1]={config_id=1033,affix={5250}},
[2]={config_id=1042,affix={5250}},
[3]={config_id=1039,affix={5250}},
[4]={config_id=1041,affix={5223,5250}}
},
[4008409]=
{
[1]={config_id=1036,affix={5251}},
[2]={config_id=1037,affix={5251}},
[3]={config_id=1040,affix={5251}},
[4]={config_id=1035,affix={5223,5251}}
},
[4008515]=
{
[1]={config_id=1040,affix={5252}},
[2]={config_id=1042,affix={5252}},
[3]={config_id=1039,affix={5252}},
[4]={config_id=1038,affix={5223,5252}}
},
[4008516]=
{
[1]={config_id=1040,affix={5252}},
[2]={config_id=1042,affix={5252}},
[3]={config_id=1039,affix={5252}},
[4]={config_id=1038,affix={5223,5252}}
},
[4008514]=
{
[1]={config_id=1038,affix={5252}},
[2]={config_id=1035,affix={5252}},
[3]={config_id=1036,affix={5252}}
},
[4008511]={}
}
local room_two_quests={4008511,4008514}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1009, monster_id = 23010101, pos = { x = 716.494, y = 90.189, z = 781.193 }, rot = { x = 0.000, y = 112.997, z = 0.000 }, level = 21, disableWander = true },
{ config_id = 1011, monster_id = 23010401, pos = { x = 716.598, y = 90.184, z = 785.827 }, rot = { x = 0.000, y = 136.679, z = 0.000 }, level = 21, disableWander = true },
{ config_id = 1012, monster_id = 23010501, pos = { x = 718.878, y = 90.184, z = 787.864 }, rot = { x = 0.000, y = 172.304, z = 0.000 }, level = 21, disableWander = true },
{ config_id = 1013, monster_id = 23010601, pos = { x = 714.354, y = 90.184, z = 784.596 }, rot = { x = 0.000, y = 109.391, z = 0.000 }, level = 21, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1022, gadget_id = 70290731, pos = { x = 720.693, y = 90.184, z = 780.918 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70290731, pos = { x = 720.670, y = 90.184, z = 781.151 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1024, gadget_id = 70290731, pos = { x = 218.653, y = 90.180, z = 212.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1033, gadget_id = 70290663, pos = { x = 730.102, y = 90.184, z = 784.447 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 点位
points = {
{ config_id = 1001, pos = { x = 219.182, y = 90.184, z = 208.446 }, rot = { x = 0.000, y = 327.200, z = 0.000 } },
{ config_id = 1002, pos = { x = 221.373, y = 90.184, z = 207.860 }, rot = { x = 0.000, y = 327.200, z = 0.000 } },
{ config_id = 1003, pos = { x = 223.102, y = 90.184, z = 208.953 }, rot = { x = 0.000, y = 327.200, z = 0.000 } },
{ config_id = 1004, pos = { x = 223.256, y = 90.184, z = 211.106 }, rot = { x = 0.000, y = 327.200, z = 0.000 } },
{ config_id = 1005, pos = { x = 216.001, y = 90.192, z = 219.181 }, rot = { x = 0.000, y = 147.200, z = 0.000 } },
{ config_id = 1006, pos = { x = 214.697, y = 90.184, z = 216.437 }, rot = { x = 0.000, y = 147.200, z = 0.000 } },
{ config_id = 1007, pos = { x = 218.874, y = 90.184, z = 219.502 }, rot = { x = 0.000, y = 147.200, z = 0.000 } },
{ config_id = 1008, pos = { x = 217.782, y = 90.184, z = 216.433 }, rot = { x = 0.000, y = 147.200, z = 0.000 } },
{ config_id = 1014, pos = { x = 718.600, y = 90.184, z = 784.140 }, rot = { x = 0.000, y = 144.000, z = 0.000 } },
{ config_id = 1015, pos = { x = 719.940, y = 90.184, z = 786.153 }, rot = { x = 0.000, y = 144.000, z = 0.000 } },
{ config_id = 1016, pos = { x = 716.839, y = 90.184, z = 786.609 }, rot = { x = 0.000, y = 144.000, z = 0.000 } },
{ config_id = 1017, pos = { x = 716.301, y = 90.184, z = 783.459 }, rot = { x = 0.000, y = 144.000, z = 0.000 } },
{ config_id = 1018, pos = { x = 722.050, y = 90.183, z = 778.863 }, rot = { x = 0.000, y = 325.000, z = 0.000 } },
{ config_id = 1019, pos = { x = 725.230, y = 90.184, z = 778.771 }, rot = { x = 0.000, y = 325.000, z = 0.000 } },
{ config_id = 1020, pos = { x = 721.080, y = 90.184, z = 775.860 }, rot = { x = 0.000, y = 325.000, z = 0.000 } },
{ config_id = 1021, pos = { x = 723.813, y = 90.184, z = 776.245 }, rot = { x = 357.729, y = 325.000, z = 356.939 } },
{ config_id = 1025, pos = { x = 223.676, y = 91.184, z = 216.577 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1026, pos = { x = 214.196, y = 91.184, z = 210.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1027, pos = { x = 217.035, y = 91.184, z = 217.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1028, pos = { x = 224.900, y = 91.184, z = 207.642 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1029, pos = { x = 725.455, y = 91.184, z = 784.058 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1030, pos = { x = 717.819, y = 91.184, z = 785.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1031, pos = { x = 717.275, y = 91.184, z = 777.779 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1032, pos = { x = 725.272, y = 91.184, z = 776.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 1010, monster_id = 23010301, pos = { x = 721.754, y = 90.184, z = 785.125 }, rot = { x = 0.000, y = 172.304, z = 0.000 }, level = 31, disableWander = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V3_2/Activity_BattleMushroomMonster_FugusInitialize"
require "V3_2/Activity_BattleMushroomMonster_QuestGroup"
require "V3_2/Activity_BattleMushroomMonster_FungusGroup"
@@ -0,0 +1,213 @@
-- 基础信息
local base_info = {
group_id = 247103002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70710535, pos = { x = 720.670, y = 84.500, z = 781.151 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70710535, pos = { x = 219.235, y = 84.500, z = 213.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70310148, pos = { x = 219.719, y = 90.181, z = 212.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
{ config_id = 2009, gadget_id = 70900203, pos = { x = 219.719, y = 92.511, z = 212.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2003, shape = RegionShape.SPHERE, radius = 20, pos = { x = 248.068, y = 100.931, z = 172.938 } },
{ config_id = 2004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 219.516, y = 88.646, z = 213.635 } },
{ config_id = 2006, shape = RegionShape.SPHERE, radius = 20, pos = { x = 746.723, y = 90.184, z = 743.603 } },
{ config_id = 2007, shape = RegionShape.SPHERE, radius = 12, pos = { x = 720.603, y = 90.184, z = 780.959 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "ENTER_REGION_2003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2003", action = "action_EVENT_ENTER_REGION_2003", trigger_count = 0 },
{ config_id = 1002004, name = "ENTER_REGION_2004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2004", action = "action_EVENT_ENTER_REGION_2004", trigger_count = 0 },
{ config_id = 1002006, name = "ENTER_REGION_2006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2006", action = "action_EVENT_ENTER_REGION_2006", trigger_count = 0 },
{ config_id = 1002007, name = "ENTER_REGION_2007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2007", action = "action_EVENT_ENTER_REGION_2007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "default", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1002005, name = "QUEST_FINISH_2005", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_2005", action = "action_EVENT_QUEST_FINISH_2005", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2003, 2004, 2006, 2007 },
triggers = { "ENTER_REGION_2003", "ENTER_REGION_2004", "ENTER_REGION_2006", "ENTER_REGION_2007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2003(context, evt)
if evt.param1 ~= 2003 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_2003(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 247103002, 2)
-- 创建id为2008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2004(context, evt)
if evt.param1 ~= 2004 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_2004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 247103002, 2)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 247103002, EntityType.GADGET, 2008 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 247103002, EntityType.GADGET, 2009 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2006(context, evt)
if evt.param1 ~= 2006 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_2006(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 247103002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2007(context, evt)
if evt.param1 ~= 2007 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_2007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 247103002, 3)
return 0
end
@@ -0,0 +1,384 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 150.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 221.1172,
"y": 80.8,
"z": 207.473
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 3.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 150.0
},
"stringParam": "",
"tranPos": {
"x": 221.117218,
"y": 90.1837,
"z": 212.730865
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 150.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 720.2861,
"y": 78.5,
"z": 773.3397
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 3.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 150.0
},
"stringParam": "",
"tranPos": {
"x": 720.286133,
"y": 90.17926,
"z": 781.269958
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 283.767,
"y": 85.57883,
"z": 167.9876
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 15.0,
"useHeight": true,
"width": 15.0
},
"stringParam": "",
"tranPos": {
"x": 221.117218,
"y": 90.1837,
"z": 212.730865
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 722.6642,
"y": 90.18372,
"z": 774.9195
},
"rot": {
"x": 0.0,
"y": 334.1542,
"z": 0.0
},
"size": {
"x": 40.0,
"y": 5.0,
"z": 40.0
},
"tranPos": {
"x": 724.7986,
"y": 90.18372,
"z": 774.9275
},
"tranRot": {
"x": 0.0,
"y": 334.1542,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 217.4821,
"y": 89.44568,
"z": 788.0901
},
"rot": {
"x": 0.0,
"y": 44.71494,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 217.4821,
"y": 89.44568,
"z": 788.0901
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 219.6324,
"y": 90.18021,
"z": 213.0532
},
"rot": {
"x": 0.0,
"y": 327.8918,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 217.0723,
"y": 90.18111,
"z": 212.3499
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 249.4829,
"y": 101.213,
"z": 169.483
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 10.0,
"z": 15.0
},
"tranPos": {
"x": 249.482941,
"y": 101.21302,
"z": 169.483032
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 248.1751,
"y": 101.0489,
"z": 170.6051
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 20.0
},
"tranPos": {
"x": 248.17511,
"y": 101.048889,
"z": 170.6051
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}