Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.Threading;
- using System.Runtime.InteropServices;
- using System.Diagnostics;
- using MicrosoftVisual_keys;
- using D3;
- namespace NoBanThnx
- {
- public partial class Form1 : Form
- {
- static int proc_id;
- static string[] weapon_array = { "1H","2H" };
- static string[] weap_type_array = { "sword", "axe", "mace", "bow", "xbow" };
- static string[] trade_array = { "WTS ","WTB " };
- static string[] price_array = { " 20MIL", " 30MIL", " 40MIL", " 50MIL", " 60MIL", " 70MIL", " 80MIL", " 90MIL" };
- static string[] dps_array = { " 1500 DPS", " 1600 DPS", " 1200 DPS", " 1400 DPS" };
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- Process[] p = Process.GetProcessesByName("Diablo III");
- foreach (Process proc in p)
- { comboBox1.Items.Add(proc.Id); }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- new Thread(SenderThread).Start();
- }
- string Prefix()
- {
- string trade;
- Random rnd = new Random();
- trade = trade_array[rnd.Next(0, 2)];
- return trade;
- }
- string Weapon()
- {
- string weapon;
- string weapon_type;
- Random rnd = new Random();
- weapon = weapon_array[rnd.Next(0, 2)];
- weapon_type=weap_type_array[rnd.Next(0,4)];
- return weapon +" "+weapon_type;
- }
- string Price()
- {
- string price;
- Random rnd = new Random();
- price = price_array[rnd.Next(0, 7)];
- return price;
- }
- string DPS()
- {
- string dps;
- Random rnd = new Random();
- dps = dps_array[rnd.Next(0, 3)];
- return dps;
- }
- string Shout()
- {
- string shout = Prefix() + Weapon() + Price() + DPS();
- return shout;
- }
- void SenderThread()
- {
- Invoke((MethodInvoker)delegate
- {
- proc_id = Convert.ToInt32(comboBox1.SelectedItem);
- });
- VMessages Vm = new VMessages(proc_id);
- while (true)
- {
- Thread.Sleep(1);
- Thread.Sleep(new Random().Next(300000, 2400000));
- Vm.sendKey(MicrosoftVirtualKeys.Return);
- Thread.Sleep(50);
- foreach (char c in Shout())
- {
- Vm.sendChar(c);
- Thread.Sleep(7);
- }
- Vm.sendKey(MicrosoftVirtualKeys.Return);
- }
- }
- private void Form1_FormClosing(object sender, FormClosingEventArgs e)
- {
- Environment.Exit(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement