/set commands
Hey!
So I made these /set commands on my FSOD server and I can't figure why it doesn't work.
Here's an example of one set
internal class NinjaCommand : Command
{
public NinjaCommand()
: base("ninja", 1)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
for (int i = 0; i < player.Inventory.Length; i++)
{
player.Inventory[4] = player.Manager.GameData.Items[0x915]; // Ray Katana
player.Inventory[5] = player.Manager.GameData.Items[0xc59]; // Doom Circle
player.Inventory[6] = player.Manager.GameData.Items[0x9c3]; // Leviathan Armor
player.Inventory[7] = player.Manager.GameData.Items[0x913]; // Crown
player.Inventory[8] = player.Manager.GameData.Items[0x916]; // Midnight Star
player.UpdateCount++;
}
player.SendInfo("Ninja set was given.");
return true;
}
}
and when you try to execute the command it says "Unknown Command" as if it doesn't read it.
please help.