Results 1 to 9 of 9
  1. #1
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14

    [Fab] PetMax command!

    This command just maxes your pet level :3 Put it in admincommands.cs
    Code:
        internal class PetMaxCommand : Command
        {
            public PetMaxCommand()
                : base("petmax", 1)
            {
            }
    
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                Item feed = player.Manager.GameData.Items[0x9d4];
                for (int i = 0; i < 50; i++)
                {
                    player.Pet.Feed(feed);
                    player.Pet.UpdateCount++;
                }
                return true;
            }
        }

  2. The Following 2 Users Say Thank You to Caesar1928 For This Useful Post:

    BlackRayquaza (11-15-2015),Stellar Spark (11-15-2015)

  3. #2
    BlackRayquaza's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    574
    Reputation
    10
    Thanks
    186
    My Mood
    In Love
    Useful for lazy people I guess.
    YEP cock

  4. #3
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by BlackRayquaza View Post
    Useful for lazy people I guess.
    Yup all them complainers on my server wanted it...

  5. #4
    ossimc82's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    496
    Reputation
    42
    Thanks
    887
    My Mood
    In Love
    Maybe a little improvement to reduce CPU usage?

    1. Replace in db/IFeedable.cs
    Code:
    ushort FeedPower { get; set; }
    with:
    Code:
    int FeedPower { get; set; }

    2. Replace in db/data/Descriptors.cs
    Code:
    public ushort FeedPower { get; set; }
    with:
    Code:
    public int FeedPower { get; set; }

    3. Add your command
    Code:
    internal class PetMaxCommand : Command
    {
        public PetMaxCommand()
            : base("petmax", 1)
        {
        }
    
        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            if (player.Pet == null) return false;
            player.Pet.Feed(new PetFoodNomNomNom());
            player.Pet.UpdateCount++;
            return true;
        }
    
        private class PetFoodNomNomNom : IFeedable
        {
            public int FeedPower { get; set; }
    
            public PetFoodNomNomNom()
            {
                FeedPower = Int32.MaxValue;
            }
        }
    }

  6. The Following 7 Users Say Thank You to ossimc82 For This Useful Post:

    [MPGH]Ahl (11-15-2015),BlackRayquaza (11-15-2015),HGAEHaeheadhetdhtertherh (11-16-2015),lkdjnfoskjednfblksjdfn (11-26-2015),Lxys (11-27-2015),Riigged (11-15-2015),Stellar Spark (11-15-2015)

  7. #5
    Slendergo's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    382
    Reputation
    17
    Thanks
    250
    My Mood
    Inspired
    Quote Originally Posted by ossimc82 View Post
    Maybe a little improvement to reduce CPU usage?

    1. Replace in db/IFeedable.cs
    Code:
    ushort FeedPower { get; set; }
    with:
    Code:
    int FeedPower { get; set; }

    2. Replace in db/data/Descriptors.cs
    Code:
    public ushort FeedPower { get; set; }
    with:
    Code:
    public int FeedPower { get; set; }

    3. Add your command
    Code:
    internal class PetMaxCommand : Command
    {
        public PetMaxCommand()
            : base("petmax", 1)
        {
        }
    
        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            if (player.Pet == null) return false;
            player.Pet.Feed(new PetFoodNomNomNom());
            player.Pet.UpdateCount++;
            return true;
        }
    
        private class PetFoodNomNomNom : IFeedable
        {
            public int FeedPower { get; set; }
    
            public PetFoodNomNomNom()
            {
                FeedPower = Int32.MaxValue;
            }
        }
    }
    still loving the name PetFoodNomNomNom have since i fist saw it

  8. #6
    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 ossimc82 View Post
    Maybe a little improvement to reduce CPU usage?

    1. Replace in db/IFeedable.cs
    Code:
    ushort FeedPower { get; set; }
    with:
    Code:
    int FeedPower { get; set; }

    2. Replace in db/data/Descriptors.cs
    Code:
    public ushort FeedPower { get; set; }
    with:
    Code:
    public int FeedPower { get; set; }

    3. Add your command
    Code:
    internal class PetMaxCommand : Command
    {
        public PetMaxCommand()
            : base("petmax", 1)
        {
        }
    
        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            if (player.Pet == null) return false;
            player.Pet.Feed(new PetFoodNomNomNom());
            player.Pet.UpdateCount++;
            return true;
        }
    
        private class PetFoodNomNomNom : IFeedable
        {
            public int FeedPower { get; set; }
    
            public PetFoodNomNomNom()
            {
                FeedPower = Int32.MaxValue;
            }
        }
    }
    "PetFoodNomNomNom" lmao.

  9. #7
    Yul0627's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    3
    My Mood
    Amused
    i dont have a admincommands.cs.....

  10. #8
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by Yul0627 View Post
    i dont have a admincommands.cs.....
    not sure why you bumped this. Either way, it doesnt matter which command file you put it in.

  11. #9
    Moorz's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Location
    Behind a computer
    Posts
    245
    Reputation
    10
    Thanks
    16
    another post bumped that i didnt notice lol, i was gonna say this came with Edited FSOD source by Drake Games

Similar Threads

  1. [Fab] Simple calculator command
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 7
    Last Post: 11-09-2015, 09:31 AM
  2. [Fab] Simple /kickall command
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 8
    Last Post: 11-07-2015, 02:11 PM
  3. [Fab] Gamble command (rolls number 1-100)
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 6
    Last Post: 10-31-2015, 03:27 PM
  4. Warrock Command List
    By Dave84311 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-26-2006, 11:03 PM
  5. Demon of some commands
    By HolyFate in forum Gunz Hacks
    Replies: 12
    Last Post: 02-21-2006, 01:43 PM