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

Casting Focus

Discussion in 'Script Support' started by Denjiki, Mar 8, 2014.

  1. Denjiki
    Offline

    Denjiki Active Member

    Joined:
    Feb 6, 2014
    Messages:
    173
    Likes Received:
    31
    Does ServUO account for the "casting focus" bonus that inscription is supposed to give? From UOGuide: Casting Focus is an item property found on certain armor. It provides a chance to resist any interruptions while casting spells. It has a cumulative cap of 12%. Inscription skill also grants a 5% bonus in addition (1% bonus for every 10 skill points above 50) and can exceed the item cap.

    I found in spell.cs this section under OnCasterHurt :
    Code (C#):
    1.  
    2. #region Stygian Abyss
    3.                 int focus = SAAbsorptionAttributes.GetValue(Caster, SAAbsorptionAttribute.CastingFocus);
    4.  
    5.                 if (focus > 0)
    6.                 {
    7.                     if (focus > 30)
    8.                     {
    9.                         focus = 30;
    10.                     }
    11.  
    12.                     if (focus > Utility.Random(100))
    13.                     {
    14.                         disturb = false;
    15.                         Caster.SendLocalizedMessage(1113690); // You regain your focus and continue casting the spell.
    16.                     }
    17.                 }
    18.                 #endregion
    It doesn't check for inscription values, so I'm not sure if this is exactly what I'm talking about. I also looked under the SAAbsorptionAttribute for casting focus, and all it has is this:
    Code (C#):
    1.  
    2. [CommandProperty(AccessLevel.GameMaster)]
    3.         public int CastingFocus
    4.         {
    5.             get
    6.             {
    7.                 return this[SAAbsorptionAttribute.CastingFocus];
    8.             }
    9.             set
    10.             {
    11.                 this[SAAbsorptionAttribute.CastingFocus] = value;
    12.             }
    13.         }
    I'm not really sure where else to look, so I just decided to post here and ask.
     
    #1 Denjiki, Mar 8, 2014
    Last edited: Mar 8, 2014
  2. xG00BERx
    Offline

    xG00BERx Active Member

    Joined:
    Jan 6, 2014
    Messages:
    275
    Likes Received:
    34
    I am not sure, One of my projects I will be working on soon has to do with Casting Focus and making sure it is 100% OSI Correct!
    Once I do this I will let you know. Let me know if you find out more or fix Casting Focus !! :D
     
Similar Threads: Casting Focus
Forum Title Date
Archived Bug Reports why MantleOfTheFallen dont have casting focus? Aug 28, 2016
Archived Bug Reports AIType.AI_NecroMage Not casting any spells Jul 16, 2017
Archived Bug Reports Antique items looses durability when casting spells Jul 16, 2017
Archived Bug Reports Imbuing: Spell Channeling and Faster Casting May 20, 2016
General Discussion Staff client freezes when casting spells May 8, 2016
Shard Discussion Macro casting Feb 22, 2016
Think Tank Custom Spells with Casting Level May 27, 2015