Like swinging and doing damage to yourself? I've done this before by adding statuses to the poses of any weapon. For 2-handers if you put like a poison status on any of the poses but idle (like the ones with the shield suppress status) everytime you swing the weapon you get poisoned and take damage.
good answer though, is it possible to do this with healing? EDIT: nevermind, i think i figured out how to use healing, thank you!
Pvp I believe if you go into multiplayer you can just type in /pvp and you'll enter pvp mode. As for friendly fire-esque effects anything that explodes and does tile damage seems to damage your allies. So any projectile that calls up the various explosion configs should do it.
that doesnt actually work yet, it just says your in pvp, nothing actually happens well, those are usually either passworded, or the pvp does not actually work
Like I said before, the only time I actually did damage to any of my friends was via explosions from grenade/rocket launchers, but I hope someone can help you find the answer you seek! edit: sorry didn't see that second part there, i only saw the one before that at the time of posting.
and i have seen people using these in the server i play on [its not pvp] so i know its out there somewhere