EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Spell Support (https://www.eqemulator.org/forums/forumdisplay.php?f=664)
-   -   Spell Effect Questions (specifically resists) (https://www.eqemulator.org/forums/showthread.php?t=35067)

Hateborne 03-16-2012 12:03 AM

Spell Effect Questions (specifically resists)
 
Is there anywhere that I may find a break down of spell effect types? The spdat.h and spell_effects.cpp give a good starting point, but there are questions it leaves.

For example:
Code:

case SE_LimitResist:
        if(base1) {
                if(spell.resisttype != base1)
                return 0;
        }
        else {
                return 0;
        }

While this is a good start, I do not know the resist types.


I am trying to create a few spells that mitigate/absorb damage based on resist type (if possible). Such as spells that increase a player's resist to say poison and disease AND mitigate spell damage of those elements by a certain percentage.


Any info on this would be greatly appreciated!

-Hate

bad_captain 03-16-2012 12:16 AM

Within spdat.h:

Code:

enum RESISTTYPE
{
        RESIST_NONE = 0,
        RESIST_MAGIC = 1,
        RESIST_FIRE = 2,
        RESIST_COLD = 3,
        RESIST_POISON = 4,
        RESIST_DISEASE = 5,
        RESIST_CHROMATIC = 6,
        RESIST_PRISMATIC = 7,
        RESIST_PHYSICAL = 8,        // see Muscle Shock, Back Swing
        RESIST_CORRUPTION = 9       
};


and

Code:

#define SE_ResistFire                                        46        // implemented
#define SE_ResistCold                                        47        // implemented
#define SE_ResistPoison                                        48        // implemented
#define SE_ResistDisease                                49        // implemented
#define SE_ResistMagic                                        50        // implemented


Hateborne 03-16-2012 06:48 PM

bad_captain: 1
Hate: 0

Thank you for the reply.

Would you happen to know if MitigateSpellDamage can be paired with LimitResist to specifically affect set spell types? Such as Mitigate X percent of only Fire damage?

-Hate

bad_captain 03-16-2012 08:27 PM

I don't know off the top of my head, but I would assume so..

Similar to focus effects affecting a specific resist type, but I don't know if spells would be any different. I'm sure someone has tried it.

Hateborne 03-31-2012 12:14 AM

I guess first I need to find out how to get a spell to Mitigate a certain type.

I used:
Code:

(effect)                (min)        (max)        (limit)
Resist Poison                120        120        0
MitigateSpellDamage        15        100000        0
LimitResist                4        0        0

Is there something stupid I have overlooked (or is there another effect(s) I should be using)?

Also, is there an effect that would INCREASE spell damage taken (and possibly limited by resist)? I tried MitigateSpellDamage -15/0/0, failed. I tried -15/10000/0, failed.

Thank you in advance for any insight offered!

-Hate


All times are GMT -4. The time now is 02:30 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.