TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

Código Fonte Do Asistente Para ElfBot

Trabalho Universitário: Código Fonte Do Asistente Para ElfBot. Pesquise 860.000+ trabalhos acadêmicos

Por:   •  31/7/2013  •  1.492 Palavras (6 Páginas)  •  666 Visualizações

Página 1 de 6

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using Akip_SGES;

namespace ElfBot_Salucci

{

public partial class frmGerar : Form

{

public frmGerar()

{

InitializeComponent();

}

int[] objList;

string[] objSelecionados = new string[30];

int IndSelected = 0;

int TotalObj = 0;

private void PreencherList()

{

LimparTudo();

if (TransformarCB() != "Moves")

{

if (cbTipo.Text == "Looting") txtMod.Text = "2853";

else txtMod.Text = "";

string sql = "Select * from Objetos where Tipo = '" + TransformarCB() + "'";

AkipSystem asy = new AkipSystem();

DataTable Objetos = asy.Buscar(sql).Tables[0];

int Cont = 0;

objList = new int[Objetos.Rows.Count + 1];

TotalObj = Objetos.Rows.Count + 1;

foreach (DataRow Objeto in Objetos.Rows)

{

objList[Cont] = Convert.ToInt32(Objeto["Codigo"].ToString());

lbOptions.Items.Add(Objeto["Nome"].ToString());

Cont++;

}

}

else

{

txtMod.Text = "200" ;

for (int i = 1; i < 13; i++)

{

lbOptions.Items.Add("m"+i);

}

}

}

private void LimparTudo()

{

lbOptions.Items.Clear();

lbSelected.Items.Clear();

for (int i = 0; i < 30; i++)

{

objSelecionados[i] = "";

}

}

private string TransformarCB()

{

if (cbTipo.Text == "Looting")

{

return "Item";

}

if (cbTipo.Text == "Use Ball")

{

return "Mob";

}

return "Moves";

}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)

{

...

Baixar como (para membros premium)  txt (3.8 Kb)  
Continuar por mais 5 páginas »
Disponível apenas no TrabalhosGratuitos.com