-
Featured Topics
-
Latest Commits
-
Topics
-
Posts
-
by "hpm overload things" you mean hookPre/hookPost? As far as I remember, overloading, as in "I want to completely skip hercules original function" (maybe it should actually be called override?) were always made with a direct assignment to the interface (like in the original post here), while hookPre/hookPost would be used if you want to keep the original code running, but wants to do something else before/after it. Example: https://github.com/HerculesWS/Hercules/blob/stable/src/plugins/db2sql.c#L1180 I am not aware of another method for overloading/overriding. I do agree that you should only do it if you have a reason to, but is there a better way to overload/override than a direct assignment?
-
better not do direct overloading without reason. Because it may break other plugins if you not do correct overloading. better use hpm overload things
-
Yes, you can look into inventory expansion ( npc/others/inventory_expansion.txt ) for details on how to do it via script. You probably can also do it via source, but it would need a bit more of digging through code.
-
-
Download Statistics