Jump to content
  • 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

4 answers to this question

Recommended Posts

  • 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

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.