Beispiel #1
0
        public List <EnemigosGedientos> buscarEnemigos()
        {
            Process[] p = Process.GetProcessesByName(process);
            foreach (ProcessModule m in p[0].Modules)
            {
                if (m.ModuleName == "PokerStars.exe")
                {
                    direccionBase = (int)m.BaseAddress;//Leer adress base
                }
                if (m.ModuleName == "THREADSTACK0")
                {
                    direccionBase2 = (int)m.BaseAddress;
                }
            }
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int read  = vam.ReadInt32((IntPtr)direccionBase + offsetBase);
            int read2 = vam.ReadInt32((IntPtr)read + 0x10);
            int read3 = vam.ReadInt32((IntPtr)read2 + 0x0);
            List <EnemigosGedientos> lista = new List <EnemigosGedientos>();

            //            0x30 para bit de vida o no
            for (int i = 0; i < 6; i++)
            {
                EnemigosGedientos enemigo = new EnemigosGedientos();
                int multiplicador         = i * 0x138;
                #region buscarCartas
                string carta1 = vam.ReadByte((IntPtr)read3 + 0xF54 + multiplicador).ToString();
                string palo1  = vam.ReadByte((IntPtr)read3 + 0xF58 + multiplicador).ToString();
                string carta2 = vam.ReadByte((IntPtr)read3 + 0xF5C + multiplicador).ToString();
                string palo2  = vam.ReadByte((IntPtr)read3 + 0xF60 + multiplicador).ToString();
                carta1 = convertirCarta(carta1, palo1);
                carta2 = convertirCarta(carta2, palo2);
                string cartas = carta1 + " " + carta2;
                #endregion
                enemigo.ID         = i;
                enemigo.carta1     = carta1;
                enemigo.carta2     = carta2;
                enemigo.pozo       = vam.ReadInt32((IntPtr)read3 + 0x0F10 + multiplicador);
                enemigo.apuesta    = vam.ReadInt32((IntPtr)read3 + 0xF20 + multiplicador);
                enemigo.cuantoGano = vam.ReadInt32((IntPtr)read3 + 0x0F28 + multiplicador);
                enemigo.cartas     = cartas;
                if (vam.ReadByte((IntPtr)read3 + 0x0F40 + multiplicador) == 1)
                {
                    enemigo.vivo = true;
                }
                else
                {
                    enemigo.vivo = false;
                }
                lista.Add(enemigo);
            }
            return(lista);
        }
Beispiel #2
0
        public void actualizarEnemigos(ref List <EnemigosGedientos> enemigos)
        {
            Process[] p = Process.GetProcessesByName(process);
            foreach (ProcessModule m in p[0].Modules)
            {
                if (m.ModuleName == "PokerStars.exe")
                {
                    direccionBase = (int)m.BaseAddress;//Leer adress base
                }
                if (m.ModuleName == "THREADSTACK0")
                {
                    direccionBase2 = (int)m.BaseAddress;
                }
            }
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int read  = vam.ReadInt32((IntPtr)direccionBase + offsetBase);
            int read2 = vam.ReadInt32((IntPtr)read + 0x10);
            int read3 = vam.ReadInt32((IntPtr)read2 + 0x0);

            for (int i = 0; i < 6; i++)
            {
                if (!(i == miAsiento))
                {
                    int multiplicador = i * 0x138;
                    int nuevaApuesta  = vam.ReadInt32((IntPtr)read3 + 0xF20 + multiplicador);

                    #region buscarCartas
                    string carta1 = vam.ReadByte((IntPtr)read3 + 0xF54 + multiplicador).ToString();
                    string palo1  = vam.ReadByte((IntPtr)read3 + 0xF58 + multiplicador).ToString();
                    string carta2 = vam.ReadByte((IntPtr)read3 + 0xF5C + multiplicador).ToString();
                    string palo2  = vam.ReadByte((IntPtr)read3 + 0xF60 + multiplicador).ToString();
                    carta1 = convertirCarta(carta1, palo1);
                    carta2 = convertirCarta(carta2, palo2);
                    string cartas = carta1 + " " + carta2;
                    #endregion

                    enemigos[i].ID         = i;
                    enemigos[i].carta1     = carta1;
                    enemigos[i].carta2     = carta2;
                    enemigos[i].pozo       = vam.ReadInt32((IntPtr)read3 + 0x0F10 + multiplicador);
                    enemigos[i].cartas     = cartas;
                    enemigos[i].cuantoGano = vam.ReadInt32((IntPtr)read3 + 0x0F28 + multiplicador);

                    if (nuevaApuesta != 0)
                    {
                        enemigos[i].apuesta = nuevaApuesta;
                    }
                }
            }
        }
Beispiel #3
0
        private string buscarmiCarta2()
        {
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int    read   = vam.ReadInt32((IntPtr)direccionBase + offsetBase);
            int    read2  = vam.ReadInt32((IntPtr)read + 0x8);
            int    read3  = vam.ReadInt32((IntPtr)read2 + 0x10);
            string carta2 = vam.ReadByte((IntPtr)read3 + 0x1C6C).ToString();
            string palo2  = vam.ReadByte((IntPtr)read3 + 0x1C70).ToString();

            carta2 = convertirCarta(carta2, palo2);
            return(carta2);
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Console.Title = "Terraria fishing bot for verion 1.4.1.1";
            Process[] processes = Process.GetProcessesByName("Terraria");
            if (processes.Length > 0)
            {
                IntPtr  BaseAdress = IntPtr.Zero;
                Process MYProc     = processes[0];

                foreach (ProcessModule module in MYProc.Modules)
                {
                    if (module.ModuleName.ToLower().Contains("asw"))
                    {
                        BaseAdress = module.BaseAddress;
                    }
                }
                if (BaseAdress != IntPtr.Zero)
                {
                    VAMemory memory      = new VAMemory("Terraria");
                    int      finalAdress = memory.ReadInt32((IntPtr)BaseAdress + 0x00159B24);

                    Console.WriteLine("Press enter when you're ready ");
                    Console.ReadLine();
                    Console.WriteLine("starting in:");
                    for (int i = 5; i > 0; i--)
                    {
                        Console.WriteLine(i);
                        Thread.Sleep(1000);
                    }

                    while (true)
                    {
                        catched = false;
                        Click();
                        Console.WriteLine("the rod was thrown");
                        Thread.Sleep(2000);

                        while (catched == false)
                        {
                            byte x = memory.ReadByte((IntPtr)finalAdress + 0x170); //reading value from memory
                            if (x != 0)
                            {
                                Thread.Sleep(100);
                                Console.WriteLine($"you got a fish");
                                Click();
                                catched = true;
                            }
                        }
                        Thread.Sleep(2000);
                    }
                }
            }
            else
            {
                Console.WriteLine("You have to start terraria first.");
                Console.ReadLine();
            }
        }
Beispiel #5
0
        private string buscarMiscartas()
        {
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int    read   = vam.ReadInt32((IntPtr)direccionBase + offsetBase2);
            int    read2  = vam.ReadInt32((IntPtr)read + 0x8);
            int    read3  = vam.ReadInt32((IntPtr)read2 + 0x10);
            string carta1 = vam.ReadByte((IntPtr)read3 + 0x1C60).ToString();
            string palo1  = vam.ReadByte((IntPtr)read3 + 0x1C64).ToString();
            string carta2 = vam.ReadByte((IntPtr)read3 + 0x1C6C).ToString();
            string palo2  = vam.ReadByte((IntPtr)read3 + 0x1C70).ToString();

            carta1 = convertirCarta(carta1, palo1);
            carta2 = convertirCarta(carta2, palo2);
            string misCartas = carta1 + " " + carta2;

            return(misCartas);
        }
Beispiel #6
0
        public int buscarMiCarta2Cruda()
        {
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int read   = vam.ReadInt32((IntPtr)direccionBase + offsetBase);
            int read2  = vam.ReadInt32((IntPtr)read + 0x8);
            int read3  = vam.ReadInt32((IntPtr)read2 + 0x10);
            int carta2 = vam.ReadByte((IntPtr)read3 + 0x1C6C);

            return(carta2);
        }
Beispiel #7
0
        public int buscarMiPalo2Crudo()
        {
            VAMemory vam = new VAMemory();

            vam.processName = process;
            int read  = vam.ReadInt32((IntPtr)direccionBase + offsetBase);
            int read2 = vam.ReadInt32((IntPtr)read + 0x8);
            int read3 = vam.ReadInt32((IntPtr)read2 + 0x10);
            int palo2 = vam.ReadByte((IntPtr)read3 + 0x1C70);

            return(palo2);
        }
Beispiel #8
0
        public bool esNuestroTurno(int miAsient)
        {
            int dirBaseAsiento = -0x0000031C; //para todos los asientos
            int read;
            int read1A1, read2A1, read3A1, read4A1;
            int read1A2, read2A2, read3A2, read4A2;
            int read1A3, read2A3, read3A3, read4A3;
            int read1A4, read2A4, read3A4, read4A4;
            int read1A5, read2A5, read3A5, read4A5;
            int read1A6, read2A6, read3A6, read4A6;

            VAMemory vam = new VAMemory();

            vam.processName = process;
            Process[] p = Process.GetProcessesByName(process);
            foreach (ProcessModule m in p[0].Modules)
            {
                if (m.ModuleName == "THREADSTACK0")
                {
                    direccionBase = (int)m.BaseAddress;
                }
            }


            switch (miAsient)
            {
            case 0:
                //read = vam.ReadInt32((IntPtr)direccionBase + dirBaseAsiento);
                read    = 0x0EA4F458;
                read1A1 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A1 = vam.ReadInt32((IntPtr)read1A1 + 0x17F0);
                read3A1 = vam.ReadInt32((IntPtr)read2A1 + 0x10);
                read4A1 = vam.ReadByte((IntPtr)read3A1 + 0x4);
                return((read4A1 == 1) ? true : false);


            case 1:
                read = 0x0A68E020;
                //read = vam.ReadInt32((IntPtr)read);
                read1A2 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A2 = vam.ReadInt32((IntPtr)read1A2 + 0x1A38);
                read3A2 = vam.ReadInt32((IntPtr)read2A2 + 0x10);
                read4A2 = vam.ReadByte((IntPtr)read3A2 + 0x4);
                return((read4A2 == 1) ? true : false);


            case 2:
                read    = 0x0A7EB270;
                read1A3 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A3 = vam.ReadInt32((IntPtr)read1A3 + 0x1C80);
                read3A3 = vam.ReadInt32((IntPtr)read2A3 + 0x10);
                read4A3 = vam.ReadByte((IntPtr)read3A3 + 0x4);
                return((read4A3 == 1) ? true : false);


            case 3:
                read    = 0x0B513B68;
                read1A4 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A4 = vam.ReadInt32((IntPtr)read1A4 + 0x1EC8);
                read3A4 = vam.ReadInt32((IntPtr)read2A4 + 0x10);
                read4A4 = vam.ReadByte((IntPtr)read3A4 + 0x4);
                return((read4A4 == 1) ? true : false);


            case 4:
                read    = 0x0C903360;
                read1A5 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A5 = vam.ReadInt32((IntPtr)read1A5 + 0x2110);
                read3A5 = vam.ReadInt32((IntPtr)read2A5 + 0x10);
                read4A5 = vam.ReadByte((IntPtr)read3A5 + 0x4);
                return((read4A5 == 1) ? true : false);


            case 5:
                read    = 0x0A68E020;
                read1A6 = vam.ReadInt32((IntPtr)read + 0x4);
                read2A6 = vam.ReadInt32((IntPtr)read1A6 + 0x2358);
                read3A6 = vam.ReadInt32((IntPtr)read2A6 + 0x10);
                read4A6 = vam.ReadByte((IntPtr)read3A6 + 0x4);
                return((read4A6 == 1) ? true : false);

            default:
                return(false);
            }
        }
Beispiel #9
0
 public static int Score(int index) => Game.ReadByte(new IntPtr(
                                                         Game.ReadInt32(new IntPtr(
                                                                            0x14057F048
                                                                            )) + 0x38 + index * 0x04
                                                         ));