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

835 lines
17 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
L0_1 = {}
L0_1.group_id = 133001106
L1_1 = {}
L1_1.gadget_id_1 = 3022
L1_1.gadget_id_2 = 3033
L1_1.gadget_id_3 = 3034
L1_1.gadget_id_4 = 3035
L1_1.gadget_id_5 = 3036
L1_1.gadget_id_6 = 1817
L1_1.gadget_id_7 = 25
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1774
L3_1.gadget_id = 70211111
L4_1 = {}
L4_1.x = 1397.886
L4_1.y = 233.723
L4_1.z = -1569.004
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 80.561
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 11
L3_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\232\146\153\229\190\183"
L3_1.showcutscene = true
L3_1.isOneoff = true
L3_1.persistent = true
L4_1 = {}
L4_1.name = "chest"
L4_1.exp = 1
L3_1.explore = L4_1
L3_1.area_id = 2
L4_1 = {}
L4_1.config_id = 1817
L4_1.gadget_id = 70800012
L5_1 = {}
L5_1.x = 1564.011
L5_1.y = 252.14
L5_1.z = -1641.187
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 249.49
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 15
L4_1.area_id = 2
L5_1 = {}
L5_1.config_id = 3022
L5_1.gadget_id = 70900009
L6_1 = {}
L6_1.x = 1563.317
L6_1.y = 251.986
L6_1.z = -1641.356
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 119.312
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 15
L6_1 = GadgetState
L6_1 = L6_1.GearStop
L5_1.state = L6_1
L5_1.persistent = true
L5_1.area_id = 2
L6_1 = {}
L6_1.config_id = 3033
L6_1.gadget_id = 70211012
L7_1 = {}
L7_1.x = 1580.893
L7_1.y = 252.178
L7_1.z = -1634.032
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 245.729
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 11
L6_1.drop_tag = "\230\136\152\230\150\151\228\184\173\231\186\167\232\146\153\229\190\183"
L7_1 = GadgetState
L7_1 = L7_1.ChestLocked
L6_1.state = L7_1
L6_1.isOneoff = true
L6_1.persistent = true
L7_1 = {}
L7_1.name = "chest"
L7_1.exp = 1
L6_1.explore = L7_1
L6_1.area_id = 2
L7_1 = {}
L7_1.config_id = 3034
L7_1.gadget_id = 70211002
L8_1 = {}
L8_1.x = 1559.171
L8_1.y = 252.034
L8_1.z = -1624.124
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 167.107
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 11
L7_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183"
L8_1 = GadgetState
L8_1 = L8_1.ChestLocked
L7_1.state = L8_1
L7_1.isOneoff = true
L7_1.persistent = true
L8_1 = {}
L8_1.name = "chest"
L8_1.exp = 1
L7_1.explore = L8_1
L7_1.area_id = 2
L8_1 = {}
L8_1.config_id = 3035
L8_1.gadget_id = 70211012
L9_1 = {}
L9_1.x = 1568.736
L9_1.y = 252.198
L9_1.z = -1659.632
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 348.039
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 11
L8_1.drop_tag = "\230\136\152\230\150\151\228\184\173\231\186\167\232\146\153\229\190\183"
L9_1 = GadgetState
L9_1 = L9_1.ChestLocked
L8_1.state = L9_1
L8_1.isOneoff = true
L8_1.persistent = true
L9_1 = {}
L9_1.name = "chest"
L9_1.exp = 1
L8_1.explore = L9_1
L8_1.area_id = 2
L9_1 = {}
L9_1.config_id = 3036
L9_1.gadget_id = 70211002
L10_1 = {}
L10_1.x = 1546.109
L10_1.y = 252.14
L10_1.z = -1644.788
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 90.347
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 11
L9_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183"
L10_1 = GadgetState
L10_1 = L10_1.ChestLocked
L9_1.state = L10_1
L9_1.isOneoff = true
L9_1.persistent = true
L10_1 = {}
L10_1.name = "chest"
L10_1.exp = 1
L9_1.explore = L10_1
L9_1.area_id = 2
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1000103
L3_1.name = "SEAL_BATTLE_END_103"
L4_1 = EventType
L4_1 = L4_1.EVENT_SEAL_BATTLE_END
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_SEAL_BATTLE_END_103"
L3_1.action = "action_EVENT_SEAL_BATTLE_END_103"
L3_1.trigger_count = 0
L3_1.tlog_tag = "\229\165\189\232\130\137\230\151\143\229\176\129\229\141\176\230\140\145\230\136\152end"
L4_1 = {}
L4_1.config_id = 1000127
L4_1.name = "GADGET_CREATE_127"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_CREATE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_CREATE_127"
L4_1.action = "action_EVENT_GADGET_CREATE_127"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1000128
L5_1.name = "SELECT_OPTION_128"
L6_1 = EventType
L6_1 = L6_1.EVENT_SELECT_OPTION
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_SELECT_OPTION_128"
L5_1.action = "action_EVENT_SELECT_OPTION_128"
L5_1.trigger_count = 0
L5_1.tlog_tag = "\229\188\128\229\144\175\229\165\189\232\130\137\230\151\143\229\176\129\229\141\176\230\140\145\230\136\152"
L6_1 = {}
L6_1.config_id = 1000200
L6_1.name = "TIMER_EVENT_200"
L7_1 = EventType
L7_1 = L7_1.EVENT_TIMER_EVENT
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_TIMER_EVENT_200"
L6_1.action = "action_EVENT_TIMER_EVENT_200"
L7_1 = {}
L7_1.config_id = 1000386
L7_1.name = "GADGET_STATE_CHANGE_386"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_STATE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_386"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_386"
L8_1 = {}
L8_1.config_id = 1000436
L8_1.name = "TIMER_EVENT_436"
L9_1 = EventType
L9_1 = L9_1.EVENT_TIMER_EVENT
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_TIMER_EVENT_436"
L8_1.action = "action_EVENT_TIMER_EVENT_436"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1106001
L9_1.name = "GADGET_CREATE_106001"
L10_1 = EventType
L10_1 = L10_1.EVENT_GADGET_CREATE
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_GADGET_CREATE_106001"
L9_1.action = "action_EVENT_GADGET_CREATE_106001"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1106002
L10_1.name = "GADGET_CREATE_106002"
L11_1 = EventType
L11_1 = L11_1.EVENT_GADGET_CREATE
L10_1.event = L11_1
L10_1.source = ""
L10_1.condition = "condition_EVENT_GADGET_CREATE_106002"
L10_1.action = "action_EVENT_GADGET_CREATE_106002"
L10_1.trigger_count = 0
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "SEAL_RESULT"
L3_1.value = 0
L3_1.no_refresh = false
L2_1[1] = L3_1
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = true
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 1817
L6_1 = 3022
L7_1 = 3033
L8_1 = 3034
L9_1 = 3035
L10_1 = 3036
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "SEAL_BATTLE_END_103"
L6_1 = "GADGET_CREATE_127"
L7_1 = "SELECT_OPTION_128"
L8_1 = "TIMER_EVENT_200"
L9_1 = "GADGET_STATE_CHANGE_386"
L10_1 = "TIMER_EVENT_436"
L11_1 = "GADGET_CREATE_106001"
L12_1 = "GADGET_CREATE_106002"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L2_1[1] = L3_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param2
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "SEAL_RESULT"
L6_2 = L2_2
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = false
return L3_2
end
L3_2 = true
return L3_2
end
condition_EVENT_SEAL_BATTLE_END_103 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "SEAL_RESULT"
L2_2 = L2_2(L3_2, L4_2)
if 0 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.CancelGroupTimerEvent
L3_2 = A0_2
L4_2 = 133001275
L5_2 = "M1"
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
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 = 133001275
L4_2.suite = 2
L2_2 = L2_2(L3_2, L4_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 = 133001106
L5_2 = "S1"
L6_2 = 2
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "SEAL_RESULT"
L2_2 = L2_2(L3_2, L4_2)
if 1 == L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_1
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 = -1
return L2_2
end
L2_2 = {}
L2_2.x = 1562
L2_2.y = 252
L2_2.z = -1640
L3_2 = ScriptLib
L3_2 = L3_2.BeginCameraSceneLook
L4_2 = A0_2
L5_2 = {}
L5_2.look_pos = L2_2
L5_2.duration = 2
L5_2.is_force = true
L5_2.is_broadcast = false
L3_2 = L3_2(L4_2, L5_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.gadget_id_2
L6_2 = GadgetState
L6_2 = L6_2.Default
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.gadget_id_3
L6_2 = GadgetState
L6_2 = L6_2.Default
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.gadget_id_4
L6_2 = GadgetState
L6_2 = L6_2.Default
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = L1_1.gadget_id_5
L6_2 = GadgetState
L6_2 = L6_2.Default
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.KillEntityByConfigId
L4_2 = A0_2
L5_2 = {}
L5_2.config_id = 1817
L3_2 = L3_2(L4_2, L5_2)
if 0 ~= L3_2 then
L3_2 = -1
return L3_2
end
end
L2_2 = 0
return L2_2
end
action_EVENT_SEAL_BATTLE_END_103 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1817 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_127 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133001106
L5_2 = 1817
L6_2 = {}
L7_2 = 25
L6_2[1] = L7_2
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 : set_wok_options_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_127 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1817 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_128 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = L1_1.gadget_id_7
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.StartSealBattle
L3_2 = A0_2
L4_2 = 1817
L5_2 = {}
L5_2.radius = 18
L5_2.kill_time = 100
L5_2.monster_group_id = 133001275
L5_2.max_progress = 10
L6_2 = SealBattleType
L6_2 = L6_2.KILL_MONSTER
L5_2.battle_type = L6_2
L2_2 = L2_2(L3_2, L4_2, L5_2)
end
L2_2 = ScriptLib
L2_2 = L2_2.RefreshGroup
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133001275
L4_2.suite = 1
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_6
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 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.DelWorktopOptionByGroupId
L3_2 = A0_2
L4_2 = 133001106
L5_2 = L1_1.gadget_id_6
L6_2 = 25
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_128 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.source_name
if "KillPZ2" ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_TIMER_EVENT_200 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.KillGroupEntity
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133001088
L5_2 = {}
L4_2.monsters = L5_2
L5_2 = {}
L6_2 = 1715
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 = 0
return L2_2
end
action_EVENT_TIMER_EVENT_200 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 3022 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_386 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.CreateGroupTimerEvent
L3_2 = A0_2
L4_2 = 133001106
L5_2 = "KillPZ2"
L6_2 = 2
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 = ScriptLib
L2_2 = L2_2.SetGroupReplaceable
L3_2 = A0_2
L4_2 = 133001106
L5_2 = true
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.PlayCutScene
L3_2 = A0_2
L4_2 = 9
L5_2 = 0
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 : play_cutscene"
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 = 133001106
L5_2 = {}
L4_2.monsters = L5_2
L5_2 = {}
L6_2 = 1817
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 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_386 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.source_name
if "S1" ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_TIMER_EVENT_436 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133001106
L5_2 = 1817
L6_2 = {}
L7_2 = 25
L6_2[1] = L7_2
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_TIMER_EVENT_436 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
if 3022 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = ScriptLib
L3_2 = L3_2.GetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = A1_2.param1
L3_2 = L3_2(L4_2, L5_2, L6_2)
if L2_2 == L3_2 then
goto lbl_16
end
end
L2_2 = false
do return L2_2 end
::lbl_16::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_106001 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.KillGroupEntity
L3_2 = A0_2
L4_2 = {}
L4_2.group_id = 133001088
L5_2 = {}
L4_2.monsters = L5_2
L5_2 = {}
L6_2 = 1715
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 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_106001 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2.param1
if 3022 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "SEAL_RESULT"
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_GADGET_CREATE_106002 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_2
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_3
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_4
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.gadget_id_5
L5_2 = GadgetState
L5_2 = L5_2.Default
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_106002 = L2_1