local player = require("player") if _G.Harp_Enabled == nil then _G.Harp_Enabled = true end registerInventoryItemChange(function(slot, item) if _G.Harp_Enabled == false then return end -- Melody's Harp hit-zone is the middle 7 columns of the bottom row (slots 37-43) if slot < 37 or slot > 43 then return end -- Ensure we are only clicking inside the Harp interface local title = player.inventory.getChestTitle() if not title or not string.find(title, "Harp -") then return end if item then local nameStr = (item.name or ""):lower() local idStr = (item.skyblock_id or ""):lower() if string.find(nameStr, "quartz") or string.find(idStr, "quartz") then player.inventory.leftClick(slot) end end end) -- Toggle command registerCommand("harp", function() _G.Harp_Enabled = not _G.Harp_Enabled local status = _G.Harp_Enabled and "§aEnabled" or "§cDisabled" player.addMessage("§b§lHarp Script §7>> §fStatus: " .. status) end) local status = _G.Harp_Enabled and "§aEnabled" or "§cDisabled" player.addMessage("§b§lHarp Script §7>> §fLoaded. Status: " .. status .. " §7(Use §e/harp §7to toggle)")