😎 Pet Levels Closer to Prod Tutorial [Fabiano Source]

Posts 1–12 of 12 Β· Page 1 of 1
😎 Pet Levels Closer to Prod Tutorial [Fabiano Source]
So I haven't seen anywhere on the forums where anybody has tried to edit the pet's heal and magic heal per levels. I haven't gotten it quite down where they gain the stats per levels but I made it so that the max level is the max hp for that level. If I'm confusing you I mean, level 70 rare pet, 40 heal instead of 69 now and so forth. Uncommon max is 23 heal, 8 magic heal. You get the point. This is only for players who want it to be more like the prod leveling system. I didn't have a problem with the one Ossimc had but I just wanted to mess with it. The only thing is that the divine pets say they heal 69 and magic heal 33 but they just do it at a faster rate. I couldn't figure out how to make the divine 90, 45 yet at level 100.

Here is the code for the hp:
(replace this code with the code that looks similar in wServer>logic>behaviors>PetBehaviors>PetHealHp.cs)
Code:
        private int CalculateHeal(int level, ref int cooldown)
        {
            if (Enumerable.Range(0, 30).Contains(level))
            {
                cooldown = 6000;
                return 10;
            }
            if (Enumerable.Range(30, 20).Contains(level))
            {
                cooldown = 5000;
                return 13;
            }
            if (Enumerable.Range(50, 20).Contains(level))
            {
                cooldown = 4000;
                return 23;
            }
            if (Enumerable.Range(70, 20).Contains(level))
            {
                cooldown = 3000;
                return 40;
            }
            if (!Enumerable.Range(90, 11).Contains(level)) throw new Exception("Invalid PetLevel");
            { 
            cooldown = 1500;
            return 69;
            }
            if (!Enumerable.Range(100, 11).Contains(level)) throw new Exception("Invalid PetLevel");
            cooldown = 500;
            return 90;
And replace this code in the bottom of the file PetHealMp.cs:
Code:
        private int CalculateMagicHeal(int level, ref int cooldown)
        {
            if (Enumerable.Range(0, 30).Contains(level))
            {
                cooldown = 6000;
                return 1;
            }
            else if (Enumerable.Range(30, 20).Contains(level))
            {
                cooldown = 5000;
                return 3;
            }
            else if (Enumerable.Range(50, 20).Contains(level))
            {
                cooldown = 4000;
                return 8;
            }
            else if (Enumerable.Range(70, 20).Contains(level))
            {
                cooldown = 3000;
                return 17;
            }
            else if (Enumerable.Range(90, 11).Contains(level))
            {
                cooldown = 1500;
                return 33;
            }
            else if (Enumerable.Range(100, 1).Contains(level))
            {
                cooldown = 500;
                return 45;
            }
            throw new Exception("Invalid PetLevel");
If anyone needs any further help or instructions installing this code please just let me know. Thanks all and I hope you enjoyed this if you needed or wanted it.
Quote Originally Posted by Stellar Spark View Post
Code:
 code tags please
Sorry, but what do you mean by code tags?

Nevermind I figured it out. :P
Level 100 on both heal and magic heal both heal the same amount as a legendary pet.
Yes, I stated this in my paragraph and said that I was working on a fix for it. Since my parents are divorced and I am at my father's house I can't test out the coding. Next week I will be back at my mother's house where I can then take my code and work with it a bit. Even though they heal and magic heal the same I feel that you don't even need a divine pet. Especially in a private server where everything is so easy as it is. I messed with this coding for fun and for people who wanted that feel of when you have a maxed rare pet it actually heals 40 and magic heals 17. Divine pets as it is are overpowered. I play prod with a maxed rare pet on a paladin and that's still overpowered. You have the ability to perm buff and it's almost impossible to die unless you get shotgunned which even a divine pet can't help. I got off topic with the prod thing but I just want you to actually read my paragraph and note that I did say the Legendary and Divine pets heal and magic heal the same before you post a comment about it. Thank you, and if you have any more issues with the code just let me know please.

- - - Updated - - -
@ossimc82 So I have messed with your code a little bit and wanted to get the pets to work at a state where as you level it up the heal and magic heal the amount changes. Is there any chance you can do this. If not could you figure out what within my code is wrong which is causing the Divine pets to heal and magic heal the same as Legendary pets. I have set the return and level correct but I am not sure if they are actually, "Correct". Thank you. With all regards, Rariity.
Quote Originally Posted by Rariity View Post
Yes, I stated this in my paragraph and said that I was working on a fix for it. Since my parents are divorced and I am at my father's house I can't test out the coding. Next week I will be back at my mother's house where I can then take my code and work with it a bit. Even though they heal and magic heal the same I feel that you don't even need a divine pet. Especially in a private server where everything is so easy as it is. I messed with this coding for fun and for people who wanted that feel of when you have a maxed rare pet it actually heals 40 and magic heals 17. Divine pets as it is are overpowered. I play prod with a maxed rare pet on a paladin and that's still overpowered. You have the ability to perm buff and it's almost impossible to die unless you get shotgunned which even a divine pet can't help. I got off topic with the prod thing but I just want you to actually read my paragraph and note that I did say the Legendary and Divine pets heal and magic heal the same before you post a comment about it. Thank you, and if you have any more issues with the code just let me know please.

- - - Updated - - -
@ossimc82 So I have messed with your code a little bit and wanted to get the pets to work at a state where as you level it up the heal and magic heal the amount changes. Is there any chance you can do this. If not could you figure out what within my code is wrong which is causing the Divine pets to heal and magic heal the same as Legendary pets. I have set the return and level correct but I am not sure if they are actually, "Correct". Thank you. With all regards, Rariity.
coding for you? no
look at your code? maybe xD
Quote Originally Posted by ossimc82 View Post
coding for you? no
look at your code? maybe xD
Fabian is a top lad
Quote Originally Posted by Rariity View Post
Yes, I stated this in my paragraph and said that I was working on a fix for it. Since my parents are divorced and I am at my father's house I can't test out the coding. Next week I will be back at my mother's house where I can then take my code and work with it a bit. Even though they heal and magic heal the same I feel that you don't even need a divine pet. Especially in a private server where everything is so easy as it is. I messed with this coding for fun and for people who wanted that feel of when you have a maxed rare pet it actually heals 40 and magic heals 17. Divine pets as it is are overpowered. I play prod with a maxed rare pet on a paladin and that's still overpowered. You have the ability to perm buff and it's almost impossible to die unless you get shotgunned which even a divine pet can't help. I got off topic with the prod thing but I just want you to actually read my paragraph and note that I did say the Legendary and Divine pets heal and magic heal the same before you post a comment about it. Thank you, and if you have any more issues with the code just let me know please.

- - - Updated - - -
@ossimc82 So I have messed with your code a little bit and wanted to get the pets to work at a state where as you level it up the heal and magic heal the amount changes. Is there any chance you can do this. If not could you figure out what within my code is wrong which is causing the Divine pets to heal and magic heal the same as Legendary pets. I have set the return and level correct but I am not sure if they are actually, "Correct". Thank you. With all regards, Rariity.
Check out my github repo, I've had this for ages (if you mean what I think you do)
Nice, I might use this on my server
I think what you need to do is set a certain amount of hp and mp at different levels but you would need too see on prod what levels do what amount of heals, which could take a while >_>
Quote Originally Posted by katiente View Post
I think what you need to do is set a certain amount of hp and mp at different levels but you would need too see on prod what levels do what amount of heals, which could take a while >_>
Take a look here
Alright thanks, i'll check it out
Posts 1–12 of 12 Β· Page 1 of 1

Post a Reply

Similar Threads

Talk with us