Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Minesweeper XP Mod Menu (Ultimate Custom Field)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
samir3216
How do I cheat?
Reputation: 0

Joined: 17 Feb 2024
Posts: 1

PostPosted: Sat Feb 17, 2024 11:11 am    Post subject: Minesweeper XP Mod Menu (Ultimate Custom Field) Reply with quote

This is the first mod menu i've ever made by using Lua
This mod is about changing every values on options that are not in custom gamemode,there are the options on this mod menu :

    Width
    Height
    Flags
    Time

    Timefreeze



Code:
--Creates first the form
UDF1 = createForm(true)
UDF1.caption = [[Ultimate Custom Field]]
UDF1.left = 319
UDF1.top = 249
UDF1.width = 337
UDF1.height = 178
UDF1.align = alNone
UDF1.enabled = true
UDF1.visible = true
-- Creating the objects   
Field = createEdit(UDF1)   
Field.left = [[73]]
Field.top = [[15]]
Field.width = [[88]]
Field.height = [[23]]
Field.align = [[alNone]]
Field.enabled = [[true]]
Field.visible = [[true]]   
Field2 = createEdit(UDF1)   
Field2.left = [[73]]
Field2.top = [[51]]
Field2.width = [[88]]
Field2.height = [[23]]
Field2.align = [[alNone]]
Field2.enabled = [[true]]
Field2.visible = [[true]]   
Field3 = createEdit(UDF1)   
Field3.left = [[73]]
Field3.top = [[95]]
Field3.width = [[88]]
Field3.height = [[23]]
Field3.align = [[alNone]]
Field3.enabled = [[true]]
Field3.visible = [[true]]   
Field4 = createEdit(UDF1)   
Field4.left = [[73]]
Field4.top = [[135]]
Field4.width = [[88]]
Field4.height = [[23]]
Field4.align = [[alNone]]
Field4.enabled = [[true]]
Field4.visible = [[true]]   
Set = createButton(UDF1)   
Set.caption = [[Set]]
Set.left = [[172]]
Set.top = [[15]]
Set.width = [[59]]
Set.height = [[21]]
Set.align = [[alNone]]
Set.enabled = [[true]]
Set.visible = [[true]]   
Height = createLabel(UDF1)   
Height.caption = [[Height]]
Height.left = [[20]]
Height.top = [[18]]
Height.width = [[36]]
Height.height = [[15]]
Height.align = [[alNone]]
Height.enabled = [[true]]
Height.visible = [[true]]   
Width = createLabel(UDF1)   
Width.caption = [[Width]]
Width.left = [[20]]
Width.top = [[60]]
Width.width = [[32]]
Width.height = [[15]]
Width.align = [[alNone]]
Width.enabled = [[true]]
Width.visible = [[true]]   
Mines = createLabel(UDF1)   
Mines.caption = [[Mines]]
Mines.left = [[19]]
Mines.top = [[100]]
Mines.width = [[32]]
Mines.height = [[15]]
Mines.align = [[alNone]]
Mines.enabled = [[true]]
Mines.visible = [[true]]   
Time = createLabel(UDF1)   
Time.caption = [[Time]]
Time.left = [[22]]
Time.top = [[138]]
Time.width = [[26]]
Time.height = [[15]]
Time.align = [[alNone]]
Time.enabled = [[true]]
Time.visible = [[true]]   
Set2 = createButton(UDF1)   
Set2.caption = [[Set]]
Set2.left = [[172]]
Set2.top = [[51]]
Set2.width = [[59]]
Set2.height = [[21]]
Set2.align = [[alNone]]
Set2.enabled = [[true]]
Set2.visible = [[true]]   
Set3 = createButton(UDF1)   
Set3.caption = [[Set]]
Set3.left = [[172]]
Set3.top = [[95]]
Set3.width = [[59]]
Set3.height = [[21]]
Set3.align = [[alNone]]
Set3.enabled = [[true]]
Set3.visible = [[true]]   
Set4 = createButton(UDF1)   
Set4.caption = [[Set]]
Set4.left = [[172]]
Set4.top = [[139]]
Set4.width = [[59]]
Set4.height = [[21]]
Set4.align = [[alNone]]
Set4.enabled = [[true]]
Set4.visible = [[true]]   
Default = createButton(UDF1)   
Default.caption = [[Set Default]]
Default.left = [[244]]
Default.top = [[34]]
Default.width = [[75]]
Default.height = [[25]]
Default.align = [[alNone]]
Default.enabled = [[true]]
Default.visible = [[true]]   
timefreeze = createCheckBox(UDF1)   
timefreeze.caption = [[timefreeze]]
timefreeze.left = [[247]]
timefreeze.top = [[67]]
timefreeze.width = [[75]]
timefreeze.height = [[19]]
timefreeze.align = [[alNone]]
timefreeze.enabled = [[true]]
timefreeze.visible = [[true]]

Set.OnClick = function()
    local height = tonumber(Field.text) or 0
    if height ~= 0 then
        local heightval = 0x010056A8
        writeInteger(heightval, height)
    end
end

Set2.OnClick = function()
    local width = tonumber(Field2.text) or 0
    if width ~= 0 then
        local widthval = 0x010056AC
        writeInteger(widthval, width)
    end
end

Set3.OnClick = function()
    local mines = tonumber(Field3.text) or 0
    if mines ~= 0 then
        local mineval = 0x01005194
        writeInteger(mineval, mines)
    end
end

Set4.OnClick = function()
    local time = tonumber(Field4.text) or 0
    if time ~= 0 then
        local timeval = 0x0100579C
        writeInteger(timeval, time)
    end
end

Default.OnClick = function()
    local timeval = 0x0100579C
    local mineval = 0x01005194
    local widthval = 0x010056AC
    local heightval = 0x010056A8

    writeInteger(timeval, 0)
    writeInteger(mineval, 10)
    writeInteger(widthval, 9)
    writeInteger(heightval, 9)
end

timefreeze.OnClick = function()
    if timefreeze.checked then
        local timeval = 0x0100579C
        writeInteger(timeval, 1337)
    else
        local timeval = 0x0100579C
        writeInteger(timeval, 0)
    end
end



image_2024-02-17_141004946.png
 Description:
The game freaking out
 Filesize:  12.8 KB
 Viewed:  933 Time(s)

image_2024-02-17_141004946.png



image_2024-02-17_140943222.png
 Description:
The program
 Filesize:  5.81 KB
 Viewed:  933 Time(s)

image_2024-02-17_140943222.png



_________________
Hello i code python,c#,x86_64 assembly,html,and other things
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites