SkywardRiver Posted December 31, 2014 Author Share Posted December 31, 2014 This tutorial will fix a bug where the spell animation will not play if the spell kills the npc.Server Side:Find this in modCombat>PlayerAttackNpc```' send animation If n > 0 Then If Not overTime Then If SpellNum = 0 Then Call SendAnimation(mapnum, Item(GetPlayerEquipment(Attacker, weapon)).Animation, MapNpc(mapnum).NPC(mapNpcNum).x, MapNpc(mapnum).NPC(mapNpcNum).y) End If End If```and just below it place this:``` If SpellNum > 0 Then Call SendAnimation(mapnum, Spell(SpellNum).SpellAnim, MapNpc(mapnum).NPC(mapNpcNum).x, MapNpc(mapnum).NPC(mapNpcNum).y) SendMapSound Attacker, MapNpc(mapnum).NPC(mapNpcNum).x, MapNpc(mapnum).NPC(mapNpcNum).y, SoundEntity.seSpell, SpellNum End If```~SkywardRiver 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