TrinityCore/TrinityCore — pull request #7689 by Muzashi (2012-09-07 19:35:30+00:00)
Title: SmartScripts: SMART_ACTION_SET_HOME_POS

Useful for those npc that move and need to stay in that position on evade. Or those who reset because they're too far away frome home pos.
Can be used with SMART_TARGET_SELF (sets home pos to actual position)
or with SMART_TARGET_POSITION (sets home pos to a specified one)

Also notice that when creature despawns, it will respawn on db position so no problem.