|
#region GMs PMs
if (client.Account.State == 3)
{
switch (Data[0])
{
default:
{
// return (client.CheckCommand(_message));
client.CheckCommand(_message);
break;
}
case "ban":
{
foreach (var Client in Program.GamePool)
{
//if (Client.Account.State >= client.Account.State) continue;
if (Client.Entity.LoweredName.Contains(Data[1]))
{
Client.Account.State = Database.AccountTable.AccountState.Banned;
Client.Account.SaveState();
Client.Disconnect();
Kernel.SendWorldMessage(new Message(client.Account.State.ToString() + " " + client.Entity.Name + " has banned the player " + Client.Entity.Name, GamePackets.Message.Center));
break;
}
}
break;
}
case "restart":
{
Program.Save();
Program.CommandsAI("@restart");
break;
}
case "bring":
{
foreach (var pClient in Program.GamePool)
{
if (pClient.Entity.LoweredName.Contains(Data[1]) || Data[1].ToLower() == "all")
if (Data[1].ToLower() == "all")
{
pClient.Entity.Teleport(client.Entity.MapID,
(ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
(ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5));
}
else
pClient.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y);
}
break;
}
case "superhero":
{
client.Entity.Defence = ushort.MaxValue;
client.Entity.MagicDefence = ushort.MaxValue / 2;
client.Entity.MagicDefence = ushort.MaxValue / 2;
client.Entity.Dodge = byte.MaxValue;
client.Entity.Vigor = ushort.MaxValue;
client.Entity.ExtraVigor = ushort.MaxValue;
client.Entity.MagicAttack = uint.MaxValue / 2;
client.Entity.MagicAttack = uint.MaxValue / 2;
client.Entity.WoodResistance = ushort.MaxValue;
client.Entity.FireResistance = ushort.MaxValue;
client.Entity.WaterResistance = ushort.MaxValue;
client.Entity.EarthResistance = ushort.MaxValue;
client.Entity.Breaktrough = ushort.MaxValue;
client.Entity.CriticalStrike = ushort.MaxValue;
client.Entity.Immunity = ushort.MaxValue;
client.Entity.Penetration = ushort.MaxValue;
client.Entity.Counteraction = ushort.MaxValue;
client.Entity.Block = ushort.MaxValue;
client.Entity.Detoxication = ushort.MaxValue;
client.Entity.Intensification = ushort.MaxValue;
client.Entity.Penetration = ushort.MaxValue;
client.Entity.SkillCStrike = ushort.MaxValue;
client.Entity.MaxAttack = uint.MaxValue;
client.Entity.MinAttack = uint.MaxValue;
client.Entity.PhysicalDamageDecrease = ushort.MaxValue;
client.Entity.MagicDamageDecrease = ushort.MaxValue;
client.Entity.MagicDamageIncrease = ushort.MaxValue;
client.Entity.PhysicalDamageIncrease = ushort.MaxValue;
client.Entity.MagicDefencePercent = ushort.MaxValue;
client.Entity.ItemHP = ushort.MaxValue;
client.Entity.ItemMP = ushort.MaxValue;
client.Entity.ItemBless = ushort.MaxValue;
client.Entity.AttackRange = ushort.MaxValue;
client.Entity.BaseMinAttack = uint.MaxValue;
client.Entity.BaseMaxAttack = uint.MaxValue;
client.Entity.BaseMagicDefence = uint.MaxValue;
client.Entity.BaseDefence = ushort.MaxValue;
client.Entity.MagicDamageIncrease = ushort.MaxValue;
client.Entity.MaxHitpoints = uint.MaxValue;
//client.Player.Hitpoints = uint.MaxValue;
break;
}
}
return true;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة ارجو حلها | kimooo1 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-14 08:37 PM |
ارجو الحل | Bayoumi | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-03-31 07:08 PM |
ارجو الحل | TiTo1 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-03-30 06:43 PM |
ارجو حل المشكلة دى | osama | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-06-14 09:27 AM |