1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Converted to Milestone Task Blood Drinker prop

Discussion in 'Archived Bug Reports' started by Denjiki, Mar 10, 2014.

  1. Denjiki
    Offline

    Denjiki Active Member

    Joined:
    Feb 6, 2014
    Messages:
    173
    Likes Received:
    31
    So the blood drinker weapon attribute doesn't work properly. It is a valid attribute and can be applied to a weapon with this.WeaponAttributes.BloodDrinker but it doesn't function. Just for testing sake, i set my hp to 10/100, created a dragon who couldn't move/attack, and made sure I didn't have any outside Hp regen. I used bleed attack on him several times and continued to attack him with no HP restored. For those who don't know, here is a description of Blood Drinker: Blood Drinker is an item property found on some certain weapons. A successful hit with such a weapon will allow an attacker to gain life from using the Bleed Attack, which is a special move. All of the damage done through a bleed attack is directly transferred to the attacker’s health.

    So basically every tick of the bleed should restore HP to you equal to the damage it does. My best guess on how to implement this would be in BleedAttack.cs probably in DoBleed or maybe OnTick. I'm not sure on how to specifically do it (i'll leave it up to someone more experienced than I, i dont think it'd be that hard though), but i'd guess just make a check to see on each tick or dobleed to see if the blood drinker property is still on the weapon equipped, and if it is restore however much damage was done to the attacker.
    Code (C#):
    1.  
    2.  public static void DoBleed(Mobile m, Mobile from, int level)
    3.         {
    4.             if (m.Alive)
    5.             {
    6.                 int damage = Utility.RandomMinMax(level, level * 2);
    7.  
    8.                 if (!m.Player)
    9.                     damage *= 2;
    10.  
    11.                 m.PlaySound(0x133);
    12.                 m.Damage(damage, from);
    13.  
    14.                 Blood blood = new Blood();
    15.  
    16.                 blood.ItemID = Utility.Random(0x122A, 5);
    17.  
    18.                 blood.MoveToWorld(m.Location, m.Map);
    19.             }
    20.             else
    21.             {
    22.                 EndBleed(m, false);
    23.             }
    24.         }
    and
    Code (C#):
    1.  
    2. protected override void OnTick()
    3.             {
    4.                 DoBleed(this.m_Mobile, this.m_From, 5 - this.m_Count);
    5.  
    6.                 if (++this.m_Count == 5)
    7.                     EndBleed(this.m_Mobile, true);
    8.             }
     
  2. Toriad
    Offline

    Toriad Shard Owner

    Joined:
    Mar 4, 2013
    Messages:
    86
    Likes Received:
    35
    Converted to a Milestone Issue (Link)
     
  3. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,103
    Likes Received:
    117
    Can anyone confirm if there is a message or effect when you regain life from your attacker?
     
  4. Denjiki
    Offline

    Denjiki Active Member

    Joined:
    Feb 6, 2014
    Messages:
    173
    Likes Received:
    31
    Yeah, there is definately no effect when you hit a mob that is bleeding with blooddrinker on your weapon. This is one of several weapon properties that needs to be implemented including bane, splintering weapon, and a few others.
     
Similar Threads: Blood Drinker
Forum Title Date
Archived Bug Reports Chicken Lizard not droping Dragon's Blood Feb 23, 2017
Art Fountain of blood Jan 19, 2017
Shards Looking For Players Blood drained looking for some players to help out! Nov 26, 2016
Archived Bug Reports Bloodoath Spell Not working at all Oct 24, 2016
Custom Releases Bloody Mary Oct 9, 2016
Bug Reports Spawn Fixes Tomb of Kings, Blood Dungeon, Fire Temple Sep 22, 2016
Archived Bug Reports Blood Oath Jun 26, 2016