EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Spell Support (https://www.eqemulator.org/forums/forumdisplay.php?f=664)
-   -   Determining Target or Self Spells (https://www.eqemulator.org/forums/showthread.php?t=35073)

Hateborne 03-17-2012 01:07 PM

Determining Target or Self Spells
 
I apologize to ask this, but what field in spells_new makes the determination between targettable and self spells? I am probably looking right at it. Is it simply spell range 0?

Thank You,

-Hate

lerxst2112 03-17-2012 01:16 PM

The targettype field.

Code:

//Target Type IDs
typedef enum {
/* 01 */        ST_TargetOptional = 0x01,
/* 02 */        ST_AEClientV1 = 0x02,
/* 03 */        ST_GroupTeleport = 0x03,
/* 04 */        ST_AECaster = 0x04,
/* 05 */        ST_Target = 0x05,
/* 06 */        ST_Self = 0x06,
/* 07 */        // NOT USED
/* 08 */        ST_AETarget = 0x08,
/* 09 */        ST_Animal = 0x09,
/* 10 */        ST_Undead = 0x0a,
/* 11 */        ST_Summoned = 0x0b,
/* 12 */        // NOT USED
/* 13 */        ST_Tap = 0x0d,
/* 14 */        ST_Pet = 0x0e,
/* 15 */        ST_Corpse = 0x0f,
/* 16 */        ST_Plant = 0x10,
/* 17 */        ST_Giant = 0x11, //special giant
/* 18 */        ST_Dragon = 0x12, //special dragon
/* 19 */        // NOT USED
/* 20 */        ST_TargetAETap = 0x14,
/* 21 */        // NOT USED
/* 22 */        // NOT USED
/* 23 */        // NOT USED
/* 24 */        ST_UndeadAE = 0x18,
/* 25 */        ST_SummonedAE = 0x19,
/* 26 */        // NOT USED
/* 27 */        // NOT USED
/* 28 */        // NOT USED
/* 29 */        // NOT USED
/* 30 */        // NOT USED
/* 31 */        // NOT USED
/* 32 */        ST_AECaster2 = 0x20, //ae caster hatelist maybe?
/* 33 */        ST_HateList = 0x21,
/* 34 */        ST_LDoNChest_Cursed = 0x22,
/* 35 */        ST_Muramite = 0x23, //only works on special muramites
/* 36 */        ST_AreaClientOnly = 0x24,
/* 37 */        ST_AreaNPCOnly = 0x25,
/* 38 */        ST_SummonedPet = 0x26,
/* 39 */        ST_GroupNoPets = 0x27,
/* 40 */        ST_AEBard = 0x28,
/* 41 */        ST_Group = 0x29,
/* 42 */        ST_Directional = 0x2a, //ae around this target between two angles
/* 43 */        ST_GroupClientAndPet = 0x2b,
/* 44 */        ST_Beam = 0x2c, //like directional but facing in front of you always
/* 45 */        //ST_Ring = 0x2d, // Like a mix of PB ae + rain spell(has ae duration)
/* 46 */        ST_TargetsTarget = 0x2e, // uses the target of your target
/* 47 */        //ST_PetMaster = 0x2e, // uses the master as target
} SpellTargetType;


Hateborne 03-17-2012 05:14 PM

Excellent! Thank you lerxst2112, ever the badass.

-Hate

thepoetwarrior 04-15-2012 09:52 AM

Trying to make AoE Rez, but since Rez needs to target a corpse instead of a live player, is it even possible?

chrsschb 04-15-2012 10:20 AM

Perhaps use the AEBard targettype? (totally guessing)


All times are GMT -4. The time now is 06:59 PM.

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