Ghend wrote: ↑Sat Apr 05, 2025 12:27 am
E: Well it turns out pouch items are just plain ole unobfuscated 2 Byte and very easy to make a script for, silly me. But the questions above still stand!
"Utility" is a metatable I defined in my Lua Script Backend~
You'd just need to remove that!
So:
Code: Select all
-- Function Definition...
function RegisterDecryptionType()
local TypeName, ByteCount, IsFloat = "Decrypted", 16, false
local function BytesToValue(b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, address)
local encrypted = b1 | (b2 << 8) | (b3 << 16) | (b4 << 24) | (b5 << 32) | (b6 << 40) | (b7 << 48) | (b8 << 56)
local multiplier = b9 | (b10 << 8) | (b11 << 16) | (b12 << 24) | (b13 << 32) | (b14 << 40) | (b15 << 48) | (b16 << 56)
return encrypted / multiplier
end
local function ValueToBytes(value, address)
local multiplier = readQword(address + 8) or 1
local encrypted = value * multiplier
return encrypted & 0xFF, (encrypted >> 8) & 0xFF, (encrypted >> 16) & 0xFF, (encrypted >> 24) & 0xFF,
(encrypted >> 32) & 0xFF, (encrypted >> 40) & 0xFF, (encrypted >> 48) & 0xFF, (encrypted >> 56) & 0xFF,
multiplier & 0xFF, (multiplier >> 8) & 0xFF, (multiplier >> 16) & 0xFF, (multiplier >> 24) & 0xFF,
(multiplier >> 32) & 0xFF, (multiplier >> 40) & 0xFF, (multiplier >> 48) & 0xFF, (multiplier >> 56) & 0xFF
end
registerCustomTypeLua(TypeName, ByteCount, BytesToValue, ValueToBytes, IsFloat)
end
-- Function Call
RegisterDecryptionType()
Once you called the function you can use the Deobfuscation Type! :)