Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-09-2013, 12:50 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

To get this to work I had to first decalre it in spdat.h and mob.h then I had to modify:

Code:
if(_melee_rune_left >= damage)
					{
						_melee_rune_left -= damage;
						member->buffs[_slot].melee_rune = _melee_rune_left;
						member->Message(0, "Your group ward has %i points remaining.", _melee_rune_left);
					}
to

Code:
if(_melee_rune_left >= damage)
					{
						_melee_rune_left -= damage;
						member->buffs[_slot].melee_rune = _melee_rune_left;
						member->Message(0, "Your group ward has %i points remaining.", _melee_rune_left);
						return -6;
					}
as for removing the buff when shaman is not part of group, was thinking instead of doing the check in this code you could do it when DELMEMBER is called in group.cpp so it can effect multiple classes with multiple spells similar to how eq2 removes group buffs when that particular class is no longer in the group.

Last edited by rencro; 02-09-2013 at 01:00 PM.. Reason: forgot mob.h
Reply With Quote
 

Thread Tools
Display Modes

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 02:44 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3