Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
jumpBack:
                if (Process.GetProcessesByName("tibia").Length == 0)
                {
                    MessageBox.Show("You must start a tibia client before proceed");
                    goto jumpBack;
                }
                else
                {
                    p       = Process.GetProcessesByName("tibia")[0];
                    memScan = new MemoryScanner(p);
                    memRead = new MemoryReader(p);
                    list    = new List <Addresses.GetAddresses>();
                    Util.GlobalVars.FullPath = p.Modules[0].FileName;
                }
                packetlistner                   = new Tests.PacketListnerServer(memRead);
                packetlistnerOutgoing           = new Tests.PacketListnerClient(memRead);
                Inventory                       = new Tests.Container.Inventory(memRead);
                CheckForIllegalCrossThreadCalls = false;
                SetUp();
            }
            catch (Exception o)
            {
                MessageBox.Show(o.ToString());
                MessageBox.Show("Something went wrong, close all tibia clients and try again");
            }
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {

            jumpBack:
            if(Process.GetProcessesByName("tibia").Length == 0)
            {
                MessageBox.Show("You must start a tibia client before proceed");
                goto jumpBack;
            }
            else
            {
                p = Process.GetProcessesByName("tibia")[0];
                memScan = new MemoryScanner(p);
                memRead = new MemoryReader(p);
                list = new List<Addresses.GetAddresses>();
                Util.GlobalVars.FullPath = p.Modules[0].FileName;
            }
            packetlistner = new Tests.PacketListner(memRead);
            CheckForIllegalCrossThreadCalls = false;
            SetUp();
            }
            catch (Exception o)
            {
                MessageBox.Show(o.ToString());
                MessageBox.Show("Something went wrong, close all tibia clients and try again");

            }
        }