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

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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