EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Spell Support (https://www.eqemulator.org/forums/forumdisplay.php?f=664)
-   -   Target Type 20. (https://www.eqemulator.org/forums/showthread.php?t=37760)

Kingly_Krab 01-19-2014 12:21 PM

Target Type 20.
 
Target Type is supposed to be AoE Lifetap, but it isn't, and it doesn't work.

Here's a picture of it actually in the PHP Editor.
http://i.imgur.com/h2ZzzIu.png

And here's a picture of what happens when I cast a spell with it, this is a default spell, id 8438 (Immortal Bonds).
http://i.imgur.com/UiOE3GQ.png

demonstar55 01-19-2014 09:16 PM

Not all of the target types are implemented, this is one of them.

Edit: you can try adding
Code:

case ST_TargetAETap:
On line 1547 in zone/spells.cpp and see how it works ...

Kingly_Krab 01-21-2014 04:22 AM

I did that and it still says that it doesn't know the target type. My code is below.
Code:

case ST_UndeadAE:        //should only affect undead...
case ST_AETarget:
case ST_TargetAETap:
{
        if(!spell_target)
        {
                mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target (AOE)", spell_id);
                Message_StringID(13,SPELL_NEED_TAR);
                return false;
        }
        ae_center = spell_target;
        CastAction = AETarget;
        break;
}


sorvani 01-21-2014 03:28 PM

You need to break; after ST_AETarget: unless you actually want all three of those cases to apply to TargetAETap.

Not your issue with getting unknown target type but would be an issue.

Quote:

Originally Posted by Kingly_Krab (Post 227789)
I did that and it still says that it doesn't know the target type. My code is below.
Code:

case ST_UndeadAE:        //should only affect undead...
case ST_AETarget:
case ST_TargetAETap:
{
        if(!spell_target)
        {
                mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target (AOE)", spell_id);
                Message_StringID(13,SPELL_NEED_TAR);
                return false;
        }
        ae_center = spell_target;
        CastAction = AETarget;
        break;
}



demonstar55 01-21-2014 03:51 PM

I pushed it, it should work, at least it worked for me with those changes :P


All times are GMT -4. The time now is 11:39 AM.

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