Miharukun Posted April 18, 2016 Author Share Posted April 18, 2016 I need a little help here with the damage formula. I wanted to make different damage dealt to player and NPC. like if to Player = 3k-5k damage the damage dealt to npc can be 30k-50k like most of the mmorpg.```' set the vital Vital = Spell(SpellNum).Vital If TempPlayer(index).targetType = 1 Then Vital = Round((Vital * 0.6)) * Round((Player(index).Level * 1.14)) * (Round((Stats.Intelligence + (Stats.Willpower / 2))) / 1.5) Else Vital = Round((Vital * 6)) * Round((Player(index).Level * 11.4)) * (Round((Stats.Intelligence + (Stats.Willpower / 2))) / 1.5) End If```Here's the code, i think it looks fine already. But it's always dealt the same damage like to NPC = 5K and to Player still 5K. Link to comment Share on other sites More sharing options...
Irij47 Posted April 18, 2016 Share Posted April 18, 2016 I tested your exact code and my results were with both the player and NPC having the same stats:Player: 132 dmgNPC: 13,682 dmgSo the code works fine. I don't understand what isn't working for you. Link to comment Share on other sites More sharing options...
Miharukun Posted April 18, 2016 Author Share Posted April 18, 2016 Woah.. idk what's wrong either :( it still does the same damage.. Link to comment Share on other sites More sharing options...
Irij47 Posted April 18, 2016 Share Posted April 18, 2016 Did you change anything else within the sub? Or just the vitals? Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted April 18, 2016 Share Posted April 18, 2016 If you're using the client.exe and not the f5 thingy (debugger?) then did you compile it? Link to comment Share on other sites More sharing options...
Irij47 Posted April 18, 2016 Share Posted April 18, 2016 That code is located on the server. Link to comment Share on other sites More sharing options...
Miharukun Posted April 18, 2016 Author Share Posted April 18, 2016 @'Irij':> Did you change anything else within the sub? Or just the vitals?just the vitals@'Mohenjo:> If you're using the client.exe and not the f5 thingy (debugger?) then did you compile it?It's in server and uhh what you mean? Link to comment Share on other sites More sharing options...
or3o Posted April 19, 2016 Share Posted April 19, 2016 Did you check player attack npc or player attack player in mod combat?Two ways i can think of is, go to player attack npc ( in Mod combat server side)and just set the vital to whatever it is *10or you can go to player attack player and set the vital to whatever it normal is *.1 Link to comment Share on other sites More sharing options...
Miharukun Posted April 19, 2016 Author Share Posted April 19, 2016 @'or3o':> Did you check player attack npc or player attack player  in mod combat?> Two ways i can think of is, go to player attack npc  ( in Mod combat server side)and just set the vital to whatever it is *10> or you can go to player attack player and set the vital to whatever it normal is *.1There is no combat formula on there :( can you TV me to check it? Link to comment Share on other sites More sharing options...
Irij47 Posted April 19, 2016 Share Posted April 19, 2016 Are you running the code through the debugger or are you compiling it into an executable? Also, you can set breaking points on the line of code to see if it's executing. If you want, PM with your server code and I'll see what I can do. Link to comment Share on other sites More sharing options...
Miharukun Posted April 19, 2016 Author Share Posted April 19, 2016 @'Irij':> Are you running the code through the debugger or are you compiling it into an executable? Also, you can set breaking points on the line of code to see if it's executing. If you want, PM with your server code and I'll see what I can do.Fixed and thanks for your help bro! :D Silly me to not check all the Spell formula ahaha![](http://i.imgur.com/YirqqOr.png)To NPC![](http://i.imgur.com/jar3KUz.png)To Player Link to comment Share on other sites More sharing options...
Irij47 Posted April 19, 2016 Share Posted April 19, 2016 Awesome! Glad you got it fixed :D Link to comment Share on other sites More sharing options...
Miharukun Posted April 19, 2016 Author Share Posted April 19, 2016 Yeah thanks to you guys too. I'm able to figure it out ahaha xD now it's time to make it balanced Link to comment Share on other sites More sharing options...
Abyss Posted April 19, 2016 Share Posted April 19, 2016 So what did you do to fix it? Link to comment Share on other sites More sharing options...
Miharukun Posted April 19, 2016 Author Share Posted April 19, 2016 @'Abyss':> So what did you do to fix it?adding the vital formula for Damage HP :D 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