internal class ClearAllCommand : Command
{
public ClearAllCommand()
: base("cai", 0)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
player.Inventory[0] = null;
player.Inventory[1] = null;
player.Inventory[2] = null;
player.Inventory[3] = null;
player.Inventory[4] = null;
player.Inventory[5] = null;
player.Inventory[6] = null;
player.Inventory[7] = null;
player.Inventory[8] = null;
player.Inventory[9] = null;
player.Inventory[10] = null;
player.Inventory[11] = null;
player.Inventory[12] = null;
player.Inventory[13] = null;
player.Inventory[14] = null;
player.Inventory[15] = null;
player.Inventory[16] = null;
player.Inventory[17] = null;
player.Inventory[18] = null;
player.Inventory[19] = null;
player.UpdateCount++;
return true;
}
}
internal class ClearCommand : Command
{
public ClearCommand()
: base("ci", 0)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
player.Inventory[4] = null;
player.Inventory[5] = null;
player.Inventory[6] = null;
player.Inventory[7] = null;
player.Inventory[8] = null;
player.Inventory[9] = null;
player.Inventory[10] = null;
player.Inventory[11] = null;
player.UpdateCount++;
return true;
}
}