Jump to content
  • 0
Sign in to follow this  
Fou-lu

Change reading order of files.

Question

image.png.601097b01919a37eb6d3e0438d54b132.png

 

 

I accomplished this by editing the mob_load (mob.c) and itemdb_read (itemdb.c) functions. They were simple edits, but they needed to remove some lines of code. My question is how can I pass this on to a plugin? Is it possible to make this type of change through plugins?

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

so far I have never failed to convert anything into plugin

mainly due to plugin allow function overload

https://github.com/HerculesWS/Hercules/wiki/Hercules-Plugin-Manager

 

although I still recommend using hooking instead of overloading as much as possible,
as having 2 plugins overloading the same function might cause problems for your server

 

EDIT: example of overload a function

https://github.com/AnnieRuru/Release/blob/master/plugins/branch_displayname.c

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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