Corrected a dangling pointer in various DBMap/DBIterator functions

- If the DBMap has the DB_RELEASE_DATA option set and it contains a
  pointer, the optional returned out_data will now have its pointer
  value set to NULL.
- Credits to Ind for discovering the issue.

Signed-off-by: Haru <haru@dotalux.com>
Removed duplicate code from the Cool Event NPCs

- Moved common code to a function.
- Modified to use appropriate functions from function_kafras.txt.
- Modernized syntax/updated function documentation in both files.
- Fixed the Rachel NPC incorrectly stating it's warping you to Rachel,
  instead of Veins.
- Special thanks to jaBote, GubA.

Signed-off-by: Haru <haru@dotalux.com>
Merge pull request #1 from HerculesWS/master

Syncing from HerculesWS