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, L16_1, L17_1, L18_1, L19_1 L0_1 = {} L0_1.group_id = 133217262 L1_1 = {} L1_1.gadget_Teleport_1 = 262001 L1_1.gadget_Teleport_2 = 262002 L1_1.gadget_Teleport_3 = 262003 L1_1.gadget_Teleport_4 = 262004 L1_1.pointarray_1 = 321700015 L1_1.pointarray_2 = 321700016 L1_1.pointarray_3 = 321700017 L1_1.pointarray_4 = 321700049 L1_1.gadget_TeleportOperator_1 = 262005 L1_1.gadget_TeleportOperator_2 = 0 L1_1.gadget_TeleportOperator_3 = 0 L1_1.gadget_TeleportOperator_4 = 0 L1_1.group_ID = 133217262 L1_1.pointarray_Rotate = 321700018 L1_1.rotStep = 90 L1_1.gadget_Teleport_5 = 262021 L1_1.gadget_TeleportOperator_5 = 0 L2_1 = {} L3_1 = {} L4_1 = L1_1.gadget_Teleport_1 L5_1 = L1_1.gadget_Teleport_2 L6_1 = L1_1.pointarray_1 L7_1 = 10 L3_1[1] = L4_1 L3_1[2] = L5_1 L3_1[3] = L6_1 L3_1[4] = L7_1 L4_1 = {} L5_1 = L1_1.gadget_Teleport_1 L6_1 = L1_1.gadget_Teleport_3 L7_1 = L1_1.pointarray_2 L8_1 = 10 L4_1[1] = L5_1 L4_1[2] = L6_1 L4_1[3] = L7_1 L4_1[4] = L8_1 L5_1 = {} L6_1 = L1_1.gadget_Teleport_1 L7_1 = L1_1.gadget_Teleport_4 L8_1 = L1_1.pointarray_3 L9_1 = 10 L5_1[1] = L6_1 L5_1[2] = L7_1 L5_1[3] = L8_1 L5_1[4] = L9_1 L6_1 = {} L7_1 = L1_1.gadget_Teleport_1 L8_1 = L1_1.gadget_Teleport_5 L9_1 = L1_1.pointarray_4 L10_1 = 10 L6_1[1] = L7_1 L6_1[2] = L8_1 L6_1[3] = L9_1 L6_1[4] = L10_1 L2_1[1] = L3_1 L2_1[2] = L4_1 L2_1[3] = L5_1 L2_1[4] = L6_1 connectInfo = L2_1 L2_1 = {} L3_1 = {} L4_1 = L1_1.gadget_TeleportOperator_1 L5_1 = L1_1.gadget_Teleport_1 L3_1[1] = L4_1 L3_1[2] = L5_1 L4_1 = {} L5_1 = L1_1.gadget_TeleportOperator_2 L6_1 = L1_1.gadget_Teleport_2 L4_1[1] = L5_1 L4_1[2] = L6_1 L5_1 = {} L6_1 = L1_1.gadget_TeleportOperator_3 L7_1 = L1_1.gadget_Teleport_3 L5_1[1] = L6_1 L5_1[2] = L7_1 L6_1 = {} L7_1 = L1_1.gadget_TeleportOperator_4 L8_1 = L1_1.gadget_Teleport_4 L6_1[1] = L7_1 L6_1[2] = L8_1 L7_1 = {} L8_1 = L1_1.gadget_TeleportOperator_5 L9_1 = L1_1.gadget_Teleport_5 L7_1[1] = L8_1 L7_1[2] = L9_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 TeleportOwnerShip = L2_1 L2_1 = {} L3_1 = 1 L4_1 = 2 L5_1 = 3 L6_1 = 4 L7_1 = 5 L8_1 = 6 L9_1 = 7 L10_1 = 8 L11_1 = 9 L12_1 = 10 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 staticForwardSet = L2_1 L2_1 = {} L3_1 = 10 L4_1 = 9 L5_1 = 8 L6_1 = 7 L7_1 = 6 L8_1 = 5 L9_1 = 4 L10_1 = 3 L11_1 = 2 L12_1 = 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 L2_1[10] = L12_1 staticBackwardSet = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = pairs L3_2 = L1_1 L2_2, L3_2, L4_2 = L2_2(L3_2) for L5_2, L6_2 in L2_2, L3_2, L4_2 do if L6_2 == A1_2 then return L5_2 end end end GetTeleportNameByConfigID = L2_1 function L2_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L1_2 = nil L2_2 = nil L3_2 = nil L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "Initial starting..." L4_2(A0_2, L5_2) L4_2 = ScriptLib L4_2 = L4_2.SetGroupVariableValue L5_2 = A0_2 L6_2 = "isInitial" L7_2 = 1 L4_2(L5_2, L6_2, L7_2) L4_2 = 1 L5_2 = TeleportOwnerShip L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TeleportOwnerShip L8_2 = L8_2[L7_2] L3_2 = L8_2[2] L8_2 = isTeleportValid L9_2 = A0_2 L10_2 = L3_2 L8_2 = L8_2(L9_2, L10_2) if L8_2 == true then L8_2 = ScriptLib L8_2 = L8_2.PrintLog L9_2 = "Initial localtarget = " L10_2 = L3_2 L9_2 = L9_2 .. L10_2 L8_2(A0_2, L9_2) if L3_2 ~= 0 then L8_2 = GetTeleportNameByConfigID L9_2 = A0_2 L10_2 = L3_2 L8_2 = L8_2(L9_2, L10_2) L9_2 = "_state" L2_2 = L8_2 .. L9_2 L8_2 = ScriptLib L8_2 = L8_2.GetGroupVariableValue L9_2 = A0_2 L10_2 = L2_2 L8_2 = L8_2(L9_2, L10_2) L1_2 = L8_2 L8_2 = ScriptLib L8_2 = L8_2.PrintLog L9_2 = "Initial gadgetName = " L10_2 = L2_2 L11_2 = " , Rot = " L12_2 = L1_2 L9_2 = L9_2 .. L10_2 .. L11_2 .. L12_2 L8_2(A0_2, L9_2) if L1_2 == 90 then L8_2 = ScriptLib L8_2 = L8_2.SetPlatformPointArray L9_2 = A0_2 L10_2 = L3_2 L11_2 = L1_1.pointarray_Rotate L12_2 = {} L13_2 = 1 L12_2[1] = L13_2 L13_2 = {} L13_2.route_type = 0 L13_2.turn_mode = true L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) elseif L1_2 == 180 then L8_2 = ScriptLib L8_2 = L8_2.SetPlatformPointArray L9_2 = A0_2 L10_2 = L3_2 L11_2 = L1_1.pointarray_Rotate L12_2 = {} L13_2 = 2 L12_2[1] = L13_2 L13_2 = {} L13_2.route_type = 0 L13_2.turn_mode = true L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) elseif L1_2 == 270 then L8_2 = ScriptLib L8_2 = L8_2.SetPlatformPointArray L9_2 = A0_2 L10_2 = L3_2 L11_2 = L1_1.pointarray_Rotate L12_2 = {} L13_2 = 3 L12_2[1] = L13_2 L13_2 = {} L13_2.route_type = 0 L13_2.turn_mode = true L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) end end end end L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "Initial ending..." L4_2(A0_2, L5_2) end InitialTeleportRotationY = L2_1 function L2_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L1_2 = nil L2_2 = nil L3_2 = 1 L4_2 = TeleportOwnerShip L4_2 = #L4_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = "gadget_Teleport_" L8_2 = L6_2 L9_2 = "_isActive" L1_2 = L7_2 .. L8_2 .. L9_2 L7_2 = TeleportOwnerShip L7_2 = L7_2[L6_2] L2_2 = L7_2[2] L7_2 = isTeleportValid L8_2 = A0_2 L9_2 = L2_2 L7_2 = L7_2(L8_2, L9_2) if L7_2 == true then L7_2 = ScriptLib L7_2 = L7_2.GetGroupVariableValue L8_2 = A0_2 L9_2 = L1_2 L7_2 = L7_2(L8_2, L9_2) if L7_2 == 1 then L7_2 = ScriptLib L7_2 = L7_2.SetGadgetStateByConfigId L8_2 = A0_2 L9_2 = L2_2 L10_2 = GadgetState L10_2 = L10_2.GearStart L7_2(L8_2, L9_2, L10_2) else L7_2 = ScriptLib L7_2 = L7_2.SetGadgetStateByConfigId L8_2 = A0_2 L9_2 = L2_2 L10_2 = GadgetState L10_2 = L10_2.Default L7_2(L8_2, L9_2, L10_2) end end end end InitialTeleportState = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2 L2_2 = false if A1_2 == 0 then L3_2 = false return L3_2 end L3_2 = ScriptLib L3_2 = L3_2.GetGadgetStateByConfigId L4_2 = A0_2 L5_2 = L1_1.group_ID L6_2 = A1_2 L3_2 = L3_2(L4_2, L5_2, L6_2) if L3_2 ~= -1 then L2_2 = true end return L2_2 end isTeleportValid = L2_1 function L2_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 L3_2 = isTeleportValid L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then L3_2 = isTeleportValid L4_2 = A0_2 L5_2 = A2_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then goto lbl_15 end end L3_2 = false do return L3_2 end ::lbl_15:: L3_2 = ScriptLib L3_2 = L3_2.PrintLog L4_2 = "CheckConnected from " L5_2 = A1_2 L6_2 = " to " L7_2 = A2_2 L4_2 = L4_2 .. L5_2 .. L6_2 .. L7_2 L3_2(A0_2, L4_2) L3_2 = ScriptLib L3_2 = L3_2.GetRotationByEntityId L4_2 = A0_2 L5_2 = ScriptLib L5_2 = L5_2.GetEntityIdByConfigId L6_2 = A0_2 L7_2 = A1_2 L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 = L5_2(L6_2, L7_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2) L3_2 = L3_2.y L4_2 = ScriptLib L4_2 = L4_2.GetRotationByEntityId L5_2 = A0_2 L6_2 = ScriptLib L6_2 = L6_2.GetEntityIdByConfigId L7_2 = A0_2 L8_2 = A2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 = L6_2(L7_2, L8_2) L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2) L4_2 = L4_2.y L5_2 = ScriptLib L5_2 = L5_2.PrintLog L6_2 = "yrotation_a = " L7_2 = L3_2 L8_2 = "| yrotation_a = " L9_2 = L4_2 L6_2 = L6_2 .. L7_2 .. L8_2 .. L9_2 L5_2(A0_2, L6_2) L5_2 = math L5_2 = L5_2.rad L6_2 = L3_2 L5_2 = L5_2(L6_2) L6_2 = math L6_2 = L6_2.rad L7_2 = L4_2 L6_2 = L6_2(L7_2) L7_2 = ScriptLib L7_2 = L7_2.PrintLog L8_2 = "yrad_a = " L9_2 = L5_2 L10_2 = "| yrad_b = " L11_2 = L6_2 L8_2 = L8_2 .. L9_2 .. L10_2 .. L11_2 L7_2(A0_2, L8_2) L7_2 = {} L8_2 = math L8_2 = L8_2.sin L9_2 = L5_2 L8_2 = L8_2(L9_2) L7_2.x = L8_2 L7_2.y = 0 L8_2 = math L8_2 = L8_2.cos L9_2 = L5_2 L8_2 = L8_2(L9_2) L7_2.z = L8_2 L8_2 = {} L9_2 = math L9_2 = L9_2.sin L10_2 = L6_2 L9_2 = L9_2(L10_2) L8_2.x = L9_2 L8_2.y = 0 L9_2 = math L9_2 = L9_2.cos L10_2 = L6_2 L9_2 = L9_2(L10_2) L8_2.z = L9_2 L9_2 = ScriptLib L9_2 = L9_2.PrintLog L10_2 = "dir_a : x = " L11_2 = L7_2.x L12_2 = " , y = " L13_2 = L7_2.y L14_2 = " , z = " L15_2 = L7_2.z L10_2 = L10_2 .. L11_2 .. L12_2 .. L13_2 .. L14_2 .. L15_2 L9_2(A0_2, L10_2) L9_2 = ScriptLib L9_2 = L9_2.PrintLog L10_2 = "dir_b : x = " L11_2 = L8_2.x L12_2 = " , y = " L13_2 = L8_2.y L14_2 = " , z = " L15_2 = L8_2.z L10_2 = L10_2 .. L11_2 .. L12_2 .. L13_2 .. L14_2 .. L15_2 L9_2(A0_2, L10_2) L9_2 = ScriptLib L9_2 = L9_2.GetPosByEntityId L10_2 = A0_2 L11_2 = ScriptLib L11_2 = L11_2.GetEntityIdByConfigId L12_2 = A0_2 L13_2 = A1_2 L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 = L11_2(L12_2, L13_2) L9_2 = L9_2(L10_2, L11_2) L10_2 = ScriptLib L10_2 = L10_2.PrintLog L11_2 = "pos_a : x = " L12_2 = L9_2.x L13_2 = " , y = " L14_2 = L9_2.y L15_2 = " , z = " L16_2 = L9_2.z L11_2 = L11_2 .. L12_2 .. L13_2 .. L14_2 .. L15_2 .. L16_2 L10_2(A0_2, L11_2) L10_2 = ScriptLib L10_2 = L10_2.GetPosByEntityId L11_2 = A0_2 L12_2 = ScriptLib L12_2 = L12_2.GetEntityIdByConfigId L13_2 = A0_2 L14_2 = A2_2 L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 = L12_2(L13_2, L14_2) L10_2 = L10_2(L11_2, L12_2) L11_2 = ScriptLib L11_2 = L11_2.PrintLog L12_2 = "pos_b : x = " L13_2 = L10_2.x L14_2 = " , y = " L15_2 = L10_2.y L16_2 = " , z = " L17_2 = L10_2.z L12_2 = L12_2 .. L13_2 .. L14_2 .. L15_2 .. L16_2 .. L17_2 L11_2(A0_2, L12_2) L11_2 = {} L12_2 = L10_2.x L13_2 = L9_2.x L12_2 = L12_2 - L13_2 L11_2.x = L12_2 L11_2.y = 0 L12_2 = L10_2.z L13_2 = L9_2.z L12_2 = L12_2 - L13_2 L11_2.z = L12_2 L12_2 = Normalize L13_2 = {} L14_2 = L10_2.x L15_2 = L9_2.x L14_2 = L14_2 - L15_2 L13_2.x = L14_2 L13_2.y = 0 L14_2 = L10_2.z L15_2 = L9_2.z L14_2 = L14_2 - L15_2 L13_2.z = L14_2 L12_2 = L12_2(L13_2) L13_2 = ScriptLib L13_2 = L13_2.PrintLog L14_2 = "norDirAtoB : x = " L15_2 = L12_2.x L16_2 = " , y = " L17_2 = L12_2.y L18_2 = " , z = " L19_2 = L12_2.z L14_2 = L14_2 .. L15_2 .. L16_2 .. L17_2 .. L18_2 .. L19_2 L13_2(A0_2, L14_2) L13_2 = {} L14_2 = L9_2.x L15_2 = L10_2.x L14_2 = L14_2 - L15_2 L13_2.x = L14_2 L13_2.y = 0 L14_2 = L9_2.z L15_2 = L10_2.z L14_2 = L14_2 - L15_2 L13_2.z = L14_2 L14_2 = Normalize L15_2 = {} L16_2 = L9_2.x L17_2 = L10_2.x L16_2 = L16_2 - L17_2 L15_2.x = L16_2 L15_2.y = 0 L16_2 = L9_2.z L17_2 = L10_2.z L16_2 = L16_2 - L17_2 L15_2.z = L16_2 L14_2 = L14_2(L15_2) L15_2 = ScriptLib L15_2 = L15_2.PrintLog L16_2 = "norDirBtoA : x = " L17_2 = L14_2.x L18_2 = " , y = " L19_2 = L14_2.y L20_2 = " , z = " L21_2 = L14_2.z L16_2 = L16_2 .. L17_2 .. L18_2 .. L19_2 .. L20_2 .. L21_2 L15_2(A0_2, L16_2) L15_2 = L7_2.x L16_2 = L12_2.x L15_2 = L15_2 * L16_2 L16_2 = L7_2.y L17_2 = L12_2.y L16_2 = L16_2 * L17_2 L15_2 = L15_2 + L16_2 L16_2 = L7_2.z L17_2 = L12_2.z L16_2 = L16_2 * L17_2 L15_2 = L15_2 + L16_2 L16_2 = L8_2.x L17_2 = L14_2.x L16_2 = L16_2 * L17_2 L17_2 = L8_2.y L18_2 = L14_2.y L17_2 = L17_2 * L18_2 L16_2 = L16_2 + L17_2 L17_2 = L8_2.z L18_2 = L14_2.z L17_2 = L17_2 * L18_2 L16_2 = L16_2 + L17_2 L17_2 = ScriptLib L17_2 = L17_2.PrintLog L18_2 = "dotvalue_a " L19_2 = L15_2 L18_2 = L18_2 .. L19_2 L17_2(A0_2, L18_2) L17_2 = ScriptLib L17_2 = L17_2.PrintLog L18_2 = "dotvalue_b " L19_2 = L16_2 L18_2 = L18_2 .. L19_2 L17_2(A0_2, L18_2) if 0.5 <= L15_2 and 0.5 <= L16_2 then L17_2 = true return L17_2 end L17_2 = ScriptLib L17_2 = L17_2.PrintLog L18_2 = "invalid cos = " L19_2 = L15_2 L18_2 = L18_2 .. L19_2 L17_2(L18_2) L17_2 = false return L17_2 end CheckIsConnected = 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 = {} L3_2 = 1 L4_2 = connectInfo L4_2 = #L4_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = connectInfo L7_2 = L7_2[L6_2] L7_2 = L7_2[1] if L7_2 ~= A1_2 then L7_2 = connectInfo L7_2 = L7_2[L6_2] L7_2 = L7_2[2] if L7_2 ~= A1_2 then goto lbl_60 end end L7_2 = connectInfo L7_2 = L7_2[L6_2] L7_2 = L7_2[1] if L7_2 == A1_2 then L7_2 = table L7_2 = L7_2.insert L8_2 = L2_2 L9_2 = {} L10_2 = connectInfo L10_2 = L10_2[L6_2] L10_2 = L10_2[2] L11_2 = connectInfo L11_2 = L11_2[L6_2] L11_2 = L11_2[3] L12_2 = staticForwardSet L13_2 = connectInfo L13_2 = L13_2[L6_2] L13_2 = L13_2[4] L9_2[1] = L10_2 L9_2[2] = L11_2 L9_2[3] = L12_2 L9_2[4] = L13_2 L7_2(L8_2, L9_2) else L7_2 = connectInfo L7_2 = L7_2[L6_2] L7_2 = L7_2[2] if L7_2 == A1_2 then L7_2 = table L7_2 = L7_2.insert L8_2 = L2_2 L9_2 = {} L10_2 = connectInfo L10_2 = L10_2[L6_2] L10_2 = L10_2[1] L11_2 = connectInfo L11_2 = L11_2[L6_2] L11_2 = L11_2[3] L12_2 = staticBackwardSet L13_2 = connectInfo L13_2 = L13_2[L6_2] L13_2 = L13_2[4] L9_2[1] = L10_2 L9_2[2] = L11_2 L9_2[3] = L12_2 L9_2[4] = L13_2 L7_2(L8_2, L9_2) end end ::lbl_60:: end return L2_2 end FindRelatedTargets = 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 L2_2 = nil L3_2 = FindRelatedTargets L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) L2_2 = L3_2 L3_2 = 1 L4_2 = #L2_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = CheckIsConnected L8_2 = A0_2 L9_2 = A1_2 L10_2 = L2_2[L6_2] L10_2 = L10_2[1] L7_2 = L7_2(L8_2, L9_2, L10_2) if L7_2 == true then L7_2 = L2_2[L6_2] return L7_2 end end L3_2 = nil return L3_2 end GetConnectedTeleport = L2_1 function L2_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = math L1_2 = L1_2.sqrt L2_2 = A0_2.x L3_2 = A0_2.x L2_2 = L2_2 * L3_2 L3_2 = A0_2.y L4_2 = A0_2.y L3_2 = L3_2 * L4_2 L2_2 = L2_2 + L3_2 L3_2 = A0_2.z L4_2 = A0_2.z L3_2 = L3_2 * L4_2 L2_2 = L2_2 + L3_2 L1_2 = L1_2(L2_2) L2_2 = {} L3_2 = A0_2.x L3_2 = L3_2 / L1_2 L2_2.x = L3_2 L3_2 = A0_2.y L3_2 = L3_2 / L1_2 L2_2.y = L3_2 L3_2 = A0_2.z L3_2 = L3_2 / L1_2 L2_2.z = L3_2 return L2_2 end Normalize = L2_1 function L2_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L1_2 = nil L2_2 = 1 L3_2 = TeleportOwnerShip L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = GetConnectedTeleport L7_2 = A0_2 L8_2 = TeleportOwnerShip L8_2 = L8_2[L5_2] L8_2 = L8_2[2] L6_2 = L6_2(L7_2, L8_2) if L6_2 == nil then L7_2 = ScriptLib L7_2 = L7_2.SetGadgetStateByConfigId L8_2 = A0_2 L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[2] L10_2 = GadgetState L10_2 = L10_2.Default L7_2(L8_2, L9_2, L10_2) L7_2 = GetTeleportNameByConfigID L8_2 = A0_2 L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[2] L7_2 = L7_2(L8_2, L9_2) L1_2 = L7_2 L7_2 = L1_2 L8_2 = "_isActive" L1_2 = L7_2 .. L8_2 L7_2 = ScriptLib L7_2 = L7_2.SetGroupVariableValue L8_2 = A0_2 L9_2 = L1_2 L10_2 = 0 L7_2(L8_2, L9_2, L10_2) L7_2 = ScriptLib L7_2 = L7_2.PrintLog L8_2 = "connect nothing : " L9_2 = L5_2 L8_2 = L8_2 .. L9_2 L7_2(A0_2, L8_2) else L7_2 = ScriptLib L7_2 = L7_2.SetGadgetStateByConfigId L8_2 = A0_2 L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[2] L10_2 = GadgetState L10_2 = L10_2.GearStart L7_2(L8_2, L9_2, L10_2) L7_2 = GetTeleportNameByConfigID L8_2 = A0_2 L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[2] L7_2 = L7_2(L8_2, L9_2) L1_2 = L7_2 L7_2 = L1_2 L8_2 = "_isActive" L1_2 = L7_2 .. L8_2 L7_2 = ScriptLib L7_2 = L7_2.SetGroupVariableValue L8_2 = A0_2 L9_2 = L1_2 L10_2 = 1 L7_2(L8_2, L9_2, L10_2) L7_2 = ScriptLib L7_2 = L7_2.PrintLog L8_2 = "connect something = " L9_2 = L5_2 L8_2 = L8_2 .. L9_2 L7_2(L8_2) end end end UpdateTeleportState = 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 = FindRelatedTargets L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = 1 L4_2 = #L2_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = CheckIsConnected L8_2 = A0_2 L9_2 = A1_2 L10_2 = L2_2[L6_2] L10_2 = L10_2[1] L7_2 = L7_2(L8_2, L9_2, L10_2) if L7_2 == true then L7_2 = ScriptLib L7_2 = L7_2.MoveAvatarByPointArray L8_2 = A0_2 L9_2 = A0_2.uid L10_2 = L2_2[L6_2] L10_2 = L10_2[2] L11_2 = L2_2[L6_2] L11_2 = L11_2[3] L12_2 = {} L13_2 = L2_2[L6_2] L13_2 = L13_2[4] L12_2.speed = L13_2 L13_2 = "{\"MarkType\":1}" L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L7_2 = 0 return L7_2 end end end TeleportAction = L2_1 L2_1 = {} monsters = L2_1 L2_1 = {} npcs = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 262001 L3_1.gadget_id = 70950095 L4_1 = {} L4_1.x = -4406.613 L4_1.y = 170.637 L4_1.z = -3807.57 L3_1.pos = L4_1 L4_1 = {} L4_1.x = 0.0 L4_1.y = 133.874 L4_1.z = 0.0 L3_1.rot = L4_1 L3_1.level = 2 L3_1.persistent = true L3_1.is_use_point_array = true L3_1.area_id = 14 L4_1 = {} L4_1.config_id = 262002 L4_1.gadget_id = 70950095 L5_1 = {} L5_1.x = -4435.97 L5_1.y = 188.016 L5_1.z = -3836.432 L4_1.pos = L5_1 L5_1 = {} L5_1.x = 0.0 L5_1.y = 48.798 L5_1.z = 0.0 L4_1.rot = L5_1 L4_1.level = 2 L4_1.persistent = true L4_1.is_use_point_array = true L4_1.area_id = 14 L5_1 = {} L5_1.config_id = 262003 L5_1.gadget_id = 70950095 L6_1 = {} L6_1.x = -4385.567 L6_1.y = 181.945 L6_1.z = -3789.208 L5_1.pos = L6_1 L6_1 = {} L6_1.x = 0.0 L6_1.y = 226.021 L6_1.z = 0.0 L5_1.rot = L6_1 L5_1.level = 2 L5_1.persistent = true L5_1.is_use_point_array = true L5_1.area_id = 14 L6_1 = {} L6_1.config_id = 262004 L6_1.gadget_id = 70950095 L7_1 = {} L7_1.x = -4377.15 L7_1.y = 182.921 L7_1.z = -3833.961 L6_1.pos = L7_1 L7_1 = {} L7_1.x = 0.0 L7_1.y = 311.709 L7_1.z = 0.0 L6_1.rot = L7_1 L6_1.level = 2 L6_1.persistent = true L6_1.is_use_point_array = true L6_1.area_id = 14 L7_1 = {} L7_1.config_id = 262005 L7_1.gadget_id = 70950145 L8_1 = {} L8_1.x = -4406.77 L8_1.y = 170.091 L8_1.z = -3807.42 L7_1.pos = L8_1 L8_1 = {} L8_1.x = 0.0 L8_1.y = 322.521 L8_1.z = 0.0 L7_1.rot = L8_1 L7_1.level = 2 L7_1.persistent = true L7_1.area_id = 14 L8_1 = {} L8_1.config_id = 262009 L8_1.gadget_id = 70330114 L9_1 = {} L9_1.x = -4406.516 L9_1.y = 171.395 L9_1.z = -3807.456 L8_1.pos = L9_1 L9_1 = {} L9_1.x = 5.127 L9_1.y = 41.212 L9_1.z = 349.61 L8_1.rot = L9_1 L8_1.level = 2 L8_1.area_id = 14 L9_1 = {} L9_1.config_id = 262010 L9_1.gadget_id = 70330114 L10_1 = {} L10_1.x = -4435.97 L10_1.y = 188.016 L10_1.z = -3836.432 L9_1.pos = L10_1 L10_1 = {} L10_1.x = 0.0 L10_1.y = 48.798 L10_1.z = 0.0 L9_1.rot = L10_1 L9_1.level = 2 L9_1.area_id = 14 L10_1 = {} L10_1.config_id = 262011 L10_1.gadget_id = 70330114 L11_1 = {} L11_1.x = -4385.567 L11_1.y = 181.945 L11_1.z = -3789.208 L10_1.pos = L11_1 L11_1 = {} L11_1.x = 0.0 L11_1.y = 226.021 L11_1.z = 0.0 L10_1.rot = L11_1 L10_1.level = 2 L10_1.area_id = 14 L11_1 = {} L11_1.config_id = 262012 L11_1.gadget_id = 70330114 L12_1 = {} L12_1.x = -4377.403 L12_1.y = 182.683 L12_1.z = -3833.736 L11_1.pos = L12_1 L12_1 = {} L12_1.x = 0.0 L12_1.y = 311.709 L12_1.z = 0.0 L11_1.rot = L12_1 L11_1.level = 2 L11_1.area_id = 14 L12_1 = {} L12_1.config_id = 262013 L12_1.gadget_id = 70330114 L13_1 = {} L13_1.x = -4406.813 L13_1.y = 171.273 L13_1.z = -3807.551 L12_1.pos = L13_1 L13_1 = {} L13_1.x = 0.0 L13_1.y = 139.438 L13_1.z = 0.0 L12_1.rot = L13_1 L12_1.level = 2 L12_1.area_id = 14 L13_1 = {} L13_1.config_id = 262014 L13_1.gadget_id = 70330114 L14_1 = {} L14_1.x = -4406.813 L14_1.y = 171.273 L14_1.z = -3807.551 L13_1.pos = L14_1 L14_1 = {} L14_1.x = 0.0 L14_1.y = 234.846 L14_1.z = 0.0 L13_1.rot = L14_1 L13_1.level = 2 L13_1.area_id = 14 L14_1 = {} L14_1.config_id = 262019 L14_1.gadget_id = 70900387 L15_1 = {} L15_1.x = -4377.595 L15_1.y = 182.4 L15_1.z = -3832.098 L14_1.pos = L15_1 L15_1 = {} L15_1.x = 1.16 L15_1.y = 92.18 L15_1.z = 351.044 L14_1.rot = L15_1 L14_1.level = 30 L14_1.isOneoff = true L14_1.persistent = true L14_1.area_id = 14 L15_1 = {} L15_1.config_id = 262020 L15_1.gadget_id = 70330064 L16_1 = {} L16_1.x = -4384.287 L16_1.y = 179.905 L16_1.z = -3836.804 L15_1.pos = L16_1 L16_1 = {} L16_1.x = 348.46 L16_1.y = 99.904 L16_1.z = 354.889 L15_1.rot = L16_1 L15_1.level = 30 L15_1.interact_id = 35 L15_1.area_id = 14 L16_1 = {} L16_1.config_id = 262021 L16_1.gadget_id = 70950095 L17_1 = {} L17_1.x = -4434.609 L17_1.y = 164.922 L17_1.z = -3773.924 L16_1.pos = L17_1 L17_1 = {} L17_1.x = 359.788 L17_1.y = 141.03 L17_1.z = 359.049 L16_1.rot = L17_1 L16_1.level = 30 L16_1.persistent = true L16_1.is_use_point_array = true L16_1.area_id = 14 L17_1 = {} L17_1.config_id = 262022 L17_1.gadget_id = 70330114 L18_1 = {} L18_1.x = -4406.938 L18_1.y = 171.239 L18_1.z = -3807.256 L17_1.pos = L18_1 L18_1 = {} L18_1.x = 8.184 L18_1.y = 310.811 L18_1.z = 357.825 L17_1.rot = L18_1 L17_1.level = 30 L17_1.area_id = 14 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 L2_1[11] = L13_1 L2_1[12] = L14_1 L2_1[13] = L15_1 L2_1[14] = L16_1 L2_1[15] = L17_1 gadgets = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 262006 L4_1 = RegionShape L4_1 = L4_1.SPHERE L3_1.shape = L4_1 L3_1.radius = 1.5 L4_1 = {} L4_1.x = -4433.839 L4_1.y = 165.669 L4_1.z = -3774.863 L3_1.pos = L4_1 L3_1.area_id = 14 L4_1 = {} L4_1.config_id = 262015 L5_1 = RegionShape L5_1 = L5_1.SPHERE L4_1.shape = L5_1 L4_1.radius = 1.5 L5_1 = {} L5_1.x = -4406.288 L5_1.y = 171.47 L5_1.z = -3807.791 L4_1.pos = L5_1 L4_1.area_id = 14 L5_1 = {} L5_1.config_id = 262016 L6_1 = RegionShape L6_1 = L6_1.SPHERE L5_1.shape = L6_1 L5_1.radius = 1.5 L6_1 = {} L6_1.x = -4436.156 L6_1.y = 188.631 L6_1.z = -3836.615 L5_1.pos = L6_1 L5_1.area_id = 14 L6_1 = {} L6_1.config_id = 262017 L7_1 = RegionShape L7_1 = L7_1.SPHERE L6_1.shape = L7_1 L6_1.radius = 1.5 L7_1 = {} L7_1.x = -4385.567 L7_1.y = 181.945 L7_1.z = -3789.208 L6_1.pos = L7_1 L6_1.area_id = 14 L7_1 = {} L7_1.config_id = 262018 L8_1 = RegionShape L8_1 = L8_1.SPHERE L7_1.shape = L8_1 L7_1.radius = 1.5 L8_1 = {} L8_1.x = -4378.428 L8_1.y = 183.414 L8_1.z = -3832.929 L7_1.pos = L8_1 L7_1.area_id = 14 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 regions = L2_1 L2_1 = {} L3_1 = {} L3_1.config_id = 1262006 L3_1.name = "ENTER_REGION_262006" L4_1 = EventType L4_1 = L4_1.EVENT_ENTER_REGION L3_1.event = L4_1 L3_1.source = "" L3_1.condition = "condition_EVENT_ENTER_REGION_262006" L3_1.action = "action_EVENT_ENTER_REGION_262006" L3_1.trigger_count = 0 L3_1.forbid_guest = false L4_1 = {} L4_1.config_id = 1262007 L4_1.name = "GROUP_LOAD_262007" L5_1 = EventType L5_1 = L5_1.EVENT_GROUP_LOAD L4_1.event = L5_1 L4_1.source = "" L4_1.condition = "" L4_1.action = "action_EVENT_GROUP_LOAD_262007" L4_1.trigger_count = 0 L5_1 = {} L5_1.config_id = 1262008 L5_1.name = "TIME_AXIS_PASS_262008" L6_1 = EventType L6_1 = L6_1.EVENT_TIME_AXIS_PASS L5_1.event = L6_1 L5_1.source = "InitialEnding" L5_1.condition = "" L5_1.action = "action_EVENT_TIME_AXIS_PASS_262008" L5_1.trigger_count = 0 L6_1 = {} L6_1.config_id = 1262015 L6_1.name = "ENTER_REGION_262015" L7_1 = EventType L7_1 = L7_1.EVENT_ENTER_REGION L6_1.event = L7_1 L6_1.source = "" L6_1.condition = "condition_EVENT_ENTER_REGION_262015" L6_1.action = "action_EVENT_ENTER_REGION_262015" L6_1.trigger_count = 0 L6_1.forbid_guest = false L7_1 = {} L7_1.config_id = 1262016 L7_1.name = "ENTER_REGION_262016" L8_1 = EventType L8_1 = L8_1.EVENT_ENTER_REGION L7_1.event = L8_1 L7_1.source = "" L7_1.condition = "condition_EVENT_ENTER_REGION_262016" L7_1.action = "action_EVENT_ENTER_REGION_262016" L7_1.trigger_count = 0 L7_1.forbid_guest = false L8_1 = {} L8_1.config_id = 1262017 L8_1.name = "ENTER_REGION_262017" L9_1 = EventType L9_1 = L9_1.EVENT_ENTER_REGION L8_1.event = L9_1 L8_1.source = "" L8_1.condition = "condition_EVENT_ENTER_REGION_262017" L8_1.action = "action_EVENT_ENTER_REGION_262017" L8_1.trigger_count = 0 L8_1.forbid_guest = false L9_1 = {} L9_1.config_id = 1262018 L9_1.name = "ENTER_REGION_262018" L10_1 = EventType L10_1 = L10_1.EVENT_ENTER_REGION L9_1.event = L10_1 L9_1.source = "" L9_1.condition = "condition_EVENT_ENTER_REGION_262018" L9_1.action = "action_EVENT_ENTER_REGION_262018" L9_1.trigger_count = 0 L9_1.forbid_guest = false L10_1 = {} L10_1.config_id = 1262023 L10_1.name = "SELECT_OPTION_262023" L11_1 = EventType L11_1 = L11_1.EVENT_SELECT_OPTION L10_1.event = L11_1 L10_1.source = "" L10_1.condition = "condition_EVENT_SELECT_OPTION_262023" L10_1.action = "action_EVENT_SELECT_OPTION_262023" L10_1.trigger_count = 0 L11_1 = {} L11_1.config_id = 1262024 L11_1.name = "PLATFORM_REACH_POINT_262024" L12_1 = EventType L12_1 = L12_1.EVENT_PLATFORM_REACH_POINT L11_1.event = L12_1 L11_1.source = "" L11_1.condition = "condition_EVENT_PLATFORM_REACH_POINT_262024" L11_1.action = "action_EVENT_PLATFORM_REACH_POINT_262024" L11_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 L2_1[9] = L11_1 triggers = L2_1 L2_1 = {} L3_1 = {} L3_1.configId = 1 L3_1.name = "isInitial" L3_1.value = 1 L3_1.no_refresh = false L4_1 = {} L4_1.configId = 2 L4_1.name = "gadget_Teleport_1_isActive" L4_1.value = 0 L4_1.no_refresh = true L5_1 = {} L5_1.configId = 3 L5_1.name = "gadget_Teleport_2_isActive" L5_1.value = 0 L5_1.no_refresh = true L6_1 = {} L6_1.configId = 4 L6_1.name = "gadget_Teleport_3_isActive" L6_1.value = 0 L6_1.no_refresh = true L7_1 = {} L7_1.configId = 5 L7_1.name = "gadget_Teleport_4_isActive" L7_1.value = 0 L7_1.no_refresh = true L8_1 = {} L8_1.configId = 6 L8_1.name = "gadget_Teleport_5_isActive" L8_1.value = 0 L8_1.no_refresh = true L9_1 = {} L9_1.configId = 7 L9_1.name = "gadget_Teleport_1_state" L9_1.value = 0 L9_1.no_refresh = true L10_1 = {} L10_1.configId = 8 L10_1.name = "gadget_Teleport_2_state" L10_1.value = 0 L10_1.no_refresh = true L11_1 = {} L11_1.configId = 9 L11_1.name = "gadget_Teleport_3_state" L11_1.value = 0 L11_1.no_refresh = true L12_1 = {} L12_1.configId = 10 L12_1.name = "gadget_Teleport_4_state" L12_1.value = 0 L12_1.no_refresh = true L13_1 = {} L13_1.configId = 11 L13_1.name = "gadget_Teleport_5_state" L13_1.value = 0 L13_1.no_refresh = true 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 L2_1[11] = L13_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 = 262001 L6_1 = 262002 L7_1 = 262003 L8_1 = 262004 L9_1 = 262005 L10_1 = 262009 L11_1 = 262010 L12_1 = 262011 L13_1 = 262012 L14_1 = 262013 L15_1 = 262014 L16_1 = 262019 L17_1 = 262020 L18_1 = 262021 L19_1 = 262022 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 L4_1[10] = L14_1 L4_1[11] = L15_1 L4_1[12] = L16_1 L4_1[13] = L17_1 L4_1[14] = L18_1 L4_1[15] = L19_1 L3_1.gadgets = L4_1 L4_1 = {} L5_1 = 262006 L6_1 = 262015 L7_1 = 262016 L8_1 = 262017 L9_1 = 262018 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 L3_1.regions = L4_1 L4_1 = {} L5_1 = "ENTER_REGION_262006" L6_1 = "GROUP_LOAD_262007" L7_1 = "TIME_AXIS_PASS_262008" L8_1 = "ENTER_REGION_262015" L9_1 = "ENTER_REGION_262016" L10_1 = "ENTER_REGION_262017" L11_1 = "ENTER_REGION_262018" L12_1 = "SELECT_OPTION_262023" L13_1 = "PLATFORM_REACH_POINT_262024" 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.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 L2_2 = A1_2.param1 if L2_2 ~= 262006 then L2_2 = false return L2_2 end L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "gadget_Teleport_5_isActive" 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_ENTER_REGION_262006 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = L1_1.gadget_Teleport_5 L3_2 = TeleportAction L4_2 = A0_2 L5_2 = L2_2 L3_2(L4_2, L5_2) L3_2 = 0 return L3_2 end action_EVENT_ENTER_REGION_262006 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2 L2_2 = InitialTeleportRotationY L3_2 = A0_2 L2_2(L3_2) L2_2 = InitialTeleportState L3_2 = A0_2 L2_2(L3_2) L2_2 = ScriptLib L2_2 = L2_2.InitTimeAxis L3_2 = A0_2 L4_2 = "InitialEnding" L5_2 = {} L6_2 = 1 L5_2[1] = L6_2 L6_2 = false L2_2(L3_2, L4_2, L5_2, L6_2) L2_2 = 0 return L2_2 end action_EVENT_GROUP_LOAD_262007 = 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 L2_2 = UpdateTeleportState L3_2 = A0_2 L2_2(L3_2) L2_2 = 1 L3_2 = TeleportOwnerShip L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = TeleportOwnerShip L6_2 = L6_2[L5_2] L6_2 = L6_2[1] if L6_2 ~= 0 then L6_2 = ScriptLib L6_2 = L6_2.SetWorktopOptionsByGroupId L7_2 = A0_2 L8_2 = L1_1.group_ID L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[1] L10_2 = {} L11_2 = 31 L10_2[1] = L11_2 L6_2(L7_2, L8_2, L9_2, L10_2) end end L2_2 = 0 return L2_2 end action_EVENT_TIME_AXIS_PASS_262008 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = A1_2.param1 if L2_2 ~= 262015 then L2_2 = false return L2_2 end L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "gadget_Teleport_1_isActive" 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_ENTER_REGION_262015 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = L1_1.gadget_Teleport_1 L3_2 = TeleportAction L4_2 = A0_2 L5_2 = L2_2 L3_2(L4_2, L5_2) L3_2 = 0 return L3_2 end action_EVENT_ENTER_REGION_262015 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = A1_2.param1 if L2_2 ~= 262016 then L2_2 = false return L2_2 end L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "gadget_Teleport_2_isActive" 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_ENTER_REGION_262016 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = L1_1.gadget_Teleport_2 L3_2 = TeleportAction L4_2 = A0_2 L5_2 = L2_2 L3_2(L4_2, L5_2) L3_2 = 0 return L3_2 end action_EVENT_ENTER_REGION_262016 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = A1_2.param1 if L2_2 ~= 262017 then L2_2 = false return L2_2 end L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "gadget_Teleport_3_isActive" 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_ENTER_REGION_262017 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = L1_1.gadget_Teleport_3 L3_2 = TeleportAction L4_2 = A0_2 L5_2 = L2_2 L3_2(L4_2, L5_2) L3_2 = 0 return L3_2 end action_EVENT_ENTER_REGION_262017 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = A1_2.param1 if L2_2 ~= 262018 then L2_2 = false return L2_2 end L2_2 = ScriptLib L2_2 = L2_2.GetGroupVariableValue L3_2 = A0_2 L4_2 = "gadget_Teleport_4_isActive" 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_ENTER_REGION_262018 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = L1_1.gadget_Teleport_4 L3_2 = TeleportAction L4_2 = A0_2 L5_2 = L2_2 L3_2(L4_2, L5_2) L3_2 = 0 return L3_2 end action_EVENT_ENTER_REGION_262018 = L2_1 function L2_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = false L3_2 = 1 L4_2 = TeleportOwnerShip L4_2 = #L4_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = TeleportOwnerShip L7_2 = L7_2[L6_2] L7_2 = L7_2[1] L8_2 = A1_2.param1 if L7_2 ~= L8_2 then L2_2 = false else L2_2 = true L7_2 = A1_2.param2 if 31 ~= L7_2 then L2_2 = false end return L2_2 end end return L2_2 end condition_EVENT_SELECT_OPTION_262023 = 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 L2_2 = nil L3_2 = nil L4_2 = 1 L5_2 = TeleportOwnerShip L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TeleportOwnerShip L8_2 = L8_2[L7_2] L8_2 = L8_2[1] L9_2 = A1_2.param1 if L8_2 == L9_2 then L8_2 = TeleportOwnerShip L8_2 = L8_2[L7_2] L2_2 = L8_2[2] L8_2 = TeleportOwnerShip L8_2 = L8_2[L7_2] L3_2 = L8_2[1] end end L4_2 = 1 L5_2 = TeleportOwnerShip L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TeleportOwnerShip L8_2 = L8_2[L7_2] L8_2 = L8_2[1] if L8_2 ~= 0 then L8_2 = ScriptLib L8_2 = L8_2.DelWorktopOptionByGroupId L9_2 = A0_2 L10_2 = L1_1.group_ID L11_2 = TeleportOwnerShip L11_2 = L11_2[L7_2] L11_2 = L11_2[1] L12_2 = 31 L8_2(L9_2, L10_2, L11_2, L12_2) end end L4_2 = ScriptLib L4_2 = L4_2.SetGroupVariableValue L5_2 = A0_2 L6_2 = "isInitial" L7_2 = 0 L4_2(L5_2, L6_2, L7_2) L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "evt.gadgetid = " L6_2 = A1_2.param1 L5_2 = L5_2 .. L6_2 L4_2(A0_2, L5_2) L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "localtarget = " L6_2 = L2_2 L5_2 = L5_2 .. L6_2 L4_2(A0_2, L5_2) L4_2 = ScriptLib L4_2 = L4_2.SetPlatformPointArray L5_2 = A0_2 L6_2 = L2_2 L7_2 = L1_1.pointarray_Rotate L8_2 = {} L9_2 = 1 L8_2[1] = L9_2 L9_2 = {} L9_2.route_type = 0 L9_2.turn_mode = true L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) L4_2 = 0 return L4_2 end action_EVENT_SELECT_OPTION_262023 = 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 L2_2 = ScriptLib L2_2 = L2_2.PrintLog L3_2 = "Reachpoint_condition : " L4_2 = A1_2.param1 L3_2 = L3_2 .. L4_2 L2_2(A0_2, L3_2) L2_2 = false L3_2 = 1 L4_2 = TeleportOwnerShip L4_2 = #L4_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = TeleportOwnerShip L7_2 = L7_2[L6_2] L7_2 = L7_2[2] L8_2 = A1_2.param1 if L7_2 ~= L8_2 then L2_2 = false else L2_2 = true L7_2 = ScriptLib L7_2 = L7_2.GetGroupVariableValue L8_2 = A0_2 L9_2 = "isInitial" L7_2 = L7_2(L8_2, L9_2) if L7_2 ~= 0 then L2_2 = false end return L2_2 end end return L2_2 end condition_EVENT_PLATFORM_REACH_POINT_262024 = 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 L2_2 = ScriptLib L2_2 = L2_2.PrintLog L3_2 = "Reachpoint_action : " L4_2 = A1_2.param1 L3_2 = L3_2 .. L4_2 L2_2(A0_2, L3_2) L2_2 = 1 L3_2 = TeleportOwnerShip L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = TeleportOwnerShip L6_2 = L6_2[L5_2] L6_2 = L6_2[1] if L6_2 ~= 0 then L6_2 = ScriptLib L6_2 = L6_2.SetWorktopOptionsByGroupId L7_2 = A0_2 L8_2 = L1_1.group_ID L9_2 = TeleportOwnerShip L9_2 = L9_2[L5_2] L9_2 = L9_2[1] L10_2 = {} L11_2 = 31 L10_2[1] = L11_2 L6_2(L7_2, L8_2, L9_2, L10_2) end end L2_2 = UpdateTeleportState L3_2 = A0_2 L2_2(L3_2) L2_2 = GetTeleportNameByConfigID L3_2 = A0_2 L4_2 = A1_2.param1 L2_2 = L2_2(L3_2, L4_2) L3_2 = "_state" L2_2 = L2_2 .. L3_2 L3_2 = ScriptLib L3_2 = L3_2.PrintLog L4_2 = "gadgetname = " L5_2 = L2_2 L4_2 = L4_2 .. L5_2 L3_2(A0_2, L4_2) L3_2 = ScriptLib L3_2 = L3_2.GetGroupVariableValue L4_2 = A0_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "prerot = " L6_2 = L3_2 L5_2 = L5_2 .. L6_2 L4_2(A0_2, L5_2) L4_2 = L1_1.rotStep L3_2 = L3_2 + L4_2 if 360 <= L3_2 then L3_2 = 0 end L4_2 = ScriptLib L4_2 = L4_2.PrintLog L5_2 = "prerot ++ = " L6_2 = L3_2 L5_2 = L5_2 .. L6_2 L4_2(A0_2, L5_2) L4_2 = ScriptLib L4_2 = L4_2.SetGroupVariableValue L5_2 = A0_2 L6_2 = L2_2 L7_2 = L3_2 L4_2(L5_2, L6_2, L7_2) L4_2 = 0 return L4_2 end action_EVENT_PLATFORM_REACH_POINT_262024 = L2_1