Slasheree Posted September 20, 2012 Author Share Posted September 20, 2012 How can I make so that when I kill someone using a spell it's animation doesn't stop cause the NPC disappeared…I don't know if it makes a difference or not, but I'm using CS:DE Link to comment Share on other sites More sharing options...
Slasheree Posted September 20, 2012 Author Share Posted September 20, 2012 can someone help ? s: (btw, what is *bump* for ? To make the topic go on top of others ?) Link to comment Share on other sites More sharing options...
DJMaxus Posted September 21, 2012 Share Posted September 21, 2012 In your server, in the sub PlayerAttackNpcFind this:```' 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```Change it to this:```' 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) Else Call SendAnimation(mapNum, Spell(spellnum).SpellAnim, MapNpc(mapNum).NPC(mapNpcNum).x, MapNpc(mapNum).NPC(mapNpcNum).y) End If End If End If``` Link to comment Share on other sites More sharing options...
Slasheree Posted September 21, 2012 Author Share Posted September 21, 2012 did that and still doesn't work :\ Link to comment Share on other sites More sharing options...
Slasheree Posted September 21, 2012 Author Share Posted September 21, 2012 Houm…. noticed that n > 0 checks if a player had a weapon, so I changed the fragment to this and it worked fine for me:```' 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) Else Call SendAnimation(mapNum, Spell(spellNum).SpellAnim, MapNpc(mapNum).Npc(mapNpcNum).x, MapNpc(mapNum).Npc(mapNpcNum).y) End If End If '------------------- Else If spellNum = 0 Then Call SendAnimation(mapNum, Item(GetPlayerEquipment(attacker, Weapon)).Animation, MapNpc(mapNum).Npc(mapNpcNum).x, MapNpc(mapNum).Npc(mapNpcNum).y) Else Call SendAnimation(mapNum, Spell(spellNum).SpellAnim, MapNpc(mapNum).Npc(mapNpcNum).x, MapNpc(mapNum).Npc(mapNpcNum).y) End If '----------------- End If```eventhough I'm gonna clean the previous play animation for the spell, it's not needed there Link to comment Share on other sites More sharing options...
DJMaxus Posted September 22, 2012 Share Posted September 22, 2012 Sorry, its been a while.Glad you got it figured out. 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