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

Trying to Make Attunement Absorb Magical Damage as well

Discussion in 'Script Support' started by Darwin, Dec 27, 2018.

  1. Darwin
    Offline

    Darwin Member

    Joined:
    Sep 5, 2017
    Messages:
    383
    Likes Received:
    2
    Hi. I'm trying to make Attunement absorb Magical damage along with melee damage. I'd post what I've tried, but tbh I've tried a million things lol. I tried adding a bunch of MagicDamageAbsorb checks under the Attunement script, but that had no effect. Then I tried adding an attunement spell TryAbsorbing check under spellhelper but couldn't get it to compile properly. In spite of being as noobie as I am I'm usually able to figure things out through sheer will, but in this case I've been pretty stumped for a while.

    Any help would be appreciated. Thanks.
     
  2. Dexter_Lexia
    Online

    Moderator ServUO Developer

    Joined:
    Jul 3, 2014
    Messages:
    3,712
    Likes Received:
    146
    AOS.cs:

    Code (C#):
    1.  
    2.             if (type <= DamageType.Ranged)
    3.             {
    4.                 AttuneWeaponSpell.TryAbsorb(m, ref totalDamage);
    5.             }
    change to:

    Code (C#):
    1.  
    2. AttuneWeaponSpell.TryAbsorb(m, ref totalDamage
     
  3. Dexter_Lexia
    Online

    Moderator ServUO Developer

    Joined:
    Jul 3, 2014
    Messages:
    3,712
    Likes Received:
    146
    So, remove the type check.
     
    • Two Thumbs Up Two Thumbs Up x 1
  4. Darwin
    Offline

    Darwin Member

    Joined:
    Sep 5, 2017
    Messages:
    383
    Likes Received:
    2
    Thanks.
     
Similar Threads: Trying Attunement
Forum Title Date
Script Support Trying to make Eaters work like a second resist check Dec 27, 2018
Script Support Trying to add Tree Elementals to Lumberjacking Nov 16, 2018
Windows Support Trying to setup a clean servuo Oct 25, 2018
Script Support UO Architect -trying to update Oct 17, 2018
General Discussion Trying to find a server to play on until the day comes mine is running Sep 16, 2018
Script Support Trying to add a random piece of ranger armor as quest reward Jul 25, 2018
Mono Support trying Windows version of ServUO.exe in Bohdi Linux Jul 18, 2018