Results 1 to 7 of 7
  1. #1
    B3CLAWED's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    143
    Reputation
    10
    Thanks
    57
    My Mood
    Busy

    [Fabs] PetHealHP and MP more like prod (for real)

    Soooo I know I could have done this completely different but basically what I did was take hp heal and mp heal data from prod (easily accessible online) then plug the tables into a regression analyzer to get equations that best fit the graph. Make sure you don't put your pet's levels above 100 or below 0 (create an if statement if you want just in case). The numbers are not exactly right but it is 1 step closer to prod.
    First go to PetHealHP.cs and find the function
    Code:
    private int CalculateHeal(int level, ref int cooldown)
    now just replace the entire function with
    Code:
            private int CalculateHeal(int level, ref int cooldown)
            {
                double cd = 10.911 + (-2.109 * Math.Log(level));
                double hp = 7.300 * Math.Pow(1.0246, level);
                cooldown = (int)(cd*1000);
                return (int)hp;
            }
    Next go to PetHealMP.cs and find the same function and replace it with
    Code:
            private int CalculateMagicHeal(int level, ref int cooldown)
            {
                double cd = 10.911 + (-2.109 * Math.Log(level));
                double mp = 2.61 - (.1963 * level) + (0.005968 * Math.Pow(level, 2));
                cooldown = (int)(cd * 1000);
                return (int)mp;
            }

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

    backpack-o (07-29-2017),HGAEHaeheadhetdhtertherh (07-04-2017),Inflectious (08-04-2017),Matrix1101 (07-04-2017),Wojtasowy1234 (07-07-2017),XzemagaiaX (07-19-2017)

  3. #2
    XzemagaiaX's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    1
    My Mood
    Sleepy
    Worked for me! Ty for the tut bro

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

    B3CLAWED (07-03-2017)

  5. #3
    Crownleaf's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    0
    Worked for me pretty good except maxxed divine only heals 82 hp and 42 mp

  6. #4
    Anime's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    988
    Reputation
    42
    Thanks
    170
    You can always increase the healing by changing a bit of the code.

  7. #5
    Zayach's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    14
    Why not just use the new leaked 27.7.x2 build instead?

  8. #6
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by Zayach View Post
    Why not just use the new leaked 27.7.x2 build instead?
    this has nothing todo with the client buddy.

  9. #7
    crusadorzach's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    214
    My Mood
    Amused
    Quote Originally Posted by MikeRaarupBirk View Post
    this has nothing todo with the client buddy.
    Yep, I'm an idiot, that is definitely server...

    I didn't actually read the post I just saw "Add MP heal and heal to pets on fsod" and I was just like why do that when there's a way better client to use?


    OOPS....




    Secondary oops... Wrong account
    Last edited by crusadorzach; 07-30-2017 at 03:03 PM.
     

    Staff Manager of Villoux Realms
    Global Moderator for Fremminik Realms Forums and Admin for Fremminik Realms Server
    Spriter/Moderator for Realms Resolution Server
    Spriter for Project B
    Helper of Owl Realms


     
    • Spriting
    • Moderating
    • XML Item Coding
    • Item Testing/Balancing
    • Dungeon Testing/Balancing



    Normal Text Style:
    MAIN TEXT
    SUB TEXT

Similar Threads

  1. How do I create a menu for my hack? And add more hacks? I used Cn's tut for hacks.
    By calvinchau309 in forum Combat Arms Coding Help & Discussion
    Replies: 11
    Last Post: 02-19-2011, 08:50 PM
  2. CS:S and more source games for BC2
    By ZeroTroubles in forum Game Serial Keys
    Replies: 0
    Last Post: 01-03-2011, 05:07 AM
  3. ""For Those Who Want To Know (more like get a taste of) The TRUTH""
    By hamada008 in forum Islam vs Western World
    Replies: 0
    Last Post: 11-03-2009, 03:17 PM