xxXReichoXxx Posted December 19, 2011 Author Share Posted December 19, 2011 id like to create a spell witch is animated also on those areas wheres no npc. (aoe)i dont want a huge spell ,huge animation but lots of small animations on each tile.http://images.wikia.com/tibia/en/images/a/a8/Great_fireball1%28after_winter_update_2007%29.gifi have no idea how to create a variable witch shows animation in range.it should be edited here server modcombat sub castspell``` Select Case Spell(spellNum).Type Case SPELL_TYPE_DAMAGEHP DidCast = True For i = 1 To Player_HighIndex If IsPlaying(i) Then If i <> index Then If GetPlayerMap(i) = GetPlayerMap(index) Then If isInRange(AoE, x, y, GetPlayerX(i), GetPlayerY(i)) Then If CanPlayerAttackPlayer(index, i, True) Then SendAnimation mapNum, Spell(spellNum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, i PlayerAttackPlayer index, i, Vital, spellNum End If End If End If End If End If Next ```so here is SendAnimation mapNum, Spell(spellNum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, iand "i" means locations of monsters where animation will be sent. Link to comment Share on other sites More sharing options...
xxXReichoXxx Posted December 19, 2011 Author Share Posted December 19, 2011 ok i figured it out without coding.edit a spell with paint etc.now create 2 or 3 lines for the same animation. so u have animation and under that u have same animation 2 or 3 times. These will be lines for spells (like linear).now in client animation tab . change frame rate so u have rows. (not single animation or ur output will be linear not aoe).there you go :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now