Harmony/Lull temporary fix
Hi all
Not sure if i've implemented this in the best way but I am sure someone can point out any issues. Quote:
Thanks Bolly |
Eek some changes as i had the line numebrs wrong
Quote:
|
Ok for some reason, this sometimes still generates 1 hate on lull line spells. Still looking into this. Fix works fine for harmony though.
Thanks Bolly |
Found it,
in aggro.cpp (below: int16 spell_id = spellid;) line 989 replace: int16 AggroAmount = 1; with: int16 AggroAmount = 1; if (IsHarmonySpell(spellid)) { AggroAmount = 0; } |
This is based off of 1030 build?
Thanks for your efforts! This will help many classes, especially chanters, if it gets checked in. |
Tested on 1026 and 1030 build.
Thanks Bolly |
Looks like this has a side effect on npc->npc aggro. Looking into this.
|
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); } } |
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! |
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); } } |
Thanks KLS, just done that now. Appears to be working but will continue further testing!
|
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.
|
Awesome, thanks much. I'd like to see this as part of the main code.
|
Ok i've fixed that bug (caused by me! 3am coding for you :-))
How do i go about making a diff file? Would I need cvs/svn access? |
I think i did this right!
Patch: Quote:
|
I hope this is solid and gets checked in!
Thanks for all the hard work! |
I have it up on PEQ and no major problems so far. The only issue it seems is the AE part of the spell isn't working. It's single target only, even though the spell effect is supposed to be AE. This is using the level 5 harmony spell Druids get.
Everything else is perfect so far, thanks :) |
Oh jeez yeah i forgot to check that. I'll have a look now.
Cheers Bolly |
Nice fix, thanks!
This is real important for players you like to play alone, or actually pull mobs like they do on live. |
the bard and druid in our merry band i'm sure will put this code modifcation thorugh the ringer. i'll post any wierdnesses or issues as i find them. much thanks to all who put this fix together.
== sfisque ps: you might want to include the cvs version info when you diff, so that people who are patching from older versions (like myself) are forewarned that they might have to do the modifications by hand or at least massage them a bit. |
So what happened with this fix going into the official source? This is a good fix, and needs to be introduced.
|
Did anyone ever figure out a good way to make this work with AE lulls?
Dax |
Alliance
I think that the same problem behind the lull and harmony line is also behind the problems I have seen with the Enchanter Alliance spell.
When cast, it produces instant aggro from the target. Something to add to the check list. |
The same basic fix also works for the Alliance line of spells (and bard song).
I'm new at this and haven't tested it extensively, but it seems to have things working the way they should. In IsHarmonySpell(), spdat.cpp line ~202 replace: if(sp.effectid[i] == SE_Lull || sp.effectid[i] == SE_Harmony) with: if(sp.effectid[i] == SE_Lull || sp.effectid[i] == SE_Harmony || sp.effectid[i] == SE_AddFaction) |
Still having this issue - is this in the current one?
|
Quote:
|
A successful harmony causes aggro
|
Quote:
|
yep, try it without gm mode on
|
hmm its working, i think it might have been related to body type - i'll check sorry about this!
|
All times are GMT -4. The time now is 03:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.