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 = 111101109 L1_1 = {} L1_1.gadget_1 = 109001 L1_1.gadget_2 = 109002 L1_1.gadget_3 = 109003 L1_1.RewardID = 109004 L1_1.groupID = 111101109 L2_1 = {} L3_1 = {} L3_1.index = 1 L3_1.name = "gadget_1" L4_1 = {} L4_1.index = 2 L4_1.name = "gadget_2" L5_1 = {} L5_1.index = 3 L5_1.name = "gadget_3" L2_1[1] = L3_1 L2_1[2] = L4_1 L2_1[3] = L5_1 gadgetInfo = L2_1 L2_1 = {} monsters = L2_1 L2_1 = {} npcs = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 109001 L3_1.gadget_id = 70950056 L4_1 = {} L4_1.x = 2646.689 L4_1.y = 232.993 L4_1.z = -1349.818 L3_1.pos = L4_1 L4_1 = {} L4_1.x = 0.0 L4_1.y = 172.976 L4_1.z = 0.0 L3_1.rot = L4_1 L3_1.level = 1 L4_1 = GadgetState L4_1 = L4_1.ChestLocked L3_1.state = L4_1 L3_1.persistent = true L4_1 = {} L4_1.config_id = 109002 L4_1.gadget_id = 70950056 L5_1 = {} L5_1.x = 2646.696 L5_1.y = 234.516 L5_1.z = -1349.829 L4_1.pos = L5_1 L5_1 = {} L5_1.x = 0.0 L5_1.y = 172.976 L5_1.z = 0.0 L4_1.rot = L5_1 L4_1.level = 1 L5_1 = GadgetState L5_1 = L5_1.ChestTrap L4_1.state = L5_1 L4_1.persistent = true L5_1 = {} L5_1.config_id = 109003 L5_1.gadget_id = 70950056 L6_1 = {} L6_1.x = 2646.691 L6_1.y = 236.039 L6_1.z = -1349.821 L5_1.pos = L6_1 L6_1 = {} L6_1.x = 0.0 L6_1.y = 172.976 L6_1.z = 0.0 L5_1.rot = L6_1 L5_1.level = 1 L6_1 = GadgetState L6_1 = L6_1.ChestBramble L5_1.state = L6_1 L5_1.persistent = true L6_1 = {} L6_1.config_id = 109004 L6_1.gadget_id = 70210004 L7_1 = {} L7_1.x = 2644.673 L7_1.y = 231.216 L7_1.z = -1350.058 L6_1.pos = L7_1 L7_1 = {} L7_1.x = 0.0 L7_1.y = 261.419 L7_1.z = 0.0 L6_1.rot = L7_1 L6_1.level = 1 L6_1.chest_drop_id = 1000100 L6_1.drop_count = 1 L6_1.isOneoff = true L6_1.persistent = true L7_1 = {} L7_1.config_id = 109006 L7_1.gadget_id = 70220026 L8_1 = {} L8_1.x = 2647.122 L8_1.y = 231.904 L8_1.z = -1353.81 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.level = 1 L8_1 = {} L8_1.config_id = 109007 L8_1.gadget_id = 70220026 L9_1 = {} L9_1.x = 2647.209 L9_1.y = 231.789 L9_1.z = -1355.642 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 = 1 L9_1 = {} L9_1.config_id = 109008 L9_1.gadget_id = 70220026 L10_1 = {} L10_1.x = 2647.339 L10_1.y = 231.639 L10_1.z = -1357.495 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 = 1 L10_1 = {} L10_1.config_id = 109009 L10_1.gadget_id = 70220026 L11_1 = {} L11_1.x = 2647.478 L11_1.y = 231.297 L11_1.z = -1361.197 L10_1.pos = L11_1 L11_1 = {} L11_1.x = 0.0 L11_1.y = 0.0 L11_1.z = 0.0 L10_1.rot = L11_1 L10_1.level = 1 L11_1 = {} L11_1.config_id = 109010 L11_1.gadget_id = 70220026 L12_1 = {} L12_1.x = 2643.706 L12_1.y = 230.915 L12_1.z = -1361.435 L11_1.pos = L12_1 L12_1 = {} L12_1.x = 0.0 L12_1.y = 0.0 L12_1.z = 0.0 L11_1.rot = L12_1 L11_1.level = 1 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 L2_1[9] = L11_1 gadgets = L2_1 L2_1 = {} regions = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 1109005 L3_1.name = "GADGET_STATE_CHANGE_109005" L4_1 = EventType L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE L3_1.event = L4_1 L3_1.source = "" L3_1.condition = "" L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_109005" L3_1.trigger_count = 0 L2_1[1] = L3_1 triggers = L2_1 L2_1 = {} L3_1 = {} L3_1.configId = 1 L3_1.name = "isFinished" L3_1.value = 0 L3_1.no_refresh = true L4_1 = {} L4_1.configId = 2 L4_1.name = "default" L4_1.value = 0 L4_1.no_refresh = true L2_1[1] = L3_1 L2_1[2] = L4_1 variables = L2_1 L2_1 = {} L2_1.suite = 1 L2_1.end_suite = 2 L2_1.rand_suite = false init_config = L2_1 L2_1 = {} L3_1 = {} L4_1 = {} L3_1.monsters = L4_1 L4_1 = {} L5_1 = 109001 L6_1 = 109002 L7_1 = 109003 L4_1[1] = L5_1 L4_1[2] = L6_1 L4_1[3] = L7_1 L3_1.gadgets = L4_1 L4_1 = {} L3_1.regions = L4_1 L4_1 = {} L5_1 = "GADGET_STATE_CHANGE_109005" L4_1[1] = L5_1 L3_1.triggers = L4_1 L3_1.rand_weight = 100 L4_1 = {} L5_1 = {} L4_1.monsters = L5_1 L5_1 = {} L6_1 = 109001 L7_1 = 109002 L8_1 = 109003 L9_1 = 109004 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 = {} L4_1.triggers = L5_1 L4_1.rand_weight = 100 L2_1[1] = L3_1 L2_1[2] = L4_1 suites = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = A1_2.param1 if L2_2 ~= 101 then L2_2 = A1_2.param1 if L2_2 ~= 102 then L2_2 = A1_2.param1 if L2_2 ~= 103 then L2_2 = A1_2.param1 if L2_2 ~= 104 then L2_2 = ScriptLib L2_2 = L2_2.PrintLog L3_2 = "Block Event " L4_2 = " : Gadget state = " L5_2 = A1_2.param1 L3_2 = L3_2 .. L4_2 .. L5_2 L2_2(A0_2, L3_2) L2_2 = 0 return L2_2 end end end end L2_2 = ScriptLib L2_2 = L2_2.PrintLog L3_2 = "Beging Execute " L4_2 = " : Gadget state = " L5_2 = A1_2.param1 L3_2 = L3_2 .. L4_2 .. L5_2 L2_2(A0_2, L3_2) L2_2 = {} L3_2 = 0 L4_2 = 0 L5_2 = 0 L2_2[1] = L3_2 L2_2[2] = L4_2 L2_2[3] = L5_2 L3_2 = 1 L4_2 = pairs L5_2 = gadgetInfo L4_2, L5_2, L6_2 = L4_2(L5_2) for L7_2, L8_2 in L4_2, L5_2, L6_2 do L9_2 = L8_2.index L10_2 = ScriptLib L10_2 = L10_2.GetGadgetStateByConfigId L11_2 = A0_2 L12_2 = L1_1.groupID L13_2 = L8_2.name L13_2 = L1_1[L13_2] L10_2 = L10_2(L11_2, L12_2, L13_2) L2_2[L9_2] = L10_2 end L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "Gadget State = " L6_2 = L2_2[1] L7_2 = "_" L8_2 = L2_2[2] L9_2 = "_" L10_2 = L2_2[3] L5_2 = L5_2 .. L6_2 .. L7_2 .. L8_2 .. L9_2 .. L10_2 L4_2(L5_2) L4_2 = {} L5_2 = 0 L6_2 = 0 L7_2 = 0 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L5_2 = 1 L6_2 = #L2_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = #L2_2 if L8_2 == L9_2 then L9_2 = L2_2[L8_2] L10_2 = L8_2 - 1 L10_2 = L2_2[L10_2] if L9_2 ~= L10_2 then L9_2 = L2_2[L8_2] L10_2 = L8_2 - 1 L10_2 = L2_2[L10_2] L10_2 = L10_2 - 200 end if L9_2 == L10_2 then L4_2[L8_2] = 1 end else L9_2 = L2_2[L8_2] L10_2 = L8_2 + 1 L10_2 = L2_2[L10_2] if L9_2 ~= L10_2 then L9_2 = L2_2[L8_2] L10_2 = L8_2 + 1 L10_2 = L2_2[L10_2] L10_2 = L10_2 - 200 if L9_2 ~= L10_2 then goto lbl_98 end end L4_2[L8_2] = 1 goto lbl_112 ::lbl_98:: if L8_2 ~= 1 then L9_2 = L2_2[L8_2] L10_2 = L8_2 - 1 L10_2 = L2_2[L10_2] if L9_2 ~= L10_2 then L9_2 = L2_2[L8_2] L10_2 = L8_2 - 1 L10_2 = L2_2[L10_2] L10_2 = L10_2 - 200 if L9_2 ~= L10_2 then goto lbl_112 end end L4_2[L8_2] = 1 end end ::lbl_112:: end L5_2 = ScriptLib L5_2 = L5_2.PrintLog L6_2 = "has change = " L7_2 = L4_2[1] L8_2 = "_" L9_2 = L4_2[2] L10_2 = "_" L11_2 = L4_2[3] L6_2 = L6_2 .. L7_2 .. L8_2 .. L9_2 .. L10_2 .. L11_2 L5_2(L6_2) L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = L2_2[L8_2] L10_2 = L4_2[L8_2] if L10_2 == 1 then if L9_2 < 300 then L10_2 = L2_2[L8_2] L9_2 = L10_2 + 200 end else L10_2 = L2_2[L8_2] if 300 < L10_2 then L10_2 = L2_2[L8_2] L9_2 = L10_2 - 200 end L3_2 = 0 end L10_2 = ScriptLib L10_2 = L10_2.SetGadgetStateByConfigId L11_2 = A0_2 L12_2 = gadgetInfo L12_2 = L12_2[L8_2] L12_2 = L12_2.name L12_2 = L1_1[L12_2] L13_2 = L9_2 L10_2(L11_2, L12_2, L13_2) end L5_2 = ScriptLib L5_2 = L5_2.PrintLog L6_2 = "Check Linked cube and change state " L5_2(A0_2, L6_2) if L3_2 == 1 then L5_2 = ScriptLib L5_2 = L5_2.SetGroupVariableValue L6_2 = A0_2 L7_2 = "isFinished" L8_2 = 1 L5_2(L6_2, L7_2, L8_2) L5_2 = pairs L6_2 = gadgetInfo L5_2, L6_2, L7_2 = L5_2(L6_2) for L8_2, L9_2 in L5_2, L6_2, L7_2 do L10_2 = ScriptLib L10_2 = L10_2.SetGadgetStateByConfigId L11_2 = A0_2 L12_2 = L9_2.name L12_2 = L1_1[L12_2] L13_2 = 901 L10_2(L11_2, L12_2, L13_2) end L5_2 = ScriptLib L5_2 = L5_2.GoToGroupSuite L6_2 = A0_2 L7_2 = L1_1.groupID L8_2 = 2 L5_2(L6_2, L7_2, L8_2) end L5_2 = ScriptLib L5_2 = L5_2.PrintLog L6_2 = "All equale = " L7_2 = L3_2 L6_2 = L6_2 .. L7_2 L5_2(A0_2, L6_2) end action_EVENT_GADGET_STATE_CHANGE_109005 = L2_1