Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
- local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
- local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
- local Window = Fluent:CreateWindow({
- Title = "Yuki Ware",
- SubTitle = "| discord server: discord.gg/94Sdk3yV",
- TabWidth = 160,
- Size = UDim2.fromOffset(580, 460),
- Acrylic = true,
- Theme = "Amethyst",
- MinimizeKey = Enum.KeyCode.LeftControl
- })
- local Tabs = {
- Autofarm = Window:AddTab({ Title = "Autofarm", Icon = "repeat" }),
- Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
- }
- local InventoryItems = game:GetService("Players").LocalPlayer.PlayerGui.Inventory.Frame.Inventory.Items
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local SellItemEvent = ReplicatedStorage.Systems.Shops.SellItem
- -- Função para determinar a raridade com base na cor do brilho
- local function GetRarity(glowColor)
- local r, g, b = glowColor.R * 255, glowColor.G * 255, glowColor.B * 255
- if r == 200 and g == 200 and b == 200 then
- return "Common"
- -- Adicione mais lógica aqui para outras raridades, se necessário
- else
- return "Unknown" -- Se não for uma cor comum, você pode definir como "Unknown" ou adicionar mais verificações para outras raridades
- end
- end
- local function AutoSellItems()
- for _, itemIcon in ipairs(InventoryItems:GetChildren()) do
- local glow = itemIcon:FindFirstChild("Glow")
- if glow then
- local rarity = GetRarity(glow.BackgroundColor3)
- if rarity == "Common" then
- local itemName = itemIcon.ItemReference.Name
- local args = {
- [1] = itemIcon.ItemReference
- }
- SellItemEvent:FireServer(unpack(args))
- end
- end
- end
- end
- local autoSellCommonToggle = Tabs.Autofarm:AddToggle("AutoSellCommon", {
- Title = "Auto Sell Common Items",
- Description = "Automatically sell common items",
- Default = false
- })
- autoSellCommonToggle:OnChanged(function()
- while autoSellCommonToggle.Value do
- AutoSellItems()
- wait(1) -- Aguarda um segundo antes de verificar novamente
- end
- end)
- SaveManager:SetLibrary(Fluent)
- InterfaceManager:SetLibrary(Fluent)
- SaveManager:IgnoreThemeSettings()
- SaveManager:SetIgnoreIndexes({})
- InterfaceManager:SetFolder("YWare")
- SaveManager:SetFolder("YWare/SB2")
- InterfaceManager:BuildInterfaceSection(Tabs.Settings)
- SaveManager:BuildConfigSection(Tabs.Settings)
- Window:SelectTab(1)
- Fluent:Notify({
- Title = "YukiWare",
- Content = "The script has been loaded.",
- Duration = 8
- })
- SaveManager:LoadAutoloadConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement