Advertisement
chen399d

養成模擬器電腦UI

Dec 21st, 2024 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.06 KB | Source Code | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))();
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))();
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))();
  4. local AntiAFK = game:GetService("VirtualUser");
  5. game.Players.LocalPlayer.Idled:Connect(function()
  6.     AntiAFK:CaptureController();
  7.     AntiAFK:ClickButton2(Vector2.new());
  8.     wait(2);
  9. end);
  10. local Window = Fluent:CreateWindow({Title="Cultivation-Simulator 養成模擬器",SubTitle="作者:澤澤",TabWidth=160,Size=UDim2.fromOffset(580, 460),Acrylic=true,Theme="Dark",MinimizeKey=Enum.KeyCode.LeftControl});
  11. local Tabs = {PAGE=Window:AddTab({Title="自述",Icon="hammer"}),Main=Window:AddTab({Title="Main",Icon="play"}),PAGE1=Window:AddTab({Title="抽取",Icon="egg"}),PAGE2=Window:AddTab({Title="其他功能",Icon="arrow-right"}),Settings=Window:AddTab({Title="Settings",Icon="settings"})};
  12. do
  13.     Fluent:Notify({Title="通知",Content="腳本已載入",Duration=5});
  14.     Fluent:Notify({Title="通知",Content="Anti-AFK:Start",Duration=5});
  15. end
  16. local Options = Fluent.Options;
  17. local player = game:GetService("Players").LocalPlayer;
  18. local values = player:WaitForChild("值");
  19. local playersetting = values:WaitForChild("设置");
  20. local privileges = values:WaitForChild("特权");
  21. local playerGui = player.PlayerGui;
  22. local mainmission = playerGui.GUI:WaitForChild("主界面"):WaitForChild("主城"):WaitForChild("主线任务"):WaitForChild("按钮"):WaitForChild("提示").Visible;
  23. local missionnamelist = playerGui.GUI:WaitForChild("二级界面"):WaitForChild("商店"):WaitForChild("通行证任务"):WaitForChild("背景"):WaitForChild("任务列表");
  24. local guiPath = playerGui.GUI:WaitForChild("主界面"):WaitForChild("战斗");
  25. local levelInfoUI = guiPath:WaitForChild("关卡信息"):WaitForChild("文本");
  26. local victoryResult = guiPath:WaitForChild("胜利结果");
  27. local lottery = playerGui.GUI:WaitForChild("二级界面"):WaitForChild("商店"):WaitForChild("背景"):WaitForChild("右侧界面"):WaitForChild("召唤");
  28. local currency = player:WaitForChild("值"):WaitForChild("货币");
  29. local diamonds = currency:WaitForChild("钻石");
  30. local sword = lottery:WaitForChild("法宝"):WaitForChild("等级区域");
  31. local sword_level = sword:WaitForChild("值").text;
  32. local sword_value = sword:WaitForChild("进度条"):WaitForChild("值"):WaitForChild("值").text;
  33. local skill = lottery:WaitForChild("技能"):WaitForChild("等级区域");
  34. local skill_level = skill:WaitForChild("值").text;
  35. local skill_value = skill:WaitForChild("进度条"):WaitForChild("值"):WaitForChild("值").text;
  36. local sword_tickets = currency:WaitForChild("法宝抽奖券").value;
  37. local skill_tickets = currency:WaitForChild("技能抽奖券").value;
  38. local extract_sword_level;
  39. local extract_sword_value;
  40. local extract_skill_level;
  41. local extract_skill_value;
  42. local useDiamonds = false;
  43. local namechangechick = false;
  44. local savemodecheck2 = false;
  45. local screenGui = Instance.new("ScreenGui");
  46. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui");
  47. local blackBlock = Instance.new("Frame");
  48. blackBlock.Size = UDim2.new(200, 0, 200, 0);
  49. blackBlock.Position = UDim2.new(0, 0, 0, 0);
  50. blackBlock.BackgroundColor3 = Color3.fromRGB(0, 0, 0);
  51. blackBlock.Visible = false;
  52. blackBlock.Parent = screenGui;
  53. local function gamepassmissionnamechange()
  54.     if missionnamelist then
  55.         local gamepassmissionlist = missionnamelist:FindFirstChild("任务项预制体");
  56.         if gamepassmissionlist then
  57.             local gamepassmissionLayoutOrder = gamepassmissionlist.LayoutOrder;
  58.             gamepassmissionlist.Name = tostring(gamepassmissionLayoutOrder);
  59.         else
  60.             game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\230\156\136\233\128\154\232\161\140\232\175\129"):FindFirstChild("\232\142\183\229\143\150\230\149\176\230\141\174"):FireServer();
  61.             print("任務--名稱--已全部更改");
  62.             namechangechick = true;
  63.         end
  64.     end
  65. end
  66. while not namechangechick do
  67.     gamepassmissionnamechange();
  68. end
  69. local closestScene = nil;
  70. local closestPosition = nil;
  71. local closestDistance = math.huge;
  72. local localPlayer = game.Players.LocalPlayer;
  73. local character = localPlayer.Character or localPlayer.CharacterAdded:Wait();
  74. local rootPart = character:WaitForChild("HumanoidRootPart");
  75. for i = 1, 9 do
  76.     local sceneName = "主场景" .. (((i > 1) and tostring(i)) or "");
  77.     local scene = workspace:WaitForChild(sceneName, 5);
  78.     if scene then
  79.         local respawnPoint = scene:WaitForChild("重生点", 5);
  80.         if respawnPoint then
  81.             local distance = (respawnPoint.CFrame.Position - rootPart.CFrame.Position).Magnitude;
  82.             if (distance < closestDistance) then
  83.                 closestDistance = distance;
  84.                 closestScene = scene;
  85.                 closestPosition = respawnPoint.Position + Vector3.new(0, 4.9, 0);
  86.             end
  87.         else
  88.             print("主場景:", scene.Name, "中未找到重生點");
  89.         end
  90.     else
  91.         print("未找到主場景:", sceneName);
  92.     end
  93. end
  94. if (closestScene and closestPosition) then
  95.     print("初始場景為:", closestScene.Name);
  96.     print("重生點座標 (x, y, z):", closestPosition.X, closestPosition.Y, closestPosition.Z);
  97. end
  98. local Players = game:GetService("Players");
  99. local playerInRange = false;
  100. local hasPrintedNoPlayer = false;
  101. local inRange = false;
  102. local isDetectionEnabled = false;
  103. local timescheck = 0;
  104. local savemodetime = 9;
  105. local function checkPlayersInRange()
  106.     local character = localPlayer.Character;
  107.     if (not character or not character:FindFirstChild("HumanoidRootPart")) then
  108.         return;
  109.     end
  110.     local boxPosition = character.HumanoidRootPart.Position;
  111.     local boxSize = Vector3.new(500, 500, 500) / 2;
  112.     playerInRange = false;
  113.     for _, player in pairs(Players:GetPlayers()) do
  114.         if ((player ~= localPlayer) and player.Character and player.Character:FindFirstChild("HumanoidRootPart")) then
  115.             local playerPosition = player.Character.HumanoidRootPart.Position;
  116.             local inRange = (math.abs(playerPosition.X - boxPosition.X) <= boxSize.X) and (math.abs(playerPosition.Y - boxPosition.Y) <= boxSize.Y) and (math.abs(playerPosition.Z - boxPosition.Z) <= boxSize.Z);
  117.             if inRange then
  118.                 playerInRange = true;
  119.                 break;
  120.             end
  121.         end
  122.     end
  123.     if playerInRange then
  124.         if (timescheck == 0) then
  125.             print("有玩家在範圍內");
  126.             savemodetime = 9;
  127.             timescheck = 1;
  128.             hasPrintedNoPlayer = true;
  129.         end
  130.     elseif (timescheck == 1) then
  131.         print("範圍內玩家已離開");
  132.         timescheck = 0;
  133.         hasPrintedNoPlayer = false;
  134.     end
  135.     if (not playerInRange and not hasPrintedNoPlayer) then
  136.         print("範圍內無玩家");
  137.         savemodetime = 3;
  138.         hasPrintedNoPlayer = true;
  139.     end
  140. end
  141. local function setupRangeDetection()
  142.     while true do
  143.         if isDetectionEnabled then
  144.             checkPlayersInRange();
  145.         end
  146.         wait(0.1);
  147.     end
  148. end
  149. local function toggleDetection()
  150.     if not savemodecheck2 then
  151.         isDetectionEnabled = true;
  152.         print("檢測已啟用");
  153.     else
  154.         isDetectionEnabled = false;
  155.         savemodetime = 3;
  156.         print("檢測已關閉");
  157.     end
  158. end
  159. spawn(setupRangeDetection);
  160. local previousLevelText = levelInfoUI.Text or "";
  161. local previousVictoryText = victoryResult.Text or "";
  162. local levelNumber = 0;
  163. local restart = false;
  164. local function isEmpty(text)
  165.     return (text == nil) or (text:gsub("%s+", "") == "");
  166. end
  167. local function updateLevelText()
  168.     local currentLevelText = levelInfoUI.Text;
  169.     if (not isEmpty(currentLevelText) and (currentLevelText ~= previousLevelText)) then
  170.         previousLevelText = currentLevelText;
  171.         levelNumber = previousLevelText:match("World (%d+)") or 0;
  172.     end
  173. end
  174. local function updateVictoryText()
  175.     local currentVictoryText = victoryResult.Text;
  176.     if (currentVictoryText ~= previousVictoryText) then
  177.         previousVictoryText = currentVictoryText;
  178.         local losewave = previousVictoryText;
  179.         local victoryWaveNumber = previousVictoryText:match("Wave (%d+)") or 100;
  180.         local victoryText = previousVictoryText:match("Wave %d+ (.+)") or "結束";
  181.         if (victoryWaveNumber == 100) then
  182.             restart = true;
  183.         end
  184.         if (losewave == 100) then
  185.             restart = true;
  186.         end
  187.     end
  188. end
  189. local function checkAndUpdate()
  190.     updateLevelText();
  191.     updateVictoryText();
  192. end
  193. local function restart_level()
  194.     local number = tonumber(levelNumber:match("%d+"));
  195.     print("重啟世界", number);
  196.     local args = {[1]=number};
  197.     game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\229\133\179\229\141\161"):FindFirstChild("\232\191\155\229\133\165\228\184\150\231\149\140\229\133\179\229\141\161"):FireServer(unpack(args));
  198. end
  199. local function mainmissionchack()
  200.     mainmission = playerGui.GUI:WaitForChild("主界面"):WaitForChild("主城"):WaitForChild("主线任务"):WaitForChild("按钮"):WaitForChild("提示").Visible;
  201.     if (mainmission == true) then
  202.         print("任務完成,可領取");
  203.         game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\228\184\187\231\186\191\228\187\187\229\138\161"):FindFirstChild("\233\162\134\229\143\150\229\165\150\229\138\177"):FireServer();
  204.     end
  205. end
  206. local function gamepassmission()
  207.     if missionnamelist then
  208.         for _, child in ipairs(missionnamelist:GetChildren()) do
  209.             if (child:IsA("Frame") and (child.Visible == true)) then
  210.                 local missionname = child.Name;
  211.                 missionname = tonumber(missionname);
  212.                 local nameLabel = child:WaitForChild("名称");
  213.                 if nameLabel then
  214.                     local taskProgress = nameLabel.Text:match("%((%d+/%d+)%)");
  215.                     if taskProgress then
  216.                         local A_num, B_num = taskProgress:match("(%d+)%/(%d+)");
  217.                         A_num = tonumber(A_num);
  218.                         B_num = tonumber(B_num);
  219.                         if (A_num and B_num and ((A_num / B_num) >= 1)) then
  220.                             print("可領取");
  221.                             local args = {[1]=missionname};
  222.                             game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\230\156\136\233\128\154\232\161\140\232\175\129"):FindFirstChild("\229\174\140\230\136\144\228\187\187\229\138\161"):FireServer(unpack(args));
  223.                             game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\230\156\136\233\128\154\232\161\140\232\175\129"):FindFirstChild("\232\142\183\229\143\150\230\149\176\230\141\174"):FireServer();
  224.                         end
  225.                     end
  226.                 end
  227.             end
  228.         end
  229.     end
  230. end
  231. local function usesword_ticket()
  232.     print("抽獎:法寶");
  233.     local args = {[1]="\230\179\149\229\174\157",[2]=false};
  234.     game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\229\149\134\229\186\151"):FindFirstChild("\229\143\172\229\148\164"):FindFirstChild("\230\138\189\229\165\150"):FireServer(unpack(args));
  235. end
  236. local function useskill_ticket()
  237.     print("抽獎:技能");
  238.     local args = {[1]="\230\138\128\232\131\189",[2]=false};
  239.     game:GetService("ReplicatedStorage"):FindFirstChild("\228\186\139\228\187\182"):FindFirstChild("\229\133\172\231\148\168"):FindFirstChild("\229\149\134\229\186\151"):FindFirstChild("\229\143\172\229\148\164"):FindFirstChild("\230\138\189\229\165\150"):FireServer(unpack(args));
  240. end
  241. local MIN_TICKETS = 8;
  242. local DIAMONDS_PER_TICKET = 50;
  243. local function checkTicketsAndDiamonds(tickets, diamonds, itemType, useDiamonds)
  244.     if (tickets >= MIN_TICKETS) then
  245.         return true;
  246.     end
  247.     local missingTickets = MIN_TICKETS - tickets;
  248.     if not useDiamonds then
  249.         return false;
  250.     end
  251.     local requiredDiamonds = missingTickets * DIAMONDS_PER_TICKET;
  252.     if (diamonds >= requiredDiamonds) then
  253.         return true;
  254.     else
  255.         return false;
  256.     end
  257. end
  258. local function processLottery(type, tickets, diamonds, useDiamonds)
  259.     local canProceed = checkTicketsAndDiamonds(tickets, diamonds, type, useDiamonds);
  260.     if canProceed then
  261.         if (type == "法寶") then
  262.             usesword_ticket();
  263.         elseif (type == "技能") then
  264.             useskill_ticket();
  265.         end
  266.     else
  267.     end
  268.     return canProceed;
  269. end
  270. local function compare_ticket_type(sword_tickets, skill_tickets, sword_level, skill_level, sword_value, skill_value, diamonds, useDiamonds)
  271.     if (sword_level == skill_level) then
  272.         if (sword_value > skill_value) then
  273.             processLottery("技能", skill_tickets, diamonds, useDiamonds);
  274.         elseif (sword_value < skill_value) then
  275.             processLottery("法寶", sword_tickets, diamonds, useDiamonds);
  276.         else
  277.             local canSword = processLottery("法寶", sword_tickets, diamonds, useDiamonds);
  278.             local canSkill = processLottery("技能", skill_tickets, diamonds, useDiamonds);
  279.             if (not canSword and not canSkill) then
  280.             end
  281.         end
  282.     elseif (sword_level > skill_level) then
  283.         processLottery("技能", skill_tickets, diamonds, useDiamonds);
  284.     else
  285.         processLottery("法寶", sword_tickets, diamonds, useDiamonds);
  286.     end
  287. end
  288. local function fetchData()
  289.     sword_level = sword:WaitForChild("值").Text;
  290.     sword_value = sword:WaitForChild("进度条"):WaitForChild("值"):WaitForChild("值").Text;
  291.     skill_level = skill:WaitForChild("值").Text;
  292.     skill_value = skill:WaitForChild("进度条"):WaitForChild("值"):WaitForChild("值").Text;
  293.     sword_tickets = currency:WaitForChild("法宝抽奖券").Value;
  294.     skill_tickets = currency:WaitForChild("技能抽奖券").Value;
  295.     diamonds = currency:WaitForChild("钻石").Value;
  296. end
  297. local function updateExtractedValues()
  298.     fetchData();
  299.     extract_sword_level = tonumber(string.match(sword_level, "%d+"));
  300.     extract_sword_value = tonumber(string.match(sword_value, "^(%d+)/"));
  301.     extract_skill_level = tonumber(string.match(skill_level, "%d+"));
  302.     extract_skill_value = tonumber(string.match(skill_value, "^(%d+)/"));
  303. end
  304. Tabs.PAGE:AddParagraph({Title="最後更新時間:2024/12/22",Content="製作時間:2024/12/20"});
  305. Tabs.PAGE:AddButton({Title="手機板UI",Description="更多功能...",Callback=function()
  306.     loadstring(game:HttpGet("https://pastebin.com/raw/thwJrecP"))();
  307. end});
  308. Tabs.PAGE:AddButton({Title="開黑幕/關閉",Callback=function()
  309.     print("開黑幕/關閉");
  310.     blackBlock.Visible = not blackBlock.Visible;
  311. end});
  312. Tabs.PAGE:AddButton({Title="統計- - 每秒擊殺/金幣數",Callback=function()
  313.     loadstring(game:HttpGet("https://pastebin.com/raw/0NqSi46N"))();
  314.     loadstring(game:HttpGet("https://pastebin.com/raw/HGQXdAiz"))();
  315. end});
  316. local Toggle = Tabs.PAGE:AddToggle("SaveMode", {Title="安全模式",Default=false});
  317. Toggle:OnChanged(function()
  318.     if Toggle.Value then
  319.         inRange = false;
  320.         playerInRange = false;
  321.         timescheck = 0;
  322.         hasPrintedNoPlayer = false;
  323.         savemodecheck2 = false;
  324.         toggleDetection();
  325.     else
  326.         savemodecheck2 = true;
  327.         toggleDetection();
  328.     end
  329. end);
  330. Options.SaveMode:SetValue(true);
  331. Tabs.Main:AddButton({Title="掛機模式開關",Callback=function()
  332.     local AFKmod = playersetting:WaitForChild("自动战斗");
  333.     if (AFKmod.Value == true) then
  334.         AFKmod.Value = false;
  335.     else
  336.         AFKmod.Value = true;
  337.     end
  338. end});
  339. local Toggle = Tabs.Main:AddToggle("AutoCollectherbs", {Title="自動採草藥",Default=false});
  340. Toggle:OnChanged(function()
  341.     if Toggle.Value then
  342.         spawn(function()
  343.             while Toggle.Value do
  344.                 local args = {[1]=1,[2]=nil};
  345.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  346.                 local args = {[1]=2,[2]=nil};
  347.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  348.                 local args = {[1]=3,[2]=nil};
  349.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  350.                 local args = {[1]=4,[2]=nil};
  351.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  352.                 local args = {[1]=5,[2]=nil};
  353.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  354.                 local args = {[1]=6,[2]=nil};
  355.                 game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\134\156\231\148\176"]["\233\135\135\233\155\134"]:FireServer(unpack(args));
  356.                 wait(60);
  357.             end
  358.         end);
  359.     end
  360. end);
  361. Options.AutoCollectherbs:SetValue(false);
  362. local Toggle = Tabs.Main:AddToggle("invest", {Title="投資",Default=false});
  363. Toggle:OnChanged(function()
  364.     if Toggle.Value then
  365.         spawn(function()
  366.             while Toggle.Value do
  367.                 for i = 1, 3 do
  368.                     local args = {i};
  369.                     game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\149\134\229\186\151"]["\233\147\182\232\161\140"]["\233\162\134\229\143\150\231\144\134\232\180\162"]:FireServer(unpack(args));
  370.                     print("領取", i);
  371.                 end
  372.                 wait(5);
  373.                 for i = 1, 3 do
  374.                     local args = {i};
  375.                     game:GetService("ReplicatedStorage")["\228\186\139\228\187\182"]["\229\133\172\231\148\168"]["\229\149\134\229\186\151"]["\233\147\182\232\161\140"]["\232\180\173\228\185\176\231\144\134\232\180\162"]:FireServer(unpack(args));
  376.                     print("投資", i);
  377.                 end
  378.                 wait(600);
  379.             end
  380.         end);
  381.     end
  382. end);
  383. Options.invest:SetValue(false);
  384. local Toggle = Tabs.Main:AddToggle("rewardstasks", {Title="任務完成自動領取(不包括每日任務)",Default=false});
  385. Toggle:OnChanged(function()
  386.     spawn(function()
  387.         while Toggle.Value do
  388.             mainmissionchack();
  389.             gamepassmission();
  390.             wait(1);
  391.         end
  392.     end);
  393. end);
  394. Options.rewardstasks:SetValue(false);
  395. local Toggle = Tabs.Main:AddToggle("Autostart", {Title="戰鬥結束後自動開始(只支援世界戰鬥)",Default=false});
  396. Toggle:OnChanged(function()
  397.     spawn(function()
  398.         while Toggle.Value do
  399.             checkAndUpdate();
  400.             if (restart == true) then
  401.                 rootPart.CFrame = CFrame.new(closestPosition);
  402.                 wait(0.5);
  403.                 wait(savemodetime);
  404.                 restart_level();
  405.                 wait(0.5);
  406.                 restart = false;
  407.             end
  408.             wait(0.3);
  409.         end
  410.     end);
  411. end);
  412. Options.Autostart:SetValue(false);
  413. Tabs.PAGE1:AddButton({Title="GamePass- - 解鎖自動煉製",Callback=function()
  414.     local superRefining = privileges:WaitForChild("超级炼制");
  415.     superRefining.Value = false;
  416.     local automaticRefining = privileges:WaitForChild("自动炼制");
  417.     automaticRefining.Value = true;
  418. end});
  419. Tabs.PAGE1:AddButton({Title="GamePass- - 解鎖背包擴充",Callback=function()
  420.     local backpack = privileges:WaitForChild("扩充背包");
  421.     backpack.Value = true;
  422. end});
  423. local Toggle = Tabs.PAGE1:AddToggle("Autolottery", {Title="自動抽法寶/技能",Default=false});
  424. Toggle:OnChanged(function()
  425.     if Toggle.Value then
  426.         spawn(function()
  427.             while Toggle.Value do
  428.                 updateExtractedValues();
  429.                 wait(0.2);
  430.                 compare_ticket_type(sword_tickets, skill_tickets, extract_sword_level, extract_skill_level, extract_sword_value, extract_skill_value, diamonds, useDiamonds);
  431.                 wait(0.2);
  432.             end
  433.         end);
  434.     end
  435. end);
  436. Options.Autolottery:SetValue(false);
  437. local Toggle = Tabs.PAGE1:AddToggle("USEDiamondSwitch", {Title="自動抽法寶/技能",Default=false});
  438. Toggle:OnChanged(function()
  439.     if Toggle.Value then
  440.         useDiamonds = Toggle.Value;
  441.     end
  442. end);
  443. Options.USEDiamondSwitch:SetValue(false);
  444. local function checkTime()
  445.     while true do
  446.         local currentTime = os.date("*t");
  447.         if ((currentTime.hour == 0) and (currentTime.min == 0)) then
  448.             wait(1);
  449.             namechangechick = false;
  450.             gamepassmissionnamechange();
  451.             wait(60);
  452.         else
  453.             wait(1);
  454.         end
  455.     end
  456. end
  457. spawn(function()
  458.     checkTime();
  459. end);
  460. local replicatedStorage = game:GetService("ReplicatedStorage");
  461. Tabs.PAGE2:AddButton({Title="開啟郵件",Callback=function()
  462.     local event = replicatedStorage:FindFirstChild("打开邮件", true);
  463.     if (event and event:IsA("BindableEvent")) then
  464.         event:Fire("打开郵件");
  465.     end
  466. end});
  467. Tabs.PAGE2:AddButton({Title="開啟陣法",Callback=function()
  468.     local event = replicatedStorage:FindFirstChild("打开阵法", true);
  469.     if (event and event:IsA("BindableEvent")) then
  470.         event:Fire("打开陣法");
  471.     end
  472. end});
  473. Tabs.PAGE2:AddButton({Title="開啟轉盤",Callback=function()
  474.     local event = replicatedStorage:FindFirstChild("打开转盘", true);
  475.     if (event and event:IsA("BindableEvent")) then
  476.         event:Fire("打開轉盤");
  477.     end
  478. end});
  479. Tabs.PAGE2:AddButton({Title="開啟轉盤",Callback=function()
  480.     local event = replicatedStorage:FindFirstChild("打开世界树", true);
  481.     if (event and event:IsA("BindableEvent")) then
  482.         event:Fire("打開世界樹");
  483.     end
  484. end});
  485. SaveManager:SetLibrary(Fluent);
  486. InterfaceManager:SetLibrary(Fluent);
  487. SaveManager:IgnoreThemeSettings();
  488. SaveManager:SetIgnoreIndexes({});
  489. InterfaceManager:SetFolder("GAME_Cultivation-Simulator");
  490. SaveManager:SetFolder("Cultivation-Simulator/By:澤澤");
  491. InterfaceManager:BuildInterfaceSection(Tabs.Settings);
  492. SaveManager:BuildConfigSection(Tabs.Settings);
  493. Window:SelectTab(1);
  494. Fluent:Notify({Title="GAME_Cultivation-Simulator",Content="腳本已經加載。",Duration=8});
  495. SaveManager:LoadAutoloadConfig();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement