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

599 lines
11 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, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1
L0_1 = {}
L0_1.group_id = 220032004
L1_1 = {}
L2_1 = {}
L2_1.config_id = 4001
L2_1.monster_id = 22010201
L3_1 = {}
L3_1.x = 536.462
L3_1.y = -1.975
L3_1.z = 245.159
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 336.981
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L2_1.disableWander = true
L3_1 = {}
L4_1 = 6101
L3_1[1] = L4_1
L2_1.affix = L3_1
L2_1.isElite = true
L3_1 = {}
L3_1.config_id = 4019
L3_1.monster_id = 22010101
L4_1 = {}
L4_1.x = 529.681
L4_1.y = -1.984
L4_1.z = 245.162
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 35.6
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.disableWander = true
L1_1[1] = L2_1
L1_1[2] = L3_1
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 4003
L2_1.gadget_id = 70310001
L3_1 = {}
L3_1.x = 540.962
L3_1.y = -1.983
L3_1.z = 235.382
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
L3_1 = {}
L3_1.config_id = 4004
L3_1.gadget_id = 70310001
L4_1 = {}
L4_1.x = 526.032
L4_1.y = -1.983
L4_1.z = 235.282
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.level = 1
L4_1 = {}
L4_1.config_id = 4005
L4_1.gadget_id = 70310001
L5_1 = {}
L5_1.x = 525.396
L5_1.y = -2.0
L5_1.z = 247.218
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.level = 1
L5_1 = {}
L5_1.config_id = 4006
L5_1.gadget_id = 70310001
L6_1 = {}
L6_1.x = 541.246
L6_1.y = -2.0
L6_1.z = 247.11
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.level = 1
L6_1 = {}
L6_1.config_id = 4008
L6_1.gadget_id = 70900201
L7_1 = {}
L7_1.x = 532.716
L7_1.y = -2.204
L7_1.z = 241.32
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.level = 1
L7_1 = {}
L7_1.config_id = 4009
L7_1.gadget_id = 70690001
L8_1 = {}
L8_1.x = 512.428
L8_1.y = -18.782
L8_1.z = 121.71
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.885
L8_1.y = 91.105
L8_1.z = 5.64
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 4010
L8_1.gadget_id = 70690001
L9_1 = {}
L9_1.x = 531.466
L9_1.y = -18.327
L9_1.z = 125.762
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 330.805
L9_1.y = 359.566
L9_1.z = 355.683
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 4011
L9_1.gadget_id = 70690001
L10_1 = {}
L10_1.x = 531.364
L10_1.y = -3.477
L10_1.z = 184.68
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 358.691
L10_1.y = 2.513
L10_1.z = 355.96
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 4012
L10_1.gadget_id = 70690001
L11_1 = {}
L11_1.x = 531.291
L11_1.y = -15.383
L11_1.z = 131.921
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 330.805
L11_1.y = 359.566
L11_1.z = 355.683
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 4013
L11_1.gadget_id = 70690001
L12_1 = {}
L12_1.x = 531.291
L12_1.y = -10.262
L12_1.z = 143.564
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 330.805
L12_1.y = 359.566
L12_1.z = 355.683
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 4014
L12_1.gadget_id = 70690001
L13_1 = {}
L13_1.x = 531.291
L13_1.y = -7.632
L13_1.z = 149.405
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 330.805
L13_1.y = 359.566
L13_1.z = 355.683
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 4015
L13_1.gadget_id = 70690001
L14_1 = {}
L14_1.x = 531.364
L14_1.y = -3.477
L14_1.z = 165.427
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 358.691
L14_1.y = 2.513
L14_1.z = 355.96
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 4016
L14_1.gadget_id = 70690001
L15_1 = {}
L15_1.x = 531.475
L15_1.y = -3.603
L15_1.z = 174.794
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 358.691
L15_1.y = 2.513
L15_1.z = 355.96
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 4017
L15_1.gadget_id = 70690001
L16_1 = {}
L16_1.x = 531.291
L16_1.y = -12.773
L16_1.z = 137.49
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 330.805
L16_1.y = 359.566
L16_1.z = 355.683
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 4018
L16_1.gadget_id = 70211022
L17_1 = {}
L17_1.x = 533.005
L17_1.y = -1.984
L17_1.z = 248.265
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 180.566
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 6
L16_1.drop_tag = "\230\136\152\230\150\151\233\171\152\231\186\167\232\146\153\229\190\183"
L17_1 = GadgetState
L17_1 = L17_1.ChestLocked
L16_1.state = L17_1
L16_1.isOneoff = true
L17_1 = {}
L17_1.config_id = 4020
L17_1.gadget_id = 70900205
L18_1 = {}
L18_1.x = 536.128
L18_1.y = -73.326
L18_1.z = 111.524
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
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
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 4007
L3_1 = RegionShape
L3_1 = L3_1.CUBIC
L2_1.shape = L3_1
L3_1 = {}
L3_1.x = 10.0
L3_1.y = 20.0
L3_1.z = 10.0
L2_1.size = L3_1
L3_1 = {}
L3_1.x = 533.002
L3_1.y = -1.998
L3_1.z = 219.984
L2_1.pos = L3_1
L1_1[1] = L2_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1004002
L2_1.name = "ANY_MONSTER_DIE_4002"
L3_1 = EventType
L3_1 = L3_1.EVENT_ANY_MONSTER_DIE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ANY_MONSTER_DIE_4002"
L2_1.action = "action_EVENT_ANY_MONSTER_DIE_4002"
L3_1 = {}
L3_1.config_id = 1004007
L3_1.name = "ENTER_REGION_4007"
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_4007"
L3_1.action = "action_EVENT_ENTER_REGION_4007"
L1_1[1] = L2_1
L1_1[2] = L3_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 2
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L4_1 = 4001
L5_1 = 4019
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 4003
L5_1 = 4004
L6_1 = 4005
L7_1 = 4006
L8_1 = 4009
L9_1 = 4010
L10_1 = 4011
L11_1 = 4012
L12_1 = 4013
L13_1 = 4014
L14_1 = 4015
L15_1 = 4016
L16_1 = 4017
L17_1 = 4018
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L3_1[13] = L16_1
L3_1[14] = L17_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 4007
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ANY_MONSTER_DIE_4002"
L5_1 = "ENTER_REGION_4007"
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 4020
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_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
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupMonsterCount
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_MONSTER_DIE_4002 = 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.AddQuestProgress
L3_2 = A0_2
L4_2 = "1011105"
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 : add_quest_progress"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 4008
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_entity_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 4018
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ANY_MONSTER_DIE_4002 = 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 ~= 4007 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetRegionEntityCount
L3_2 = A0_2
L4_2 = {}
L5_2 = A1_2.source_eid
L4_2.region_eid = L5_2
L5_2 = EntityType
L5_2 = L5_2.AVATAR
L4_2.entity_type = L5_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 < 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_4007 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 4003
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 4004
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 4005
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 4006
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.KillGroupEntity
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 220032003
L5_2 = {}
L4_2.monsters = L5_2
L5_2 = {}
L6_2 = 3015
L5_2[1] = L6_2
L4_2.gadgets = 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_monsters_and_gadgets_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 4008
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 : dungeon_settle"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_4007 = L1_1