Berfungsi
Dungeon Quest! INVENTORY SORTER SCRIPT - VERY USEFUL

Kode Script
Lua
local SortByRarity = true -- common, uncommon, rare, epic, legendary
local SortBackwards = true
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SellEvent = ReplicatedStorage:WaitForChild("remotes"):WaitForChild("sellItemEvent")
local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local Inventory = PlayerGui:WaitForChild("inventory"):WaitForChild("mainBackground"):WaitForChild("innerBackground"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame")
local function RefreshInventory()
SellEvent:FireServer({["ability"] = {},["helmet"] = {},["chest"] = {},["weapon"] = {}})
end
local function GetInventorySize(Table)
local Count = 0
for i,v in pairs(Table) do
for ii,v in pairs(v) do
Count += i == "keys" and 0 or 1
end
end
return Count
end
local RarityLayout = {["common"] = 1, ["uncommon"] = 2, ["rare"] = 3, ["epic"] = 4, ["legendary"] = 5}
local function SortInventory(Table)
local function SortLocation(Location)
for _,Label in pairs(Location:GetChildren()) do
if Label:IsA("ImageLabel") then
local itemType = Label:WaitForChild("itemType").Value
local uniqueItemNum = Label:WaitForChild("itemType"):WaitForChild("uniqueItemNum").Value
for i,v in pairs(itemType == "weapon" and Table.weapons or itemType == "helmet" and Table.helmets or itemType == "ability" and Table.abilities or itemType == "chest" and Table.chests) do
if tonumber(string.sub(i,itemType == "weapon" and 8 or itemType == "helmet" and 8 or itemType == "ability" and 9 or itemType == "chest" and 7)) == uniqueItemNum then
Label.LayoutOrder = SortByRarity and SortBackwards and 6-RarityLayout[v.rarity] or SortByRarity and RarityLayout[v.rarity] or SortBackwards and 999-tonumber(v.levelReq) or tonumber(v.levelReq)
end
end
end
end
end
SortLocation(Inventory)
if PlayerGui:FindFirstChild("tradingGui") then SortLocation(PlayerGui:WaitForChild("tradingGui"):WaitForChild("mainBackground"):WaitForChild("innerBackground"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame")) end
if PlayerGui:FindFirstChild("blacksmith") then SortLocation(PlayerGui:WaitForChild("blacksmith"):WaitForChild("Frame"):WaitForChild("innerFrame"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame")) end
if PlayerGui:FindFirstChild("sellShop") then SortLocation(PlayerGui:WaitForChild("sellShop"):WaitForChild("Frame"):WaitForChild("innerFrame"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame")) end
end
ReplicatedStorage.remotes.updateLocalInventoryTable.OnClientEvent:Connect(function(UpdatedTable)
if UpdatedTable then
--itemtable = updatedtable;
--print(GetInventorySize(UpdatedTable))
SortInventory(UpdatedTable)
end;
end); RefreshInventory()
PlayerGui.ChildAdded:Connect(function(v)
if v.Name == "tradingGui" or v.Name == "blacksmith" or v.Name == "sellShop" then
local ScrollFrame = v.Name == "sellShop" and PlayerGui:WaitForChild("sellShop"):WaitForChild("Frame"):WaitForChild("innerFrame"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame") or
v.Name == "blacksmith" and PlayerGui:WaitForChild("blacksmith"):WaitForChild("Frame"):WaitForChild("innerFrame"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame") or
v.Name == "tradingGui" and PlayerGui:WaitForChild("tradingGui"):WaitForChild("mainBackground"):WaitForChild("innerBackground"):WaitForChild("rightSideFrame"):WaitForChild("ScrollingFrame")
ScrollFrame.ChildAdded:Wait()
RefreshInventory()
end
end)
Deskripsi
Original description was lost during migration. Sorry for any inconvenience caused. - robloxscripts.com Admin
#dungeon-quest-new-ai-auto-farm#roblox-dungeon-quest-cheats#roblox-dungeon-quest-auto-dodge#dungeon-quest-cheats#still-scripts#dungeon-quest#dungeon-quest-hacks#scripts#roblox-dungeon-quest-auto-farmm#roblox-dungeon-quest-cheats-2022#roblox-dungeon-quest-auto-farm#dungeon-quest-scripts
Komentar (0)
- Jadilah yang pertama berkomentar.
Pertanyaan yang sering diajukan
- Bagaimana cara menggunakan script Dungeon Quest! INVENTORY SORTER SCRIPT - VERY USEFUL?
- Salin kode script di atas, buka executor Roblox Anda, tempel kodenya, lalu tekan execute saat Anda berada di dalam game. Fitur akan aktif seketika setelah script berjalan.
- Apakah script Dungeon Quest! INVENTORY SORTER SCRIPT - VERY USEFUL gratis?
- Ya. Script ini gratis untuk disalin dan digunakan. Jika menggunakan sistem kunci, ikuti tautan "Dapatkan kunci" untuk membukanya tanpa biaya.
- Apakah script Dungeon Quest! INVENTORY SORTER SCRIPT - VERY USEFUL aman digunakan?
- Kode sumber lengkap ditampilkan di halaman ini sehingga Anda bisa membaca persis apa yang dilakukannya sebelum menjalankannya. Selalu gunakan executor tepercaya, dan ingat bahwa menggunakan script melanggar ketentuan layanan Roblox, jadi gunakan dengan risiko Anda sendiri.
- Executor mana yang kompatibel dengan Dungeon Quest! INVENTORY SORTER SCRIPT - VERY USEFUL?
- Script ini bekerja dengan sebagian besar executor Roblox populer. Lihat halaman executor kami untuk menemukan executor gratis atau berbayar yang tepercaya untuk perangkat Anda.