mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
646 lines
14 KiB
Lua
646 lines
14 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
|
|
L0_1 = {}
|
|
L0_1.group_id = 133102758
|
|
L1_1 = {}
|
|
L1_1.group_id = 133102758
|
|
L1_1.gadget_riddle_hint = 758001
|
|
L1_1.gadget_riddle_1 = 758002
|
|
L1_1.gadget_riddle_2 = 758003
|
|
L1_1.gadget_riddle_3 = 758004
|
|
L1_1.gadget_riddle_4 = 758005
|
|
L1_1.gadget_chest = 758006
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 758014
|
|
L3_1.monster_id = 22010101
|
|
L4_1 = {}
|
|
L4_1.x = 1732.769
|
|
L4_1.y = 298.881
|
|
L4_1.z = 386.467
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 45.077
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 18
|
|
L3_1.drop_tag = "\230\183\177\230\184\138\230\179\149\229\184\136"
|
|
L3_1.area_id = 5
|
|
L2_1[1] = L3_1
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 758001
|
|
L3_1.gadget_id = 70310012
|
|
L4_1 = {}
|
|
L4_1.x = 1710.976
|
|
L4_1.y = 285.721
|
|
L4_1.z = 383.429
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 252.033
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 18
|
|
L3_1.persistent = true
|
|
L3_1.area_id = 5
|
|
L4_1 = {}
|
|
L4_1.config_id = 758002
|
|
L4_1.gadget_id = 70310011
|
|
L5_1 = {}
|
|
L5_1.x = 1712.127
|
|
L5_1.y = 286.023
|
|
L5_1.z = 379.259
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 359.811
|
|
L5_1.y = 4.034
|
|
L5_1.z = 2.677
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 18
|
|
L4_1.persistent = true
|
|
L4_1.area_id = 5
|
|
L5_1 = {}
|
|
L5_1.config_id = 758003
|
|
L5_1.gadget_id = 70310011
|
|
L6_1 = {}
|
|
L6_1.x = 1671.283
|
|
L6_1.y = 286.083
|
|
L6_1.z = 375.314
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 11.689
|
|
L6_1.y = 317.877
|
|
L6_1.z = 3.682
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 18
|
|
L5_1.persistent = true
|
|
L5_1.area_id = 5
|
|
L6_1 = {}
|
|
L6_1.config_id = 758004
|
|
L6_1.gadget_id = 70310011
|
|
L7_1 = {}
|
|
L7_1.x = 1687.333
|
|
L7_1.y = 301.059
|
|
L7_1.z = 427.843
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 4.165
|
|
L7_1.y = 257.996
|
|
L7_1.z = 10.851
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 18
|
|
L6_1.persistent = true
|
|
L6_1.area_id = 5
|
|
L7_1 = {}
|
|
L7_1.config_id = 758005
|
|
L7_1.gadget_id = 70310011
|
|
L8_1 = {}
|
|
L8_1.x = 1731.616
|
|
L8_1.y = 299.138
|
|
L8_1.z = 388.435
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 352.219
|
|
L8_1.y = 13.183
|
|
L8_1.z = 13.42
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 18
|
|
L7_1.persistent = true
|
|
L7_1.area_id = 5
|
|
L8_1 = {}
|
|
L8_1.config_id = 758006
|
|
L8_1.gadget_id = 70900051
|
|
L9_1 = {}
|
|
L9_1.x = 1710.978
|
|
L9_1.y = 286.118
|
|
L9_1.z = 383.399
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 358.338
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 18
|
|
L9_1 = GadgetState
|
|
L9_1 = L9_1.GearStop
|
|
L8_1.state = L9_1
|
|
L8_1.isOneoff = true
|
|
L8_1.persistent = true
|
|
L8_1.area_id = 5
|
|
L9_1 = {}
|
|
L9_1.config_id = 758012
|
|
L9_1.gadget_id = 70620003
|
|
L10_1 = {}
|
|
L10_1.x = 1671.263
|
|
L10_1.y = 286.079
|
|
L10_1.z = 375.344
|
|
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.level = 18
|
|
L9_1.area_id = 5
|
|
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 = 1758007
|
|
L3_1.name = "GADGET_STATE_CHANGE_758007"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_758007"
|
|
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_758007"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1758008
|
|
L4_1.name = "VARIABLE_CHANGE_758008"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_VARIABLE_CHANGE
|
|
L4_1.event = L5_1
|
|
L4_1.source = "State_Flag"
|
|
L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_758008"
|
|
L4_1.action = "action_EVENT_VARIABLE_CHANGE_758008"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1758009
|
|
L5_1.name = "GROUP_LOAD_758009"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_GROUP_LOAD
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = ""
|
|
L5_1.action = "action_EVENT_GROUP_LOAD_758009"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1758010
|
|
L6_1.name = "GADGET_STATE_CHANGE_758010"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_758010"
|
|
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_758010"
|
|
L7_1 = {}
|
|
L7_1.config_id = 1758011
|
|
L7_1.name = "GADGET_STATE_CHANGE_758011"
|
|
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_758011"
|
|
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_758011"
|
|
L8_1 = {}
|
|
L8_1.config_id = 1758013
|
|
L8_1.name = "GADGET_STATE_CHANGE_758013"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_GADGET_STATE_CHANGE
|
|
L8_1.event = L9_1
|
|
L8_1.source = ""
|
|
L8_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_758013"
|
|
L8_1.action = "action_EVENT_GADGET_STATE_CHANGE_758013"
|
|
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
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "State_Flag"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = true
|
|
L2_1[1] = L3_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 0
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 758001
|
|
L6_1 = 758002
|
|
L7_1 = 758003
|
|
L8_1 = 758004
|
|
L9_1 = 758005
|
|
L10_1 = 758006
|
|
L11_1 = 758012
|
|
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
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "GADGET_STATE_CHANGE_758007"
|
|
L6_1 = "VARIABLE_CHANGE_758008"
|
|
L7_1 = "GROUP_LOAD_758009"
|
|
L8_1 = "GADGET_STATE_CHANGE_758010"
|
|
L9_1 = "GADGET_STATE_CHANGE_758011"
|
|
L10_1 = "GADGET_STATE_CHANGE_758013"
|
|
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.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
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_riddle_1
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_riddle_2
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_riddle_3
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_riddle_4
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
end
|
|
end
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_STATE_CHANGE_758007 = 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
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.GearStart
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "State_Flag"
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetCurTriggerCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if 0 == L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1003
|
|
L5_2 = 1
|
|
L6_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
end
|
|
else
|
|
L2_2 = A1_2.param1
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.Default
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "State_Flag"
|
|
L5_2 = -1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_758007 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_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 = A1_2.param1
|
|
if not (L2_2 < 0) then
|
|
L2_2 = A1_2.param1
|
|
if not (4 < L2_2) then
|
|
goto lbl_15
|
|
end
|
|
end
|
|
L2_2 = false
|
|
do return L2_2 end
|
|
::lbl_15::
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_758008 = 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 L2_2 == 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_riddle_hint
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Default
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 1 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_riddle_hint
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Action01
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1003
|
|
L5_2 = 2
|
|
L6_2 = 2
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_riddle_hint
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Action02
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1003
|
|
L5_2 = 2
|
|
L6_2 = 3
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 3 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_riddle_hint
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Action03
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1003
|
|
L5_2 = 2
|
|
L6_2 = 4
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
if L2_2 == 4 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_riddle_hint
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.GearStart
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1003
|
|
L5_2 = 3
|
|
L6_2 = 5
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGroupGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_chest
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.Default
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_758008 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = 0
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.group_id
|
|
L6_2 = L1_1.gadget_riddle_1
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = GadgetState
|
|
L4_2 = L4_2.GearStart
|
|
if L3_2 == L4_2 then
|
|
L2_2 = L2_2 + 1
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.group_id
|
|
L6_2 = L1_1.gadget_riddle_2
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = GadgetState
|
|
L4_2 = L4_2.GearStart
|
|
if L3_2 == L4_2 then
|
|
L2_2 = L2_2 + 1
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.group_id
|
|
L6_2 = L1_1.gadget_riddle_3
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = GadgetState
|
|
L4_2 = L4_2.GearStart
|
|
if L3_2 == L4_2 then
|
|
L2_2 = L2_2 + 1
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.group_id
|
|
L6_2 = L1_1.gadget_riddle_4
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = GadgetState
|
|
L4_2 = L4_2.GearStart
|
|
if L3_2 == L4_2 then
|
|
L2_2 = L2_2 + 1
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGroupVariableValue
|
|
L4_2 = A0_2
|
|
L5_2 = "State_Flag"
|
|
L6_2 = L2_2
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_GROUP_LOAD_758009 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 758006 == 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_758010 = 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.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 6008
|
|
L5_2 = 3
|
|
L6_2 = 1
|
|
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 : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.UnfreezeGroupLimit
|
|
L3_2 = A0_2
|
|
L4_2 = 107
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_758010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 758003 == 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_758011 = L2_1
|
|
function L2_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 = 758012
|
|
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 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_758011 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 758005 == 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_758013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateMonster
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 758014
|
|
L4_2.delay_time = 0
|
|
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 : create_monster"
|
|
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_758013 = L2_1
|