OneCompiler

111111

-- Script generated by GameGuardian 101.1
-- Lua help: http://gameguardian.net/help/

local scriptName = [=====[Script for Yulgang: จุติยุทธภพเลือดใหม่ 1.0.8]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'

-- วันหมดอายุ
local expirationDate = os.time({year=2025, month=3, day=23}) -- วันที่หมดอายุ: 31 มีนาคม 2025
local currentDate = os.time()

-- เช็ควันหมดอายุ
if currentDate > expirationDate then
gg.alert("🙏วันใช้งานหมด🙏 กรุณาติดต่อ🧑‍✈️ FB เซียน ประวีน")
os.exit()
end

-- init
gg.require('101.1', 16142)
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor)

-- Function to perform the main action
function mainAction()
gg.clearResults()
gg.searchNumber("h0100000012CA9A3BFF", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1, 0)

local results = gg.getResults(100)
for i, v in ipairs(results) do
    if v.flags == gg.TYPE_BYTE then
        v.value = "h3300000012CA9A3BFF"
        v.freeze = true
    end
end
gg.addListItems(results)
gg.processResume()
gg.toast("Action completed.")

end

-- Menu function (ไม่ต้องวนลูป)
local options = {
"💵 เด้งแพค ปั้มยุทธ์ BY เซียน",
"🚪 Exit"
}

local choice = gg.choice(options, nil, scriptName)
if choice == 1 then
mainAction()
elseif choice == 2 then
gg.alert("📣 ปั้มแค่นี้ พอหรอครับ😁")
end