Finally working and mainly NO-HAK and INVISIBLE (almost) solution of this DnD rule!
For these who don't know:
Same ability boost on items don't stack.
Spells ability boosts don't stack with items'.
BG's Bulls Strength don't stack with Bulls Strength.
Harper's Cats Grace don't stack with Cats Grace.
Harper's Eagles Splendor don't stack with Eagles Splendor.
Barbarian rage stacks.
However, Greater Bulls Strength and similar spells, Divine Power and Owls Insight stacks with items and other spells. This is impossible to rework correctly without nwnx_structs, which is only for linux now. And Owls Insight maybe should stacks, I didn't found out reference for this spell.
For clarify: this ruleset changed some 2das, but client wouldn't need them at all. Also, that (almost) means, that there is one little visible change - in case that player have item with ability boost and he cast spell which grant same ability boost, then the efect icon of ability increase won't blink before effect end.
Instalation:
Import NoAbStacking.erf and overwrite everything.
Extract server2da.zip to override folder.
Set sh_noabstack_ueq to module OnPlayerUnEquip event.
Set sh_noabstack_equ to module OnPlayerEquip event.
Set sh_noabstack_aqu to module OnPlayerAcquire event.
Set sh_noabstack_ent to module OnClientEnter event.
Set sh_noabstack_exi to module OnClientLeave event.
Then if you using tag based scripting, open these script and uncomment last line and you are done!
Posted by Jesse_the_Thief at 2010-07-25 21:13:42 Voted 10.00 on 07/25/10
Why is this not being used on every server?? Oh, right, every one wants over 9000 power. _________________________ Current project: Revamp of Anphillia 2 for NWN 2