Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[E.O] Edit Aoe Animation and Add New Type of Spell


Ru-her
 Share

Recommended Posts

Hey guys, I wanna know if anyone can tell me how edit Aoe Spell, to show the animation in every area that magic is set, like this example 5x5:

>! ![](http://oi54.tinypic.com/2vhxf94.jpg)

and create a new type of spell: Linear … like this:

>! ![](http://oi55.tinypic.com/if8ox1.jpg)

Thanks all.
Link to comment
Share on other sites

For the AOE animation, I think you can use SendAnimation.  Just toss an If statement in CastSpell where it sends the animation, then put a loop in the If statement.  Something like this.  (waits for Soul/some more experienced programmer to fix pseudo-code)
```
If IsAOE = True Then
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x,y
For i = 1 to Spell(spellnum).Range
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,y
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x,y+i
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,y
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x,y-i
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,y+i
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,y-i
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,y+i
Call SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,y-i
Next
EndIf
```NOTE: This is pseudo-code and will not work.  If you plug this directly in to the server files, you will get an error.  This is just to show you the basic logic of it.

For linear spells, I'll release a tutorial once I'm done coding it. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...