EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Spell Support (https://www.eqemulator.org/forums/forumdisplay.php?f=664)
-   -   85: Contact Ability (https://www.eqemulator.org/forums/showthread.php?t=38526)

Esildor 07-25-2014 05:06 AM

85: Contact Ability
 
Hola,

Not sure if this is an isolated issue, or just the way it works .. but figured I'd ask/point it out.

Seems on spells, a spell effect of '85: Contact Ability' the spell you want it to proc you have to put the spell ID - 1(minus 1, i.e. if spell I want it to proc is 9000 I'd put 8999), struggled with this for awhile and couldn't figure out for the life of me why I couldn't get it to work.

Finally started looking at similar spells and noticed that all the other shadowknight shroud spells use the spell ID - 1 and it works correctly in game.

Any reasoning for this? Is this issue isolated to me?

demonstar55 07-25-2014 12:07 PM

Sometimes SoE's reasoning is easy to figure out, sometimes its not.

lerxst2112 07-25-2014 01:45 PM

Gotta love procs for Shadowknights.

Code:

//for some stupid reason SK procs return theirs one base off...
uint16 Mob::GetProcID(uint16 spell_id, uint8 effect_index)
{
        bool sk = false;
        bool other = false;
        for(int x = 0; x < 16; x++)
        {
                if(x == 4)
                {
                        if(spells[spell_id].classes[4] < 255)
                                sk = true;
                }
                else
                {
                        if(spells[spell_id].classes[x] < 255)
                                other = true;
                }
        }

        if(sk && !other)
        {
                return(spells[spell_id].base[effect_index] + 1);
        }
        else
        {
                return(spells[spell_id].base[effect_index]);
        }
}

Seems like you could work around it by setting another class to something like 254. They wouldn't be able to use the spell, but it would skip the +1 nonsense since it doesn't happen for mixed class spells.

Esildor 07-25-2014 02:24 PM

Lol, I was mostly wondering if it's something borked on my end.

That's funny though, weird!

Well, now I know - and others can search for this easily too and know!


All times are GMT -4. The time now is 08:53 PM.

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