local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1 L0_1 = {} L0_1.group_id = 133223144 L1_1 = {} L1_1.group_id = 133223144 L1_1.gadget_riddle_hint = 144001 L1_1.gadget_chest = 144006 L2_1 = {} monsters = L2_1 L2_1 = {} npcs = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 144001 L3_1.gadget_id = 70310012 L4_1 = {} L4_1.x = -6184.12 L4_1.y = 200.033 L4_1.z = -3002.649 L3_1.pos = L4_1 L4_1 = {} L4_1.x = 0.0 L4_1.y = 0.0 L4_1.z = 0.0 L3_1.rot = L4_1 L3_1.level = 19 L3_1.persistent = true L3_1.area_id = 18 L4_1 = {} L4_1.config_id = 144006 L4_1.gadget_id = 70211122 L5_1 = {} L5_1.x = -6184.048 L5_1.y = 200.482 L5_1.z = -3002.701 L4_1.pos = L5_1 L5_1 = {} L5_1.x = 0.0 L5_1.y = 270.4 L5_1.z = 0.0 L4_1.rot = L5_1 L4_1.level = 26 L4_1.drop_tag = "\232\167\163\232\176\156\233\171\152\231\186\167\231\168\187\229\166\187" L5_1 = GadgetState L5_1 = L5_1.ChestLocked L4_1.state = L5_1 L4_1.isOneoff = true L4_1.persistent = true L5_1 = {} L5_1.name = "chest" L5_1.exp = 1 L4_1.explore = L5_1 L4_1.area_id = 18 L2_1[1] = L3_1 L2_1[2] = L4_1 gadgets = L2_1 L2_1 = {} regions = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 1144008 L3_1.name = "VARIABLE_CHANGE_144008" L4_1 = EventType L4_1 = L4_1.EVENT_VARIABLE_CHANGE L3_1.event = L4_1 L3_1.source = "State_Flag" L3_1.condition = "condition_EVENT_VARIABLE_CHANGE_144008" L3_1.action = "action_EVENT_VARIABLE_CHANGE_144008" L3_1.trigger_count = 0 L2_1[1] = L3_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 = 144001 L6_1 = 144006 L4_1[1] = L5_1 L4_1[2] = L6_1 L3_1.gadgets = L4_1 L4_1 = {} L3_1.regions = L4_1 L4_1 = {} L5_1 = "VARIABLE_CHANGE_144008" L4_1[1] = L5_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.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_144008 = 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_144008 = L2_1