Magic Critical Strike

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
thumb-bc40506c94266ca00b0ffc27bbcbe202-screenhercules014.jpg


File Name: Magic Critical Strike

File Submitter: Dastgir

File Submitted: 12 Jan 2015

File Category: Plugins

Its a plugin for Critical Strike on Skills

Critical Strike Calculation is as per normal calculations

You can have a battle_config on any of the files in conf/battle/ with

Code:
magic_critical_color: 1 or 2
1 = Red Critical Strike

2 = Blue Critical Strike

Method to Change Delay:

Either add the config in conf/battle/ as stated above or change "blue_red_critical" value in plugin

Building Plugin for Linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc

Building Plugin for Windows: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

P.S: You need HPMHooking Enabled.

Click here to download this file

 
Last edited by a moderator:
Critical-Magic.c:55: warning: implicit declaration of function 'getFromMOBDATA'
Critical-Magic.c:55: warning: assignment makes pointer from integer without a cast
Critical-Magic.c:57: warning: implicit declaration of function 'addToMOBDATA'
Critical-Magic.c: In function 'magic_critical_attack':
Critical-Magic.c:111: warning: assignment makes pointer from integer without a cast
 
Critical-Magic.c:55: warning: implicit declaration of function 'getFromMOBDATA'

Critical-Magic.c:55: warning: assignment makes pointer from integer without a cast

Critical-Magic.c:57: warning: implicit declaration of function 'addToMOBDATA'

Critical-Magic.c: In function 'magic_critical_attack':

Critical-Magic.c:111: warning: assignment makes pointer from integer without a cast
Update your Hercules. Those functions were added to Hercules 1-3 month ago.

 
Hello Dastgir,


I just want to add a few suggestions, please consider the ff: 
default_smile.png
 

- You can Enable it to work only on Players or Monsters only.
- Disable the Hit Animation Per hit of the skill when doing Critical Strike.


Thank you!
 

 
Hi Dastgir,

I've tried this a couple of times however it seems that it's showing a high crit damage on screen (around double the normal damage without crit) but it's not the exact damage being deducted on the player's HP. I think it needs to be accurate, or else I'm the only one who experienced this. I'm using the latest Hercules SVN.

Ex. 

- Normal damage does around 30k+

- Critical (on screen) shows around 60k+

- Actual HP deducted to player 45k+

 
Hello Dastgir,

I just want to add a few suggestions, please consider the ff: 
default_smile.png
 

- You can Enable it to work only on Players or Monsters only.

- Disable the Hit Animation Per hit of the skill when doing Critical Strike.

Thank you!
Hi Dastgir,

I've tried this a couple of times however it seems that it's showing a high crit damage on screen (around double the normal damage without crit) but it's not the exact damage being deducted on the player's HP. I think it needs to be accurate, or else I'm the only one who experienced this. I'm using the latest Hercules SVN.

Ex. 

- Normal damage does around 30k+

- Critical (on screen) shows around 60k+

- Actual HP deducted to player 45k+
I will do refactoring of this plugin as soon as I get time.
 
@@karazu

Added v1.0b , Now, it will not double drop items.

 
@@Dastgir


I found a new BUG.

Monsters that are killed by Critical Strike Via Magic don't drop any items anymore. 

Its like even if poring drops an apple 100% if its killed by critical strike it will never drop. 

 
Check this out?

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


Bug or i don't know.
 
any way to fix when doing crit the animation of skill are gone? And can i exclude asura from magic critical strike?

 
Back
Top