View Single Post
  #1  
Old 07-02-2006, 07:14 PM
unicorn97211
Sarnak
 
Join Date: May 2006
Posts: 37
Default Necro Epic 1.5/2.0 Click Effect Fix

Here is the diff:

Code:
--- C:\EQEmuSP\Source\Copy of 0.7.0\zone\spdat.h	Fri Jan 20 08:06:38 2006
+++ C:\EQEmuSP\Source\0.7.0\zone\spdat.h	Sun Jul 02 21:35:18 2006
@@ -63,7 +63,7 @@
   ST_AETarget			= 0x08, // ae around target
   ST_AEBard				= 0x28, // ae friendly around self (ae bard song)
   ST_Group				= 0x29, // group spell
-  ST_GroupTeleport		= 0x03,
+  ST_GroupTeleport		= 0x03, // EverHood - AND Necro Epic 2 Pet Owners Group (Guardian of Blood Recourse - Spell ID=6316)
 //  ST_AlterPlane		= 0x3,
   ST_Undead				= 0x0a,
   ST_Tap				= 0x0d,
--- C:\EQEmuSP\Source\Copy of 0.7.0\zone\spell_effects.cpp	Sun Jul 02 22:24:45 2006
+++ C:\EQEmuSP\Source\0.7.0\zone\spell_effects.cpp	Sun Jul 02 22:35:08 2006
@@ -1567,6 +1567,9 @@
 			{
 				if(IsClient())
 					CastToClient()->TemporaryPets(spell_id);
+				// EverHood - this makes necro epic 1.5/2.0 proc work properly
+				if(caster->IsClient())
+					caster->CastToClient()->TemporaryPets(spell_id);
 				break;
 			}
 			
--- C:\EQEmuSP\Source\Copy of 0.7.0\zone\spells.cpp	Thu Jun 29 22:27:02 2006
+++ C:\EQEmuSP\Source\0.7.0\zone\spells.cpp	Sun Jul 02 22:29:16 2006
@@ -1436,6 +1436,17 @@
 					SpellOnTarget(recourse_spell, GetPet());
 #endif
 			}
+		}
+		// EverHood - Necro Epic 2 Pet Proc Recourse
+		if(spells[recourse_spell].targettype == ST_GroupTeleport)
+		{
+			if(HasOwner()){
+				if(GetOwner()->IsGrouped()){
+					Group *g = entity_list.GetGroupByMob(this->GetOwner());;
+					g->CastGroupSpell(this, recourse_spell);
+				}else{
+					SpellOnTarget(recourse_spell, this->GetOwner());
+				}
 		} else {
 			SpellOnTarget(recourse_spell, this);
 		}
Here are the database entries you need to create. Note that the id's may conflict as i just picked unused ones in my database. You may have to choose your own npc_type id and npc_spells id and substitute where appropriate in the affected sql statements.

Code:
INSERT INTO npc_types (id,name,lastname,level,race,class,bodytype,hp,
gender,texture,helmtexture,size,hp_regen_rate,mana_regen_rate,loottable_id,
merchant_id, npc_spells_id, npc_faction_id, mindmg, maxdmg,npcspecialattks,
aggroradius,face, luclin_hairstyle, luclin_haircolor, luclin_eyecolor,
luclin_eyecolor2, luclin_beardcolor, luclin_beard, fixedz,d_meele_texture1,
d_meele_texture2,walkspeed,runspeed,MR,CR,DR,FR,PR,see_invis,see_invis_undead,
qglobal,AC,npc_aggro,spawn_limit,attack_speed,findable,STR,STA,DEX,AGI,_INT,
WIS, CHA)
 VALUES (189040,'blood_skeleton1',67,367,1,63,4300,2,3,0,7,
120,60,0,0,214,0,65,82,'DQE',0,1,1,1,1,1,1,0,0,0,0,
6.66,1.25,0,0,0,0,0,0,0,0,
2666,0,0,0,0,414,414,414,414,60,414,414);

INSERT INTO npc_types (id,name,lastname,level,race,class,bodytype,hp,
gender,texture,helmtexture,size,hp_regen_rate,mana_regen_rate,loottable_id,
merchant_id, npc_spells_id, npc_faction_id, mindmg, maxdmg,npcspecialattks,
aggroradius,face, luclin_hairstyle, luclin_haircolor, luclin_eyecolor,
luclin_eyecolor2, luclin_beardcolor, luclin_beard, fixedz,d_meele_texture1,
d_meele_texture2,walkspeed,runspeed,MR,CR,DR,FR,PR,see_invis,see_invis_undead,
qglobal,AC,npc_aggro,spawn_limit,attack_speed,findable,STR,STA,DEX,AGI,_INT,
WIS, CHA)
 VALUES (189039,'blood_skeleton2',67,367,1,63,4300,2,3,0,7,
120,60,0,0,213,0,65,82,'DQE',0,1,1,1,1,1,1,0,0,0,0,
6.66,1.25,0,0,0,0,0,0,0,0,
2666,0,0,0,0,414,414,414,414,60,414,414);

INSERT INTO npc_spells (id,name,parent_list,attack_proc,proc_chance)
 Values (213,'Necro Epic 2 Proc',0,6315,5);
INSERT INTO npc_spells (id,name,parent_list,attack_proc,proc_chance)
 Values (214,'Necro Epic 1.5 Proc',0,6303,5);

INSERT INTO aa_swarmpets (spell_id,count,npc_id,duration)
 Values (6274,1,189039,30000);
INSERT INTO aa_swarmpets (spell_id,count,npc_id,duration)
 Values (6242,1,189040,30000);
Make these changes, summon your favorite necro a Soulwhisper or Deathwhisper and give it a right click while fighting

To do:
  • Pet does not aggro new targets when first target dies.
  • Group Lifetap Proc Chance. I Guessed.
  • This pet should inherit all AA attributes of your highest level warrior pet but with AA broken I can't go further with this yet.
  • See if this opens the door for other items with clicky summon pet effects.
  • Figure out what it will take to get the red skele to wield the same weapons he does on live.
Reply With Quote