You last visited: Today at 19:26
Advertisement
[Public release] Zapp Brannigan, the new server monitor tool
Discussion on [Public release] Zapp Brannigan, the new server monitor tool within the Rappelz Private Server forum part of the Rappelz category.
09/16/2012, 04:25
#1
elite*gold: 0
Join Date: Aug 2011
Posts: 532
Received Thanks: 233
[Public release] Zapp Brannigan, the new server monitor tool
Features : Port checking
Executable monitor
4 auto notices
Full activity log
VIRUS SCANS
Zapp Brannigan.exe :
PREVIEWS
Attached Files
Zapp Brannigan.rar
(28.4 KB, 111 views)
09/16/2012, 04:29
#2
elite*gold: 0
Join Date: Oct 2010
Posts: 2,555
Received Thanks: 2,458
Nice job mate
09/16/2012, 21:28
#3
elite*gold: 0
Join Date: Nov 2011
Posts: 978
Received Thanks: 1,011
Code:
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
using Zapp_Brannigan.My;
namespace Zapp_Brannigan
{
[DesignerGenerated]
public class Zapp : Form
{
private static List<WeakReference> __ENCList = new List<WeakReference>();
private IContainer components;
[AccessedThroughProperty("GroupBox1")]
private GroupBox _GroupBox1;
[AccessedThroughProperty("activity_")]
private ListBox _activity_;
[AccessedThroughProperty("GroupBox2")]
private GroupBox _GroupBox2;
[AccessedThroughProperty("notice1c_")]
private CheckBox _notice1c_;
[AccessedThroughProperty("notice1_")]
private TextBox _notice1_;
[AccessedThroughProperty("notice2c_")]
private CheckBox _notice2c_;
[AccessedThroughProperty("notice2_")]
private TextBox _notice2_;
[AccessedThroughProperty("notice3c_")]
private CheckBox _notice3c_;
[AccessedThroughProperty("notice3_")]
private TextBox _notice3_;
[AccessedThroughProperty("notice4c_")]
private CheckBox _notice4c_;
[AccessedThroughProperty("notice4_")]
private TextBox _notice4_;
[AccessedThroughProperty("ProgressBar1")]
private ProgressBar _ProgressBar1;
[AccessedThroughProperty("restart_")]
private Button _restart_;
[AccessedThroughProperty("stop_")]
private Button _stop_;
[AccessedThroughProperty("start_")]
private Button _start_;
[AccessedThroughProperty("Label3")]
private Label _Label3;
[AccessedThroughProperty("IP_")]
private TextBox _IP_;
[AccessedThroughProperty("Label2")]
private Label _Label2;
[AccessedThroughProperty("auth_")]
private TextBox _auth_;
[AccessedThroughProperty("Label1")]
private Label _Label1;
[AccessedThroughProperty("game_")]
private TextBox _game_;
[AccessedThroughProperty("gamec_")]
private System.Windows.Forms.Timer _gamec_;
[AccessedThroughProperty("Label4")]
private Label _Label4;
[AccessedThroughProperty("noticeint_")]
private TextBox _noticeint_;
[AccessedThroughProperty("Label5")]
private Label _Label5;
[AccessedThroughProperty("clear_")]
private Label _clear_;
[AccessedThroughProperty("save_")]
private Label _save_;
[AccessedThroughProperty("logloc_")]
private FolderBrowserDialog _logloc_;
[AccessedThroughProperty("authc_")]
private System.Windows.Forms.Timer _authc_;
[AccessedThroughProperty("notice1t_")]
private System.Windows.Forms.Timer _notice1t_;
[AccessedThroughProperty("kill_")]
private Button _kill_;
[AccessedThroughProperty("notice2t_")]
private System.Windows.Forms.Timer _notice2t_;
[AccessedThroughProperty("notice3t_")]
private System.Windows.Forms.Timer _notice3t_;
[AccessedThroughProperty("notice4t_")]
private System.Windows.Forms.Timer _notice4t_;
private const int SW_SHOW = 5;
private const int SW_MINIMIZE = 6;
private const int SW_RESTORE = 9;
private Process q;
private string lahti_;
private string kinni_;
private string jutu_;
internal virtual GroupBox GroupBox1
{
[DebuggerNonUserCode] get
{
return this._GroupBox1;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._GroupBox1 = WithEventsValue;
}
}
internal virtual ListBox activity_
{
[DebuggerNonUserCode] get
{
return this._activity_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._activity_ = WithEventsValue;
}
}
internal virtual GroupBox GroupBox2
{
[DebuggerNonUserCode] get
{
return this._GroupBox2;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._GroupBox2 = WithEventsValue;
}
}
internal virtual CheckBox notice1c_
{
[DebuggerNonUserCode] get
{
return this._notice1c_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice1c__CheckedChanged);
if (this._notice1c_ != null)
this._notice1c_.CheckedChanged -= eventHandler;
this._notice1c_ = WithEventsValue;
if (this._notice1c_ == null)
return;
this._notice1c_.CheckedChanged += eventHandler;
}
}
internal virtual TextBox notice1_
{
[DebuggerNonUserCode] get
{
return this._notice1_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._notice1_ = WithEventsValue;
}
}
internal virtual CheckBox notice2c_
{
[DebuggerNonUserCode] get
{
return this._notice2c_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice2c__CheckedChanged);
if (this._notice2c_ != null)
this._notice2c_.CheckedChanged -= eventHandler;
this._notice2c_ = WithEventsValue;
if (this._notice2c_ == null)
return;
this._notice2c_.CheckedChanged += eventHandler;
}
}
internal virtual TextBox notice2_
{
[DebuggerNonUserCode] get
{
return this._notice2_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._notice2_ = WithEventsValue;
}
}
internal virtual CheckBox notice3c_
{
[DebuggerNonUserCode] get
{
return this._notice3c_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice3c__CheckedChanged);
if (this._notice3c_ != null)
this._notice3c_.CheckedChanged -= eventHandler;
this._notice3c_ = WithEventsValue;
if (this._notice3c_ == null)
return;
this._notice3c_.CheckedChanged += eventHandler;
}
}
internal virtual TextBox notice3_
{
[DebuggerNonUserCode] get
{
return this._notice3_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._notice3_ = WithEventsValue;
}
}
internal virtual CheckBox notice4c_
{
[DebuggerNonUserCode] get
{
return this._notice4c_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice5c__CheckedChanged);
if (this._notice4c_ != null)
this._notice4c_.CheckedChanged -= eventHandler;
this._notice4c_ = WithEventsValue;
if (this._notice4c_ == null)
return;
this._notice4c_.CheckedChanged += eventHandler;
}
}
internal virtual TextBox notice4_
{
[DebuggerNonUserCode] get
{
return this._notice4_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._notice4_ = WithEventsValue;
}
}
internal virtual ProgressBar ProgressBar1
{
[DebuggerNonUserCode] get
{
return this._ProgressBar1;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._ProgressBar1 = WithEventsValue;
}
}
internal virtual Button restart_
{
[DebuggerNonUserCode] get
{
return this._restart_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.restart__Click);
if (this._restart_ != null)
this._restart_.Click -= eventHandler;
this._restart_ = WithEventsValue;
if (this._restart_ == null)
return;
this._restart_.Click += eventHandler;
}
}
internal virtual Button stop_
{
[DebuggerNonUserCode] get
{
return this._stop_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.stop__Click);
if (this._stop_ != null)
this._stop_.Click -= eventHandler;
this._stop_ = WithEventsValue;
if (this._stop_ == null)
return;
this._stop_.Click += eventHandler;
}
}
internal virtual Button start_
{
[DebuggerNonUserCode] get
{
return this._start_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.start__Click);
if (this._start_ != null)
this._start_.Click -= eventHandler;
this._start_ = WithEventsValue;
if (this._start_ == null)
return;
this._start_.Click += eventHandler;
}
}
internal virtual Label Label3
{
[DebuggerNonUserCode] get
{
return this._Label3;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._Label3 = WithEventsValue;
}
}
internal virtual TextBox IP_
{
[DebuggerNonUserCode] get
{
return this._IP_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._IP_ = WithEventsValue;
}
}
internal virtual Label Label2
{
[DebuggerNonUserCode] get
{
return this._Label2;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._Label2 = WithEventsValue;
}
}
internal virtual TextBox auth_
{
[DebuggerNonUserCode] get
{
return this._auth_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._auth_ = WithEventsValue;
}
}
internal virtual Label Label1
{
[DebuggerNonUserCode] get
{
return this._Label1;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._Label1 = WithEventsValue;
}
}
internal virtual TextBox game_
{
[DebuggerNonUserCode] get
{
return this._game_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._game_ = WithEventsValue;
}
}
internal virtual System.Windows.Forms.Timer gamec_
{
[DebuggerNonUserCode] get
{
return this._gamec_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.gamec__Tick);
if (this._gamec_ != null)
this._gamec_.Tick -= eventHandler;
this._gamec_ = WithEventsValue;
if (this._gamec_ == null)
return;
this._gamec_.Tick += eventHandler;
}
}
internal virtual Label Label4
{
[DebuggerNonUserCode] get
{
return this._Label4;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._Label4 = WithEventsValue;
}
}
internal virtual TextBox noticeint_
{
[DebuggerNonUserCode] get
{
return this._noticeint_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.noticeint__TextChanged);
if (this._noticeint_ != null)
this._noticeint_.TextChanged -= eventHandler;
this._noticeint_ = WithEventsValue;
if (this._noticeint_ == null)
return;
this._noticeint_.TextChanged += eventHandler;
}
}
internal virtual Label Label5
{
[DebuggerNonUserCode] get
{
return this._Label5;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._Label5 = WithEventsValue;
}
}
internal virtual Label clear_
{
[DebuggerNonUserCode] get
{
return this._clear_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.clear__Click);
if (this._clear_ != null)
this._clear_.Click -= eventHandler;
this._clear_ = WithEventsValue;
if (this._clear_ == null)
return;
this._clear_.Click += eventHandler;
}
}
internal virtual Label save_
{
[DebuggerNonUserCode] get
{
return this._save_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.save__Click);
if (this._save_ != null)
this._save_.Click -= eventHandler;
this._save_ = WithEventsValue;
if (this._save_ == null)
return;
this._save_.Click += eventHandler;
}
}
internal virtual FolderBrowserDialog logloc_
{
[DebuggerNonUserCode] get
{
return this._logloc_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
this._logloc_ = WithEventsValue;
}
}
internal virtual System.Windows.Forms.Timer authc_
{
[DebuggerNonUserCode] get
{
return this._authc_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.authc__Tick);
if (this._authc_ != null)
this._authc_.Tick -= eventHandler;
this._authc_ = WithEventsValue;
if (this._authc_ == null)
return;
this._authc_.Tick += eventHandler;
}
}
internal virtual System.Windows.Forms.Timer notice1t_
{
[DebuggerNonUserCode] get
{
return this._notice1t_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice1t__Tick);
if (this._notice1t_ != null)
this._notice1t_.Tick -= eventHandler;
this._notice1t_ = WithEventsValue;
if (this._notice1t_ == null)
return;
this._notice1t_.Tick += eventHandler;
}
}
internal virtual Button kill_
{
[DebuggerNonUserCode] get
{
return this._kill_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.kill__Click);
if (this._kill_ != null)
this._kill_.Click -= eventHandler;
this._kill_ = WithEventsValue;
if (this._kill_ == null)
return;
this._kill_.Click += eventHandler;
}
}
internal virtual System.Windows.Forms.Timer notice2t_
{
[DebuggerNonUserCode] get
{
return this._notice2t_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice2t__Tick);
if (this._notice2t_ != null)
this._notice2t_.Tick -= eventHandler;
this._notice2t_ = WithEventsValue;
if (this._notice2t_ == null)
return;
this._notice2t_.Tick += eventHandler;
}
}
internal virtual System.Windows.Forms.Timer notice3t_
{
[DebuggerNonUserCode] get
{
return this._notice3t_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice3t__Tick);
if (this._notice3t_ != null)
this._notice3t_.Tick -= eventHandler;
this._notice3t_ = WithEventsValue;
if (this._notice3t_ == null)
return;
this._notice3t_.Tick += eventHandler;
}
}
internal virtual System.Windows.Forms.Timer notice4t_
{
[DebuggerNonUserCode] get
{
return this._notice4t_;
}
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
{
EventHandler eventHandler = new EventHandler(this.notice4t__Tick);
if (this._notice4t_ != null)
this._notice4t_.Tick -= eventHandler;
this._notice4t_ = WithEventsValue;
if (this._notice4t_ == null)
return;
this._notice4t_.Tick += eventHandler;
}
}
[DebuggerNonUserCode]
static Zapp()
{
}
public Zapp()
{
this.Load += new EventHandler(this.Zapp_Load);
Zapp.__ENCAddToList((object) this);
this.q = new Process();
this.lahti_ = MySettingsProperty.Settings.lahti;
this.kinni_ = MySettingsProperty.Settings.kinni;
this.jutu_ = MySettingsProperty.Settings.jutu;
this.InitializeComponent();
}
[DebuggerNonUserCode]
private static void __ENCAddToList(object value)
{
List<WeakReference> list = Zapp.__ENCList;
bool lockTaken = false;
try
{
Monitor.Enter((object) list, ref lockTaken);
if (Zapp.__ENCList.Count == Zapp.__ENCList.Capacity)
{
int index1 = 0;
int num1 = 0;
int num2 = checked (Zapp.__ENCList.Count - 1);
int index2 = num1;
while (index2 <= num2)
{
if (Zapp.__ENCList[index2].IsAlive)
{
if (index2 != index1)
Zapp.__ENCList[index1] = Zapp.__ENCList[index2];
checked { ++index1; }
}
checked { ++index2; }
}
Zapp.__ENCList.RemoveRange(index1, checked (Zapp.__ENCList.Count - index1));
Zapp.__ENCList.Capacity = Zapp.__ENCList.Count;
}
Zapp.__ENCList.Add(new WeakReference(RuntimeHelpers.GetObjectValue(value)));
}
finally
{
if (lockTaken)
Monitor.Exit((object) list);
}
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if ((!disposing || this.components == null) && !false)
return;
this.components.Dispose();
}
finally
{
base.Dispose(disposing);
}
}
[DebuggerStepThrough]
private void InitializeComponent()
{
this.components = (IContainer) new System.ComponentModel.Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (Zapp));
this.GroupBox1 = new GroupBox();
this.save_ = new Label();
this.clear_ = new Label();
this.activity_ = new ListBox();
this.GroupBox2 = new GroupBox();
this.Label5 = new Label();
this.Label4 = new Label();
this.Label2 = new Label();
this.noticeint_ = new TextBox();
this.notice1c_ = new CheckBox();
this.notice1_ = new TextBox();
this.notice2c_ = new CheckBox();
this.notice2_ = new TextBox();
this.notice3c_ = new CheckBox();
this.notice3_ = new TextBox();
this.notice4c_ = new CheckBox();
this.notice4_ = new TextBox();
this.ProgressBar1 = new ProgressBar();
this.restart_ = new Button();
this.stop_ = new Button();
this.start_ = new Button();
this.Label3 = new Label();
this.IP_ = new TextBox();
this.auth_ = new TextBox();
this.Label1 = new Label();
this.game_ = new TextBox();
this.gamec_ = new System.Windows.Forms.Timer(this.components);
this.logloc_ = new FolderBrowserDialog();
this.authc_ = new System.Windows.Forms.Timer(this.components);
this.notice1t_ = new System.Windows.Forms.Timer(this.components);
this.kill_ = new Button();
this.notice2t_ = new System.Windows.Forms.Timer(this.components);
this.notice3t_ = new System.Windows.Forms.Timer(this.components);
this.notice4t_ = new System.Windows.Forms.Timer(this.components);
this.GroupBox1.SuspendLayout();
this.GroupBox2.SuspendLayout();
this.SuspendLayout();
this.GroupBox1.Controls.Add((Control) this.save_);
this.GroupBox1.Controls.Add((Control) this.clear_);
this.GroupBox1.Controls.Add((Control) this.activity_);
GroupBox groupBox1_1 = this.GroupBox1;
Point point1 = new Point(12, 12);
Point point2 = point1;
groupBox1_1.Location = point2;
this.GroupBox1.Name = "GroupBox1";
GroupBox groupBox1_2 = this.GroupBox1;
Size size1 = new Size(222, 285);
Size size2 = size1;
groupBox1_2.Size = size2;
this.GroupBox1.TabIndex = 0;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "'Activity reports";
this.save_.AutoSize = true;
Label save1 = this.save_;
point1 = new Point(108, 264);
Point point3 = point1;
save1.Location = point3;
this.save_.Name = "save_";
Label save2 = this.save_;
size1 = new Size(60, 13);
Size size3 = size1;
save2.Size = size3;
this.save_.TabIndex = 22;
this.save_.Text = "SAVE LOG";
this.clear_.AutoSize = true;
Label clear1 = this.clear_;
point1 = new Point(174, 264);
Point point4 = point1;
clear1.Location = point4;
this.clear_.Name = "clear_";
Label clear2 = this.clear_;
size1 = new Size(42, 13);
Size size4 = size1;
clear2.Size = size4;
this.clear_.TabIndex = 21;
this.clear_.Text = "CLEAR";
this.activity_.FormattingEnabled = true;
ListBox activity1 = this.activity_;
point1 = new Point(6, 23);
Point point5 = point1;
activity1.Location = point5;
this.activity_.Name = "activity_";
ListBox activity2 = this.activity_;
size1 = new Size(210, 238);
Size size5 = size1;
activity2.Size = size5;
this.activity_.TabIndex = 0;
this.GroupBox2.Controls.Add((Control) this.Label5);
this.GroupBox2.Controls.Add((Control) this.Label4);
this.GroupBox2.Controls.Add((Control) this.Label2);
this.GroupBox2.Controls.Add((Control) this.noticeint_);
this.GroupBox2.Controls.Add((Control) this.notice1c_);
this.GroupBox2.Controls.Add((Control) this.notice1_);
this.GroupBox2.Controls.Add((Control) this.notice2c_);
this.GroupBox2.Controls.Add((Control) this.notice2_);
this.GroupBox2.Controls.Add((Control) this.notice3c_);
this.GroupBox2.Controls.Add((Control) this.notice3_);
this.GroupBox2.Controls.Add((Control) this.notice4c_);
this.GroupBox2.Controls.Add((Control) this.notice4_);
this.GroupBox2.Controls.Add((Control) this.ProgressBar1);
this.GroupBox2.Controls.Add((Control) this.restart_);
this.GroupBox2.Controls.Add((Control) this.stop_);
this.GroupBox2.Controls.Add((Control) this.start_);
this.GroupBox2.Controls.Add((Control) this.Label3);
this.GroupBox2.Controls.Add((Control) this.IP_);
this.GroupBox2.Controls.Add((Control) this.auth_);
this.GroupBox2.Controls.Add((Control) this.Label1);
this.GroupBox2.Controls.Add((Control) this.game_);
GroupBox groupBox2_1 = this.GroupBox2;
point1 = new Point(240, 12);
Point point6 = point1;
groupBox2_1.Location = point6;
this.GroupBox2.Name = "GroupBox2";
GroupBox groupBox2_2 = this.GroupBox2;
size1 = new Size(361, 320);
Size size6 = size1;
groupBox2_2.Size = size6;
this.GroupBox2.TabIndex = 1;
this.GroupBox2.TabStop = false;
this.GroupBox2.Text = "Controls";
this.Label5.AutoSize = true;
Label label5_1 = this.Label5;
point1 = new Point(308, 145);
Point point7 = point1;
label5_1.Location = point7;
this.Label5.Name = "Label5";
Label label5_2 = this.Label5;
size1 = new Size(29, 13);
Size size7 = size1;
label5_2.Size = size7;
this.Label5.TabIndex = 20;
this.Label5.Text = "(min)";
this.Label4.AutoSize = true;
Label label4_1 = this.Label4;
point1 = new Point(16, 145);
Point point8 = point1;
label4_1.Location = point8;
this.Label4.Name = "Label4";
Label label4_2 = this.Label4;
size1 = new Size(107, 13);
Size size8 = size1;
label4_2.Size = size8;
this.Label4.TabIndex = 19;
this.Label4.Text = "Auto notice interval : ";
this.Label2.AutoSize = true;
Label label2_1 = this.Label2;
point1 = new Point(16, 26);
Point point9 = point1;
label2_1.Location = point9;
this.Label2.Name = "Label2";
Label label2_2 = this.Label2;
size1 = new Size(97, 13);
Size size9 = size1;
label2_2.Size = size9;
this.Label2.TabIndex = 3;
this.Label2.Text = "Game server port : ";
TextBox noticeint1 = this.noticeint_;
point1 = new Point(200, 142);
Point point10 = point1;
noticeint1.Location = point10;
this.noticeint_.Name = "noticeint_";
TextBox noticeint2 = this.noticeint_;
size1 = new Size(102, 20);
Size size10 = size1;
noticeint2.Size = size10;
this.noticeint_.TabIndex = 18;
this.noticeint_.Text = "1";
this.noticeint_.TextAlign = HorizontalAlignment.Center;
this.notice1c_.AutoSize = true;
CheckBox notice1c1 = this.notice1c_;
point1 = new Point(316, 171);
Point point11 = point1;
notice1c1.Location = point11;
this.notice1c_.Name = "notice1c_";
CheckBox notice1c2 = this.notice1c_;
size1 = new Size(15, 14);
Size size11 = size1;
notice1c2.Size = size11;
this.notice1c_.TabIndex = 17;
this.notice1c_.UseVisualStyleBackColor = true;
this.notice1_.Enabled = false;
TextBox notice1_1 = this.notice1_;
point1 = new Point(19, 168);
Point point12 = point1;
notice1_1.Location = point12;
this.notice1_.Name = "notice1_";
TextBox notice1_2 = this.notice1_;
size1 = new Size(286, 20);
Size size12 = size1;
notice1_2.Size = size12;
this.notice1_.TabIndex = 16;
this.notice1_.TextAlign = HorizontalAlignment.Center;
this.notice2c_.AutoSize = true;
this.notice2c_.Enabled = false;
CheckBox notice2c1 = this.notice2c_;
point1 = new Point(316, 197);
Point point13 = point1;
notice2c1.Location = point13;
this.notice2c_.Name = "notice2c_";
CheckBox notice2c2 = this.notice2c_;
size1 = new Size(15, 14);
Size size13 = size1;
notice2c2.Size = size13;
this.notice2c_.TabIndex = 15;
this.notice2c_.UseVisualStyleBackColor = true;
this.notice2_.Enabled = false;
TextBox notice2_1 = this.notice2_;
point1 = new Point(19, 194);
Point point14 = point1;
notice2_1.Location = point14;
this.notice2_.Name = "notice2_";
TextBox notice2_2 = this.notice2_;
size1 = new Size(286, 20);
Size size14 = size1;
notice2_2.Size = size14;
this.notice2_.TabIndex = 14;
this.notice2_.TextAlign = HorizontalAlignment.Center;
this.notice3c_.AutoSize = true;
this.notice3c_.Enabled = false;
CheckBox notice3c1 = this.notice3c_;
point1 = new Point(316, 223);
Point point15 = point1;
notice3c1.Location = point15;
this.notice3c_.Name = "notice3c_";
CheckBox notice3c2 = this.notice3c_;
size1 = new Size(15, 14);
Size size15 = size1;
notice3c2.Size = size15;
this.notice3c_.TabIndex = 13;
this.notice3c_.UseVisualStyleBackColor = true;
this.notice3_.Enabled = false;
TextBox notice3_1 = this.notice3_;
point1 = new Point(19, 220);
Point point16 = point1;
notice3_1.Location = point16;
this.notice3_.Name = "notice3_";
TextBox notice3_2 = this.notice3_;
size1 = new Size(286, 20);
Size size16 = size1;
notice3_2.Size = size16;
this.notice3_.TabIndex = 12;
this.notice3_.TextAlign = HorizontalAlignment.Center;
this.notice4c_.AutoSize = true;
this.notice4c_.Enabled = false;
CheckBox notice4c1 = this.notice4c_;
point1 = new Point(316, 249);
Point point17 = point1;
notice4c1.Location = point17;
this.notice4c_.Name = "notice4c_";
CheckBox notice4c2 = this.notice4c_;
size1 = new Size(15, 14);
Size size17 = size1;
notice4c2.Size = size17;
this.notice4c_.TabIndex = 11;
this.notice4c_.UseVisualStyleBackColor = true;
this.notice4_.Enabled = false;
TextBox notice4_1 = this.notice4_;
point1 = new Point(19, 246);
Point point18 = point1;
notice4_1.Location = point18;
this.notice4_.Name = "notice4_";
TextBox notice4_2 = this.notice4_;
size1 = new Size(286, 20);
Size size18 = size1;
notice4_2.Size = size18;
this.notice4_.TabIndex = 10;
this.notice4_.TextAlign = HorizontalAlignment.Center;
ProgressBar progressBar1_1 = this.ProgressBar1;
point1 = new Point(19, 272);
Point point19 = point1;
progressBar1_1.Location = point19;
this.ProgressBar1.Name = "ProgressBar1";
ProgressBar progressBar1_2 = this.ProgressBar1;
size1 = new Size(318, 10);
Size size19 = size1;
progressBar1_2.Size = size19;
this.ProgressBar1.TabIndex = 9;
Button restart1 = this.restart_;
point1 = new Point(130, 288);
Point point20 = point1;
restart1.Location = point20;
this.restart_.Name = "restart_";
Button restart2 = this.restart_;
size1 = new Size(75, 23);
Size size20 = size1;
restart2.Size = size20;
this.restart_.TabIndex = 8;
this.restart_.Text = "RESTART";
this.restart_.UseVisualStyleBackColor = true;
this.stop_.Enabled = false;
Button stop1 = this.stop_;
point1 = new Point(211, 288);
Point point21 = point1;
stop1.Location = point21;
this.stop_.Name = "stop_";
Button stop2 = this.stop_;
size1 = new Size(75, 23);
Size size21 = size1;
stop2.Size = size21;
this.stop_.TabIndex = 7;
this.stop_.Text = "STOP";
this.stop_.UseVisualStyleBackColor = true;
Button start1 = this.start_;
point1 = new Point(49, 288);
Point point22 = point1;
start1.Location = point22;
this.start_.Name = "start_";
Button start2 = this.start_;
size1 = new Size(75, 23);
Size size22 = size1;
start2.Size = size22;
this.start_.TabIndex = 6;
this.start_.Text = "START";
this.start_.UseVisualStyleBackColor = true;
this.Label3.AutoSize = true;
Label label3_1 = this.Label3;
point1 = new Point(16, 78);
Point point23 = point1;
label3_1.Location = point23;
this.Label3.Name = "Label3";
Label label3_2 = this.Label3;
size1 = new Size(60, 13);
Size size23 = size1;
label3_2.Size = size23;
this.Label3.TabIndex = 5;
this.Label3.Text = "Server IP : ";
TextBox ip1 = this.IP_;
point1 = new Point(200, 75);
Point point24 = point1;
ip1.Location = point24;
this.IP_.Name = "IP_";
TextBox ip2 = this.IP_;
size1 = new Size(137, 20);
Size size24 = size1;
ip2.Size = size24;
this.IP_.TabIndex = 4;
this.IP_.Text = "127.0.0.1";
this.IP_.TextAlign = HorizontalAlignment.Center;
TextBox auth1 = this.auth_;
point1 = new Point(200, 49);
Point point25 = point1;
auth1.Location = point25;
this.auth_.Name = "auth_";
TextBox auth2 = this.auth_;
size1 = new Size(137, 20);
Size size25 = size1;
auth2.Size = size25;
this.auth_.TabIndex = 2;
this.auth_.Text = "3154";
this.auth_.TextAlign = HorizontalAlignment.Center;
this.Label1.AutoSize = true;
Label label1_1 = this.Label1;
point1 = new Point(16, 52);
Point point26 = point1;
label1_1.Location = point26;
this.Label1.Name = "Label1";
Label label1_2 = this.Label1;
size1 = new Size(137, 13);
Size size26 = size1;
label1_2.Size = size26;
this.Label1.TabIndex = 1;
this.Label1.Text = "Authentication server port : ";
TextBox game1 = this.game_;
point1 = new Point(200, 23);
Point point27 = point1;
game1.Location = point27;
this.game_.Name = "game_";
TextBox game2 = this.game_;
size1 = new Size(137, 20);
Size size27 = size1;
game2.Size = size27;
this.game_.TabIndex = 0;
this.game_.Text = "3154";
this.game_.TextAlign = HorizontalAlignment.Center;
this.gamec_.Interval = 2000;
this.authc_.Interval = 2000;
this.notice1t_.Interval = 300000;
Button kill1 = this.kill_;
point1 = new Point(18, 303);
Point point28 = point1;
kill1.Location = point28;
this.kill_.Name = "kill_";
Button kill2 = this.kill_;
size1 = new Size(210, 23);
Size size28 = size1;
kill2.Size = size28;
this.kill_.TabIndex = 21;
this.kill_.Text = "SHUT DOWN SERVERS";
this.kill_.UseVisualStyleBackColor = true;
this.notice2t_.Interval = 300000;
this.notice3t_.Interval = 300000;
this.notice4t_.Interval = 300000;
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
Zapp zapp = this;
size1 = new Size(619, 344);
Size size29 = size1;
zapp.ClientSize = size29;
this.Controls.Add((Control) this.kill_);
this.Controls.Add((Control) this.GroupBox2);
this.Controls.Add((Control) this.GroupBox1);
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.Name = "Zapp";
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Zapp Brannigan | Powered by Redemption";
this.GroupBox1.ResumeLayout(false);
this.GroupBox1.PerformLayout();
this.GroupBox2.ResumeLayout(false);
this.GroupBox2.PerformLayout();
this.ResumeLayout(false);
}
[DllImport("User32.dll")]
private static int SetForegroundWindow(IntPtr hwnd);
[DllImport("User32.DLL")]
private static bool ShowWindow(IntPtr hWnd, int nCmdShow);
private void notice1c__CheckedChanged(object sender, EventArgs e)
{
if (this.notice1c_.Checked)
{
this.notice1_.Enabled = true;
this.notice2c_.Enabled = true;
}
else
{
this.notice1_.Enabled = false;
this.notice2c_.Enabled = false;
this.notice2c_.Checked = false;
this.notice3c_.Enabled = false;
this.notice3c_.Checked = false;
this.notice4c_.Enabled = false;
this.notice4c_.Checked = false;
}
}
private void notice2c__CheckedChanged(object sender, EventArgs e)
{
if (this.notice2c_.Checked)
{
this.notice2_.Enabled = true;
this.notice3c_.Enabled = true;
}
else
{
this.notice2_.Enabled = false;
this.notice3c_.Enabled = false;
this.notice3c_.Checked = false;
this.notice4c_.Enabled = false;
this.notice4c_.Checked = false;
}
}
private void notice3c__CheckedChanged(object sender, EventArgs e)
{
if (this.notice3c_.Checked)
{
this.notice3_.Enabled = true;
this.notice4c_.Enabled = true;
}
else
{
this.notice3_.Enabled = false;
this.notice4c_.Enabled = false;
this.notice4c_.Checked = false;
}
}
private void notice5c__CheckedChanged(object sender, EventArgs e)
{
if (this.notice4c_.Checked)
this.notice4_.Enabled = true;
else
this.notice4_.Enabled = false;
}
private void noticeint__TextChanged(object sender, EventArgs e)
{
if (Versioned.IsNumeric((object) this.noticeint_.Text))
return;
this.noticeint_.Text = "";
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Interval numeric only!"));
}
private void save__Click(object sender, EventArgs e)
{
int num = (int) this.logloc_.ShowDialog();
using (StreamWriter streamWriter = new StreamWriter(this.logloc_.SelectedPath + "/Zapp Brannigan.txt", true))
{
try
{
foreach (object obj in this.activity_.Items)
{
string str = Conversions.ToString(obj);
streamWriter.WriteLine(str);
}
}
finally
{
IEnumerator enumerator;
if (enumerator is IDisposable)
(enumerator as IDisposable).Dispose();
}
}
}
private void start__Click(object sender, EventArgs e)
{
this.notice1t_.Interval = checked ((int) Math.Round(unchecked (Conversions.ToDouble(this.noticeint_.Text) * 6000.0)));
this.notice2t_.Interval = checked ((int) Math.Round(unchecked (Conversions.ToDouble(this.noticeint_.Text) * 6000.0)));
this.notice3t_.Interval = checked ((int) Math.Round(unchecked (Conversions.ToDouble(this.noticeint_.Text) * 6000.0)));
this.notice4t_.Interval = checked ((int) Math.Round(unchecked (Conversions.ToDouble(this.noticeint_.Text) * 6000.0)));
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Zapp started!"));
this.notice1t_.Interval = checked ((int) Math.Round(unchecked (Conversions.ToDouble(this.noticeint_.Text) * 60000.0)));
this.notice1t_.Start();
if (this.notice1c_.Checked)
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Auto notice started!"));
this.start_.Enabled = false;
this.stop_.Enabled = true;
this.game_.Enabled = false;
this.auth_.Enabled = false;
this.IP_.Enabled = false;
this.noticeint_.Enabled = false;
this.authc_.Start();
this.notice1t_.Start();
}
private void restart__Click(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Server restarting.."));
this.start_.Enabled = false;
this.stop_.Enabled = false;
this.killGame_();
}
private void stop__Click(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Zapp stopped!"));
this.start_.Enabled = true;
this.stop_.Enabled = false;
this.game_.Enabled = true;
this.auth_.Enabled = true;
this.IP_.Enabled = true;
this.noticeint_.Enabled = true;
this.authc_.Stop();
this.gamec_.Stop();
}
[DllImport("user32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
private static long BringWindowToTop(long hwnd);
private void authc__Tick(object sender, EventArgs e)
{
object Left = (object) false;
object objectValue1 = RuntimeHelpers.GetObjectValue(Interaction.GetObject("winmgmts:", (string) null));
try
{
object Instance1 = objectValue1;
// ISSUE: variable of the null type
__Null local1 = null;
string MemberName1 = "InstancesOf";
object[] Arguments1 = new object[1]
{
(object) "Win32_process"
};
// ISSUE: variable of the null type
__Null local2 = null;
// ISSUE: variable of the null type
__Null local3 = null;
// ISSUE: variable of the null type
__Null local4 = null;
foreach (object obj1 in (IEnumerable) NewLateBinding.LateGet(Instance1, (System.Type) local1, MemberName1, Arguments1, (string[]) local2, (System.Type[]) local3, (bool[]) local4))
{
object objectValue2 = RuntimeHelpers.GetObjectValue(obj1);
// ISSUE: variable of the null type
__Null local5 = null;
System.Type Type = typeof (Strings);
string MemberName2 = "UCase";
object[] objArray1 = new object[1];
object[] objArray2 = objArray1;
int index = 0;
object Instance2 = objectValue2;
object objectValue3 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(Instance2, (System.Type) null, "Name", new object[0], (string[]) null, (System.Type[]) null, (bool[]) null));
objArray2[index] = objectValue3;
object[] objArray3 = objArray1;
object[] Arguments2 = objArray3;
// ISSUE: variable of the null type
__Null local6 = null;
// ISSUE: variable of the null type
__Null local7 = null;
bool[] flagArray = new bool[1]
{
true
};
bool[] CopyBack = flagArray;
object obj2 = NewLateBinding.LateGet((object) local5, Type, MemberName2, Arguments2, (string[]) local6, (System.Type[]) local7, CopyBack);
if (flagArray[0])
NewLateBinding.LateSetComplex(Instance2, (System.Type) null, "Name", new object[1]
{
RuntimeHelpers.GetObjectValue(objArray3[0])
}, (string[]) null, (System.Type[]) null, 1 != 0, 0 != 0);
if (Strings.InStr(Conversions.ToString(obj2), "PRINCESSAURORASERVER.EXE", CompareMethod.Binary) == 1)
{
DateTime.Now.ToString("yyyyMMddHHmmssff");
this.authc_.Stop();
Left = (object) true;
this.authPortC_();
break;
}
}
}
finally
{
IEnumerator enumerator;
if (enumerator is IDisposable)
(enumerator as IDisposable).Dispose();
}
if (Operators.ConditionalCompareObjectEqual(Left, (object) false, false))
{
this.authc_.Stop();
this.gamec_.Stop();
DateTime now = DateTime.Now;
string str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Princess crashed!"));
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Restarting Aurora.."));
try
{
this.q.StartInfo.FileName = "PrincessAuroraServer.exe";
this.q.Start();
Thread.Sleep(1000);
this.AuroraToFront_();
SendKeys.SendWait("start service");
Thread.Sleep(1000);
this.AuroraToFront_();
SendKeys.SendWait("{ENTER}");
Thread.Sleep(1000);
this.AuroraToFront_();
SendKeys.SendWait("set game.open_external 1");
Thread.Sleep(1000);
this.AuroraToFront_();
SendKeys.SendWait("{ENTER}");
str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Princess started!"));
this.authc_.Start();
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Princess failed!"));
this.authc_.Start();
ProjectData.ClearProjectError();
}
}
}
public void AuroraToFront_()
{
Process[] processesByName = Process.GetProcessesByName("PRINCESSAURORASERVER");
if (processesByName.Length <= 0)
return;
Zapp.ShowWindow(processesByName[0].MainWindowHandle, 9);
Zapp.SetForegroundWindow(processesByName[0].MainWindowHandle);
}
public void authPortC_()
{
TcpClient tcpClient = new TcpClient();
try
{
tcpClient.Connect(this.IP_.Text, Conversions.ToInteger(this.auth_.Text));
this.gamec_.Start();
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Auth port closed!"));
this.authc_.Stop();
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Attempting to restart.."));
this.killGame_();
ProjectData.ClearProjectError();
}
}
public void killGame_()
{
this.authc_.Stop();
this.gamec_.Stop();
Interaction.Shell("kill_server.exe", AppWinStyle.MinimizedFocus, false, -1);
this.activity_.Items.Insert(0, (object) (Conversions.ToString(DateTime.Now) + " | Servers killed!"));
this.start_.Enabled = true;
this.authc_.Start();
}
private void gamec__Tick(object sender, EventArgs e)
{
this.notice1t_.Start();
object Left = (object) false;
object objectValue1 = RuntimeHelpers.GetObjectValue(Interaction.GetObject("winmgmts:", (string) null));
try
{
object Instance1 = objectValue1;
// ISSUE: variable of the null type
__Null local1 = null;
string MemberName1 = "InstancesOf";
object[] Arguments1 = new object[1]
{
(object) "Win32_process"
};
// ISSUE: variable of the null type
__Null local2 = null;
// ISSUE: variable of the null type
__Null local3 = null;
// ISSUE: variable of the null type
__Null local4 = null;
foreach (object obj1 in (IEnumerable) NewLateBinding.LateGet(Instance1, (System.Type) local1, MemberName1, Arguments1, (string[]) local2, (System.Type[]) local3, (bool[]) local4))
{
object objectValue2 = RuntimeHelpers.GetObjectValue(obj1);
// ISSUE: variable of the null type
__Null local5 = null;
System.Type Type = typeof (Strings);
string MemberName2 = "UCase";
object[] objArray1 = new object[1];
object[] objArray2 = objArray1;
int index = 0;
object Instance2 = objectValue2;
object objectValue3 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(Instance2, (System.Type) null, "Name", new object[0], (string[]) null, (System.Type[]) null, (bool[]) null));
objArray2[index] = objectValue3;
object[] objArray3 = objArray1;
object[] Arguments2 = objArray3;
// ISSUE: variable of the null type
__Null local6 = null;
// ISSUE: variable of the null type
__Null local7 = null;
bool[] flagArray = new bool[1]
{
true
};
bool[] CopyBack = flagArray;
object obj2 = NewLateBinding.LateGet((object) local5, Type, MemberName2, Arguments2, (string[]) local6, (System.Type[]) local7, CopyBack);
if (flagArray[0])
NewLateBinding.LateSetComplex(Instance2, (System.Type) null, "Name", new object[1]
{
RuntimeHelpers.GetObjectValue(objArray3[0])
}, (string[]) null, (System.Type[]) null, 1 != 0, 0 != 0);
if (Strings.InStr(Conversions.ToString(obj2), "CAPTAINHERLOCKSERVER.EXE", CompareMethod.Binary) == 1)
{
DateTime now = DateTime.Now;
this.gamec_.Stop();
Left = (object) true;
this.gamePortC_();
break;
}
}
}
finally
{
IEnumerator enumerator;
if (enumerator is IDisposable)
(enumerator as IDisposable).Dispose();
}
if (Operators.ConditionalCompareObjectEqual(Left, (object) false, false))
{
this.authc_.Stop();
this.gamec_.Stop();
DateTime now = DateTime.Now;
string str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Herlock closed!"));
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Restarting Herlock.."));
try
{
this.q.StartInfo.FileName = "CaptainHerlockServer.exe";
this.q.Start();
Thread.Sleep(3000);
Interaction.Shell("CaptainHerlockServer.exe", AppWinStyle.MinimizedFocus, false, -1);
this.q.StartInfo.FileName = "UploadServer.exe";
this.q.Start();
str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Herlock started!"));
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Upload started!"));
this.gamec_.Start();
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
str = now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Herlock failed!"));
this.gamec_.Start();
ProjectData.ClearProjectError();
}
}
}
public void gamePortC_()
{
TcpClient tcpClient = new TcpClient();
try
{
tcpClient.Connect(this.IP_.Text, Conversions.ToInteger(this.game_.Text));
DateTime now = DateTime.Now;
this.authc_.Start();
}
catch (Exception ex)
{
ProjectData.SetProjectError(ex);
DateTime now = DateTime.Now;
now.ToString("yyyyMMddHHmmssff");
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Game port closed!"));
this.authc_.Stop();
this.activity_.Items.Insert(0, (object) (Conversions.ToString(now) + " | Attempting to restart.."));
ProjectData.ClearProjectError();
}
}
private void clear__Click(object sender, EventArgs e)
{
this.activity_.Items.Clear();
}
private void kill__Click(object sender, EventArgs e)
{
this.killGame_();
this.authc_.Stop();
this.gamec_.Stop();
this.notice1t_.Stop();
this.notice2t_.Stop();
this.notice3t_.Stop();
this.notice4t_.Stop();
this.game_.Enabled = true;
this.auth_.Enabled = true;
this.IP_.Enabled = true;
this.noticeint_.Enabled = true;
this.stop_.Enabled = false;
}
public void HerlockToFront()
{
Process[] processesByName = Process.GetProcessesByName("CAPTAINHERLOCKSERVER");
if (processesByName.Length <= 0)
return;
Zapp.ShowWindow(processesByName[0].MainWindowHandle, 9);
Zapp.SetForegroundWindow(processesByName[0].MainWindowHandle);
}
private void notice1t__Tick(object sender, EventArgs e)
{
if (this.notice1c_.Checked)
{
this.notice1t_.Stop();
Thread.Sleep(1000);
this.HerlockToFront();
Thread.Sleep(1000);
SendKeys.SendWait("#notice " + this.lahti_ + this.jutu_ + this.notice1_.Text + this.jutu_ + this.kinni_);
Thread.Sleep(1000);
this.HerlockToFront();
SendKeys.SendWait("{ENTER}");
this.notice2t_.Start();
}
else
{
this.notice1t_.Stop();
this.notice2t_.Start();
}
}
private void notice2t__Tick(object sender, EventArgs e)
{
if (this.notice2c_.Checked)
{
this.notice2t_.Stop();
this.HerlockToFront();
SendKeys.SendWait("#notice " + this.lahti_ + this.jutu_ + this.notice2_.Text + this.jutu_ + this.kinni_);
Thread.Sleep(1000);
this.HerlockToFront();
SendKeys.SendWait("{ENTER}");
this.notice3t_.Start();
}
else
{
this.notice2t_.Stop();
this.notice3t_.Start();
}
}
private void notice3t__Tick(object sender, EventArgs e)
{
if (this.notice3c_.Checked)
{
this.notice3t_.Stop();
this.HerlockToFront();
SendKeys.SendWait("#notice " + this.lahti_ + this.jutu_ + this.notice3_.Text + this.jutu_ + this.kinni_);
Thread.Sleep(1000);
this.HerlockToFront();
SendKeys.SendWait("{ENTER}");
this.notice4t_.Start();
}
else
{
this.notice3t_.Stop();
this.notice4t_.Start();
}
}
private void notice4t__Tick(object sender, EventArgs e)
{
if (this.notice4c_.Checked)
{
this.notice4t_.Stop();
this.HerlockToFront();
SendKeys.SendWait("#notice " + this.lahti_ + this.jutu_ + this.notice4_.Text + this.jutu_ + this.kinni_);
Thread.Sleep(1000);
this.HerlockToFront();
SendKeys.SendWait("{ENTER}");
this.notice1t_.Start();
}
else
{
this.notice4t_.Stop();
this.notice1t_.Start();
}
}
private void Zapp_Load(object sender, EventArgs e)
{
if (!MyProject.Computer.FileSystem.FileExists(Application.StartupPath + "/kill_server.exe"))
MyProject.Computer.Network.DownloadFile("http://rappelz-redemption.com/safe_downloads/kill_server.exe", Application.StartupPath + "/kill_server.exe");
if (MyProject.Computer.FileSystem.FileExists(Application.StartupPath + "/captainherlockserver.exe"))
return;
int num = (int) Interaction.MsgBox((object) "No CaptainHerlockServer.exe, PrincessAuroraServer.exe, UploadServer.exe detected!\r\n\r\nQuitting!", MsgBoxStyle.Critical, (object) "Error!");
this.Dispose();
}
}
}
Oh yeah, your Source is so saved... *cough*
09/16/2012, 21:52
#4
elite*gold: 0
Join Date: Aug 2011
Posts: 532
Received Thanks: 233
Enjoy. Decompiling is easy so I don't find the reason why you are so proud of yourself.
10/27/2012, 16:15
#5
elite*gold: 0
Join Date: Sep 2012
Posts: 8
Received Thanks: 0
Command for Visual Basic
Hi would it be possible to have a command to return to the visual, I'm developing on my gm tool but I do not command, thank you ?
Nous Rejoindres
Site Officiel / Website Official :
Forum Officiel / Forum Official :
Ultime - Team
10/28/2012, 12:05
#6
elite*gold: 0
Join Date: Jun 2010
Posts: 573
Received Thanks: 163
If you are talking about using the telnetinterface:
You have to write your commands in a special way or generate a lua for it. There is no way to let the console return any values. You can just pull them by saving the return value in an "env". You can get envs via telnet.
You can use set_env(var,"val") in lua und use get var via telnet.
e.g.
--lua on_login --
set_env("last_login",gv("name"))
-- telnet --
get last_login
So each time a player is logging in the variable will contain his name and you can get the name of the most recent logged in player.
Similar Threads
[Public release] Zoidberg, the new GM tool
10/27/2012 - Rappelz Private Server - 51 Replies
http://www.elitepvpers.com/forum/rappelz-private-s erver/2200547-gm-tool-zoidberg-edacious-previous-z oidberg-reincarnated.html
[RELEASE] Server Monitor
05/20/2012 - Rappelz Private Server - 5 Replies
Hello everyone, here's an little tool you can monitor your server with.
Please enjoy it.
http://download.revolutionary-group.net/Server_In fo.zip
** No viruses, No screenshot.
*** want it? download it!
Also :
LEECH EOIN Hack Tool Public Release..
11/07/2010 - Soldier Front Philippines - 2 Replies
NSTRUCTION READ CAREFULLY BEFORE YOU PROCEED THE ECOIN_HACK_TOOL
1. DOWNLOAD THE FILE BELOW
2. OPEN THE ECOIN_HACK_TOOL AND RUN
3. LOG IN YOUR ACCOUNT
4. THEN CLICK CHOOSE AMOUNT DOWN ARROW
5. CHOOSE ECOINS WHAT YOU WANT 20 TO 500 CHOOSEN
6. THEN CLICK GET ECOINS
7. JUST WAIT FOR THE LOADING ECOIN
8. THEN THERE'S A POP UP WINDOW JUST CLICK CONTINUE TO GET ECOIN.
[NA Tool]Skill XP Monitor
01/05/2009 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 157 Replies
I figured I'd go ahead and post this, it shows you how much skill XP you gained during the last attack as well as how much skill XP you currently have (sword/magic)
all you have to do is start it and press F1, press F10 to close it.
obviously the hotkeys dont work ingame as its just autoit.
it looks for cabalmain.exe so if you renamed your bypass then it wont work.
excuse the flickering... i was too lazy to care about it.
tech support is minimal as the ease of use is infinite. start...
All times are GMT +2. The time now is 19:26 .