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?
Spells - target_type request
Moderator: Team Members
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Spells - target_type request
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:
cuz I guess Galinda targets me the moment I target her?
Does this mean I am the secondary target?
I think I'm getting blasted by my own spell via14:56:17 D Spell : Snowball!: Casting on John through Galinda Goodfaith as target.
Code: Select all
if (caster->IsPlayer() && target->HasTarget())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;
}
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Spells - target_type request
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.
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.
You do not have the required permissions to view the files attached to this post.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Spells - target_type request
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
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
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Spells - target_type request
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.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
Who is online
Users browsing this forum: No registered users and 0 guests