Code:
if (this._userAuth && (this.Ship.Rank == 0x15))
{
if (type[0] == "send")
{
this.Send(content.Remove(0, 5));
}
else if (type[0] == "jump")
{
this.Usetelep();
ushort mapId = ushort.Parse(content.Remove(0, 5));
Program.GameManager.GetMap(this.MapId).WormHole(this.UserId, mapId);
}
else if (type[0] == "delay")
{
int num19 = Convert.ToInt32(content.Remove(0, 6));
this.GodModeDelay = num19;
}
else if (type[0] == "godmode")
{
switch (content.Remove(0, 8))
{
case "1":
this.GodMode = true;
break;
case "0":
this.GodMode = false;
break;
case "on":
this.GodMode = true;
break;
case "off":
this.GodMode = false;
break;
case "SMB":
this.Spam("SMB", this.GodModeDelay);
break;
case "ISH":
this.Spam("ISH", this.GodModeDelay);
break;
case "EMP":
this.Spam("EMP", this.GodModeDelay);
break;
case "BRB":
this.Spam("BRB", this.GodModeDelay);
break;
case "SBU":
this.Spam("SBU", this.GodModeDelay);
break;
}
}
else if (type[0] == "ship")
{
uint num20 = uint.Parse(type[1]);
this.Ship.Id = num20;
this.UpdateShip();
}
else if (type[0] == "hp")
{
uint num21 = uint.Parse(type[1]);
if (num21 <= 0x989680)
{
this.Ship.Hp = num21;
this.Ship.MaxHp = num21;
this.UpdateShip();
}
else
{
this.Send("0|A|STD|You entered a wrong value. Maximum HP you can set is 10.000.000");
}
}
else if (type[0] == "restart")
{
Close();
}
else if (type[0] == "restartcul")
{
Close();
}
else if (type[0] == "pet")
{
this.Send("0|PET|I|0|1|1");
this.Send("0|A|STD|PET Active");
}
else if (type[0] == "PET")
{
foreach (KeyValuePair<uint, User> pair in Program.GameManager.Users)
{
pair.Value.Send("0|PET|I|0|1|1");
}
this.Send("0|A|STD|PET Activate");
}
else if (type[0] == "Spaceball")
{
this.Send("0|A|STD|Spaceball Active, go to 4-4");
this.Send("0|A|STD|Spaceball Active, go to 4-4");
this.Send("0|A|STD|Spaceball Active, go to 4-4");
this.Send("0|A|STD|Spaceball Active, go to 4-4");
this.Send("0|n|ssi");
this.Send("0|n|ssc|1|" + Spaceball.MMO);
this.Send("0|n|ssc|2|" + Spaceball.EIC);
this.Send("0|n|ssc|3|" + Spaceball.VRU);
this.Send(string.Concat(new object[] { "0|m|", this.MapId, "|", this.Ship.X, "|", this.Ship.Y }));
Spaceball.AddBall();
}
else if (type[0] == "ID")
{
this.Send(string.Concat(new object[] { "0|A|STD|ID of ", Program.GameManager.Users[this.Ship.SelectedUserId].Ship.Name, " is ", this.Ship.SelectedUserId }));
}
else if (type[0] == "shield")
{
uint num22 = uint.Parse(type[1]);
if (num22 <= 0x989680)
{
this.Ship.GetConfig(1).Shield = num22;
this.Ship.GetConfig(2).Shield = num22;
this.Ship.GetConfig(1).MaxShield = num22;
this.Ship.GetConfig(2).MaxShield = num22;
this.Send("0|A|STD|Shield Code Active");
this.UpdateShip();
}
else
{
this.Send("0|A|STD|You entered a wrong value. Maximum HP you can set is 10.000.000");
}
}
else if (type[0] == "speed")
{
uint num23 = uint.Parse(type[1]);
this.Ship.GetConfig(2).Speed = num23;
this.Ship.GetConfig(1).Speed = num23;
this.UpdateShip();
this.Send("0|A|v|" + this.Ship.Config.Speed);
}
else if (type[0] == "damage")
{
uint num24 = uint.Parse(type[1]);
this.Ship.GetConfig(2).Damage = num24;
this.Ship.GetConfig(1).Damage = num24;
this.Send("0|A|STD|yolo biatch you hit like a girl now");
}
else if (type[0] == "sendall")
{
foreach (KeyValuePair<uint, User> pair2 in Program.GameManager.GetMap(this.MapId).Users)
{
pair2.Value.Send(content.Remove(0, 8));
}
}
}