Jump to content
  • 0

Dark Strike Skill Bonus vs Holy Property or Angel Race


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

In source battle.c theres a function that increase soul strike skill vs undead.

case MG_SOULSTRIKE:
if (battle_check_undead(tstatus->race,tstatus->def_ele))
skillratio += 5 * skill_lv;
break;        

 

I tried to do the same for NPC_DARKSTRIKE but I've got error, any one could help me here?
increase the damage for holy property 5% every skill level based on NPC_DARKSTRIKE, I implemented that skill in mage skill tree, modifyed luas and added, I just need the source for de damage increase vs holy monsters.

 

 

15178292_10154016727114249_6332145934354682296_n.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

--- C:\Users\Jittapan\AppData\Local\Temp\TOdqXa_battle.c	2017-05-07 17:35:33.883000000 +0700
+++ D:\GitRepo\rAthena\src\map\battle.c	2017-05-07 17:35:36.840000000 +0700
@@ -5764,6 +5764,10 @@
 						if (battle_check_undead(tstatus->race,tstatus->def_ele))
 							skillratio += 5 * skill_lv;
 						break;
+					case NPC_DARKSTRIKE:
+						if (tstatus->race == RC_ANGEL || tstatus->def_ele == ELE_HOLY)
+							skillratio += 5 * skill_lv;
+						break;
 					case MG_FIREWALL:
 						skillratio -= 50;
 						break;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Thank you so much! clean build, no errors and I could  appreciate the damage increase only against holy and angel!

tumblr_ofz6a7GLxi1rbi60go3_400.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...