Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 Well I ve been looking in al the topics but a didnt found the answer or i didnt undertood itHow can i animate an attack whe i attack an other player?? Just like with de npc.Thanks. Link to comment Share on other sites More sharing options...
Joyce Posted November 1, 2012 Share Posted November 1, 2012 I do believe it's a piece of code that was simply left out, if you look at the portion in the PlayerAttackNPC subs you'll be able to copy and adjust those in the PlayerAttackPlayer subs. Link to comment Share on other sites More sharing options...
Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 I hope it was this part, i copied it and pasted it, i dont know a lot of this programming things.' send animationIf n > 0 ThenIf Not overTime ThenIf spellnum = 0 Then Call SendAnimation(mapnum, Item(GetPlayerEquipment(attacker, Weapon)).Animation, MapNpc(mapnum).Npc(mapNpcNum).x, MapNpc(mapnum).Npc(mapNpcNum).y)End IfThanks Link to comment Share on other sites More sharing options...
Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 Didnt work Link to comment Share on other sites More sharing options...
Joyce Posted November 1, 2012 Share Posted November 1, 2012 That's for spell animations. That's why. ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 Oh hehe, can you tell me the one for the attack please? Link to comment Share on other sites More sharing options...
Joyce Posted November 1, 2012 Share Posted November 1, 2012 Whoops, my bad. That piece of code is actually correct(Although not entirely! It has to be adjusted still). That's what I get for skimming over it at work!Anyway, adding the following code should work:```' send animation If n > 0 Then If spellnum = 0 Then Call SendEffect(GetPlayerMap(Victim), Item(n).Effect, GetPlayerX(Victim), GetPlayerY(Victim)) Call SendAnimation(GetPlayerMap(Victim), Item(n).Animation, GetPlayerX(Victim), GetPlayerY(Victim)) SendMapSound Attacker, GetPlayerX(Victim), GetPlayerY(Victim), SoundEntity.seItem, n End If End If```Remember to place it UNDER these lines:```' Check for weapon n = 0 If GetPlayerEquipment(Attacker, Weapon) > 0 Then n = GetPlayerEquipment(Attacker, Weapon) End If``` Link to comment Share on other sites More sharing options...
Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 I used it and it didnt work it still appearing just the damage numbers but not the attack animation.I must mention that i am editing with note pade because i cant install vbs6\. I dont know if this alters the resultThanks again Link to comment Share on other sites More sharing options...
Joyce Posted November 1, 2012 Share Posted November 1, 2012 That does alter the results, you NEED to compile the server and client with VB6\. The executables do not use the Source Files. Link to comment Share on other sites More sharing options...
Midgardo Posted November 1, 2012 Author Share Posted November 1, 2012 Oh god, thats a big problem because i have windows 7, thanks anyway Link to comment Share on other sites More sharing options...
Joyce Posted November 1, 2012 Share Posted November 1, 2012 It works fine on Windows 7 actually! You just need to make sure to run the setup as Administrator! Then when it reboots your PC, it crashes. (No worries ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)), once that happens just make sure you run ACMBOOT.exe and it'll continue installing just fine. Link to comment Share on other sites More sharing options...
Midgardo Posted November 2, 2012 Author Share Posted November 2, 2012 Well thanks to you and tutorials i installed vb6\. Now a very fool question… How do i compile, i used the sercher but i didnt find anything.Thanks Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 It's actually pretty simple! Go to File > Make Client/Server.exe! Link to comment Share on other sites More sharing options...
Midgardo Posted November 2, 2012 Author Share Posted November 2, 2012 It appears an error that says, i think in englisht it mustb be something like this :Compilation errorUndefined tipy define by the userOr something like that, i have the vb in spanish version hehe Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 What line does it highlight in the IDE? Link to comment Share on other sites More sharing options...
Midgardo Posted November 2, 2012 Author Share Posted November 2, 2012 Private Sub lvwInfo_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader) Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 Make sure you have Visual Basic 6, Service Pack 6 installed and redownload the source code. (Sadly, opening it without having this installed breaks your code. :[) Link to comment Share on other sites More sharing options...
Midgardo Posted November 2, 2012 Author Share Posted November 2, 2012 well thanks, but now i give up, i have installed sp6 like 10 times, it stills appearing the message about missing library and also load error, Thanks for all your help Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 Did you redownload the source code after installing it? Link to comment Share on other sites More sharing options...
Midgardo Posted November 2, 2012 Author Share Posted November 2, 2012 I dont understand of what are you talking about hehe i really know so little about programming Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 If you install Service Pack 6, DELETE your source code. And download it again, a completely fresh copy of it. Link to comment Share on other sites More sharing options...
Midgardo Posted November 3, 2012 Author Share Posted November 3, 2012 Ok this was what Ive done.1.Delete the download historial in firefox.2.Re download sp6.And the program continues me asking for the library and making me the mentioned error :S Link to comment Share on other sites More sharing options...
abhi2011 Posted November 3, 2012 Share Posted November 3, 2012 lol not the Browser History the source code. That is the folder that contains the engine your using. Like if yor using Eo 2.3 then just delete eo2.3 download the client/server again and then use it. Link to comment Share on other sites More sharing options...
Midgardo Posted November 3, 2012 Author Share Posted November 3, 2012 I delete th Eo2.3 folder, I download it again, I used the vb, and the same error appeared. Link to comment Share on other sites More sharing options...
abhi2011 Posted November 3, 2012 Share Posted November 3, 2012 Do you have TeamViewer? Pm me ur details. 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