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

Field spells damage

Discussion in 'Script Support' started by Piotr, Jan 2, 2019.

  1. Piotr
    Offline

    Piotr Member

    Joined:
    Oct 1, 2016
    Messages:
    64
    Likes Received:
    3
    Hi,

    As I saw in one of the postings here, field spells and also explosive potions only harm those that are red, grey or orange to the caster.
    Can you please tell me how to modify it so everyone (even the caster) can be harmed by them?
     
  2. Piotr
    Offline

    Piotr Member

    Joined:
    Oct 1, 2016
    Messages:
    64
    Likes Received:
    3
    Got it working for the explosive potions, which are mostly what I was interested in.

    In baseexplosionpotion.cs:

    Spoiler

    foreach (object o in eable)
    {
    if (o is Mobile && ((Mobile)o).AccessLevel <= from.AccessLevel)
    {
    toExplode.Add(o);
    ++toDamage;
    }
    else if (o is BaseExplosionPotion && o != this)
    {
    toExplode.Add(o);
    }
    }
     
  3. Fireball
    Offline

    Fireball Member

    Joined:
    Sep 6, 2014
    Messages:
    144
    Likes Received:
    8
    Isn't this just a map rules thing?
     
  4. Piotr
    Offline

    Piotr Member

    Joined:
    Oct 1, 2016
    Messages:
    64
    Likes Received:
    3
    Doesn't appear to be.
    You cannot hurt anyone who isn't red, orange or grey to your character with AoE spells and explosive potions fall into that category.
    The feature was added some time ago, I've read it right here on this forum.
     
Similar Threads: Field spells
Forum Title Date
Archived Bug Reports An issue with field spells I noticed as of late Jun 20, 2018
Archived Bug Reports Casting Mage Fields Jan 13, 2018
Archived Bug Reports New bug with fields. Jan 11, 2018
Archived Bug Reports Fields should not be able to be stacked on eachother for an unlimited time. Jan 4, 2018
Archived Bug Reports Paralyze fields paralyze players that teleport on top of them Oct 12, 2017
Archived Bug Reports Summoned Fields Fail To Summon Sep 29, 2017
Archived Bug Reports Tomb of Kings - small exploit(?) on fields Jan 27, 2017