EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Beastlord Epic 2.0 target type 38 (https://www.eqemulator.org/forums/showthread.php?t=29808)

Shin Noir 10-16-2009 03:55 AM

Beastlord Epic 2.0 target type 38
 
Seems that when you utilize beastlord epic, you get this error:
Code:

I dont know Target Type: 38 Spell: (6278) Might of the Wild Spirits
If you look at lucy raw data, you'll see it says targettype: Summoned Pet. This target type isn't supported in source.

Spell casts fine on target, however.
I'm guessing this target type allows you to target ANY summoned pet, and not just your own?

Until I know the target's possibilities, here's an easy temp fix to make this target type act like the typical pet only target effect found on stuff like burnout 2.

Code:

Index: zone/spdat.h
===================================================================
--- zone/spdat.h        (revision 1014)
+++ zone/spdat.h        (working copy)
@@ -89,6 +89,7 @@
  ST_UndeadAE                        = 0x18,
  ST_LDoNChest_Cursed  = 0x22,
  ST_GroupClient                = 0x2b,
+  ST_SumPet                                = 0x26, //Shin: Used on BST's effect spellID 6278. Needs fixing.
 } SpellTargetType;
 
 typedef enum  {
Index: zone/spells.cpp
===================================================================
--- zone/spells.cpp        (revision 1014)
+++ zone/spells.cpp        (working copy)
@@ -1259,6 +1259,7 @@
                        CastAction = SingleTarget;
                        break;
                }
+                case ST_SumPet:
                case ST_Pet:
                {
                        spell_target = GetPet();

Code will likely read a quick condition check on if the target is a pet or not in order to successfully cast if it's as it implies, which should be easy to write! :)


All times are GMT -4. The time now is 01:46 AM.

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