Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-28-2011, 07:16 PM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default Host of the Elements patch

This patch is to make the Host of the Elements AA look correct when cast.
No pet: Earth elemental
Otherwise: use the skin of the current pet.

Code:
Index: zone/AA.cpp
===================================================================
--- zone/AA.cpp (revision 1873)
+++ zone/AA.cpp (working copy)
@@ -583,6 +583,21 @@
                npc_type = made_npc;
        }

+       //Magician AA Host of the Elements -- Manbear (blmille2)
+       if(spell_id == 3286 || spell_id == 3287 || spell_id == 3288) {
+         made_npc = new NPCType;
+         memcpy(made_npc, npc_type, sizeof(NPCType));
+         if(GetPet()) {
+           made_npc->race = GetPet()->race;
+           made_npc->texture = GetPet()->texture;
+         } else {
+           //Defaults to Earth Elemental
+           made_npc->race = 75;
+           made_npc->texture = 0;
+         }
+         npc_type = made_npc;
+       }
+
        int summon_count = 0;
        summon_count = pet.count;
Reply With Quote
 


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:27 AM.


 

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