Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2014, 12:21 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default 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.


And here's a picture of what happens when I cast a spell with it, this is a default spell, id 8438 (Immortal Bonds).
Reply With Quote
  #2  
Old 01-19-2014, 09:16 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

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 ...
Reply With Quote
  #3  
Old 01-21-2014, 04:22 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

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;
}
Reply With Quote
  #4  
Old 01-21-2014, 03:28 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

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 View Post
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;
}
Reply With Quote
  #5  
Old 01-21-2014, 03:51 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:32 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3