Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Masternx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    16

    FSoD Paladin Seal fix

    This is a very simple change in Player.UseItem.cs, search for StatBoostAura, and replace the whole block with this;
    Code:
      case ActivateEffects.StatBoostAura:
                            {
                                var amountSBA = eff.Amount;
                                var durationSBA = eff.DurationMS;
                                var rangeSBA = eff.Range;
                                int idx = -1;
    
                                if (eff.Stats == StatsType.MaximumHP) idx = 0;
                                if (eff.Stats == StatsType.MaximumMP) idx = 1;
                                if (eff.Stats == StatsType.Attack) idx = 2;
                                if (eff.Stats == StatsType.Defense) idx = 3;
                                if (eff.Stats == StatsType.Speed) idx = 4;
                                if (eff.Stats == StatsType.Vitality) idx = 5;
                                if (eff.Stats == StatsType.Wisdom) idx = 6;
                                if (eff.Stats == StatsType.Dexterity) idx = 7;
    
                                int bit = idx + 39;
    
    
                                if (eff.UseWisMod)
                                {
                                    amountSBA = (int)UseWisMod(eff.Amount, 0);
                                    durationSBA = (int)(UseWisMod(eff.DurationSec) * 1000);
                                    rangeSBA = UseWisMod(eff.Range);
                                }
                                if (HasConditionEffect(ConditionEffectIndex.HPBoost))
                                {
                                    
    
                                    if (amountSBA == 0) ;
                                    
                                else if (amountSBA >= 1) ;
                                    amountSBA = 0;
                                    durationSBA = 0;
                                    return false;
    
                                } 
                    
                                this.Aoe(rangeSBA, true, player =>
                                {
                                    ApplyConditionEffect(new ConditionEffect
                                    {
                                        DurationMS = durationSBA,
                                        Effect = (ConditionEffectIndex)bit
                                    });
                                    (player as Player).Boost[idx] += amountSBA;
                                    player.UpdateCount++;
                                    Owner.Timers.Add(new WorldTimer(durationSBA, (world, t) =>
                                    {
                                        (player as Player).Boost[idx] -= amountSBA;
                                        player.UpdateCount++;
                                   
                                    }));
                                });
                                BroadcastSync(new ShowEffectPacket()
                                {
                                    EffectType = EffectType.AreaBlast,
                                    TargetId = Id,
                                    Color = new ARGB(0xffffffff),
                                    PosA = new Position() { X = rangeSBA }
                                }, p => this.Dist(p) < 25);
                            } break;
    This should technically work, I only tested it once or twice, if it doesn't please let me know! This should fix both negative health glitch as well as the good old stacking!
    Last edited by Masternx; 05-05-2016 at 03:44 PM.

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

    Devwarlt (03-11-2017),HGAEHaeheadhetdhtertherh (07-05-2016),Invader_Zim (05-05-2016),lkdjnfoskjednfblksjdfn (05-06-2016),MikeRaarupBirk (05-06-2016),Razor Sharp v2 (05-05-2016)

  3. #2
    Invader_Zim's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Atlas 2
    Posts
    546
    Reputation
    10
    Thanks
    300
    My Mood
    Tired
    If this is suppose to fix the HP stacking from seals, it did not work for me.

    My weapon is a backpack.

  4. #3
    Slendergo's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    382
    Reputation
    17
    Thanks
    250
    My Mood
    Inspired
    Quote Originally Posted by Invader_Zim View Post
    If this is suppose to fix the HP stacking from seals, it did not work for me.
    there can be only 1 real slender here :P

  5. The Following 4 Users Say Thank You to Slendergo For This Useful Post:

    Desire (05-05-2016),HGAEHaeheadhetdhtertherh (05-05-2016),LegumI (12-04-2016),Lxys (05-06-2016)

  6. #4
    Masternx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    16
    Quote Originally Posted by Invader_Zim View Post
    If this is suppose to fix the HP stacking from seals, it did not work for me.
    Please expand? Tell me how to do it and I will try to fix that as well, this fixes the negative HP bug. (To replicate this bug, you simply use a seal that gives you a HP bonus, and switch your weapon, or anything you would like in your equips, and then when the HP buff runs out, it will give you negative HP)
    Last edited by Masternx; 05-05-2016 at 09:27 AM.

  7. #5
    Razor Sharp v2's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    153
    Reputation
    20
    Thanks
    374
    Quote Originally Posted by Masternx View Post
    Please expand? Tell me how to do it and I will try to fix that as well, this fixes the negative HP bug. (To replicate this bug, you simply use a seal that gives you a HP bonus, and switch your weapon, or anything you would like in your equips, and then when the HP buff runs out, it will give you negative HP)
    When u spam "Space button" with the t6 seal, ur health and other players health stacks and u can die.

  8. #6
    Masternx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    16
    Quote Originally Posted by Razor Sharp v2 View Post
    When u spam "Space button" with the t6 seal, ur health and other players health stacks and u can die.
    That should be a very simple XML ability cool down fix, never the less, I will look into it shortly!

  9. #7
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by Masternx View Post
    That should be a very simple XML ability cool down fix, never the less, I will look into it shortly!
    My dev has fixed the death glitch although hp stack exists
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  10. #8
    Masternx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    16
    Quote Originally Posted by Bear View Post
    My dev has fixed the death glitch although hp stack exists
    Death glitch? Explain please. :P

  11. #9
    Razor Sharp v2's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    153
    Reputation
    20
    Thanks
    374
    Quote Originally Posted by Masternx View Post
    Death glitch? Explain please. :P
    Idk, if the health stacks u can die, i dont know when.

  12. #10
    Masternx's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    16
    Thread updated, stacking fixed.

  13. #11
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by Masternx View Post
    Thread updated, stacking fixed.
    Havent tried to test it although I'll notify my dev about this and ask what he thinks about it
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  14. #12
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Worked for me, thanks

  15. #13
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Great tutorial, very usefull! +1

  16. #14
    DimitriSavage's Avatar
    Join Date
    Dec 2015
    Gender
    female
    Location
    With the Devil
    Posts
    462
    Reputation
    27
    Thanks
    130
    My Mood
    Devilish
    Bear, I actually fully fixed the Pally Glitch sorry I can't be online alot I am extremely busy making my game :3


    @Masternx you forgot something very valuable :/ eff.NoStack you need to add that in descriptors or this will effect all StatBoostAura like Effusions of Dexterity :/ and Effusions Stack so your patch is not a full patch for it I will send you my patch as soon as I have free time

    return false; <--- unnecessary since its not a bool, its a case and switch

    You were close to getting it I give you props for trying but your were lacking some important information as if you didn't read the whole source, In Descriptors you need to add NoStack and if you check dat1.xml and view the Pally Seal you will see NoStack=true but this is not in descriptors you will need to add that and then if(eff.NoStack) which is checking if the items has NoStack=true then it will continue or not accordingly, as for the duration your setting the duration to 0 which will cancel out the time boost gained from using the seal again...which is not ideal...

    Owner.Timers.Add(new WorldTimer(durationSBA, (world, t) => // <----this is the line that removes the effect after the amount of time if the duration is set to 0 it will not extend the time boosted.

    if (amountSBA == 0) ;

    else if (amountSBA >= 1) ;<-----remove the if(amountSBA >= 1); and just leave it as a else {}
    Last edited by DimitriSavage; 05-07-2016 at 12:10 AM.

  17. The Following User Says Thank You to DimitriSavage For This Useful Post:

    Masternx (05-07-2016)

  18. #15
    DimitriSavage's Avatar
    Join Date
    Dec 2015
    Gender
    female
    Location
    With the Devil
    Posts
    462
    Reputation
    27
    Thanks
    130
    My Mood
    Devilish
    Quote Originally Posted by Masternx View Post
    That should be a very simple XML ability cool down fix, never the less, I will look into it shortly!
    Adding a cooldown will just remove the true Prod feel to It I recommend this to many server owners but this won't fix AuraStatBoosts that are in Items like...if Effusions didn't stack a cooldown won't work on items

Page 1 of 2 12 LastLast

Similar Threads

  1. MMO Empire server Paladin Seal Fix
    By ossimc82 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 2
    Last Post: 04-26-2013, 09:42 AM
  2. Paladin Montage O.o
    By EleMentX in forum General
    Replies: 0
    Last Post: 07-26-2006, 08:43 AM
  3. my fixed system
    By systemmaker in forum Gunz General
    Replies: 1
    Last Post: 03-31-2006, 10:23 PM