Help/set commands

Posts 1–6 of 6 · Page 1 of 1
/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.
Doesn't work because you copy+pasted it xd. Your suppose to use it like this /ninja


you could make it so you use it like this : /set <classname>, but i'm not gonna dig up some old files no more.
Quote Originally Posted by Demon View Post
Doesn't work because you copy+pasted it xd. Your suppose to use it like this /ninja


you could make it so you use it like this : /set <classname>, but i'm not gonna dig up some old files no more.
I know. When I use /ninja (for example) it says Unknown Command.
Do you have the block of code placed correctly inside one of the pre-existing command files? Did you build your server solution after doing so?
Quote Originally Posted by Invader_Zim View Post
Do you have the block of code placed correctly inside one of the pre-existing command files? Did you build your server solution after doing so?
Yes, inside AdminCommands.cs
bump
sdddsss
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?