Page 2 of 2
Re: Spells - target_type request
Posted: Sun Aug 18, 2013 2:52 pm
by John Adams
They are very needy, apparently.
Well, embarassing as that copy/paste is, my excuse is that i was busy yesterday doing 12 things at once and well, forgot. And committed. Where's Xinux with the rude, insensitive insults when you need him?
Re: Spells - target_type request
Posted: Sun Aug 18, 2013 3:00 pm
by John Adams
Ahh, I see what's going on here now. My target is Galinda Goodfaith in FfS. She is set to attackable = 0. My spell is set to "Enemy" and "friendly_spell" and I just noticed the logger getting hit for implied target:
14:56:17 D Spell : Snowball!: Casting on John through Galinda Goodfaith as target.
I think I'm getting blasted by my own spell via
Code: Select all
if (caster->IsPlayer() && target->HasTarget())
cuz I guess Galinda targets me the moment I target her?
Code: Select all
if (secondary_target->IsPlayer())
{
implied = true;
}
.
.
//if using implied target, target = the implied target
if (implied)
{
target = secondary_target;
luaspell->initial_target = secondary_target;
}
Does this mean I am the secondary target?
Re: Spells - target_type request
Posted: Sun Aug 18, 2013 3:21 pm
by Jabantiz
That's what seems to be happening, didn't know a spawn targeted you back when you targeted them though.
On a side not I logged on live to look at the creature catalog ability, only spell I know of you can cast on any spawn (NPC, Players, not ground spawns however), and examine says enemy.
LiveCatalogueCreature.png
Re: Spells - target_type request
Posted: Sun Aug 18, 2013 4:39 pm
by John Adams
Doesn't EQ2 have "vision" spells like EQ1 had? Like, Seeing Eyes or whatever... look through the eyes of the NPC. I am at a loss off the top of my head as to casting something on an NPC in a "friendly" manner.
It is likely our old Snowball stuff worked years ago since the code was in it's infancy, and has now grown to be more live-like. It is not important that we cast friendly spells ON npcs... except for cool customization (make NPC say something, change their appearance, etc).
"Throw Snowball" can be done in Emu as proper, a click-able item instead. We didn't have clickies back then

Re: Spells - target_type request
Posted: Sun Aug 18, 2013 5:22 pm
by thefoof
John Adams wrote:Doesn't EQ2 have "vision" spells like EQ1 had? Like, Seeing Eyes or whatever... look through the eyes of the NPC. I am at a loss off the top of my head as to casting something on an NPC in a "friendly" manner.
It is likely our old Snowball stuff worked years ago since the code was in it's infancy, and has now grown to be more live-like. It is not important that we cast friendly spells ON npcs... except for cool customization (make NPC say something, change their appearance, etc).
"Throw Snowball" can be done in Emu as proper, a click-able item instead. We didn't have clickies back then

We could maybe add a value to the spell table to override the implied target /error check for weird spells like that. I don't think EQ2 has that type of spell, but one weird one I can think off the top of my head that behaves in this manner is the cleric (or maybe it's just templar?) spell soothe. It reduces the aggro radius of a target, but doesn't initiate combat if it fails.