I'm totally lost in how to apply snippets to the 1.53 codebase. There seems to be some rather dramatic differences between how the AFKMud team has optimized the code, and the sort of codebase snippet instructions are aimed for.
My problem seems to be the DECLARE_DO_FUN's and bit vectors in mud.h ... They don't seem to exist anywhere in there to look at, let alone to add new ones from snippets.
Looking at the code, my guess is that the EXT_BV's (BV01 etc) are the equivalent inside AFKMud for the #define ACT_whatever XX parts listed in snippets, and I also guess that somewhere in build.c where the arrays for mob ACT flags are set does some nifty footwork in doing the necessary definitions. Unfortunately, all my guesses as to how to convert the snippet instructions I see to fit this fail miserably.
Don't get me wrong, I'm not saying I understand C and it's ilk in the slightest. If someone writes the AFKMud codebase in PHP, I'm your girl for patching it out, but in this particular arena I'm so severely out of my depth I might as well be trying to swim through the Marianas Trench
The snippet I'm trying to add is the healer mob one at http://www.smaugmuds.org/index.php?a=files&s=viewfile&fid=62
I know spec_cast_adept could be used instead, but I want my players to have to pay for healing, and the spec'd mob tends to be too spammy for my taste.
So if some kind soul could take pity on me and give me some advice on how to adapt the instructions in that snippet for mud.h and tables.c to work on the 1.53 codebase, it would be very much appreciated.