コード例 #1
0
        private void timer_walk_Tick(object sender, EventArgs e)
        {
            if (!checkBox_cavebot.Checked)
            {
                return;
            }
            try
            {
                /* Por nivel */
                if (Player.getPokemonLvl(AppConstants.SLOT_1) >= Convert.ToInt32(textBox1.Text))
                {
                    return;
                }

                /* Por exp */
                //if (Player.getPokemonCurrentExp(AppConstants.SLOT_1) >= Convert.ToInt32(textBox1.Text)) return;
            }
            catch (Exception ex) { }

            //label1.Text = "Ahora: " + waypointList[nextWaypoint].getWaypoint();
            /* Marcamos el actual en la lista */
            //listView_waypoints.Items[nextWaypoint].Text = ">>>" + listView_waypoints.Items[nextWaypoint].Text;
            listView_waypoints.Items[nextWaypoint].ForeColor = Color.FromKnownColor(KnownColor.Red);
            /* Borramos el texto de todos los otros */
            for (int i = 0; i < listView_waypoints.Items.Count; i++)
            {
                if (i != nextWaypoint)
                {
                    //listView_waypoints.Items[i].Text = listView_waypoints.Items[i].Text.Replace(">>>", "");
                    listView_waypoints.Items[i].ForeColor = Color.FromKnownColor(KnownColor.Black);
                }
            }

            if (!isWalking && !MemoryHandler.estaPeleando())
            {
                Thread t = new Thread(goToNextWaypoint);
                t.Start();
            }
        }
コード例 #2
0
 public static bool estaPeleando()
 {
     return(MemoryHandler.estaPeleando());
 }