1

我对编码真的很陌生,我需要你的帮助。

我看了一些教程,并为离线游戏制作了简单的教练。但我需要一些帮助来进行我想要进行的更新。这就是代码:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Memory;


namespace ******
{

  public partial class CheatMenu : Form
{
    public CheatMenu()
    {
        InitializeComponent();
    }

    public Mem m = new Mem();       

    private void CheatMenu_Load(object sender, EventArgs e)
    {
        if (!backgroundWorker1.IsBusy)
            backgroundWorker1.RunWorkerAsync();
    }

    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    {           
        {
            int pID = m.getProcIDFromName("****"); //get proc id of game       

            bool openProc = false; //is process open?

            if (pID > 0) openProc = m.OpenProcess(pID); //try opening process if proc ID is greater than 1.

            if (openProc) //if process open, do code
            {             
                if (disableWarden.Checked) //if checked, disable warden.
                    m.writeMemory("0x05D9B364", "byte", "0x45");
            }
        }
    }
}

}

所以这个内存地址是某种字符动画,当我将内存写入它并用这个代码锁定它时,字符开始移动得非常快。使用作弊引擎时,当我使更新锁定值的间隔时间减少时,它会减慢速度(只要值越低,字符就会移动得越慢)

所以考虑到这一点,我需要在后台工作人员中设置某种计时器。你们能帮我解决这个问题吗?请记住,我对编码真的很陌生。

谢谢 !

4

0 回答 0