SolvedPetSize/Size Command?

Posts 1–9 of 9 · Page 1 of 1
PetSize/Size Command?
Does anyone know how to make a petsize/size command. I have no idea how to make a size/petsize command so i turned to MGPH does anyone know how tutorials anything? thanks
PetSize / Size command? elaborate

AND FOR THE FUCKING LOVE OF GOD THIS ISN'T A FUCKING HELP REQUEST YOU JUST WANT SOMETHING TO BE DONE FOR YOU.

Just learn yourself nigga or make something and if you need help building it I can help but for fuck sake asking for shit to be done for you is fucking pussy.


- - - Updated - - -

I am guessing that you meant the SiZe of the player/pet so here

I present to you /size

Usage :: /size <Playername> <PlayerOrPet> <Amount>

Example :: /size TheFirstSin player 200
(it would make me size 200)

Example :: /size TheFirstSin pet 200
(it would make my pet size 200)

 
CODE

Code:
        internal class Size : Command
    { public Size() : base("size", 1){}
        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            if (args.Length != 3)
            {
                player.SendHelp("Usage: /size <Playername> <PlayerOrPet> <Amount>");
                return false;
            }
            foreach (KeyValuePair<string, Client> i in player.Manager.Clients
                .Where (i => i.Value.Player.Name.EqualsIgnoreCase(args[0])))
            {
                int size;
                if (!int.TryParse(args[2], out size))
                {
                    player.SendError("Invalid Amount");
                    return false;
                }
                switch(args[1].ToLower())
                {
                    case "player":
                        if (!string.Equals(player.Name.ToLower(), args[0].ToLower()))
                        {
                            i.Value.Player.Size = size;
                            return true;
                        }
                        player.Size = size;
                        return true;
                    case "pet":
                        if (!string.Equals(player.Name.ToLower(), args[0].ToLower()))
                        {
                            i.Value.Player.Pet.Size = size;
                            return true;
                        }
                        player.Pet.Size = size;
                        return true;
                    default:
                        player.SendError("Player or Pet");
                        return false;
                }
            }
            player.SendError($"Player {args[0]} could not be found");
            return false;
        }
    }


Any questions or concerns PM me @</The First Sin/>
After running the command, size does not change.
Quote Originally Posted by SwitchBot View Post
After running the command, size does not change.
Don't listen to a single thing The First Sin tells you. He/she just makes ugly, messy, unorganized code that doesn't function properly but his/her big ass ego doesn't let him/her notice it.
Quote Originally Posted by Riigged View Post
Don't listen to a single thing The First Sin tells you. He/she just makes ugly, messy, unorganized code that doesn't function properly but his/her big ass ego doesn't let him/her notice it.
Only other players see you as big. You see yourself as regular.
Quote Originally Posted by SwitchBot View Post
Only other players see you as big. You see yourself as regular.
Exactly. Back to my last comment "Doesn't function properly".
Maybe tomorrow I will release a command for it that works on ALL povs, lol, considering I already have had it made for about 2 months now.
i had one before just never tested because of thinking it was bugged but thanks anyways @The First Sin
//solved @Danny @Nyaro's Panda @Luis
Quote Originally Posted by DBFunx View Post
i had one before just never tested because of thinking it was bugged but thanks anyways @The First Sin
//solved @Danny @Nyaro's Panda @Luis
Omniraptor just released one, and it works, I am assuming.
/closed solved
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us