Results 1 to 13 of 13
  1. #1
    Omniraptor's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    278
    Reputation
    13
    Thanks
    431
    My Mood
    Inspired

    [FSOD] Pet Size Command

    Here is a super good pet size command that I had laying around. I saw someone asked for it somewhere so decided to just go ahead and release it.

    Just add it in wserver\realm\commands\AdminCommands


    Code:
    internal class PetSizeCommand : Command
        {
            public PetSizeCommand()
                : base("PetSize", 1)
            {
            }
    
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                try
                {
                    if (args.Length == 0)
                    {
                        player.SendHelp("Use /petsize <Pet Size>");
                    }
                    if (args.Length == 1)
                    {
                        player.Pet.Size = int.Parse(args[0]);
                        player.UpdateCount++;
                        player.SendInfo("Success!");
                    }
                }
                catch
                {
                    player.SendError("Error!");
                    return false;
                }
                return true;
            }
        }
    any news on dj manual knees?

  2. The Following User Says Thank You to Omniraptor For This Useful Post:

    Daemonmann (06-03-2016)

  3. #2
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    wow u pig noob i was gonna release this tomorrow because i saw the same thread of someone asking for it xD

     








  4. The Following User Says Thank You to Riigged For This Useful Post:

    lkdjnfoskjednfblksjdfn (06-04-2016)

  5. #3
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Tip: Make sure you have a limit of between 0 and 100 exclusive. This will save your server from problems
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  6. #4
    SwitchBot's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    140
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by Omniraptor View Post
    Here is a super good pet size command that I had laying around. I saw someone asked for it somewhere so decided to just go ahead and release it.

    Just add it in wserver\realm\commands\AdminCommands


    Code:
    internal class PetSizeCommand : Command
        {
            public PetSizeCommand()
                : base("PetSize", 1)
            {
            }
    
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                try
                {
                    if (args.Length == 0)
                    {
                        player.SendHelp("Use /petsize <Pet Size>");
                    }
                    if (args.Length == 1)
                    {
                        player.Pet.Size = int.Parse(args[0]);
                        player.UpdateCount++;
                        player.SendInfo("Success!");
                    }
                }
                catch
                {
                    player.SendError("Error!");
                    return false;
                }
                return true;
            }
        }
    Thanks for the code!

  7. #5
    Omniraptor's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    278
    Reputation
    13
    Thanks
    431
    My Mood
    Inspired
    Quote Originally Posted by Riigged View Post
    wow u pig noob i was gonna release this tomorrow because i saw the same thread of someone asking for it xD
    sanic fast
    any news on dj manual knees?

  8. #6
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    Quote Originally Posted by Omniraptor View Post
    sanic fast
    i guess i need to..... GIT FAST 8]

     








  9. #7
    Daemonmann's Avatar
    Join Date
    May 2015
    Gender
    male
    Location
    Santo André - SP
    Posts
    236
    Reputation
    10
    Thanks
    14
    My Mood
    Bored
    Whoa man, thanks for this , that's a good command xD


    | Welcome to My Signature |

    |Thanks Friends|



     


    !Thanks Skilly!



    !Thanks Skilly!



    !Thanks Skilly!




     



     









    | !Daemon Realms Resurrected! |




  10. #8
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Riigged View Post
    wow u pig noob i was gonna release this tomorrow because i saw the same thread of someone asking for it xD
    dude, everytime something gets released you mention you was gonna post it xDD Just DO IT

  11. #9
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    Quote Originally Posted by thenired View Post
    dude, everytime something gets released you mention you was gonna post it xDD Just DO IT
    2nd time I said that xD maybe 3rd but It was posted at like 11:00 where I'm at or even later I think so I was tired and was planning on releasing when I woke up

     








  12. #10
    B3CLAWED's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    143
    Reputation
    10
    Thanks
    57
    My Mood
    Busy
    I remember when I created this command like 6 months ago XD

  13. #11
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Riigged View Post
    2nd time I said that xD maybe 3rd but It was posted at like 11:00 where I'm at or even later I think so I was tired and was planning on releasing when I woke up
    nice m9

    - - - Updated - - -

    Quote Originally Posted by B3CLAWED View Post
    I remember when I created this command like 6 months ago XD
    "created." nice. Did you keep it in a cage?

  14. #12
    Chiroy's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    127.0.0.1:80
    Posts
    1,500
    Reputation
    28
    Thanks
    2,295
    Quote Originally Posted by Omniraptor View Post
    sanic fast
    nice to see your back or maybe not back but well

  15. #13
    Lxys's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    England.
    Posts
    1,156
    Reputation
    208
    Thanks
    2,235
    My Mood
    Devilish
    I do suggest having
    Code:
    Player.Pet.UpdateCount++
    as it will update the pet size instantly without it being until you move.
    Specs
    Motherboard - Asus Z170-P
    CPU- Intel Core i5 6500
    SSD - Samsung SM951
    Ram - 8 GB (2 x 4 DDR2)
    HDD - Random 500GB One
    GPU - Integrated i5 (Intel HD Graphics 530)
    OS - Win10

Similar Threads

  1. [Command] [FSOD] Vanish Command
    By Daemonmann in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 44
    Last Post: 12-05-2017, 04:10 PM
  2. [Solved] PetSize/Size Command?
    By DBFunx in forum Realm of the Mad God Private Servers Help
    Replies: 8
    Last Post: 06-03-2016, 06:03 AM
  3. [Solved] Command similar to Nilly's /warg command (turn into enemies) [fsod] plz
    By Narwallz in forum Realm of the Mad God Private Servers Help
    Replies: 10
    Last Post: 05-31-2016, 06:21 PM
  4. [FSOD - Source] Prod like Healing Pets
    By sebastianfra12 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 4
    Last Post: 05-03-2016, 12:09 PM
  5. Demon of some commands
    By HolyFate in forum Gunz Hacks
    Replies: 12
    Last Post: 02-21-2006, 01:43 PM