Scripts that signal players to join an event at a specific times or often use a map, or an instance map to help players farm items. Example: Clucker event, Disguise event, Gold room, MvP room, Chess script
Scripts that rewards players for hunting monsters and/or gathering items, shops, or simply want to show simple functions and algorithms of scripting. Example: Headgear exchanger, Quest scripts, Mall NPC, Weapon dealer, Decimal Point System, Sorting Algorithm
Perfect. I have now submitted the change on GitHub.
I share the same doubt as KirieZ. As far as I know and have learned about HPM Plugins, the only method to overwrite/replace a function is through this way.
I know about HookPre and HookPost, however, in some situations where you want to remove a piece of code within the function, these solutions don't work, forcing you to resort to overloading.
Of course, whenever possible, I will adhere to HookPre and HookPost, and I can identify well when this is necessary.
I'm looking to pay someone to create a custom MVP/Boss sprite based on our server mascot, the Jawless Fish who is known for its silly expression . Please contact me if anyone has interest.
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?