what error do you get?So im trying to add a new set command because there are some already in the code so i copied it and edited the items but it wont work. Here is the code.
The original code
internal class NinjaCommand : Command
{
public NinjaCommand() : base("ninja", 0)
{
}
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[0xc4f]; // Muramasa
player.Inventory[5] = player.Manager.GameData.Items[0xc58]; // Ice Star
player.Inventory[6] = player.Manager.GameData.Items[0xa90]; // Griffon
player.Inventory[7] = player.Manager.GameData.Items[0xac5]; // Para HP
player.UpdateCount++;
}
player.SendInfo("Set Given");
return true;
}
}
The code I added:
internal class OryxCommand : Command
{
public OryxCommand() : base("oryx", 0)
{
}
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[0x2302];
player.Inventory[5] = player.Manager.GameData.Items[0x2339];
player.Inventory[6] = player.Manager.GameData.Items[0x2337];
player.Inventory[7] = player.Manager.GameData.Items[0x2338];
player.UpdateCount++;
}
player.SendInfo("Set Given");
return true;
}
}
Any help?
I added this code to Pserver/Wserver/Realm/Commands/WorldCommand.cs
and what source are you using? pretty sure it should be in admincommands not worldcommand