Grasscutter_Resources/Resources/Scripts/Scene/44007/scene44007_group244007005.lua
2022-04-29 16:40:51 +02:00

410 lines
7.3 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1
L0_1 = {}
L0_1.group_id = 244007005
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 5009
L2_1.gadget_id = 70900205
L3_1 = {}
L3_1.x = 6.422
L3_1.y = -5.01
L3_1.z = 0.504
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L1_1[1] = L2_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 5008
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 30
L3_1 = {}
L3_1.x = -0.015
L3_1.y = -0.102
L3_1.z = -2.926
L2_1.pos = L3_1
L3_1 = {}
L3_1.config_id = 5011
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 30
L4_1 = {}
L4_1.x = 0.265
L4_1.y = -0.083
L4_1.z = -0.287
L3_1.pos = L4_1
L1_1[1] = L2_1
L1_1[2] = L3_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1005008
L2_1.name = "ENTER_REGION_5008"
L3_1 = EventType
L3_1 = L3_1.EVENT_ENTER_REGION
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ENTER_REGION_5008"
L2_1.action = "action_EVENT_ENTER_REGION_5008"
L2_1.forbid_guest = false
L3_1 = {}
L3_1.config_id = 1005011
L3_1.name = "ENTER_REGION_5011"
L4_1 = EventType
L4_1 = L4_1.EVENT_ENTER_REGION
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ENTER_REGION_5011"
L3_1.action = "action_EVENT_ENTER_REGION_5011"
L3_1.forbid_guest = false
L4_1 = {}
L4_1.config_id = 1005012
L4_1.name = "TIMER_EVENT_5012"
L5_1 = EventType
L5_1 = L5_1.EVENT_TIMER_EVENT
L4_1.event = L5_1
L4_1.source = "T5"
L4_1.condition = ""
L4_1.action = "action_EVENT_TIMER_EVENT_5012"
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 5001
L3_1 = {}
L3_1.x = -8.17
L3_1.y = -0.102
L3_1.z = -4.685
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.tag = 4
L3_1 = {}
L3_1.config_id = 5002
L4_1 = {}
L4_1.x = -7.313
L4_1.y = -0.102
L4_1.z = -1.091
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.tag = 4
L4_1 = {}
L4_1.config_id = 5003
L5_1 = {}
L5_1.x = -8.053
L5_1.y = -0.102
L5_1.z = 1.863
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.tag = 4
L5_1 = {}
L5_1.config_id = 5004
L6_1 = {}
L6_1.x = -12.662
L6_1.y = -0.102
L6_1.z = -4.019
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.tag = 4
L6_1 = {}
L6_1.config_id = 5005
L7_1 = {}
L7_1.x = -12.211
L7_1.y = -0.102
L7_1.z = -0.631
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.tag = 4
L7_1 = {}
L7_1.config_id = 5006
L8_1 = {}
L8_1.x = -12.775
L8_1.y = -0.102
L8_1.z = 2.684
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.tag = 4
L8_1 = {}
L8_1.config_id = 5007
L9_1 = {}
L9_1.x = -16.973
L9_1.y = -0.102
L9_1.z = -1.281
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.tag = 4
L9_1 = {}
L9_1.config_id = 5010
L10_1 = {}
L10_1.x = -5.115
L10_1.y = -0.102
L10_1.z = -8.58
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.tag = 8
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
points = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 5009
L3_1[1] = L4_1
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 5009
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 5008
L6_1 = 5011
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ENTER_REGION_5008"
L6_1 = "ENTER_REGION_5011"
L7_1 = "TIMER_EVENT_5012"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
suites = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 5008 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "IS_BOSS_DEAD"
L5_2 = 244007001
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_5008 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
L2_2 = ScriptLib
L2_2 = L2_2.AutoPoolMonsterTide
L3_2 = A0_2
L4_2 = 5
L5_2 = 244007005
L6_2 = {}
L7_2 = 13035
L6_2[1] = L7_2
L7_2 = 0
L8_2 = {}
L9_2 = {}
L10_2 = {}
L10_2.total_count = 5
L10_2.min_count = 5
L10_2.max_count = 5
L10_2.tag = 4
L10_2.fill_time = 0
L10_2.fill_count = 0
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateGroupTimerEvent
L3_2 = A0_2
L4_2 = 244007005
L5_2 = "T5"
L6_2 = 30
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : create_timerevent_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_5008 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 5011 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "EXTRA_MONSTER"
L5_2 = 244007001
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "IS_BOSS_DEAD"
L5_2 = 244007001
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_5011 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
L2_2 = ScriptLib
L2_2 = L2_2.AutoPoolMonsterTide
L3_2 = A0_2
L4_2 = 51
L5_2 = 244007005
L6_2 = {}
L7_2 = 13040
L6_2[1] = L7_2
L7_2 = 0
L8_2 = {}
L9_2 = {}
L10_2 = {}
L10_2.total_count = 1
L10_2.min_count = 1
L10_2.max_count = 1
L10_2.tag = 8
L10_2.fill_time = 0
L10_2.fill_count = 0
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_5011 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.KillGroupEntity
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 244007005
L5_2 = GroupKillPolicy
L5_2 = L5_2.GROUP_KILL_MONSTER
L4_2.kill_policy = L5_2
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : kill_monster_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RefreshGroup
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 244007005
L4_2.suite = 2
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_TIMER_EVENT_5012 = L1_1