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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2007, 10:54 AM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

This is based off of 1030 build?

Thanks for your efforts! This will help many classes, especially chanters, if it gets checked in.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #2  
Old 08-14-2007, 05:22 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Tested on 1026 and 1030 build.

Thanks

Bolly
Reply With Quote
  #3  
Old 08-14-2007, 05:41 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Looks like this has a side effect on npc->npc aggro. Looking into this.
Reply With Quote
  #4  
Old 08-14-2007, 06:00 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Ok found the problem, looks like hate of 0 is needed so drop the change to aggro.cpp and instead add this to spells.cpp ~ 2292:

Replace:

if(spelltar->IsAIControlled())
{
spelltar->AddToHateList(this, 1);
}

With:
if(spelltar->IsAIControlled())
{
if (!IsHarmonySpell(spell_id))
{
spelltar->AddToHateList(this, 1);
}
}
Reply With Quote
  #5  
Old 08-14-2007, 06:14 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

And then of course further down in spells.cpp at the AddToHateList() ~ 2365

Replace:

if (spelltar->IsAIControlled() && IsDetrimentalSpell(spell_id)
) {
int16 aggro_amount = CheckAggroAmount(spell_id);//*spelltar->CastToNPC()->AggroModifier();
mlog(SPELLS__CASTING, "Spell %d cast on %s generated %d hate", spell_id, spelltar->GetName(), aggro_amount);
spelltar->AddToHateList(this, aggro_amount);
}


with:

if (spelltar->IsAIControlled() && IsDetrimentalSpell(spell_id)
) {
int16 aggro_amount = CheckAggroAmount(spell_id);//*spelltar->CastToNPC()->AggroModifier();
mlog(SPELLS__CASTING, "Spell %d cast on %s generated %d hate", spell_id, spelltar->GetName(), aggro_amount);
if (!IsHarmonySpell(spell_id))
{
spelltar->AddToHateList(this, aggro_amount);
}
}

Last edited by inkubus; 08-15-2007 at 02:17 AM..
Reply With Quote
  #6  
Old 08-14-2007, 06:16 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Thanks KLS, just done that now. Appears to be working but will continue further testing!
Reply With Quote
  #7  
Old 08-14-2007, 06:23 PM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Ok this now works appart from one issue where if it is resisted it won't generate aggro. I will work on this and then post a final diff file.
Reply With Quote
  #8  
Old 08-14-2007, 06:04 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

AddToHateList should be able to accept 0 hate as an argument without us ignoring it. Sometimes we want to be added to something's hate list without actually generating any hate. This is how proximity aggro works.

Probably want to look for where we're calling AddToHateList for lull spells and catch it before it gets there.

Bah apparently you followed up while I was writing this... ingenious!
Reply With Quote
Reply

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