Results 1 to 8 of 8
  1. #1
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep

    Stat buff for selected classes (in this case, vitality for knight, warrior, sorcerer)

    In wServer>realm>StatsManager.cs
    Code:
    public float GetHPRegen()
            {
                float dis;
                var vit = GetStats(5);
                if (player.HasConditionEffect(ConditionEffects.Sick))
                    vit = 0;
                if (player.ObjectType == 797) //if class is knight
                {
                    dis = 2.5f; //vit modifier, higher = less vitality effect
                    return 1 + vit / dis;
                }
                else if (player.ObjectType == 798) //if class is warrior
                {
                    dis = 2.5f;
                    return 1 + vit / dis;
                }
                else if (player.ObjectType == 805) //if class is sorcerer
                {
                    dis = 3f; //lower effect on sorcerer
                    return 1 + vit / dis;
                }
                else
                {
                    dis = 8f;
                    return 1 + vit / dis;
                }
            }
    Also, check out my ****** as I update it really frequently, with bugfixes and new features.

  2. #2
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    You seems good at it, make more! It's nice to have new things to put on our servers!
    Alde is Alde is

  3. #3
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    @ZBORNOX I'm actually employed as a programmer (forensics software development), it's normal that I seem good at that.

  4. #4
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Quote Originally Posted by Trapped View Post
    @ZBORNOX I'm actually employed as a programmer (forensics software development), it's normal that I seem good at that.
    Ahahha go ahead and make us more things for our servers!
    Alde is Alde is

  5. #5
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    But they have higher stat caps for this. I don't get the idea...

  6. #6
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    @CrazyJani The stat caps are higher, yet they don't let for example a knight facetank (even in godland). I will probably publish a wisdom buff for healing classes, and a vitality-wisdom mix for DPS classes. basicly the goal is to make the game more dynamic, by removing the time you spend to regen and let you stay more in the combat. Kabam seems to not care to this, but as a really old player (almost 2 years! Yay!) I do.

  7. #7
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    But wouln't it just be easier to raise the stats caps? At least for me it seems wierd that if you have 40 vit on wizard your hp regens slower than un maxed knight with 40 vitality.

  8. #8
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    @CrazyJani No, making characters max stats at higher values than prod is, firstly, estetically bad, and annoying (it's already a long process to max vit at 75, imagine it at 100; I wouldn't even bother trying).
    This is my personal choice, you can choose if implementing it or not, this thread is basically a guide for those who are interested in making something similar (mainly making something class-dependent).

Similar Threads

  1. [Info] This thread is only for selected Testers [NO ONE ELSE]
    By beta_guy in forum CrossFire Hacks & Cheats
    Replies: 44
    Last Post: 03-14-2010, 12:07 PM
  2. Trading this warrock stuff for Steam Accounts
    By warrockk1ngs in forum WarRock - International Hacks
    Replies: 14
    Last Post: 08-31-2007, 01:27 AM
  3. will this keygen work for the newer version of photoshop?
    By Raster Burn in forum Hardware & Software Support
    Replies: 8
    Last Post: 06-29-2007, 03:58 AM
  4. thanks mpgh.net for leetng me have this awesome hak
    By alejandro211142 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 05-13-2007, 05:25 AM
  5. This Thread Is For Renders
    By i eat trees in forum Art & Graphic Design
    Replies: 4
    Last Post: 07-20-2006, 05:49 AM