How to add spell effect for styles:
PostPosted: Tue Nov 09, 2004 4:50 pm
Well i would like to add a spell effect with duration fro each styles:
We have some special effect for styles:
Stunned
Target is unable to attack or do movement.
Bleeding
target lost each interval some HP
Slowed
Target got a new maxpseed value during duration
I have scan the style processor and found an effect Taunt:
if (attackData.Style.SpecialType == Style.eSpecialType.Taunt
&& attackData.Target is GameNPC
&& attackData.Style.SpecialValue != 0)
{
// god knows about value, suppose it's same as end usage - 100% at 4.0spd
((GameNPC)attackData.Target).AddToAggroList(player, attackData.Style.SpecialValue*(int)player.AttackSpeed(weapon)/40);
}
is anyone can code the belleding effect base?based on dotspell(damamange over the time) and try to code the effect in the style processor?
If anyone can do that i will code stun/lowered one
We have some special effect for styles:
Stunned
Target is unable to attack or do movement.
Bleeding
target lost each interval some HP
Slowed
Target got a new maxpseed value during duration
I have scan the style processor and found an effect Taunt:
if (attackData.Style.SpecialType == Style.eSpecialType.Taunt
&& attackData.Target is GameNPC
&& attackData.Style.SpecialValue != 0)
{
// god knows about value, suppose it's same as end usage - 100% at 4.0spd
((GameNPC)attackData.Target).AddToAggroList(player, attackData.Style.SpecialValue*(int)player.AttackSpeed(weapon)/40);
}
is anyone can code the belleding effect base?based on dotspell(damamange over the time) and try to code the effect in the style processor?
If anyone can do that i will code stun/lowered one