Fix quest complete hook, implement it for gameobject and for smart AI

Fine by me