gu3mb3l Posted March 17, 2009 Author Share Posted March 17, 2009 Can I add some attack animation like blood if I attack a attackable NPC? How to do that? Link to comment Share on other sites More sharing options...
AdrianC Posted March 17, 2009 Share Posted March 17, 2009 Source edit I guess. Link to comment Share on other sites More sharing options...
gu3mb3l Posted March 17, 2009 Author Share Posted March 17, 2009 Source Edit?? Can I do it in edit my Main.txt file Link to comment Share on other sites More sharing options...
tenjimaru Posted March 17, 2009 Share Posted March 17, 2009 theres a script around the scripting seccion, search a little, hope this helped Link to comment Share on other sites More sharing options...
gu3mb3l Posted March 17, 2009 Author Share Posted March 17, 2009 Uhh Thanks but can I Edit it in my Main.txt file like Call SpellAnim(…) In Sub On Attack Link to comment Share on other sites More sharing options...
Richy420Rich Posted March 17, 2009 Share Posted March 17, 2009 Under Sub OnAttack(index, Damage)Put: Call SpellAnim(SpellNum, GetPlayerMap(Target), GetPlayerX(Target), GetPlayerY(Target))You might want to do the same for OnArrowHit(index, Damage) And PlayerHit(index, Damage) as wellExample of it would be:Sub OnAttack(Index, Damage)Dim TargetIf Int(Damage) > 0 ThenIf Int(GetPlayerTarget(Index)) > 0 ThenTarget = GetPlayerTarget(Index) Call SpellAnim(35, GetPlayerMap(Target), GetPlayerX(Target), GetPlayerY(Target))Call DamagePlayer(Index, Target, Damage)ElseTarget = GetPlayerTargetNPC(Index) Call SpellAnim(34, GetPlayerMap(index), GetNPCX(GetPlayerMap(index), Target), GetNPCY(GetPlayerMap(index), Target))Call DamageNPC(Index, Target, Damage)End IfEnd IfEnd Sub Link to comment Share on other sites More sharing options...
gu3mb3l Posted March 17, 2009 Author Share Posted March 17, 2009 Do I must make spell with id number 35 or 34 and when I attack a NPC the spell animation will appear?? :huh:. Sorry my bad English ;) Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 17, 2009 Share Posted March 17, 2009 @gu3mb3l:> Do I must make spell with id number 35 or 34 and when I attack a NPC the spell animation will appear?? :huh:. Sorry my bad English ;)No, Ithink you will have to see what spell graphic is number 35 (in your Spells.bmp, in the client folder, in the graphic folder). The number corresponds to the row (eg, the second row, would be animation#2) 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