View Single Post
  #7  
Old 09-22-2008, 05:31 PM
spoon
Sarnak
 
Join Date: Aug 2007
Posts: 34
Default

The completely untested code

In /zone/spdat.h
~line 388
Code:
+ #define SUBCLASS_REZZ_EFFECTS		82
~ line 453
Code:
- /* 158 */ int spacing158[4];
+ /* 158 */ int spacing158[3];
+ /* 161 */ int	spellSubclass;  //82 = Reserection Effects
and in /zone/net.cpp
~line 984
Code:
-		for(y = 0; y < 3;y++)
-			sp[tempid].spacing158[y]=atoi(sep.arg[158+y]);
+		for(y = 0; y < 3;y++)
+			sp[tempid].spacing158[y]=atoi(sep.arg[158+y]);
+			
+		sp[tempid].spellSubclass=atoi(sep.arg[161]);
and then in /zone/client_process.cpp
~ line 943
Code:
- SpellOnTarget(756,this);
+ if( ra->spellSubclass == SUBCLASS_REZZ_EFFECTS) {
+ 	SpellOnTarget(756,this);
+ }
Reply With Quote