Spells - target_type request

EQ2Emulator Development forum.

Moderator: Team Members

User avatar
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

Post by John Adams » Sun Aug 18, 2013 2:52 pm

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?

User avatar
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

Post by John Adams » Sun Aug 18, 2013 3:00 pm

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?

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Spells - target_type request

Post by Jabantiz » Sun Aug 18, 2013 3:21 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
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

Post by John Adams » Sun Aug 18, 2013 4:39 pm

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 :)

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: Spells - target_type request

Post by thefoof » Sun Aug 18, 2013 5:22 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests