COMMITTED: SE_ImprovedSpellEffect
This is a pretty huge one for alot of servers I imagine. Tons of mobs make use of this spell(Spreading Stone) alone, let alone the new cleric Promised Renewal lines, etc.
The counterpart to this effect is SE_BossSpellTrigger(which is coming shortly), the key differences I can find are that ImprovedSpellEffects can land on any target and have single target effects while BossSpellTrigger effects can only land on clients and have PB AE effects. code... spell effects.cpp - line 2817 - add this Code:
case SE_ImprovedSpellEffect: Code:
case SE_ImprovedSpellEffect: |
You're really making it hard for me to catch up you know that? ...but don't let that stop you =p
|
I know I'm making more work for you as you got to clean up my shoddy code but at least the groundwork is done(hopefully lol).
BTW The more I looked into SE_BossSpellTrigger, they are all single target npc on client spells which would be handled with scripting so I think its pretty safe to combine these two functions together. edit... seems like SE_CastOnWearoff is exactly the same as well except it is for client on client/pet spells and self only spells. The only spell that doesnt fit the pattern is Temporal Lapse which contains none of the crazy restrictions/effects from live(cant cast if more than 90% h/e/m and it teleports you back to where you cast it) so I assume Sony did some fancy spell coding like we got recently for it. Other than that I think all 3 effects function the same. |
this was flawed as it would trigger if you cured the debuff... however I moved the code out to the dobufftic function.
spell effects.cpp - line 3297 - add this Code:
case SE_ImprovedSpellEffect: |
new code for the following effects:
1.) SE_ImprovedSpellEffect 2.) SE_BossSpellTrigger 3.) SE_CastOnWearoff 4.) SE_EffectOnFade 1, 2, 3 - Trigger when the spells duration is over. 3 & 4 - Can also trigger when the spell fades before its duration(ie rune spell being used up). mob.h Code:
Index: mob.h Code:
Index: mob.cpp Code:
Index: attack.cpp Code:
Index: spell_effects.cpp |
All times are GMT -4. The time now is 11:55 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.