View Single Post
  #7  
Old 03-01-2011, 03:32 PM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default Updated code

Make sure to start with a fresh SVN checkout, as the code before has been removed.

Code:
Index: zone/AA.cpp
===================================================================
--- zone/AA.cpp (revision 1873)
+++ zone/AA.cpp (working copy)
@@ -609,6 +609,23 @@
                        npc_dup = new NPCType;
                        memcpy(npc_dup, made_npc, sizeof(NPCType));
                }
+    // Host of the Elements cosmetic code
+    switch(spell_id){
+      case 3288: // Host of the Elements, Rank 3
+        npc_dup->race = 75;
+        npc_dup->texture = MakeRandomInt(0,3); // Earth, Fire, Water, Air
+        break;
+      case 3287:// Host of the Elements, Rank 2
+        npc_dup->race = 75;
+        npc_dup->texture = MakeRandomInt(0,1); // Earth, Fire
+        break;
+      case 3286:// Host of the Elements, Rank 1
+        npc_dup->race = 75;
+        npc_dup->texture = 0; // Earth
+        break;
+      default:
+        break;
+    }

                NPC* npca = new NPC(
                                (npc_dup!=NULL)?npc_dup:npc_type,       //make sure we give the NPC the correct data pointer
Reply With Quote