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 L0_1 = {} L0_1.group_id = 133104147 L1_1 = {} L1_1.Target_1 = 498 L1_1.Target_2 = 499 L1_1.Target_3 = 500 L1_1.Target_4 = 1 L1_1.Target_5 = 1 L1_1.Target_6 = 1 L1_1.Fake_1 = 501 L1_1.Fake_2 = 502 L1_1.Fake_3 = 503 L1_1.Fake_4 = 504 L1_1.Fake_5 = 505 L1_1.Fake_6 = 506 L2_1 = {} monsters = L2_1 L2_1 = {} npcs = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 498 L3_1.gadget_id = 70310011 L4_1 = {} L4_1.x = 332.285 L4_1.y = 219.548 L4_1.z = 657.768 L3_1.pos = L4_1 L4_1 = {} L4_1.x = 358.672 L4_1.y = 0.014 L4_1.z = 358.79 L3_1.rot = L4_1 L3_1.level = 19 L3_1.persistent = true L3_1.area_id = 6 L4_1 = {} L4_1.config_id = 499 L4_1.gadget_id = 70310011 L5_1 = {} L5_1.x = 340.339 L5_1.y = 219.548 L5_1.z = 665.666 L4_1.pos = L5_1 L5_1 = {} L5_1.x = 2.352 L5_1.y = 359.975 L5_1.z = 358.789 L4_1.rot = L5_1 L4_1.level = 19 L4_1.persistent = true L4_1.area_id = 6 L5_1 = {} L5_1.config_id = 500 L5_1.gadget_id = 70310011 L6_1 = {} L6_1.x = 331.467 L6_1.y = 219.799 L6_1.z = 672.492 L5_1.pos = L6_1 L6_1 = {} L6_1.x = 12.356 L6_1.y = 359.971 L6_1.z = 359.728 L5_1.rot = L6_1 L5_1.level = 19 L5_1.persistent = true L5_1.area_id = 6 L6_1 = {} L6_1.config_id = 501 L6_1.gadget_id = 70310011 L7_1 = {} L7_1.x = 322.424 L7_1.y = 219.553 L7_1.z = 668.407 L6_1.pos = L7_1 L7_1 = {} L7_1.x = 358.672 L7_1.y = 0.014 L7_1.z = 358.79 L6_1.rot = L7_1 L6_1.level = 19 L6_1.persistent = true L6_1.area_id = 6 L7_1 = {} L7_1.config_id = 502 L7_1.gadget_id = 70310011 L8_1 = {} L8_1.x = 333.54 L8_1.y = 221.323 L8_1.z = 678.017 L7_1.pos = L8_1 L8_1 = {} L8_1.x = 12.356 L8_1.y = 359.971 L8_1.z = 359.728 L7_1.rot = L8_1 L7_1.level = 19 L7_1.persistent = true L7_1.area_id = 6 L8_1 = {} L8_1.config_id = 503 L8_1.gadget_id = 70310011 L9_1 = {} L9_1.x = 345.485 L9_1.y = 220.509 L9_1.z = 672.495 L8_1.pos = L9_1 L9_1 = {} L9_1.x = 358.672 L9_1.y = 0.014 L9_1.z = 358.79 L8_1.rot = L9_1 L8_1.level = 19 L8_1.persistent = true L8_1.area_id = 6 L9_1 = {} L9_1.config_id = 504 L9_1.gadget_id = 70310011 L10_1 = {} L10_1.x = 343.078 L10_1.y = 219.546 L10_1.z = 659.239 L9_1.pos = L10_1 L10_1 = {} L10_1.x = 358.672 L10_1.y = 0.014 L10_1.z = 358.79 L9_1.rot = L10_1 L9_1.level = 19 L9_1.persistent = true L9_1.area_id = 6 L10_1 = {} L10_1.config_id = 505 L10_1.gadget_id = 70310011 L11_1 = {} L11_1.x = 328.298 L11_1.y = 219.546 L11_1.z = 662.366 L10_1.pos = L11_1 L11_1 = {} L11_1.x = 358.672 L11_1.y = 0.014 L11_1.z = 358.79 L10_1.rot = L11_1 L10_1.level = 19 L10_1.persistent = true L10_1.area_id = 6 L11_1 = {} L11_1.config_id = 506 L11_1.gadget_id = 70310011 L12_1 = {} L12_1.x = 322.447 L12_1.y = 219.737 L12_1.z = 676.024 L11_1.pos = L12_1 L12_1 = {} L12_1.x = 12.356 L12_1.y = 359.971 L12_1.z = 359.728 L11_1.rot = L12_1 L11_1.level = 19 L11_1.persistent = true L11_1.area_id = 6 L12_1 = {} L12_1.config_id = 509 L12_1.gadget_id = 70211121 L13_1 = {} L13_1.x = 334.846 L13_1.y = 218.982 L13_1.z = 664.246 L12_1.pos = L13_1 L13_1 = {} L13_1.x = 0.0 L13_1.y = 0.0 L13_1.z = 0.0 L12_1.rot = L13_1 L12_1.level = 16 L12_1.drop_tag = "\232\167\163\232\176\156\233\171\152\231\186\167\231\146\131\230\156\136" L12_1.showcutscene = true L12_1.isOneoff = true L12_1.persistent = true L13_1 = {} L13_1.name = "chest" L13_1.exp = 1 L12_1.explore = L13_1 L12_1.area_id = 6 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 L2_1[10] = L12_1 gadgets = L2_1 L2_1 = {} regions = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 1000254 L3_1.name = "GADGET_STATE_CHANGE_254" 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_254" L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_254" L3_1.trigger_count = 0 L4_1 = {} L4_1.config_id = 1000255 L4_1.name = "VARIABLE_CHANGE_255" L5_1 = EventType L5_1 = L5_1.EVENT_VARIABLE_CHANGE L4_1.event = L5_1 L4_1.source = "" L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_255" L4_1.action = "action_EVENT_VARIABLE_CHANGE_255" L4_1.trigger_count = 0 L5_1 = {} L5_1.config_id = 1147001 L5_1.name = "GADGET_STATE_CHANGE_147001" L6_1 = EventType L6_1 = L6_1.EVENT_GADGET_STATE_CHANGE L5_1.event = L6_1 L5_1.source = "" L5_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_147001" L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_147001" L6_1 = {} L6_1.config_id = 1147002 L6_1.name = "GADGET_CREATE_147002" L7_1 = EventType L7_1 = L7_1.EVENT_GADGET_CREATE L6_1.event = L7_1 L6_1.source = "" L6_1.condition = "condition_EVENT_GADGET_CREATE_147002" L6_1.action = "action_EVENT_GADGET_CREATE_147002" L6_1.trigger_count = 0 L2_1[1] = L3_1 L2_1[2] = L4_1 L2_1[3] = L5_1 L2_1[4] = L6_1 triggers = L2_1 L2_1 = {} L3_1 = {} L3_1.configId = 1 L3_1.name = "TargetActive" L3_1.value = 0 L3_1.no_refresh = true L4_1 = {} L4_1.configId = 2 L4_1.name = "FakeActive" L4_1.value = 0 L4_1.no_refresh = true L5_1 = {} L5_1.configId = 3 L5_1.name = "isFinished" L5_1.value = 0 L5_1.no_refresh = true L2_1[1] = L3_1 L2_1[2] = L4_1 L2_1[3] = L5_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 = 498 L6_1 = 499 L7_1 = 500 L8_1 = 501 L9_1 = 502 L10_1 = 503 L11_1 = 504 L12_1 = 505 L13_1 = 506 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 L4_1[9] = L13_1 L3_1.gadgets = L4_1 L4_1 = {} L3_1.regions = L4_1 L4_1 = {} L5_1 = "GADGET_STATE_CHANGE_254" L6_1 = "VARIABLE_CHANGE_255" L4_1[1] = L5_1 L4_1[2] = L6_1 L3_1.triggers = L4_1 L3_1.rand_weight = 100 L4_1 = {} L5_1 = {} L4_1.monsters = L5_1 L5_1 = {} L6_1 = 498 L7_1 = 499 L8_1 = 500 L9_1 = 501 L10_1 = 502 L11_1 = 503 L12_1 = 504 L13_1 = 505 L14_1 = 506 L15_1 = 509 L5_1[1] = L6_1 L5_1[2] = L7_1 L5_1[3] = L8_1 L5_1[4] = L9_1 L5_1[5] = L10_1 L5_1[6] = L11_1 L5_1[7] = L12_1 L5_1[8] = L13_1 L5_1[9] = L14_1 L5_1[10] = L15_1 L4_1.gadgets = L5_1 L5_1 = {} L4_1.regions = L5_1 L5_1 = {} L6_1 = "GADGET_STATE_CHANGE_147001" L7_1 = "GADGET_CREATE_147002" L5_1[1] = L6_1 L5_1[2] = L7_1 L4_1.triggers = L5_1 L4_1.rand_weight = 100 L4_1.ban_refresh = true 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 L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "isFinished" 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_GADGET_STATE_CHANGE_254 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = GadgetState L2_2 = L2_2.GearStart L3_2 = A1_2.param1 if L2_2 == L3_2 then L2_2 = L1_1.Target_1 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Target_2 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Target_3 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then goto lbl_25 end end end L2_2 = ScriptLib L2_2 = L2_2.ChangeGroupVariableValue L3_2 = A0_2 L4_2 = "TargetActive" L5_2 = 1 L2_2(L3_2, L4_2, L5_2) goto lbl_55 ::lbl_25:: L2_2 = L1_1.Fake_1 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Fake_2 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Fake_3 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Fake_4 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Fake_5 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then L2_2 = L1_1.Fake_6 L3_2 = A1_2.param2 if L2_2 ~= L3_2 then goto lbl_55 end end end end end end L2_2 = ScriptLib L2_2 = L2_2.ChangeGroupVariableValue L3_2 = A0_2 L4_2 = "FakeActive" L5_2 = 1 L2_2(L3_2, L4_2, L5_2) end ::lbl_55:: L2_2 = 0 return L2_2 end action_EVENT_GADGET_STATE_CHANGE_254 = L2_1 function L2_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 = "isFinished" 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_VARIABLE_CHANGE_255 = 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.GetGroupVariableValue L3_2 = A0_2 L4_2 = "TargetActive" L2_2 = L2_2(L3_2, L4_2) L3_2 = ScriptLib L3_2 = L3_2.GetGroupVariableValue L4_2 = A0_2 L5_2 = "FakeActive" L3_2 = L3_2(L4_2, L5_2) if L2_2 ~= 0 or L3_2 ~= 0 then L4_2 = L2_2 + L3_2 if 3 <= L4_2 then if L2_2 == 3 and L3_2 == 0 then L4_2 = ScriptLib L4_2 = L4_2.RefreshGroup L5_2 = A0_2 L6_2 = {} L6_2.group_id = 133104147 L6_2.suite = 2 L4_2(L5_2, L6_2) else L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Target_1 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Target_2 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Target_3 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_1 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_2 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_3 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_4 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_5 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGadgetStateByConfigId L5_2 = A0_2 L6_2 = L1_1.Fake_6 L7_2 = GadgetState L7_2 = L7_2.Default L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGroupVariableValue L5_2 = A0_2 L6_2 = "TargetActive" L7_2 = 0 L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.SetGroupVariableValue L5_2 = A0_2 L6_2 = "FakeActive" L7_2 = 0 L4_2(L5_2, L6_2, L7_2) end end end L4_2 = 0 return L4_2 end action_EVENT_VARIABLE_CHANGE_255 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2 L2_2 = A1_2.param2 if 509 == L2_2 then L2_2 = GadgetState L2_2 = L2_2.ChestOpened 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_147001 = 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.SetGroupVariableValue L3_2 = A0_2 L4_2 = "isFinished" L5_2 = 1 L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 498 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 499 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 500 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 501 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 502 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 503 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 504 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 505 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = 506 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) L2_2 = 0 return L2_2 end action_EVENT_GADGET_STATE_CHANGE_147001 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "isFinished" 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_147002 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = A1_2.param1 if L2_2 ~= 498 then L2_2 = A1_2.param1 if L2_2 ~= 499 then L2_2 = A1_2.param1 if L2_2 ~= 500 then L2_2 = A1_2.param1 if L2_2 ~= 501 then L2_2 = A1_2.param1 if L2_2 ~= 502 then L2_2 = A1_2.param1 if L2_2 ~= 503 then L2_2 = A1_2.param1 if L2_2 ~= 504 then L2_2 = A1_2.param1 if L2_2 ~= 505 then L2_2 = A1_2.param1 if L2_2 ~= 506 then goto lbl_35 end end end end end end end end end L2_2 = ScriptLib L2_2 = L2_2.SetGadgetStateByConfigId L3_2 = A0_2 L4_2 = A1_2.param1 L5_2 = GadgetState L5_2 = L5_2.GearStart L2_2(L3_2, L4_2, L5_2) ::lbl_35:: L2_2 = 0 return L2_2 end action_EVENT_GADGET_CREATE_147002 = L2_1