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

756 lines
15 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 = 133102906
L1_1 = {}
L2_1 = {}
L2_1.config_id = 906015
L2_1.monster_id = 21010101
L3_1 = {}
L3_1.x = 1470.22
L3_1.y = 208.561
L3_1.z = 739.997
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 263.192
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L2_1.drop_id = 1000100
L2_1.pose_id = 9010
L2_1.area_id = 5
L3_1 = {}
L3_1.config_id = 906016
L3_1.monster_id = 21010101
L4_1 = {}
L4_1.x = 1468.027
L4_1.y = 208.236
L4_1.z = 739.336
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 69.97
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.pose_id = 9010
L3_1.area_id = 5
L4_1 = {}
L4_1.config_id = 906017
L4_1.monster_id = 21020201
L5_1 = {}
L5_1.x = 1459.129
L5_1.y = 207.1
L5_1.z = 735.211
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 14.246
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.drop_id = 1000100
L4_1.area_id = 5
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 906001
L2_1.gadget_id = 70300083
L3_1 = {}
L3_1.x = 1468.261
L3_1.y = 207.809
L3_1.z = 725.629
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 5.127
L3_1.y = 1.135
L3_1.z = 13.104
L2_1.rot = L3_1
L2_1.level = 18
L2_1.area_id = 5
L3_1 = {}
L3_1.config_id = 906002
L3_1.gadget_id = 70300083
L4_1 = {}
L4_1.x = 1459.629
L4_1.y = 207.069
L4_1.z = 727.706
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.466
L4_1.y = 27.208
L4_1.z = 355.036
L3_1.rot = L4_1
L3_1.level = 18
L3_1.area_id = 5
L4_1 = {}
L4_1.config_id = 906003
L4_1.gadget_id = 70300101
L5_1 = {}
L5_1.x = 1471.791
L5_1.y = 208.349
L5_1.z = 735.225
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 = 18
L4_1.area_id = 5
L5_1 = {}
L5_1.config_id = 906004
L5_1.gadget_id = 70300083
L6_1 = {}
L6_1.x = 1467.995
L6_1.y = 207.261
L6_1.z = 746.134
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 21.484
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 18
L5_1.area_id = 5
L6_1 = {}
L6_1.config_id = 906007
L6_1.gadget_id = 70300118
L7_1 = {}
L7_1.x = 1468.261
L7_1.y = 207.809
L7_1.z = 725.629
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 5.127
L7_1.y = 1.135
L7_1.z = 13.104
L6_1.rot = L7_1
L6_1.level = 18
L6_1.area_id = 5
L7_1 = {}
L7_1.config_id = 906008
L7_1.gadget_id = 70300118
L8_1 = {}
L8_1.x = 1459.629
L8_1.y = 207.069
L8_1.z = 727.706
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.466
L8_1.y = 27.208
L8_1.z = 355.036
L7_1.rot = L8_1
L7_1.level = 18
L7_1.area_id = 5
L8_1 = {}
L8_1.config_id = 906009
L8_1.gadget_id = 70300118
L9_1 = {}
L9_1.x = 1471.791
L9_1.y = 208.349
L9_1.z = 735.225
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.level = 18
L8_1.area_id = 5
L9_1 = {}
L9_1.config_id = 906010
L9_1.gadget_id = 70300118
L10_1 = {}
L10_1.x = 1467.995
L10_1.y = 207.261
L10_1.z = 746.134
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 21.484
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 18
L9_1.area_id = 5
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
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 906005
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 20
L3_1 = {}
L3_1.x = 1465.217
L3_1.y = 207.256
L3_1.z = 736.783
L2_1.pos = L3_1
L2_1.area_id = 5
L1_1[1] = L2_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1906005
L2_1.name = "ENTER_REGION_906005"
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_906005"
L2_1.action = "action_EVENT_ENTER_REGION_906005"
L3_1 = {}
L3_1.config_id = 1906006
L3_1.name = "ANY_GADGET_DIE_906006"
L4_1 = EventType
L4_1 = L4_1.EVENT_ANY_GADGET_DIE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ANY_GADGET_DIE_906006"
L3_1.action = "action_EVENT_ANY_GADGET_DIE_906006"
L4_1 = {}
L4_1.config_id = 1906011
L4_1.name = "ANY_GADGET_DIE_906011"
L5_1 = EventType
L5_1 = L5_1.EVENT_ANY_GADGET_DIE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_ANY_GADGET_DIE_906011"
L4_1.action = "action_EVENT_ANY_GADGET_DIE_906011"
L5_1 = {}
L5_1.config_id = 1906012
L5_1.name = "ANY_GADGET_DIE_906012"
L6_1 = EventType
L6_1 = L6_1.EVENT_ANY_GADGET_DIE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_ANY_GADGET_DIE_906012"
L5_1.action = "action_EVENT_ANY_GADGET_DIE_906012"
L6_1 = {}
L6_1.config_id = 1906013
L6_1.name = "ANY_GADGET_DIE_906013"
L7_1 = EventType
L7_1 = L7_1.EVENT_ANY_GADGET_DIE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_ANY_GADGET_DIE_906013"
L6_1.action = "action_EVENT_ANY_GADGET_DIE_906013"
L7_1 = {}
L7_1.config_id = 1906014
L7_1.name = "ANY_GADGET_DIE_906014"
L8_1 = EventType
L8_1 = L8_1.EVENT_ANY_GADGET_DIE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_ANY_GADGET_DIE_906014"
L7_1.action = "action_EVENT_ANY_GADGET_DIE_906014"
L8_1 = {}
L8_1.config_id = 1906018
L8_1.name = "ANY_MONSTER_DIE_906018"
L9_1 = EventType
L9_1 = L9_1.EVENT_ANY_MONSTER_DIE
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_ANY_MONSTER_DIE_906018"
L8_1.action = "action_EVENT_ANY_MONSTER_DIE_906018"
L9_1 = {}
L9_1.config_id = 1906019
L9_1.name = "VARIABLE_CHANGE_906019"
L10_1 = EventType
L10_1 = L10_1.EVENT_VARIABLE_CHANGE
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_VARIABLE_CHANGE_906019"
L9_1.action = "action_EVENT_VARIABLE_CHANGE_906019"
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
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "allMonstersDead"
L2_1.value = 0
L2_1.no_refresh = false
L3_1 = {}
L3_1.configId = 2
L3_1.name = "allGadgetsDead"
L3_1.value = 0
L3_1.no_refresh = false
L1_1[1] = L2_1
L1_1[2] = L3_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 = {}
L4_1 = 906015
L5_1 = 906016
L6_1 = 906017
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 906001
L5_1 = 906002
L6_1 = 906003
L7_1 = 906004
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 906005
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_906005"
L5_1 = "ANY_GADGET_DIE_906006"
L6_1 = "ANY_MONSTER_DIE_906018"
L7_1 = "VARIABLE_CHANGE_906019"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L2_1.ban_refresh = true
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_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
L3_1.ban_refresh = true
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 906007
L7_1 = 906008
L8_1 = 906009
L9_1 = 906010
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "ANY_GADGET_DIE_906011"
L7_1 = "ANY_GADGET_DIE_906012"
L8_1 = "ANY_GADGET_DIE_906013"
L9_1 = "ANY_GADGET_DIE_906014"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L4_1.ban_refresh = true
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_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 ~= 906005 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_906005 = 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.ShowReminder
L3_2 = A0_2
L4_2 = 31020901
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 : active_reminder_ui"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 133102906
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_906005 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.CheckRemainGadgetCountByGroupId
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133102906
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_906006 = 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.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "allGadgetsDead"
L5_2 = 1
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_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_906006 = L1_1
function L1_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 906001 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_906011 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 906007
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.AddQuestProgress
L3_2 = A0_2
L4_2 = "4113006"
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 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_906011 = L1_1
function L1_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 906002 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_906012 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 906008
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.AddQuestProgress
L3_2 = A0_2
L4_2 = "4113007"
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 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_906012 = L1_1
function L1_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 906003 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_906013 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 906009
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.AddQuestProgress
L3_2 = A0_2
L4_2 = "4113008"
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 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_906013 = L1_1
function L1_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 906004 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_GADGET_DIE_906014 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 906010
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.AddQuestProgress
L3_2 = A0_2
L4_2 = "4113009"
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 = 0
return L2_2
end
action_EVENT_ANY_GADGET_DIE_906014 = 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_906018 = 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.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "allMonstersDead"
L5_2 = 1
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_groupVariable"
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_906018 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2.param1
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "allMonstersDead"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "allGadgetsDead"
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_VARIABLE_CHANGE_906019 = L1_1
function L1_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.ShowReminder
L3_2 = A0_2
L4_2 = 31020906
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 : active_reminder_ui"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "4113002"
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 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_906019 = L1_1