Continues Sonic Blow.

rans

New member
Messages
358
Points
0
Location
Somewhere down the road
Emulator
Hi is it possible to make a plugin for continues sonic blow?
I don't really want to edit my src using this method:

 

if (temp == AS_SONICBLOW)
                pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
else if (temp == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;


to
 

if (temp == PF_SPIDERWEB) //Special case, due to its nature of coding.
                type = CAST_GROUND;



because i regularly update my trunk with the latest version of hercules. so I was thinking of using a plugin but i really don't know how to make a plugin.

Thanks!

 
What are you trying to achieve? I don't quite understand.
Hi thanks for taking notice of my post.
I wanted to edit the content of skill.c where 

if (temp == AS_SONICBLOW)
pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
else if (temp == PF_SPIDERWEB) //Special case, due to its nature of coding.
type = CAST_GROUND;


change into 
 

if (temp == PF_SPIDERWEB) //Special case, due to its nature of coding.
type = CAST_GROUND;



but using a plugin instead of directly editing the file.

 
even this is old topic, but this member still active

unfortunately not all stuffs can be turn into plugin, like adding custom cell_ type (setcell) ... etc..

but, plugin do provide function overload, which is kinda a double-edge-sword
you can overload the function with a plugin file, but you still have to update this plugin file periodically to prevent it from not working
also having 2 plugins overload the same function, defeats the purpose of using plugin

so for your answer, there is no other choice but to copy paste the skill_additional_effect function into the plugin, with the lines you wish to edit

https://github.com/HerculesWS/Hercules/wiki/Hercules-Plugin-Manager#hpm-function-overloading

 
actually with some hacking possible add custom cell types. But this is not simple

 
Back
Top