Пример #1
0
        private CommandResult Command_setrace(WorldClient client, MabiCreature creature, string[] args, string msg)
        {
            if (args.Length < 2)
                return CommandResult.WrongParameter;

            ushort raceId = 0;
            if (!ushort.TryParse(args[1], out raceId))
                return CommandResult.Fail;

            creature.Race = raceId;

            Send.ServerMessage(client, creature, Localization.Get("gm.setrace")); // Your race has been changed. You'll be logged out to complete the process.

            client.Disconnect(3);

            return CommandResult.Okay;
        }