• 0
rans

Continues Sonic Blow.

Question

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!

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

What are you trying to achieve? I don't quite understand.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Myriad said:

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now