Help with command.
Can someone make that code for me, when slots 1,2,3 and 4 is not free that the command won't give the set?
HELP
Code:
internal class Wizard : Command
{
public Wizard()
: base("wizard", 0)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
try
{
player.Inventory[4] = player.Manager.GameData.Items[0xaa2]; // Astral
player.Inventory[5] = player.Manager.GameData.Items[0xa30]; // MNova
player.Inventory[6] = player.Manager.GameData.Items[0xa96]; // Elder
player.Inventory[7] = player.Manager.GameData.Items[0xacd]; // Exa HP
player.UpdateCount++;
player.SendInfo("Success");
}
catch
{
player.SendError("Error while giving set!");
return false;
}
return true;
}
}

)