Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.47 KB | None | 0 0
  1. namespace Clientless_login
  2. {
  3. using SilkroadSecurityApi;
  4. using System;
  5. using System.Data;
  6. using System.ComponentModel;
  7. using System.Drawing;
  8. using System.IO;
  9. using System.Text.RegularExpressions;
  10. using System.Windows.Forms;
  11. using System.Data.SqlClient;
  12.  
  13. public class Form1 : Form
  14. {
  15. private IContainer components = null;
  16. public Timer Ping;
  17. private Timer t1 = new Timer();
  18. private TabControl tabControl1;
  19. private TabPage tabPage1;
  20. private Timer timer1;
  21. private GroupBox groupBox1;
  22. private GroupBox groupBox3;
  23. private RadioButton radioButton9;
  24. private GroupBox groupBox4;
  25. private Label label6;
  26. public TextBox timeInMin;
  27. private RadioButton radioButton8;
  28. private RadioButton radioButton7;
  29. private RadioButton radioButton6;
  30. private RadioButton radioButton5;
  31. private RadioButton radioButton4;
  32. private RadioButton radioButton3;
  33. private RadioButton radioButton2;
  34. private RadioButton radioButton1;
  35. private GroupBox groupBox2;
  36. private TextBox textBox2;
  37. private Button button6;
  38. private Button notice_button;
  39. private TabPage tabPage2;
  40. private GroupBox groupBox8;
  41. private GroupBox groupBox7;
  42. private Label label4;
  43. public Button button4;
  44. public ComboBox char_list;
  45. private GroupBox groupBox11;
  46. public Button button3;
  47. public TextBox captcha_text;
  48. private GroupBox groupBox12;
  49. public PictureBox pictureBox1;
  50. private GroupBox groupBox10;
  51. public Button button2;
  52. public TextBox pw;
  53. public TextBox id;
  54. private Label label2;
  55. private Label label1;
  56. private GroupBox groupBox6;
  57. private Label label7;
  58. private Label label5;
  59. public Label server_label;
  60. public Label player_label;
  61. private GroupBox groupBox5;
  62. private Button button5;
  63. public Button button1;
  64. public TextBox sversion;
  65. public TextBox slocale;
  66. public TextBox gateport;
  67. public TextBox ip;
  68. private Label label17;
  69. private Label label16;
  70. private Label label15;
  71. private Label label14;
  72. private GroupBox groupBox9;
  73. private TextBox mesaj;
  74. private Button button7;
  75. private TextBox dbname;
  76. private TextBox dbpw;
  77. private TextBox dbuser;
  78. private TextBox host;
  79. private Label label8;
  80. private Label label9;
  81. private Label label11;
  82. private Label label12;
  83. private GroupBox groupBox13;
  84. private GroupBox groupBox14;
  85. public TextBox globalchat;
  86. public RichTextBox richTextBox1;
  87. private Button button8;
  88. private Timer timer2;
  89.  
  90. public Form1()
  91. {
  92. this.InitializeComponent();
  93. }
  94.  
  95.  
  96.  
  97. private void button2_Click(object sender, EventArgs e)
  98. {
  99. Packet packet = new Packet(0x6102);
  100. packet.WriteUInt8((byte)0x16);
  101. packet.WriteAscii(this.id.Text);
  102. packet.WriteAscii(this.pw.Text);
  103. packet.WriteUInt16((ushort)0x40);
  104. Gateway.SendToServer(packet);
  105. }
  106.  
  107. private void button3_Click(object sender, EventArgs e)
  108. {
  109. Captcha.SendCaptcha(this.captcha_text.Text);
  110. this.Meldung("Entered captcha.", new object[0]);
  111. }
  112.  
  113. private void button4_Click(object sender, EventArgs e)
  114. {
  115.  
  116. }
  117.  
  118. private void button5_Click(object sender, EventArgs e)
  119. {
  120. Environment.Exit(0);
  121. }
  122.  
  123. private void button6_Click(object sender, EventArgs e)
  124. {
  125. this.t1.Stop();
  126. this.radioButton1.Enabled = true;
  127. this.radioButton2.Enabled = true;
  128. this.radioButton3.Enabled = true;
  129. this.radioButton4.Enabled = true;
  130. this.radioButton5.Enabled = true;
  131. this.radioButton6.Enabled = true;
  132. this.radioButton7.Enabled = true;
  133. this.radioButton8.Enabled = true;
  134. this.radioButton9.Enabled = true;
  135. this.timeInMin.Enabled = true;
  136. this.notice_button.Enabled = true;
  137. this.textBox2.Enabled = true;
  138. this.button6.Enabled = false;
  139. }
  140.  
  141. protected override void Dispose(bool disposing)
  142. {
  143. if (disposing && (this.components != null))
  144. {
  145. this.components.Dispose();
  146. }
  147. base.Dispose(disposing);
  148. }
  149.  
  150. private void Form1_FormClosing(object sender, FormClosingEventArgs e)
  151. {
  152. Environment.Exit(0);
  153. }
  154.  
  155. private void Form1_Load(object sender, EventArgs e)
  156. {
  157. Globals.MainWindow = this;
  158. Control.CheckForIllegalCrossThreadCalls = false;
  159. }
  160.  
  161. private void id_TextChanged(object sender, EventArgs e)
  162. {
  163. }
  164.  
  165. private void InitializeComponent()
  166. {
  167. this.components = new System.ComponentModel.Container();
  168. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
  169. this.Ping = new System.Windows.Forms.Timer(this.components);
  170. this.timer2 = new System.Windows.Forms.Timer(this.components);
  171. this.tabControl1 = new System.Windows.Forms.TabControl();
  172. this.tabPage1 = new System.Windows.Forms.TabPage();
  173. this.groupBox1 = new System.Windows.Forms.GroupBox();
  174. this.groupBox3 = new System.Windows.Forms.GroupBox();
  175. this.radioButton9 = new System.Windows.Forms.RadioButton();
  176. this.groupBox4 = new System.Windows.Forms.GroupBox();
  177. this.label6 = new System.Windows.Forms.Label();
  178. this.timeInMin = new System.Windows.Forms.TextBox();
  179. this.radioButton8 = new System.Windows.Forms.RadioButton();
  180. this.radioButton7 = new System.Windows.Forms.RadioButton();
  181. this.radioButton6 = new System.Windows.Forms.RadioButton();
  182. this.radioButton5 = new System.Windows.Forms.RadioButton();
  183. this.radioButton4 = new System.Windows.Forms.RadioButton();
  184. this.radioButton3 = new System.Windows.Forms.RadioButton();
  185. this.radioButton2 = new System.Windows.Forms.RadioButton();
  186. this.radioButton1 = new System.Windows.Forms.RadioButton();
  187. this.groupBox2 = new System.Windows.Forms.GroupBox();
  188. this.textBox2 = new System.Windows.Forms.TextBox();
  189. this.button6 = new System.Windows.Forms.Button();
  190. this.notice_button = new System.Windows.Forms.Button();
  191. this.timer1 = new System.Windows.Forms.Timer(this.components);
  192. this.groupBox9 = new System.Windows.Forms.GroupBox();
  193. this.label12 = new System.Windows.Forms.Label();
  194. this.label11 = new System.Windows.Forms.Label();
  195. this.label9 = new System.Windows.Forms.Label();
  196. this.label8 = new System.Windows.Forms.Label();
  197. this.host = new System.Windows.Forms.TextBox();
  198. this.dbuser = new System.Windows.Forms.TextBox();
  199. this.dbpw = new System.Windows.Forms.TextBox();
  200. this.dbname = new System.Windows.Forms.TextBox();
  201. this.button7 = new System.Windows.Forms.Button();
  202. this.mesaj = new System.Windows.Forms.TextBox();
  203. this.groupBox5 = new System.Windows.Forms.GroupBox();
  204. this.label14 = new System.Windows.Forms.Label();
  205. this.label15 = new System.Windows.Forms.Label();
  206. this.label16 = new System.Windows.Forms.Label();
  207. this.label17 = new System.Windows.Forms.Label();
  208. this.ip = new System.Windows.Forms.TextBox();
  209. this.gateport = new System.Windows.Forms.TextBox();
  210. this.slocale = new System.Windows.Forms.TextBox();
  211. this.sversion = new System.Windows.Forms.TextBox();
  212. this.button1 = new System.Windows.Forms.Button();
  213. this.button5 = new System.Windows.Forms.Button();
  214. this.groupBox6 = new System.Windows.Forms.GroupBox();
  215. this.player_label = new System.Windows.Forms.Label();
  216. this.server_label = new System.Windows.Forms.Label();
  217. this.label5 = new System.Windows.Forms.Label();
  218. this.label7 = new System.Windows.Forms.Label();
  219. this.groupBox10 = new System.Windows.Forms.GroupBox();
  220. this.label1 = new System.Windows.Forms.Label();
  221. this.label2 = new System.Windows.Forms.Label();
  222. this.id = new System.Windows.Forms.TextBox();
  223. this.pw = new System.Windows.Forms.TextBox();
  224. this.button2 = new System.Windows.Forms.Button();
  225. this.groupBox11 = new System.Windows.Forms.GroupBox();
  226. this.groupBox12 = new System.Windows.Forms.GroupBox();
  227. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  228. this.captcha_text = new System.Windows.Forms.TextBox();
  229. this.button3 = new System.Windows.Forms.Button();
  230. this.groupBox7 = new System.Windows.Forms.GroupBox();
  231. this.char_list = new System.Windows.Forms.ComboBox();
  232. this.button4 = new System.Windows.Forms.Button();
  233. this.label4 = new System.Windows.Forms.Label();
  234. this.groupBox8 = new System.Windows.Forms.GroupBox();
  235. this.tabPage2 = new System.Windows.Forms.TabPage();
  236. this.groupBox13 = new System.Windows.Forms.GroupBox();
  237. this.groupBox14 = new System.Windows.Forms.GroupBox();
  238. this.globalchat = new System.Windows.Forms.TextBox();
  239. this.richTextBox1 = new System.Windows.Forms.RichTextBox();
  240. this.button8 = new System.Windows.Forms.Button();
  241. this.tabControl1.SuspendLayout();
  242. this.tabPage1.SuspendLayout();
  243. this.groupBox1.SuspendLayout();
  244. this.groupBox3.SuspendLayout();
  245. this.groupBox4.SuspendLayout();
  246. this.groupBox2.SuspendLayout();
  247. this.groupBox9.SuspendLayout();
  248. this.groupBox5.SuspendLayout();
  249. this.groupBox6.SuspendLayout();
  250. this.groupBox10.SuspendLayout();
  251. this.groupBox11.SuspendLayout();
  252. this.groupBox12.SuspendLayout();
  253. ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
  254. this.groupBox7.SuspendLayout();
  255. this.tabPage2.SuspendLayout();
  256. this.groupBox14.SuspendLayout();
  257. this.SuspendLayout();
  258. //
  259. // Ping
  260. //
  261. this.Ping.Enabled = true;
  262. this.Ping.Interval = 5000;
  263. this.Ping.Tick += new System.EventHandler(this.Ping_Tick);
  264. //
  265. // timer2
  266. //
  267. this.timer2.Tick += new System.EventHandler(this.notice_button_Click);
  268. //
  269. // tabControl1
  270. //
  271. this.tabControl1.Controls.Add(this.tabPage2);
  272. this.tabControl1.Controls.Add(this.tabPage1);
  273. this.tabControl1.Location = new System.Drawing.Point(0, 0);
  274. this.tabControl1.Name = "tabControl1";
  275. this.tabControl1.SelectedIndex = 0;
  276. this.tabControl1.Size = new System.Drawing.Size(672, 700);
  277. this.tabControl1.TabIndex = 34;
  278. //
  279. // tabPage1
  280. //
  281. this.tabPage1.Controls.Add(this.groupBox1);
  282. this.tabPage1.Location = new System.Drawing.Point(4, 22);
  283. this.tabPage1.Name = "tabPage1";
  284. this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
  285. this.tabPage1.Size = new System.Drawing.Size(664, 674);
  286. this.tabPage1.TabIndex = 0;
  287. this.tabPage1.Text = "Oyun";
  288. this.tabPage1.UseVisualStyleBackColor = true;
  289. this.tabPage1.Click += new System.EventHandler(this.tabPage1_Click);
  290. //
  291. // groupBox1
  292. //
  293. this.groupBox1.Controls.Add(this.groupBox3);
  294. this.groupBox1.Controls.Add(this.groupBox2);
  295. this.groupBox1.Location = new System.Drawing.Point(31, 6);
  296. this.groupBox1.Name = "groupBox1";
  297. this.groupBox1.Size = new System.Drawing.Size(398, 300);
  298. this.groupBox1.TabIndex = 30;
  299. this.groupBox1.TabStop = false;
  300. //
  301. // groupBox3
  302. //
  303. this.groupBox3.Controls.Add(this.radioButton9);
  304. this.groupBox3.Controls.Add(this.groupBox4);
  305. this.groupBox3.Controls.Add(this.radioButton8);
  306. this.groupBox3.Controls.Add(this.radioButton7);
  307. this.groupBox3.Controls.Add(this.radioButton6);
  308. this.groupBox3.Controls.Add(this.radioButton5);
  309. this.groupBox3.Controls.Add(this.radioButton4);
  310. this.groupBox3.Controls.Add(this.radioButton3);
  311. this.groupBox3.Controls.Add(this.radioButton2);
  312. this.groupBox3.Controls.Add(this.radioButton1);
  313. this.groupBox3.Location = new System.Drawing.Point(16, 123);
  314. this.groupBox3.Name = "groupBox3";
  315. this.groupBox3.Size = new System.Drawing.Size(365, 171);
  316. this.groupBox3.TabIndex = 32;
  317. this.groupBox3.TabStop = false;
  318. this.groupBox3.Text = "Time settings";
  319. //
  320. // radioButton9
  321. //
  322. this.radioButton9.AutoSize = true;
  323. this.radioButton9.Location = new System.Drawing.Point(298, 90);
  324. this.radioButton9.Name = "radioButton9";
  325. this.radioButton9.Size = new System.Drawing.Size(51, 17);
  326. this.radioButton9.TabIndex = 32;
  327. this.radioButton9.TabStop = true;
  328. this.radioButton9.Text = "Other";
  329. this.radioButton9.UseVisualStyleBackColor = true;
  330. //
  331. // groupBox4
  332. //
  333. this.groupBox4.Controls.Add(this.label6);
  334. this.groupBox4.Controls.Add(this.timeInMin);
  335. this.groupBox4.Location = new System.Drawing.Point(16, 114);
  336. this.groupBox4.Name = "groupBox4";
  337. this.groupBox4.Size = new System.Drawing.Size(333, 51);
  338. this.groupBox4.TabIndex = 8;
  339. this.groupBox4.TabStop = false;
  340. this.groupBox4.Text = "Other";
  341. //
  342. // label6
  343. //
  344. this.label6.AutoSize = true;
  345. this.label6.Location = new System.Drawing.Point(13, 23);
  346. this.label6.Name = "label6";
  347. this.label6.Size = new System.Drawing.Size(83, 13);
  348. this.label6.TabIndex = 31;
  349. this.label6.Text = "Time in minutes:";
  350. //
  351. // timeInMin
  352. //
  353. this.timeInMin.BackColor = System.Drawing.SystemColors.Menu;
  354. this.timeInMin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  355. this.timeInMin.Location = new System.Drawing.Point(102, 19);
  356. this.timeInMin.Name = "timeInMin";
  357. this.timeInMin.Size = new System.Drawing.Size(57, 20);
  358. this.timeInMin.TabIndex = 30;
  359. //
  360. // radioButton8
  361. //
  362. this.radioButton8.AutoSize = true;
  363. this.radioButton8.Location = new System.Drawing.Point(131, 90);
  364. this.radioButton8.Name = "radioButton8";
  365. this.radioButton8.Size = new System.Drawing.Size(60, 17);
  366. this.radioButton8.TabIndex = 7;
  367. this.radioButton8.TabStop = true;
  368. this.radioButton8.Text = "4 hours";
  369. this.radioButton8.UseVisualStyleBackColor = true;
  370. //
  371. // radioButton7
  372. //
  373. this.radioButton7.AutoSize = true;
  374. this.radioButton7.Location = new System.Drawing.Point(131, 67);
  375. this.radioButton7.Name = "radioButton7";
  376. this.radioButton7.Size = new System.Drawing.Size(114, 17);
  377. this.radioButton7.TabIndex = 6;
  378. this.radioButton7.TabStop = true;
  379. this.radioButton7.Text = "3 hours 30 minutes";
  380. this.radioButton7.UseVisualStyleBackColor = true;
  381. //
  382. // radioButton6
  383. //
  384. this.radioButton6.AutoSize = true;
  385. this.radioButton6.Location = new System.Drawing.Point(131, 44);
  386. this.radioButton6.Name = "radioButton6";
  387. this.radioButton6.Size = new System.Drawing.Size(60, 17);
  388. this.radioButton6.TabIndex = 5;
  389. this.radioButton6.TabStop = true;
  390. this.radioButton6.Text = "3 hours";
  391. this.radioButton6.UseVisualStyleBackColor = true;
  392. //
  393. // radioButton5
  394. //
  395. this.radioButton5.AutoSize = true;
  396. this.radioButton5.Location = new System.Drawing.Point(131, 20);
  397. this.radioButton5.Name = "radioButton5";
  398. this.radioButton5.Size = new System.Drawing.Size(114, 17);
  399. this.radioButton5.TabIndex = 4;
  400. this.radioButton5.TabStop = true;
  401. this.radioButton5.Text = "2 hours 30 minutes";
  402. this.radioButton5.UseVisualStyleBackColor = true;
  403. //
  404. // radioButton4
  405. //
  406. this.radioButton4.AutoSize = true;
  407. this.radioButton4.Location = new System.Drawing.Point(16, 90);
  408. this.radioButton4.Name = "radioButton4";
  409. this.radioButton4.Size = new System.Drawing.Size(60, 17);
  410. this.radioButton4.TabIndex = 3;
  411. this.radioButton4.TabStop = true;
  412. this.radioButton4.Text = "2 hours";
  413. this.radioButton4.UseVisualStyleBackColor = true;
  414. //
  415. // radioButton3
  416. //
  417. this.radioButton3.AutoSize = true;
  418. this.radioButton3.Location = new System.Drawing.Point(16, 67);
  419. this.radioButton3.Name = "radioButton3";
  420. this.radioButton3.Size = new System.Drawing.Size(109, 17);
  421. this.radioButton3.TabIndex = 2;
  422. this.radioButton3.TabStop = true;
  423. this.radioButton3.Text = "1 hour 30 minutes";
  424. this.radioButton3.UseVisualStyleBackColor = true;
  425. //
  426. // radioButton2
  427. //
  428. this.radioButton2.AutoSize = true;
  429. this.radioButton2.Location = new System.Drawing.Point(16, 44);
  430. this.radioButton2.Name = "radioButton2";
  431. this.radioButton2.Size = new System.Drawing.Size(55, 17);
  432. this.radioButton2.TabIndex = 1;
  433. this.radioButton2.TabStop = true;
  434. this.radioButton2.Text = "1 hour";
  435. this.radioButton2.UseVisualStyleBackColor = true;
  436. //
  437. // radioButton1
  438. //
  439. this.radioButton1.AutoSize = true;
  440. this.radioButton1.Location = new System.Drawing.Point(16, 20);
  441. this.radioButton1.Name = "radioButton1";
  442. this.radioButton1.Size = new System.Drawing.Size(76, 17);
  443. this.radioButton1.TabIndex = 0;
  444. this.radioButton1.TabStop = true;
  445. this.radioButton1.Text = "30 minutes";
  446. this.radioButton1.UseVisualStyleBackColor = true;
  447. //
  448. // groupBox2
  449. //
  450. this.groupBox2.Controls.Add(this.textBox2);
  451. this.groupBox2.Controls.Add(this.button6);
  452. this.groupBox2.Controls.Add(this.notice_button);
  453. this.groupBox2.Location = new System.Drawing.Point(16, 19);
  454. this.groupBox2.Name = "groupBox2";
  455. this.groupBox2.Size = new System.Drawing.Size(365, 98);
  456. this.groupBox2.TabIndex = 31;
  457. this.groupBox2.TabStop = false;
  458. this.groupBox2.Text = "Write your notice";
  459. //
  460. // textBox2
  461. //
  462. this.textBox2.BackColor = System.Drawing.SystemColors.Menu;
  463. this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  464. this.textBox2.Location = new System.Drawing.Point(6, 19);
  465. this.textBox2.Name = "textBox2";
  466. this.textBox2.Size = new System.Drawing.Size(353, 20);
  467. this.textBox2.TabIndex = 29;
  468. //
  469. // button6
  470. //
  471. this.button6.Enabled = false;
  472. this.button6.Location = new System.Drawing.Point(118, 54);
  473. this.button6.Name = "button6";
  474. this.button6.Size = new System.Drawing.Size(106, 23);
  475. this.button6.TabIndex = 30;
  476. this.button6.Text = "Cancel notice";
  477. this.button6.UseVisualStyleBackColor = true;
  478. this.button6.Click += new System.EventHandler(this.button6_Click);
  479. //
  480. // notice_button
  481. //
  482. this.notice_button.Enabled = false;
  483. this.notice_button.Location = new System.Drawing.Point(6, 54);
  484. this.notice_button.Name = "notice_button";
  485. this.notice_button.Size = new System.Drawing.Size(106, 23);
  486. this.notice_button.TabIndex = 28;
  487. this.notice_button.Text = "Start notice";
  488. this.notice_button.UseVisualStyleBackColor = true;
  489. this.notice_button.Click += new System.EventHandler(this.notice_button_Click);
  490. //
  491. // timer1
  492. //
  493. this.timer1.Interval = 10000;
  494. this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  495. //
  496. // groupBox9
  497. //
  498. this.groupBox9.Controls.Add(this.mesaj);
  499. this.groupBox9.Controls.Add(this.button7);
  500. this.groupBox9.Controls.Add(this.dbname);
  501. this.groupBox9.Controls.Add(this.dbpw);
  502. this.groupBox9.Controls.Add(this.dbuser);
  503. this.groupBox9.Controls.Add(this.host);
  504. this.groupBox9.Controls.Add(this.label8);
  505. this.groupBox9.Controls.Add(this.label9);
  506. this.groupBox9.Controls.Add(this.label11);
  507. this.groupBox9.Controls.Add(this.label12);
  508. this.groupBox9.Location = new System.Drawing.Point(3, 6);
  509. this.groupBox9.Name = "groupBox9";
  510. this.groupBox9.Size = new System.Drawing.Size(414, 152);
  511. this.groupBox9.TabIndex = 21;
  512. this.groupBox9.TabStop = false;
  513. this.groupBox9.Text = "SQL Connection";
  514. //
  515. // label12
  516. //
  517. this.label12.AutoSize = true;
  518. this.label12.Location = new System.Drawing.Point(6, 101);
  519. this.label12.Name = "label12";
  520. this.label12.Size = new System.Drawing.Size(56, 13);
  521. this.label12.TabIndex = 13;
  522. this.label12.Text = "Database:";
  523. //
  524. // label11
  525. //
  526. this.label11.AutoSize = true;
  527. this.label11.Location = new System.Drawing.Point(6, 75);
  528. this.label11.Name = "label11";
  529. this.label11.Size = new System.Drawing.Size(56, 13);
  530. this.label11.TabIndex = 12;
  531. this.label11.Text = "Password:";
  532. this.label11.Click += new System.EventHandler(this.label11_Click);
  533. //
  534. // label9
  535. //
  536. this.label9.AutoSize = true;
  537. this.label9.Location = new System.Drawing.Point(6, 49);
  538. this.label9.Name = "label9";
  539. this.label9.Size = new System.Drawing.Size(58, 13);
  540. this.label9.TabIndex = 10;
  541. this.label9.Text = "Username:";
  542. this.label9.Click += new System.EventHandler(this.label9_Click);
  543. //
  544. // label8
  545. //
  546. this.label8.AutoSize = true;
  547. this.label8.Location = new System.Drawing.Point(6, 22);
  548. this.label8.Name = "label8";
  549. this.label8.Size = new System.Drawing.Size(41, 13);
  550. this.label8.TabIndex = 9;
  551. this.label8.Text = "Server:";
  552. this.label8.Click += new System.EventHandler(this.label8_Click);
  553. //
  554. // host
  555. //
  556. this.host.BackColor = System.Drawing.SystemColors.ButtonFace;
  557. this.host.ForeColor = System.Drawing.SystemColors.WindowText;
  558. this.host.Location = new System.Drawing.Point(70, 22);
  559. this.host.Name = "host";
  560. this.host.Size = new System.Drawing.Size(157, 20);
  561. this.host.TabIndex = 17;
  562. this.host.Text = "xxxx\\SQLEXPRESS";
  563. this.host.TextChanged += new System.EventHandler(this.host_TextChanged_1);
  564. //
  565. // dbuser
  566. //
  567. this.dbuser.BackColor = System.Drawing.SystemColors.ButtonFace;
  568. this.dbuser.ForeColor = System.Drawing.SystemColors.WindowText;
  569. this.dbuser.Location = new System.Drawing.Point(70, 49);
  570. this.dbuser.Name = "dbuser";
  571. this.dbuser.Size = new System.Drawing.Size(157, 20);
  572. this.dbuser.TabIndex = 18;
  573. //
  574. // dbpw
  575. //
  576. this.dbpw.BackColor = System.Drawing.SystemColors.ButtonFace;
  577. this.dbpw.ForeColor = System.Drawing.SystemColors.WindowText;
  578. this.dbpw.Location = new System.Drawing.Point(70, 75);
  579. this.dbpw.Name = "dbpw";
  580. this.dbpw.PasswordChar = '*';
  581. this.dbpw.Size = new System.Drawing.Size(157, 20);
  582. this.dbpw.TabIndex = 19;
  583. this.dbpw.Tag = "Type your password";
  584. //
  585. // dbname
  586. //
  587. this.dbname.BackColor = System.Drawing.SystemColors.ButtonFace;
  588. this.dbname.ForeColor = System.Drawing.SystemColors.WindowText;
  589. this.dbname.Location = new System.Drawing.Point(70, 101);
  590. this.dbname.Name = "dbname";
  591. this.dbname.Size = new System.Drawing.Size(157, 20);
  592. this.dbname.TabIndex = 20;
  593. this.dbname.Text = "SRO_VT_STORXY";
  594. //
  595. // button7
  596. //
  597. this.button7.Location = new System.Drawing.Point(233, 19);
  598. this.button7.Name = "button7";
  599. this.button7.Size = new System.Drawing.Size(175, 76);
  600. this.button7.TabIndex = 21;
  601. this.button7.Text = "Connect";
  602. this.button7.UseVisualStyleBackColor = true;
  603. this.button7.Click += new System.EventHandler(this.button7_Click_1);
  604. //
  605. // mesaj
  606. //
  607. this.mesaj.Enabled = false;
  608. this.mesaj.Location = new System.Drawing.Point(233, 101);
  609. this.mesaj.Name = "mesaj";
  610. this.mesaj.Size = new System.Drawing.Size(175, 20);
  611. this.mesaj.TabIndex = 22;
  612. //
  613. // groupBox5
  614. //
  615. this.groupBox5.Controls.Add(this.button5);
  616. this.groupBox5.Controls.Add(this.button1);
  617. this.groupBox5.Controls.Add(this.sversion);
  618. this.groupBox5.Controls.Add(this.slocale);
  619. this.groupBox5.Controls.Add(this.gateport);
  620. this.groupBox5.Controls.Add(this.ip);
  621. this.groupBox5.Controls.Add(this.label17);
  622. this.groupBox5.Controls.Add(this.label16);
  623. this.groupBox5.Controls.Add(this.label15);
  624. this.groupBox5.Controls.Add(this.label14);
  625. this.groupBox5.Location = new System.Drawing.Point(423, 6);
  626. this.groupBox5.Name = "groupBox5";
  627. this.groupBox5.Size = new System.Drawing.Size(169, 152);
  628. this.groupBox5.TabIndex = 22;
  629. this.groupBox5.TabStop = false;
  630. this.groupBox5.Text = "Server Connection";
  631. //
  632. // label14
  633. //
  634. this.label14.AutoSize = true;
  635. this.label14.Location = new System.Drawing.Point(6, 22);
  636. this.label14.Name = "label14";
  637. this.label14.Size = new System.Drawing.Size(54, 13);
  638. this.label14.TabIndex = 4;
  639. this.label14.Text = "Server IP:";
  640. //
  641. // label15
  642. //
  643. this.label15.AutoSize = true;
  644. this.label15.Location = new System.Drawing.Point(6, 45);
  645. this.label15.Name = "label15";
  646. this.label15.Size = new System.Drawing.Size(29, 13);
  647. this.label15.TabIndex = 5;
  648. this.label15.Text = "Port:";
  649. //
  650. // label16
  651. //
  652. this.label16.AutoSize = true;
  653. this.label16.Location = new System.Drawing.Point(6, 71);
  654. this.label16.Name = "label16";
  655. this.label16.Size = new System.Drawing.Size(42, 13);
  656. this.label16.TabIndex = 6;
  657. this.label16.Text = "Locale:";
  658. //
  659. // label17
  660. //
  661. this.label17.AutoSize = true;
  662. this.label17.Location = new System.Drawing.Point(6, 97);
  663. this.label17.Name = "label17";
  664. this.label17.Size = new System.Drawing.Size(45, 13);
  665. this.label17.TabIndex = 7;
  666. this.label17.Text = "Version:";
  667. //
  668. // ip
  669. //
  670. this.ip.BackColor = System.Drawing.SystemColors.ButtonFace;
  671. this.ip.Location = new System.Drawing.Point(66, 19);
  672. this.ip.Name = "ip";
  673. this.ip.Size = new System.Drawing.Size(95, 20);
  674. this.ip.TabIndex = 36;
  675. //
  676. // gateport
  677. //
  678. this.gateport.BackColor = System.Drawing.SystemColors.ButtonFace;
  679. this.gateport.Location = new System.Drawing.Point(66, 45);
  680. this.gateport.Name = "gateport";
  681. this.gateport.Size = new System.Drawing.Size(95, 20);
  682. this.gateport.TabIndex = 39;
  683. //
  684. // slocale
  685. //
  686. this.slocale.BackColor = System.Drawing.SystemColors.ButtonFace;
  687. this.slocale.Location = new System.Drawing.Point(66, 71);
  688. this.slocale.Name = "slocale";
  689. this.slocale.Size = new System.Drawing.Size(47, 20);
  690. this.slocale.TabIndex = 40;
  691. this.slocale.Text = "22";
  692. //
  693. // sversion
  694. //
  695. this.sversion.BackColor = System.Drawing.SystemColors.ButtonFace;
  696. this.sversion.Location = new System.Drawing.Point(66, 97);
  697. this.sversion.Name = "sversion";
  698. this.sversion.Size = new System.Drawing.Size(47, 20);
  699. this.sversion.TabIndex = 41;
  700. //
  701. // button1
  702. //
  703. this.button1.Location = new System.Drawing.Point(9, 123);
  704. this.button1.Name = "button1";
  705. this.button1.Size = new System.Drawing.Size(79, 23);
  706. this.button1.TabIndex = 42;
  707. this.button1.Text = "Connect";
  708. this.button1.UseVisualStyleBackColor = true;
  709. this.button1.Click += new System.EventHandler(this.button1_Click);
  710. //
  711. // button5
  712. //
  713. this.button5.Location = new System.Drawing.Point(94, 123);
  714. this.button5.Name = "button5";
  715. this.button5.Size = new System.Drawing.Size(67, 23);
  716. this.button5.TabIndex = 43;
  717. this.button5.Text = "Exit";
  718. this.button5.UseVisualStyleBackColor = true;
  719. this.button5.Click += new System.EventHandler(this.button5_Click_2);
  720. //
  721. // groupBox6
  722. //
  723. this.groupBox6.Controls.Add(this.label7);
  724. this.groupBox6.Controls.Add(this.label5);
  725. this.groupBox6.Controls.Add(this.server_label);
  726. this.groupBox6.Controls.Add(this.player_label);
  727. this.groupBox6.Location = new System.Drawing.Point(423, 163);
  728. this.groupBox6.Name = "groupBox6";
  729. this.groupBox6.Size = new System.Drawing.Size(169, 77);
  730. this.groupBox6.TabIndex = 36;
  731. this.groupBox6.TabStop = false;
  732. this.groupBox6.Text = "Game Information";
  733. //
  734. // player_label
  735. //
  736. this.player_label.AutoSize = true;
  737. this.player_label.Location = new System.Drawing.Point(102, 49);
  738. this.player_label.Name = "player_label";
  739. this.player_label.Size = new System.Drawing.Size(30, 13);
  740. this.player_label.TabIndex = 35;
  741. this.player_label.Text = "(0/0)";
  742. this.player_label.Click += new System.EventHandler(this.player_label_Click_1);
  743. //
  744. // server_label
  745. //
  746. this.server_label.AutoSize = true;
  747. this.server_label.Location = new System.Drawing.Point(99, 25);
  748. this.server_label.Name = "server_label";
  749. this.server_label.Size = new System.Drawing.Size(33, 13);
  750. this.server_label.TabIndex = 34;
  751. this.server_label.Text = "None";
  752. //
  753. // label5
  754. //
  755. this.label5.AutoSize = true;
  756. this.label5.Location = new System.Drawing.Point(6, 25);
  757. this.label5.Name = "label5";
  758. this.label5.Size = new System.Drawing.Size(70, 13);
  759. this.label5.TabIndex = 36;
  760. this.label5.Text = "Server name:";
  761. //
  762. // label7
  763. //
  764. this.label7.AutoSize = true;
  765. this.label7.Location = new System.Drawing.Point(6, 49);
  766. this.label7.Name = "label7";
  767. this.label7.Size = new System.Drawing.Size(76, 13);
  768. this.label7.TabIndex = 37;
  769. this.label7.Text = "Online players:";
  770. //
  771. // groupBox10
  772. //
  773. this.groupBox10.Controls.Add(this.button2);
  774. this.groupBox10.Controls.Add(this.pw);
  775. this.groupBox10.Controls.Add(this.id);
  776. this.groupBox10.Controls.Add(this.label2);
  777. this.groupBox10.Controls.Add(this.label1);
  778. this.groupBox10.Location = new System.Drawing.Point(3, 158);
  779. this.groupBox10.Name = "groupBox10";
  780. this.groupBox10.Size = new System.Drawing.Size(182, 101);
  781. this.groupBox10.TabIndex = 37;
  782. this.groupBox10.TabStop = false;
  783. this.groupBox10.Text = "Account Login";
  784. //
  785. // label1
  786. //
  787. this.label1.AutoSize = true;
  788. this.label1.Location = new System.Drawing.Point(3, 16);
  789. this.label1.Name = "label1";
  790. this.label1.Size = new System.Drawing.Size(58, 13);
  791. this.label1.TabIndex = 14;
  792. this.label1.Text = "Username:";
  793. //
  794. // label2
  795. //
  796. this.label2.AutoSize = true;
  797. this.label2.Location = new System.Drawing.Point(3, 42);
  798. this.label2.Name = "label2";
  799. this.label2.Size = new System.Drawing.Size(56, 13);
  800. this.label2.TabIndex = 15;
  801. this.label2.Text = "Password:";
  802. //
  803. // id
  804. //
  805. this.id.BackColor = System.Drawing.SystemColors.ButtonFace;
  806. this.id.Location = new System.Drawing.Point(69, 16);
  807. this.id.Name = "id";
  808. this.id.Size = new System.Drawing.Size(103, 20);
  809. this.id.TabIndex = 16;
  810. //
  811. // pw
  812. //
  813. this.pw.BackColor = System.Drawing.SystemColors.ButtonFace;
  814. this.pw.Location = new System.Drawing.Point(69, 42);
  815. this.pw.Name = "pw";
  816. this.pw.PasswordChar = '*';
  817. this.pw.Size = new System.Drawing.Size(103, 20);
  818. this.pw.TabIndex = 17;
  819. //
  820. // button2
  821. //
  822. this.button2.Location = new System.Drawing.Point(6, 68);
  823. this.button2.Name = "button2";
  824. this.button2.Size = new System.Drawing.Size(166, 23);
  825. this.button2.TabIndex = 18;
  826. this.button2.Text = "Login";
  827. this.button2.UseVisualStyleBackColor = true;
  828. this.button2.Click += new System.EventHandler(this.button2_Click_2);
  829. //
  830. // groupBox11
  831. //
  832. this.groupBox11.Controls.Add(this.button3);
  833. this.groupBox11.Controls.Add(this.captcha_text);
  834. this.groupBox11.Controls.Add(this.groupBox12);
  835. this.groupBox11.Location = new System.Drawing.Point(191, 159);
  836. this.groupBox11.Name = "groupBox11";
  837. this.groupBox11.Size = new System.Drawing.Size(226, 100);
  838. this.groupBox11.TabIndex = 38;
  839. this.groupBox11.TabStop = false;
  840. this.groupBox11.Text = "Captcha";
  841. //
  842. // groupBox12
  843. //
  844. this.groupBox12.Controls.Add(this.pictureBox1);
  845. this.groupBox12.Location = new System.Drawing.Point(104, 12);
  846. this.groupBox12.Name = "groupBox12";
  847. this.groupBox12.Size = new System.Drawing.Size(116, 82);
  848. this.groupBox12.TabIndex = 11;
  849. this.groupBox12.TabStop = false;
  850. this.groupBox12.Text = "Captcha Box";
  851. //
  852. // pictureBox1
  853. //
  854. this.pictureBox1.Location = new System.Drawing.Point(7, 19);
  855. this.pictureBox1.Name = "pictureBox1";
  856. this.pictureBox1.Size = new System.Drawing.Size(100, 50);
  857. this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
  858. this.pictureBox1.TabIndex = 10;
  859. this.pictureBox1.TabStop = false;
  860. this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click_1);
  861. //
  862. // captcha_text
  863. //
  864. this.captcha_text.BackColor = System.Drawing.SystemColors.ButtonFace;
  865. this.captcha_text.Location = new System.Drawing.Point(6, 24);
  866. this.captcha_text.Name = "captcha_text";
  867. this.captcha_text.Size = new System.Drawing.Size(92, 20);
  868. this.captcha_text.TabIndex = 18;
  869. //
  870. // button3
  871. //
  872. this.button3.Location = new System.Drawing.Point(6, 50);
  873. this.button3.Name = "button3";
  874. this.button3.Size = new System.Drawing.Size(92, 44);
  875. this.button3.TabIndex = 20;
  876. this.button3.Text = "OK";
  877. this.button3.UseVisualStyleBackColor = true;
  878. //
  879. // groupBox7
  880. //
  881. this.groupBox7.Controls.Add(this.label4);
  882. this.groupBox7.Controls.Add(this.button4);
  883. this.groupBox7.Controls.Add(this.char_list);
  884. this.groupBox7.Location = new System.Drawing.Point(3, 259);
  885. this.groupBox7.Name = "groupBox7";
  886. this.groupBox7.Size = new System.Drawing.Size(227, 83);
  887. this.groupBox7.TabIndex = 39;
  888. this.groupBox7.TabStop = false;
  889. this.groupBox7.Text = "Character select";
  890. //
  891. // char_list
  892. //
  893. this.char_list.BackColor = System.Drawing.SystemColors.ButtonFace;
  894. this.char_list.FormattingEnabled = true;
  895. this.char_list.Location = new System.Drawing.Point(96, 24);
  896. this.char_list.Name = "char_list";
  897. this.char_list.Size = new System.Drawing.Size(125, 21);
  898. this.char_list.TabIndex = 18;
  899. //
  900. // button4
  901. //
  902. this.button4.Location = new System.Drawing.Point(9, 51);
  903. this.button4.Name = "button4";
  904. this.button4.Size = new System.Drawing.Size(212, 23);
  905. this.button4.TabIndex = 19;
  906. this.button4.Text = "Select character";
  907. this.button4.UseVisualStyleBackColor = true;
  908. this.button4.Click += new System.EventHandler(this.button4_Click_2);
  909. //
  910. // label4
  911. //
  912. this.label4.AutoSize = true;
  913. this.label4.Location = new System.Drawing.Point(6, 24);
  914. this.label4.Name = "label4";
  915. this.label4.Size = new System.Drawing.Size(85, 13);
  916. this.label4.TabIndex = 20;
  917. this.label4.Text = "Character name:";
  918. //
  919. // groupBox8
  920. //
  921. this.groupBox8.Location = new System.Drawing.Point(236, 259);
  922. this.groupBox8.Name = "groupBox8";
  923. this.groupBox8.Size = new System.Drawing.Size(181, 81);
  924. this.groupBox8.TabIndex = 40;
  925. this.groupBox8.TabStop = false;
  926. this.groupBox8.Text = "Character Information";
  927. //
  928. // tabPage2
  929. //
  930. this.tabPage2.Controls.Add(this.button8);
  931. this.tabPage2.Controls.Add(this.groupBox14);
  932. this.tabPage2.Controls.Add(this.groupBox13);
  933. this.tabPage2.Controls.Add(this.groupBox8);
  934. this.tabPage2.Controls.Add(this.groupBox7);
  935. this.tabPage2.Controls.Add(this.groupBox11);
  936. this.tabPage2.Controls.Add(this.groupBox10);
  937. this.tabPage2.Controls.Add(this.groupBox6);
  938. this.tabPage2.Controls.Add(this.groupBox5);
  939. this.tabPage2.Controls.Add(this.groupBox9);
  940. this.tabPage2.ImeMode = System.Windows.Forms.ImeMode.Off;
  941. this.tabPage2.Location = new System.Drawing.Point(4, 22);
  942. this.tabPage2.Name = "tabPage2";
  943. this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
  944. this.tabPage2.Size = new System.Drawing.Size(664, 674);
  945. this.tabPage2.TabIndex = 1;
  946. this.tabPage2.Text = "Home";
  947. this.tabPage2.UseVisualStyleBackColor = true;
  948. this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click);
  949. //
  950. // groupBox13
  951. //
  952. this.groupBox13.Location = new System.Drawing.Point(423, 246);
  953. this.groupBox13.Name = "groupBox13";
  954. this.groupBox13.Size = new System.Drawing.Size(169, 279);
  955. this.groupBox13.TabIndex = 41;
  956. this.groupBox13.TabStop = false;
  957. this.groupBox13.Text = "Events Status";
  958. //
  959. // groupBox14
  960. //
  961. this.groupBox14.Controls.Add(this.globalchat);
  962. this.groupBox14.Controls.Add(this.richTextBox1);
  963. this.groupBox14.Location = new System.Drawing.Point(3, 348);
  964. this.groupBox14.Name = "groupBox14";
  965. this.groupBox14.Size = new System.Drawing.Size(414, 240);
  966. this.groupBox14.TabIndex = 42;
  967. this.groupBox14.TabStop = false;
  968. this.groupBox14.Text = "Events Log";
  969. //
  970. // globalchat
  971. //
  972. this.globalchat.BackColor = System.Drawing.SystemColors.Window;
  973. this.globalchat.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  974. this.globalchat.ForeColor = System.Drawing.SystemColors.InfoText;
  975. this.globalchat.Location = new System.Drawing.Point(6, 183);
  976. this.globalchat.Multiline = true;
  977. this.globalchat.Name = "globalchat";
  978. this.globalchat.ReadOnly = true;
  979. this.globalchat.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
  980. this.globalchat.Size = new System.Drawing.Size(402, 46);
  981. this.globalchat.TabIndex = 27;
  982. //
  983. // richTextBox1
  984. //
  985. this.richTextBox1.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
  986. this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
  987. this.richTextBox1.Location = new System.Drawing.Point(6, 19);
  988. this.richTextBox1.Name = "richTextBox1";
  989. this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
  990. this.richTextBox1.Size = new System.Drawing.Size(402, 158);
  991. this.richTextBox1.TabIndex = 28;
  992. this.richTextBox1.Text = "";
  993. this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged_1);
  994. //
  995. // button8
  996. //
  997. this.button8.Location = new System.Drawing.Point(423, 531);
  998. this.button8.Name = "button8";
  999. this.button8.Size = new System.Drawing.Size(169, 46);
  1000. this.button8.TabIndex = 43;
  1001. this.button8.Text = "About";
  1002. this.button8.UseVisualStyleBackColor = true;
  1003. this.button8.Click += new System.EventHandler(this.button8_Click_2);
  1004. //
  1005. // Form1
  1006. //
  1007. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  1008. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  1009. this.BackColor = System.Drawing.SystemColors.ControlLightLight;
  1010. this.ClientSize = new System.Drawing.Size(603, 611);
  1011. this.Controls.Add(this.tabControl1);
  1012. this.ForeColor = System.Drawing.SystemColors.WindowText;
  1013. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  1014. this.MaximizeBox = false;
  1015. this.MaximumSize = new System.Drawing.Size(619, 649);
  1016. this.MinimumSize = new System.Drawing.Size(619, 649);
  1017. this.Name = "Form1";
  1018. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  1019. this.Text = "Storxy Events Tool V1.1";
  1020. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
  1021. this.Load += new System.EventHandler(this.Form1_Load);
  1022. this.tabControl1.ResumeLayout(false);
  1023. this.tabPage1.ResumeLayout(false);
  1024. this.groupBox1.ResumeLayout(false);
  1025. this.groupBox3.ResumeLayout(false);
  1026. this.groupBox3.PerformLayout();
  1027. this.groupBox4.ResumeLayout(false);
  1028. this.groupBox4.PerformLayout();
  1029. this.groupBox2.ResumeLayout(false);
  1030. this.groupBox2.PerformLayout();
  1031. this.groupBox9.ResumeLayout(false);
  1032. this.groupBox9.PerformLayout();
  1033. this.groupBox5.ResumeLayout(false);
  1034. this.groupBox5.PerformLayout();
  1035. this.groupBox6.ResumeLayout(false);
  1036. this.groupBox6.PerformLayout();
  1037. this.groupBox10.ResumeLayout(false);
  1038. this.groupBox10.PerformLayout();
  1039. this.groupBox11.ResumeLayout(false);
  1040. this.groupBox11.PerformLayout();
  1041. this.groupBox12.ResumeLayout(false);
  1042. this.groupBox12.PerformLayout();
  1043. ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
  1044. this.groupBox7.ResumeLayout(false);
  1045. this.groupBox7.PerformLayout();
  1046. this.tabPage2.ResumeLayout(false);
  1047. this.groupBox14.ResumeLayout(false);
  1048. this.groupBox14.PerformLayout();
  1049. this.ResumeLayout(false);
  1050.  
  1051. }
  1052.  
  1053. public void Meldung(string msg, params object[] values)
  1054. {
  1055. msg = string.Format(msg, values);
  1056. Globals.MainWindow.globalchat.AppendText(msg + "\r\n");
  1057. }
  1058.  
  1059. private void notice_button_Click(object sender, EventArgs e)
  1060. {
  1061. if ((((this.radioButton1.Checked || this.radioButton2.Checked) || (this.radioButton3.Checked || this.radioButton4.Checked)) || ((this.radioButton5.Checked || this.radioButton6.Checked) || (this.radioButton7.Checked || this.radioButton8.Checked))) || this.radioButton9.Checked)
  1062. {
  1063. if (this.radioButton1.Checked)
  1064. {
  1065. this.t1.Interval = 0x1b7740;
  1066. }
  1067. if (this.radioButton2.Checked)
  1068. {
  1069. this.t1.Interval = 0x36ee80;
  1070. }
  1071. if (this.radioButton3.Checked)
  1072. {
  1073. this.t1.Interval = 0x5265c0;
  1074. }
  1075. if (this.radioButton4.Checked)
  1076. {
  1077. this.t1.Interval = 0x6ddd00;
  1078. }
  1079. if (this.radioButton5.Checked)
  1080. {
  1081. this.t1.Interval = 0x895440;
  1082. }
  1083. if (this.radioButton6.Checked)
  1084. {
  1085. this.t1.Interval = 0xa4cb80;
  1086. }
  1087. if (this.radioButton7.Checked)
  1088. {
  1089. this.t1.Interval = 0xc042c0;
  1090. }
  1091. if (this.radioButton8.Checked)
  1092. {
  1093. this.t1.Interval = 0xdbba00;
  1094. }
  1095. if (this.radioButton9.Checked)
  1096. {
  1097. if (this.timeInMin.Text == "")
  1098. {
  1099. MessageBox.Show("You need to type a time in the Textbox.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  1100. return;
  1101. }
  1102. int num2 = Convert.ToInt32(this.timeInMin.Text);
  1103. int num = int.Parse(this.timeInMin.Text) * 0xea60;
  1104. this.t1.Interval = num;
  1105. }
  1106. this.t1.Tick += new EventHandler(this.t1_Tick);
  1107. this.t1.Start();
  1108. this.notice_button.Enabled = false;
  1109. this.button6.Enabled = false;
  1110. this.radioButton1.Enabled = false;
  1111. this.radioButton2.Enabled = false;
  1112. this.radioButton3.Enabled = false;
  1113. this.radioButton4.Enabled = false;
  1114. this.radioButton5.Enabled = false;
  1115. this.radioButton6.Enabled = false;
  1116. this.radioButton7.Enabled = false;
  1117. this.radioButton8.Enabled = false;
  1118. this.radioButton9.Enabled = false;
  1119. this.timeInMin.Enabled = false;
  1120. this.textBox2.Enabled = false;
  1121. this.button6.Enabled = true;
  1122. }
  1123. else
  1124. {
  1125. MessageBox.Show("You need to select a time !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  1126. }
  1127. }
  1128.  
  1129. private void Ping_Tick(object sender, EventArgs e)
  1130. {
  1131. if (Globals.Server != Globals.ServerEnum.None)
  1132. {
  1133. Packet packet = new Packet(0x2002);
  1134. if (Globals.Server == Globals.ServerEnum.Gateway)
  1135. {
  1136. Gateway.SendToServer(packet);
  1137. }
  1138. else if (Globals.Server == Globals.ServerEnum.Agent)
  1139. {
  1140. Agent.Send(packet);
  1141. }
  1142. }
  1143. }
  1144.  
  1145. private void t1_Tick(object sender, EventArgs e)
  1146. {
  1147. string text = this.textBox2.Text;
  1148. Packet packet = new Packet(0x7025);
  1149. packet.WriteUInt8((byte)7);
  1150. packet.WriteUInt8((byte)0);
  1151. packet.WriteAscii(text);
  1152. Agent.Send(packet);
  1153. }
  1154.  
  1155. private void timeInMin_TextChanged(object sender, EventArgs e)
  1156. {
  1157. TextBox box = sender as TextBox;
  1158. if (box != null)
  1159. {
  1160. string text = box.Text;
  1161. if (!Regex.IsMatch(text, "^[0-9]*$"))
  1162. {
  1163. box.TextChanged -= new EventHandler(this.timeInMin_TextChanged);
  1164. if (box.TextLength == 1)
  1165. {
  1166. box.ResetText();
  1167. }
  1168. else
  1169. {
  1170. box.ResetText();
  1171. box.AppendText(text.Substring(0, text.Length - 1));
  1172. }
  1173. box.TextChanged += new EventHandler(this.timeInMin_TextChanged);
  1174. }
  1175. }
  1176. }
  1177.  
  1178. private void button7_Click(object sender, EventArgs e)
  1179. {
  1180.  
  1181.  
  1182. timer1.Enabled = true;
  1183.  
  1184. }
  1185.  
  1186. private void button8_Click(object sender, EventArgs e)
  1187. {
  1188. timer1.Enabled = false;
  1189.  
  1190. }
  1191.  
  1192. private void timer1_Tick(object sender, EventArgs e)
  1193. {
  1194.  
  1195. String connectionstring = "Data Source=" + host.Text + ";Initial Catalog=" + dbname.Text + ";Integrated Security=false; User ID = " + dbuser.Text + "; Password = " + dbpw.Text + ";";
  1196.  
  1197.  
  1198. using (SqlConnection con = new SqlConnection(connectionstring))
  1199. {
  1200. con.Open();
  1201. string query = "SELECT top 1* from PlusNotice where sent = '0' ORDER BY date";
  1202. using (SqlCommand cmd = new SqlCommand(query, con))
  1203. {
  1204. using (SqlDataReader reader = cmd.ExecuteReader())
  1205. {
  1206. while (reader.Read())
  1207. {
  1208. mesaj.Text = (string)reader["message"];
  1209. }
  1210. }
  1211. }
  1212.  
  1213. }
  1214. using (SqlConnection conn = new SqlConnection(connectionstring))
  1215. {
  1216. conn.Open();
  1217. using (SqlCommand cmd = new SqlCommand("update PlusNotice set sent = '1' where message = @mesaj", conn))
  1218. {
  1219. cmd.Parameters.Add("@mesaj", mesaj.Text);
  1220. cmd.ExecuteNonQuery();
  1221.  
  1222. //rows number of record got inserted
  1223. }
  1224. }
  1225.  
  1226. if (string.IsNullOrEmpty(mesaj.Text))
  1227. {
  1228.  
  1229. }
  1230. else
  1231. {
  1232. string sending = mesaj.Text;
  1233. Packet packet = new Packet(0x7025);
  1234. packet.WriteUInt8((byte)7);
  1235. packet.WriteUInt8((byte)0);
  1236. packet.WriteAscii(sending);
  1237. Agent.Send(packet);
  1238. mesaj.Text = "";
  1239. }
  1240.  
  1241. }
  1242.  
  1243. private void groupBox5_Enter(object sender, EventArgs e)
  1244. {
  1245.  
  1246. }
  1247.  
  1248. private void tabPage2_Click(object sender, EventArgs e)
  1249. {
  1250.  
  1251. }
  1252.  
  1253. private void ip_TextChanged(object sender, EventArgs e)
  1254. {
  1255.  
  1256. }
  1257.  
  1258. private void groupBox6_Enter(object sender, EventArgs e)
  1259. {
  1260.  
  1261. }
  1262.  
  1263. private void button8_Click_1(object sender, EventArgs e)
  1264. {
  1265.  
  1266. }
  1267.  
  1268. private void label17_Click(object sender, EventArgs e)
  1269. {
  1270.  
  1271. }
  1272.  
  1273. private void gateport_TextChanged(object sender, EventArgs e)
  1274. {
  1275.  
  1276. }
  1277.  
  1278. private void player_label_Click(object sender, EventArgs e)
  1279. {
  1280.  
  1281. }
  1282.  
  1283. private void sversion_TextChanged(object sender, EventArgs e)
  1284. {
  1285.  
  1286. }
  1287.  
  1288. private void dbpw_TextChanged(object sender, EventArgs e)
  1289. {
  1290.  
  1291. }
  1292.  
  1293. private void dbname_TextChanged(object sender, EventArgs e)
  1294. {
  1295.  
  1296. }
  1297.  
  1298.  
  1299.  
  1300. private void button5_Click_1(object sender, EventArgs e)
  1301. {
  1302. Environment.Exit(0);
  1303.  
  1304. }
  1305.  
  1306. private void checkBox1_CheckedChanged(object sender, EventArgs e)
  1307. {
  1308.  
  1309. }
  1310.  
  1311. private void checkBox1_CheckedChanged_1(object sender, EventArgs e)
  1312. {
  1313.  
  1314. }
  1315.  
  1316. private void player_label_Click_1(object sender, EventArgs e)
  1317. {
  1318.  
  1319. }
  1320.  
  1321. private void pictureBox1_Click(object sender, EventArgs e)
  1322. {
  1323.  
  1324. }
  1325.  
  1326. private void groupBox7_Enter(object sender, EventArgs e)
  1327. {
  1328.  
  1329. }
  1330.  
  1331. private void label2_Click(object sender, EventArgs e)
  1332. {
  1333.  
  1334. }
  1335.  
  1336. private void pw_TextChanged(object sender, EventArgs e)
  1337. {
  1338.  
  1339. }
  1340.  
  1341. private void label1_Click(object sender, EventArgs e)
  1342. {
  1343.  
  1344. }
  1345.  
  1346. private void button2_Click_1(object sender, EventArgs e)
  1347. {
  1348. Packet packet = new Packet(0x6102);
  1349. packet.WriteUInt8((byte)0x16);
  1350. packet.WriteAscii(this.id.Text);
  1351. packet.WriteAscii(this.pw.Text);
  1352. packet.WriteUInt16((ushort)0x40);
  1353. Gateway.SendToServer(packet);
  1354. }
  1355.  
  1356. private void char_list_SelectedIndexChanged(object sender, EventArgs e)
  1357. {
  1358.  
  1359. }
  1360.  
  1361. private void char_list_SelectedIndexChanged_1(object sender, EventArgs e)
  1362. {
  1363.  
  1364. }
  1365.  
  1366. private void button4_Click_1(object sender, EventArgs e)
  1367. {
  1368. Packet packet = new Packet(0x7001);
  1369. packet.WriteAscii(this.char_list.SelectedItem);
  1370. Agent.Send(packet);
  1371. this.Meldung("Selectet char.", new object[0]);
  1372. this.notice_button.Enabled = true;
  1373. this.button6.Enabled = true;
  1374. this.button2.Enabled = false;
  1375. this.button1.Enabled = false;
  1376. this.button3.Enabled = false;
  1377. }
  1378.  
  1379. private void label3_Click(object sender, EventArgs e)
  1380. {
  1381.  
  1382. }
  1383.  
  1384. private void tabPage1_Click(object sender, EventArgs e)
  1385. {
  1386.  
  1387. }
  1388.  
  1389. private void pictureBox1_Click_1(object sender, EventArgs e)
  1390. {
  1391.  
  1392. }
  1393.  
  1394. private void captcha_text_TextChanged(object sender, EventArgs e)
  1395. {
  1396.  
  1397. }
  1398.  
  1399. private void button3_Click_1(object sender, EventArgs e)
  1400. {
  1401. Captcha.SendCaptcha(this.captcha_text.Text);
  1402. this.Meldung("Entered captcha.", new object[0]);
  1403. }
  1404.  
  1405. private void groupBox8_Enter(object sender, EventArgs e)
  1406. {
  1407.  
  1408. }
  1409.  
  1410. private void mesaj_TextChanged(object sender, EventArgs e)
  1411. {
  1412.  
  1413. }
  1414.  
  1415. private void host_TextChanged(object sender, EventArgs e)
  1416. {
  1417.  
  1418. }
  1419.  
  1420. private void label8_Click(object sender, EventArgs e)
  1421. {
  1422.  
  1423. }
  1424.  
  1425. private void label9_Click(object sender, EventArgs e)
  1426. {
  1427.  
  1428. }
  1429.  
  1430. private void label11_Click(object sender, EventArgs e)
  1431. {
  1432.  
  1433. }
  1434.  
  1435. private void textBox1_TextChanged(object sender, EventArgs e)
  1436. {
  1437.  
  1438. }
  1439.  
  1440. private void host_TextChanged_1(object sender, EventArgs e)
  1441. {
  1442.  
  1443. }
  1444.  
  1445. private void button7_Click_1(object sender, EventArgs e)
  1446. {
  1447. timer1.Enabled = true ;
  1448. }
  1449.  
  1450. private void label14_Click(object sender, EventArgs e)
  1451. {
  1452.  
  1453. }
  1454.  
  1455. private void ip_TextChanged_1(object sender, EventArgs e)
  1456. {
  1457.  
  1458. }
  1459.  
  1460. private void gateport_TextChanged_1(object sender, EventArgs e)
  1461. {
  1462.  
  1463. }
  1464.  
  1465.  
  1466. private void button5_Click_2(object sender, EventArgs e)
  1467. {
  1468. Environment.Exit(0);
  1469. }
  1470.  
  1471. private void id_TextChanged_1(object sender, EventArgs e)
  1472. {
  1473.  
  1474. }
  1475.  
  1476. private void pw_TextChanged_1(object sender, EventArgs e)
  1477. {
  1478.  
  1479. }
  1480.  
  1481. private void button2_Click_2(object sender, EventArgs e)
  1482. {
  1483. Packet packet = new Packet(0x6102);
  1484. packet.WriteUInt8((byte)0x16);
  1485. packet.WriteAscii(this.id.Text);
  1486. packet.WriteAscii(this.pw.Text);
  1487. packet.WriteUInt16((ushort)0x40);
  1488. Gateway.SendToServer(packet);
  1489. MessageBox.Show("Logged In successfully");
  1490. }
  1491.  
  1492. private void captcha_text_TextChanged_1(object sender, EventArgs e)
  1493. {
  1494.  
  1495. }
  1496.  
  1497. private void button4_Click_2(object sender, EventArgs e)
  1498. {
  1499. Packet packet = new Packet(0x7001);
  1500. packet.WriteAscii(this.char_list.SelectedItem);
  1501. Agent.Send(packet);
  1502. this.Meldung("Selectet char.", new object[0]);
  1503. this.notice_button.Enabled = true;
  1504. this.button6.Enabled = true;
  1505. this.button2.Enabled = false;
  1506. this.button1.Enabled = false;
  1507. this.button3.Enabled = false;
  1508. }
  1509.  
  1510. private void button1_Click(object sender, EventArgs e)
  1511. {
  1512. MessageBox.Show("Server Connected successfully");
  1513. }
  1514.  
  1515. private void richTextBox1_TextChanged(object sender, EventArgs e)
  1516. {
  1517.  
  1518. }
  1519.  
  1520. private void globalchat_TextChanged(object sender, EventArgs e)
  1521. {
  1522.  
  1523. }
  1524.  
  1525. private void richTextBox1_TextChanged_1(object sender, EventArgs e)
  1526. {
  1527.  
  1528. }
  1529.  
  1530. private void button8_Click_2(object sender, EventArgs e)
  1531. {
  1532. MessageBox.Show("Storxy Event Tool V1.1 \n Skype: Storxy1337");
  1533.  
  1534.  
  1535. }
  1536. }
  1537. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement